Skip to content

Commit

Permalink
Add CA bundle to CRD for Kind deployment
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Stoycos <[email protected]>
  • Loading branch information
astoycos committed Mar 2, 2023
1 parent 0bb411f commit 517b499
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/kubernetes/cainjection_in_flowcollectors.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# The following patch adds a directive for certmanager to inject CA into the CRD
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME)
name: flowcollectors.flows.netobserv.io
1 change: 1 addition & 0 deletions config/kubernetes/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ bases:
patchesStrategicMerge:
- manager_webhook_patch.yaml
- webhookcainjection_patch.yaml
- cainjection_in_flowcollectors.yaml

# the following config is for teaching kustomize how to do var substitution
vars:
Expand Down

0 comments on commit 517b499

Please sign in to comment.