airshipctl/manifests/function/hwcc/default/webhookcainjection_patch.yaml
Rajat Sharma 57a543478c Add manifests for Hardware-Classification-Controller
Adding Deployment manifests and README.md
Relates-To-Issue: #78

Change-Id: I9fd1aa39a19bd1d60bdbed826016aeb0786bb188
Co-Authored-By: Ashu Kumar <ashughorla@gmail.com>
2020-08-18 09:31:04 +00:00

16 lines
625 B
YAML

# This patch add annotation to admission webhook config and
# the variables $(CERTIFICATE_NAMESPACE) and $(CERTIFICATE_NAME) will be substituted by kustomize.
apiVersion: admissionregistration.k8s.io/v1beta1
kind: MutatingWebhookConfiguration
metadata:
name: mutating-webhook-configuration
annotations:
cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME)
---
apiVersion: admissionregistration.k8s.io/v1beta1
kind: ValidatingWebhookConfiguration
metadata:
name: validating-webhook-configuration
annotations:
cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME)