add apiVersiond and kind in tests to reduce test noise

This commit is contained in:
Jingfang Liu
2018-12-14 14:44:37 -08:00
parent b971e6a1da
commit b6b2fb9c62
29 changed files with 60 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
apiVersion: v1
kind: Kustomization
namePrefix: team-foo- namePrefix: team-foo-
commonLabels: commonLabels:
app: mynginx app: mynginx

View File

@@ -1,3 +1,5 @@
apiVersion: v1
kind: Kustomization
namePrefix: p1- namePrefix: p1-
configMapGenerator: configMapGenerator:
- name: com1 - name: com1

View File

@@ -1,3 +1,5 @@
apiVersion: v1
kind: Kustomization
namePrefix: p2- namePrefix: p2-
configMapGenerator: configMapGenerator:
- name: com2 - name: com2

View File

@@ -1,3 +1,5 @@
apiVersion: v1
kind: Kustomization
bases: bases:
- myapp/mycomponent - myapp/mycomponent
- myapp/mycomponent2 - myapp/mycomponent2

View File

@@ -1,3 +1,5 @@
apiVersion: v1
kind: Kustomization
bases: bases:
- ../../../../base/myapp/mycomponent - ../../../../base/myapp/mycomponent
configMapGenerator: configMapGenerator:

View File

@@ -1,3 +1,5 @@
apiVersion: v1
kind: Kustomization
bases: bases:
- ../../../../base/myapp/mycomponent2 - ../../../../base/myapp/mycomponent2
configMapGenerator: configMapGenerator:

View File

@@ -1,3 +1,5 @@
apiVersion: v1
kind: Kustomization
crds: crds:
- mycrd.json - mycrd.json

View File

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

View File

@@ -1,3 +1,5 @@
apiVersion: v1
kind: Kustomization
resources: resources:
- serviceaccount.yaml - serviceaccount.yaml
- rolebinding.yaml - rolebinding.yaml

View File

@@ -1,3 +1,5 @@
apiVersion: v1
kind: Kustomization
bases: bases:
- ../overlays/a - ../overlays/a
- ../overlays/b - ../overlays/b

View File

@@ -1,3 +1,5 @@
apiVersion: v1
kind: Kustomization
bases: bases:
- ../../base/ - ../../base/

View File

@@ -1,3 +1,5 @@
apiVersion: v1
kind: Kustomization
bases: bases:
- ../../base/ - ../../base/

View File

@@ -1,3 +1,5 @@
apiVersion: v1
kind: Kustomization
resources: resources:
- serviceaccount.yaml - serviceaccount.yaml
- rolebinding.yaml - rolebinding.yaml

View File

@@ -1,3 +1,5 @@
apiVersion: v1
kind: Kustomization
bases: bases:
- ../overlays/a - ../overlays/a
- ../overlays/b - ../overlays/b

View File

@@ -1,3 +1,5 @@
apiVersion: v1
kind: Kustomization
bases: bases:
- ../../base/ - ../../base/

View File

@@ -1,3 +1,5 @@
apiVersion: v1
kind: Kustomization
bases: bases:
- ../../base/ - ../../base/

View File

@@ -1,3 +1,5 @@
apiVersion: v1
kind: Kustomization
namePrefix: staging- namePrefix: staging-
commonLabels: commonLabels:
env: staging env: staging

View File

@@ -1,3 +1,5 @@
apiVersion: v1
kind: Kustomization
namePrefix: team-foo- namePrefix: team-foo-
commonLabels: commonLabels:
app: mynginx app: mynginx

View File

@@ -1,3 +1,5 @@
apiVersion: v1
kind: Kustomization
namePrefix: staging- namePrefix: staging-
commonLabels: commonLabels:
env: staging env: staging

View File

@@ -1,3 +1,5 @@
apiVersion: v1
kind: Kustomization
namePrefix: team-foo- namePrefix: team-foo-
commonLabels: commonLabels:
app: mynginx app: mynginx

View File

@@ -1,3 +1,5 @@
apiVersion: v1
kind: Kustomization
namePrefix: staging- namePrefix: staging-
commonLabels: commonLabels:
env: staging env: staging

View File

@@ -1,3 +1,5 @@
apiVersion: v1
kind: Kustomization
namePrefix: team-foo- namePrefix: team-foo-
commonLabels: commonLabels:
app: mynginx app: mynginx

View File

@@ -1,3 +1,5 @@
apiVersion: v1
kind: Kustomization
resources: resources:
- deployment.yaml - deployment.yaml
- ingress.yaml - ingress.yaml

View File

@@ -1,3 +1,5 @@
apiVersion: v1
kind: Kustomization
nameprefix: kustomized- nameprefix: kustomized-
bases: bases:

View File

@@ -1,3 +1,5 @@
apiVersion: v1
kind: Kustomization
namePrefix: dev- namePrefix: dev-
bases: bases:
- ../package - ../package

View File

@@ -1,3 +1,5 @@
apiVersion: v1
kind: Kustomization
namePrefix: base- namePrefix: base-
resources: resources:
- cockroachdb-statefulset-secure.yaml - cockroachdb-statefulset-secure.yaml

View File

@@ -1,3 +1,5 @@
apiVersion: v1
kind: Kustomization
namePrefix: test-infra- namePrefix: test-infra-
commonLabels: commonLabels:
app: mungebot app: mungebot

View File

@@ -1,3 +1,5 @@
apiVersion: v1
kind: Kustomization
namePrefix: baseprefix- namePrefix: baseprefix-
commonLabels: commonLabels:
foo: bar foo: bar

View File

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