mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-18 03:45:12 +00:00
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:
@@ -49,7 +49,7 @@ spec:
|
||||
`
|
||||
|
||||
// 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
|
||||
// of it, without using any of the `namePrefix`, `nameSuffix` or `namespace`
|
||||
@@ -75,6 +75,7 @@ metadata:
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
dnsPolicy: "None"
|
||||
containers:
|
||||
- name: my-deployment
|
||||
image: my-image
|
||||
|
||||
Reference in New Issue
Block a user