mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-21 22:41:42 +00:00
replace Resource.options with annotations (#4061)
This commit is contained in:
@@ -14,7 +14,7 @@ func TestBashedConfigMapPlugin(t *testing.T) {
|
||||
PrepExecPlugin("someteam.example.com", "v1", "BashedConfigMap")
|
||||
defer th.Reset()
|
||||
|
||||
m := th.LoadAndRunGenerator(`
|
||||
m := th.LoadAndRunGeneratorWithBuildAnnotations(`
|
||||
apiVersion: someteam.example.com/v1
|
||||
kind: BashedConfigMap
|
||||
metadata:
|
||||
@@ -28,6 +28,9 @@ data:
|
||||
username: alice
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
annotations:
|
||||
internal.config.kubernetes.io/generatorOptions: |
|
||||
options: {}
|
||||
name: example-configmap-test
|
||||
`)
|
||||
if m.Resources()[0].NeedHashSuffix() != true {
|
||||
|
||||
Reference in New Issue
Block a user