mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-10 08:20:59 +00:00
remove adding hash for configmap/secret read from resource yaml files
This commit is contained in:
@@ -64,7 +64,7 @@ func TestNewFromConfigMaps(t *testing.T) {
|
||||
"DB_USERNAME": "admin",
|
||||
"DB_PASSWORD": "somepw",
|
||||
},
|
||||
}),
|
||||
}).SetBehavior(resource.BehaviorCreate),
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -92,7 +92,7 @@ func TestNewFromConfigMaps(t *testing.T) {
|
||||
BAR=baz
|
||||
`,
|
||||
},
|
||||
}),
|
||||
}).SetBehavior(resource.BehaviorCreate),
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -118,7 +118,7 @@ BAR=baz
|
||||
"a": "x",
|
||||
"b": "y",
|
||||
},
|
||||
}),
|
||||
}).SetBehavior(resource.BehaviorCreate),
|
||||
},
|
||||
},
|
||||
// TODO: add testcase for data coming from multiple sources like
|
||||
|
||||
@@ -60,7 +60,7 @@ func TestNewResMapFromSecretArgs(t *testing.T) {
|
||||
"DB_USERNAME": base64.StdEncoding.EncodeToString([]byte("admin")),
|
||||
"DB_PASSWORD": base64.StdEncoding.EncodeToString([]byte("somepw")),
|
||||
},
|
||||
}),
|
||||
}).SetBehavior(resource.BehaviorCreate),
|
||||
}
|
||||
if !reflect.DeepEqual(actual, expected) {
|
||||
t.Fatalf("%#v\ndoesn't match expected:\n%#v", actual, expected)
|
||||
|
||||
Reference in New Issue
Block a user