Fix formatting issues as suggested by gofmt
This commit is contained in:
parent
9ab04c5381
commit
a656304e55
|
|
@ -275,7 +275,7 @@ func TestConstructSecret(t *testing.T) {
|
||||||
func TestPopulateMap(t *testing.T) {
|
func TestPopulateMap(t *testing.T) {
|
||||||
anotherCm := literalConfigMap.DeepCopy()
|
anotherCm := literalConfigMap.DeepCopy()
|
||||||
expectedMap := map[groupVersionKindName]newNameObject{
|
expectedMap := map[groupVersionKindName]newNameObject{
|
||||||
groupVersionKindName{
|
{
|
||||||
gvk: schema.GroupVersionKind{
|
gvk: schema.GroupVersionKind{
|
||||||
Version: "v1",
|
Version: "v1",
|
||||||
Kind: "ConfigMap",
|
Kind: "ConfigMap",
|
||||||
|
|
@ -285,7 +285,7 @@ func TestPopulateMap(t *testing.T) {
|
||||||
newName: "newconfigmap",
|
newName: "newconfigmap",
|
||||||
obj: literalConfigMap,
|
obj: literalConfigMap,
|
||||||
},
|
},
|
||||||
groupVersionKindName{
|
{
|
||||||
gvk: schema.GroupVersionKind{
|
gvk: schema.GroupVersionKind{
|
||||||
Version: "v1",
|
Version: "v1",
|
||||||
Kind: "Secret",
|
Kind: "Secret",
|
||||||
|
|
@ -348,7 +348,7 @@ func TestPopulateMapOfConfigMapAndSecret(t *testing.T) {
|
||||||
tlsSecretWithNewName := tlsSecret.DeepCopy()
|
tlsSecretWithNewName := tlsSecret.DeepCopy()
|
||||||
tlsSecretWithNewName.Name = "tlsSecret-h4m4f95g75"
|
tlsSecretWithNewName.Name = "tlsSecret-h4m4f95g75"
|
||||||
expectedMap := map[groupVersionKindName]newNameObject{
|
expectedMap := map[groupVersionKindName]newNameObject{
|
||||||
groupVersionKindName{
|
{
|
||||||
gvk: schema.GroupVersionKind{
|
gvk: schema.GroupVersionKind{
|
||||||
Version: "v1",
|
Version: "v1",
|
||||||
Kind: "ConfigMap",
|
Kind: "ConfigMap",
|
||||||
|
|
@ -358,7 +358,7 @@ func TestPopulateMapOfConfigMapAndSecret(t *testing.T) {
|
||||||
newName: "literalConfigMap-c8tc8tb6b7",
|
newName: "literalConfigMap-c8tc8tb6b7",
|
||||||
obj: literalConfigMapWithNewName,
|
obj: literalConfigMapWithNewName,
|
||||||
},
|
},
|
||||||
groupVersionKindName{
|
{
|
||||||
gvk: schema.GroupVersionKind{
|
gvk: schema.GroupVersionKind{
|
||||||
Version: "v1",
|
Version: "v1",
|
||||||
Kind: "Secret",
|
Kind: "Secret",
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,7 @@ spec:
|
||||||
pathToField: []string{"spec", "volumes", "configMap", "name"},
|
pathToField: []string{"spec", "volumes", "configMap", "name"},
|
||||||
fn: changeNameAccordingToMapAndAddPrefix(
|
fn: changeNameAccordingToMapAndAddPrefix(
|
||||||
map[groupVersionKindName]newNameObject{
|
map[groupVersionKindName]newNameObject{
|
||||||
groupVersionKindName{
|
{
|
||||||
gvk: schema.GroupVersionKind{Group: "somegroup", Version: "someversion", Kind: "somekind"},
|
gvk: schema.GroupVersionKind{Group: "somegroup", Version: "someversion", Kind: "somekind"},
|
||||||
name: "app-env",
|
name: "app-env",
|
||||||
}: {newName: "app-env-somehash"},
|
}: {newName: "app-env-somehash"},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue