mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-10 16:42:51 +00:00
add apiVersiond and kind in tests to reduce test noise
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
apiVersion: v1
|
||||
kind: Kustomization
|
||||
namePrefix: team-foo-
|
||||
commonLabels:
|
||||
app: mynginx
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
apiVersion: v1
|
||||
kind: Kustomization
|
||||
namePrefix: p1-
|
||||
configMapGenerator:
|
||||
- name: com1
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
apiVersion: v1
|
||||
kind: Kustomization
|
||||
namePrefix: p2-
|
||||
configMapGenerator:
|
||||
- name: com2
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
apiVersion: v1
|
||||
kind: Kustomization
|
||||
bases:
|
||||
- myapp/mycomponent
|
||||
- myapp/mycomponent2
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
apiVersion: v1
|
||||
kind: Kustomization
|
||||
bases:
|
||||
- ../../../../base/myapp/mycomponent
|
||||
configMapGenerator:
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
apiVersion: v1
|
||||
kind: Kustomization
|
||||
bases:
|
||||
- ../../../../base/myapp/mycomponent2
|
||||
configMapGenerator:
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
apiVersion: v1
|
||||
kind: Kustomization
|
||||
crds:
|
||||
- mycrd.json
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
apiVersion: v1
|
||||
kind: Kustomization
|
||||
configMapGenerator:
|
||||
- name: the-non-default-namespace-map
|
||||
namespace: non-default
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
apiVersion: v1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- serviceaccount.yaml
|
||||
- rolebinding.yaml
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
apiVersion: v1
|
||||
kind: Kustomization
|
||||
bases:
|
||||
- ../overlays/a
|
||||
- ../overlays/b
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
apiVersion: v1
|
||||
kind: Kustomization
|
||||
bases:
|
||||
- ../../base/
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
apiVersion: v1
|
||||
kind: Kustomization
|
||||
bases:
|
||||
- ../../base/
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
apiVersion: v1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- serviceaccount.yaml
|
||||
- rolebinding.yaml
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
apiVersion: v1
|
||||
kind: Kustomization
|
||||
bases:
|
||||
- ../overlays/a
|
||||
- ../overlays/b
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
apiVersion: v1
|
||||
kind: Kustomization
|
||||
bases:
|
||||
- ../../base/
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
apiVersion: v1
|
||||
kind: Kustomization
|
||||
bases:
|
||||
- ../../base/
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
apiVersion: v1
|
||||
kind: Kustomization
|
||||
namePrefix: staging-
|
||||
commonLabels:
|
||||
env: staging
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
apiVersion: v1
|
||||
kind: Kustomization
|
||||
namePrefix: team-foo-
|
||||
commonLabels:
|
||||
app: mynginx
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
apiVersion: v1
|
||||
kind: Kustomization
|
||||
namePrefix: staging-
|
||||
commonLabels:
|
||||
env: staging
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
apiVersion: v1
|
||||
kind: Kustomization
|
||||
namePrefix: team-foo-
|
||||
commonLabels:
|
||||
app: mynginx
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
apiVersion: v1
|
||||
kind: Kustomization
|
||||
namePrefix: staging-
|
||||
commonLabels:
|
||||
env: staging
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
apiVersion: v1
|
||||
kind: Kustomization
|
||||
namePrefix: team-foo-
|
||||
commonLabels:
|
||||
app: mynginx
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
apiVersion: v1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- deployment.yaml
|
||||
- ingress.yaml
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
apiVersion: v1
|
||||
kind: Kustomization
|
||||
nameprefix: kustomized-
|
||||
|
||||
bases:
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
apiVersion: v1
|
||||
kind: Kustomization
|
||||
namePrefix: dev-
|
||||
bases:
|
||||
- ../package
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
apiVersion: v1
|
||||
kind: Kustomization
|
||||
namePrefix: base-
|
||||
resources:
|
||||
- cockroachdb-statefulset-secure.yaml
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
apiVersion: v1
|
||||
kind: Kustomization
|
||||
namePrefix: test-infra-
|
||||
commonLabels:
|
||||
app: mungebot
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
apiVersion: v1
|
||||
kind: Kustomization
|
||||
namePrefix: baseprefix-
|
||||
commonLabels:
|
||||
foo: bar
|
||||
|
||||
@@ -38,6 +38,8 @@ import (
|
||||
|
||||
const (
|
||||
kustomizationContent1 = `
|
||||
apiVersion: v1
|
||||
kind: Kustomization
|
||||
namePrefix: foo-
|
||||
nameSuffix: -bar
|
||||
namespace: ns1
|
||||
@@ -68,6 +70,8 @@ patchesJson6902:
|
||||
path: jsonpatch.json
|
||||
`
|
||||
kustomizationContent2 = `
|
||||
apiVersion: v1
|
||||
kind: Kustomization
|
||||
secretGenerator:
|
||||
- name: secret
|
||||
timeoutSeconds: 1
|
||||
|
||||
Reference in New Issue
Block a user