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-
commonLabels:
app: mynginx

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,3 +1,5 @@
apiVersion: v1
kind: Kustomization
configMapGenerator:
- name: the-non-default-namespace-map
namespace: non-default

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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