5cf6528dee
Version 0.3.1 has been used as a basis for this function Closes: #161 Change-Id: I7c15fdff0a0cb2ba90295d0a403f737ee4398deb
28 lines
863 B
YAML
28 lines
863 B
YAML
# the following config is for teaching kustomize where to look at when substituting vars.
|
|
# It requires kustomize v2.1.0 or newer to work properly.
|
|
nameReference:
|
|
- kind: Service
|
|
version: v1
|
|
fieldSpecs:
|
|
- kind: MutatingWebhookConfiguration
|
|
group: admissionregistration.k8s.io
|
|
path: webhooks/clientConfig/service/name
|
|
- kind: ValidatingWebhookConfiguration
|
|
group: admissionregistration.k8s.io
|
|
path: webhooks/clientConfig/service/name
|
|
|
|
namespace:
|
|
- kind: MutatingWebhookConfiguration
|
|
group: admissionregistration.k8s.io
|
|
path: webhooks/clientConfig/service/namespace
|
|
create: true
|
|
- kind: ValidatingWebhookConfiguration
|
|
group: admissionregistration.k8s.io
|
|
path: webhooks/clientConfig/service/namespace
|
|
create: true
|
|
|
|
varReference:
|
|
- path: metadata/annotations
|
|
- kind: Deployment
|
|
path: spec/template/spec/volumes/secret/secretName
|