replace Resource.options with annotations (#4061)

This commit is contained in:
Natasha Sarkar
2021-07-23 18:19:05 -07:00
committed by GitHub
parent 94c5096a95
commit 91f74e8d16
16 changed files with 209 additions and 83 deletions

View File

@@ -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 {