Add more labelling tests.

This commit is contained in:
jregan
2020-05-14 17:36:24 -07:00
parent bacb9e2249
commit d0425791ca
2 changed files with 30 additions and 0 deletions

View File

@@ -216,6 +216,8 @@ func TestSmallOverlay(t *testing.T) {
namePrefix: b-
commonLabels:
env: prod
quotedFruit: "peach"
quotedBoolean: "true"
resources:
- ../base
patchesStrategicMerge:
@@ -249,6 +251,8 @@ metadata:
labels:
app: myApp
env: prod
quotedBoolean: "true"
quotedFruit: peach
name: b-a-myDeployment
spec:
replicas: 1000
@@ -256,12 +260,16 @@ spec:
matchLabels:
app: myApp
env: prod
quotedBoolean: "true"
quotedFruit: peach
template:
metadata:
labels:
app: myApp
backend: awesome
env: prod
quotedBoolean: "true"
quotedFruit: peach
spec:
containers:
- image: whatever:1.8.0
@@ -273,6 +281,8 @@ metadata:
labels:
app: myApp
env: prod
quotedBoolean: "true"
quotedFruit: peach
name: b-a-myService
spec:
ports:
@@ -281,6 +291,8 @@ spec:
app: myApp
backend: bungie
env: prod
quotedBoolean: "true"
quotedFruit: peach
`)
}