mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
add missing test case
This commit is contained in:
@@ -402,6 +402,42 @@ metadata:
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
name: "container_function_config",
|
||||
skipIfFalseEnv: "KUSTOMIZE_DOCKER_E2E",
|
||||
args: func(d string) []string { return []string{} },
|
||||
files: func(d string) map[string]string {
|
||||
return map[string]string{
|
||||
"deployment.yaml": `
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: foo
|
||||
annotations:
|
||||
config.kubernetes.io/function: |
|
||||
container:
|
||||
image: "gcr.io/kustomize-functions/e2econtainerconfig"
|
||||
`,
|
||||
}
|
||||
},
|
||||
expectedFiles: func(d string) map[string]string {
|
||||
return map[string]string{
|
||||
"deployment.yaml": `
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: foo
|
||||
annotations:
|
||||
config.kubernetes.io/function: |
|
||||
container:
|
||||
image: "gcr.io/kustomize-functions/e2econtainerconfig"
|
||||
a-string-value: ''
|
||||
a-int-value: '0'
|
||||
a-bool-value: 'false'
|
||||
`}
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
name: "container_function_config",
|
||||
skipIfFalseEnv: "KUSTOMIZE_DOCKER_E2E",
|
||||
|
||||
Reference in New Issue
Block a user