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