mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-13 18:10:59 +00:00
minor fix: incorrect apiVersion and add NoOpTransformer for vars (#757)
This commit is contained in:
@@ -20,7 +20,7 @@ import (
|
||||
func TestGeneratorOptionsWithBases(t *testing.T) {
|
||||
th := NewKustTestHarness(t, "/app/overlay")
|
||||
th.writeK("/app/base", `
|
||||
apiVersion: v1beta1
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
generatorOptions:
|
||||
disableNameSuffixHash: true
|
||||
@@ -32,7 +32,7 @@ configMapGenerator:
|
||||
- foo=bar
|
||||
`)
|
||||
th.writeK("/app/overlay", `
|
||||
apiVersion: v1beta1
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
bases:
|
||||
- ../base
|
||||
|
||||
@@ -44,7 +44,7 @@ spec:
|
||||
name: example
|
||||
`)
|
||||
th.writeF("/app/kustomization.yaml", `
|
||||
apiVersion: v1beta1
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- deployment.yaml
|
||||
|
||||
Reference in New Issue
Block a user