Update the diamond composition test case

Refactor the existing base, so that one of the overlays patches an
already present field of the base resource. Previously, all overlays
added a new field in the base deployment, which made this case easier to
solve, with a merge of the produced YAMLs from each overlay.

Also, fix a typo in the comments.

Signed-off-by: Alex Pyrgiotis <apyrgio@arrikto.com>
Signed-off-by: Ioannis Androulidakis <ioannis@arrikto.com>
This commit is contained in:
Alex Pyrgiotis
2019-07-01 13:37:02 +00:00
parent a32d5ce7ab
commit 79d0de7000

View File

@@ -49,7 +49,7 @@ spec:
` `
// Here's a composite kustomization, that combines multiple overlays // Here's a composite kustomization, that combines multiple overlays
// (replicas, dns and metadata) which patch the same base resource. // (probes, dns and restart policies) which patch the same base resource.
// //
// The base resource is a deployment and the overlays patch aspects // The base resource is a deployment and the overlays patch aspects
// of it, without using any of the `namePrefix`, `nameSuffix` or `namespace` // of it, without using any of the `namePrefix`, `nameSuffix` or `namespace`
@@ -75,6 +75,7 @@ metadata:
spec: spec:
template: template:
spec: spec:
dnsPolicy: "None"
containers: containers:
- name: my-deployment - name: my-deployment
image: my-image image: my-image