Skip to content

Commit

Permalink
chore(test): edit tests/kustomize/rollout/ to use labels instead of…
Browse files Browse the repository at this point in the history
… `commonLabels`

Signed-off-by: Jethro Lee <[email protected]>
  • Loading branch information
dlemfh committed Oct 14, 2023
1 parent ba7c9a5 commit ffe1f7f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
17 changes: 17 additions & 0 deletions test/kustomize/rollout/expected.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ metadata:
annotations:
foo: bar
labels:
baz: qux
foo: bar
name: my-robot
---
Expand All @@ -15,6 +16,7 @@ metadata:
annotations:
foo: bar
labels:
baz: qux
foo: bar
name: my-guestbook-cm-m2mg5mb749
---
Expand All @@ -26,6 +28,7 @@ metadata:
annotations:
foo: bar
labels:
baz: qux
foo: bar
name: my-guestbook-secret-ccbkcc9264
type: Opaque
Expand All @@ -36,6 +39,7 @@ metadata:
annotations:
foo: bar
labels:
baz: qux
foo: bar
name: my-guestbook-canary-svc
spec:
Expand All @@ -53,6 +57,7 @@ metadata:
annotations:
foo: bar
labels:
baz: qux
foo: bar
name: my-guestbook-stable-svc
spec:
Expand All @@ -70,6 +75,7 @@ metadata:
annotations:
foo: bar
labels:
baz: qux
foo: bar
name: my-deployment
spec:
Expand All @@ -83,6 +89,7 @@ spec:
foo: bar
labels:
app: nginx
baz: qux
foo: bar
spec:
containers:
Expand All @@ -97,6 +104,7 @@ metadata:
annotations:
foo: bar
labels:
baz: qux
foo: bar
name: my-random-fail
spec:
Expand Down Expand Up @@ -131,6 +139,7 @@ metadata:
annotations:
foo: bar
labels:
baz: qux
foo: bar
name: my-experiment
spec:
Expand Down Expand Up @@ -164,6 +173,7 @@ metadata:
annotations:
foo: bar
labels:
baz: qux
foo: bar
name: my-guestbook
spec:
Expand Down Expand Up @@ -211,6 +221,7 @@ spec:
foo: bar
labels:
app: guestbook
baz: qux
foo: bar
spec:
affinity:
Expand Down Expand Up @@ -265,6 +276,7 @@ metadata:
annotations:
foo: bar
labels:
baz: qux
foo: bar
name: my-hpa
spec:
Expand All @@ -286,6 +298,7 @@ metadata:
annotations:
foo: bar
labels:
baz: qux
foo: bar
name: my-extensions-ingress
spec:
Expand All @@ -303,6 +316,7 @@ metadata:
annotations:
foo: bar
labels:
baz: qux
foo: bar
name: my-mapping
spec:
Expand All @@ -316,6 +330,7 @@ metadata:
annotations:
foo: bar
labels:
baz: qux
foo: bar
name: my-guestbook-destrule
spec:
Expand All @@ -334,6 +349,7 @@ metadata:
annotations:
foo: bar
labels:
baz: qux
foo: bar
name: my-guestbook-vsvc
spec:
Expand All @@ -357,6 +373,7 @@ metadata:
annotations:
foo: bar
labels:
baz: qux
foo: bar
name: my-networking-ingress
spec:
Expand Down
11 changes: 9 additions & 2 deletions test/kustomize/rollout/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,15 @@ secretGenerator:
literals:
- password=Pa55w0rd

commonLabels:
foo: bar
labels:
- includeSelectors: true
includeTemplates: true
pairs:
foo: bar
- includeSelectors: false
includeTemplates: true
pairs:
baz: qux

commonAnnotations:
foo: bar
Expand Down

0 comments on commit ffe1f7f

Please sign in to comment.