Skip to content

Commit 23b3b96

Browse files
committed
helm: crds.venafiConnection.include wasn't producing CRDs
It wasn't working when --set crds.venafiConnection.include=true and with Kubernetes >= 1.25 and when crds.forceRemoveValidationAnnotations isn't set. With crds.forceRemoveValidationAnnotations=true or Kubernetes 1.24 and below, it was working. A workaround was to set crds.forceRemoveValidationAnnotations=true.
1 parent 350beaa commit 23b3b96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deploy/charts/venafi-kubernetes-agent/templates/venafi-connection-crd.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{/* DO NOT EDIT. Use 'make generate-crds-venconn' to regenerate. */}}
22
{{- if .Values.crds.venafiConnection.include }}
3-
{{- if (or (semverCompare "<1.25" .Capabilities.KubeVersion.GitVersion) .Values.crds.forceRemoveValidationAnnotations) }}
3+
{{- if not (or (semverCompare "<1.25" .Capabilities.KubeVersion.GitVersion) .Values.crds.forceRemoveValidationAnnotations) }}
44
apiVersion: apiextensions.k8s.io/v1
55
kind: CustomResourceDefinition
66
metadata:

0 commit comments

Comments
 (0)