Skip to content

Commit

Permalink
forgot crd/kustomization
Browse files Browse the repository at this point in the history
Signed-off-by: Blake Devcich <[email protected]>
  • Loading branch information
bdevcich committed Nov 7, 2023
1 parent ea0343c commit b7f68a0
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 10 deletions.
21 changes: 11 additions & 10 deletions config/crd/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
# since it depends on service name and namespace that are out of this kustomize package.
# It should be run by config/default
resources:
- bases/nnf.cray.hpe.com_nnfnodes.yaml
- bases/nnf.cray.hpe.com_nnfnodestorages.yaml
- bases/nnf.cray.hpe.com_nnfstorages.yaml
- bases/nnf.cray.hpe.com_nnfdatamovements.yaml
- bases/nnf.cray.hpe.com_nnfaccesses.yaml
- bases/nnf.cray.hpe.com_nnfstorageprofiles.yaml
- bases/nnf.cray.hpe.com_nnfnodeecdata.yaml
- bases/nnf.cray.hpe.com_nnfcontainerprofiles.yaml
- bases/nnf.cray.hpe.com_nnfportmanagers.yaml
- bases/nnf.cray.hpe.com_nnfnodes.yaml
- bases/nnf.cray.hpe.com_nnfnodestorages.yaml
- bases/nnf.cray.hpe.com_nnfstorages.yaml
- bases/nnf.cray.hpe.com_nnfdatamovements.yaml
- bases/nnf.cray.hpe.com_datamovementmanagers.yaml
- bases/nnf.cray.hpe.com_nnfaccesses.yaml
- bases/nnf.cray.hpe.com_nnfstorageprofiles.yaml
- bases/nnf.cray.hpe.com_nnfnodeecdata.yaml
- bases/nnf.cray.hpe.com_nnfcontainerprofiles.yaml
- bases/nnf.cray.hpe.com_nnfportmanagers.yaml
#+kubebuilder:scaffold:crdkustomizeresource

patchesStrategicMerge:
Expand Down Expand Up @@ -42,4 +43,4 @@ patchesStrategicMerge:

# the following config is for teaching kustomize how to do kustomization for CRDs.
configurations:
- kustomizeconfig.yaml
- kustomizeconfig.yaml
7 changes: 7 additions & 0 deletions config/crd/patches/cainjection_in_datamovementmanagers.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: datamovementmanagers.nnf.cray.hpe.com
16 changes: 16 additions & 0 deletions config/crd/patches/webhook_in_datamovementmanagers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# The following patch enables a conversion webhook for the CRD
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: datamovementmanagers.nnf.cray.hpe.com
spec:
conversion:
strategy: Webhook
webhook:
clientConfig:
service:
namespace: system
name: webhook-service
path: /convert
conversionReviewVersions:
- v1

0 comments on commit b7f68a0

Please sign in to comment.