Skip to content

Commit

Permalink
install XRD like a CRD is installed (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
drewwells authored Sep 24, 2024
1 parent 98565f5 commit 5cfd837
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{{- if .Values.xrd.create }}
# TODO: should this move to a hook/crd install?
{{- if not (lookup "apiextensions.crossplane.io/v1" "CompositeResourceDefinition" "" "xnetworkrecords.persistance.infoblox.com") }}
apiVersion: apiextensions.crossplane.io/v1
kind: CompositeResourceDefinition
metadata:
Expand Down Expand Up @@ -62,6 +59,3 @@ spec:
description: 'Subnetwork is the subnet to provision IP addresses for PSC
ie. projects/gcp-eng-ddiaas-dev/regions/us-east1/subnetworks/private-service-connect'
type: string
{{- end }}
---
{{- end }}
4 changes: 2 additions & 2 deletions helm/db-controller-crds/templates/crds.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.crd.install }}
{{- range $path, $bytes := .Files.Glob "crd/*.yaml" }}
{{- if .Values.crds.install }}
{{- range $path, $bytes := .Files.Glob "crds/*.yaml" }}
{{ $.Files.Get $path }}
---
{{- end }}
Expand Down
8 changes: 6 additions & 2 deletions helm/db-controller-crds/values.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
crd:
install: true
crds:
# This is a hack to render CRDs even if they're installed
# Use this with caution as it will also uninstall CRDs
# We can now do this with CreateReplace in flux so
# this is being disabled.
install: false
3 changes: 0 additions & 3 deletions helm/db-controller/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

xrd:
create: true

xr:
create: true

Expand Down

0 comments on commit 5cfd837

Please sign in to comment.