File tree Expand file tree Collapse file tree 6 files changed +22
-19
lines changed
deploy/charts/venafi-kubernetes-agent Expand file tree Collapse file tree 6 files changed +22
-19
lines changed Original file line number Diff line number Diff line change 1+ {{/* DO NOT EDIT. Use 'make generate-crds-venconn' to regenerate. */}}
2+ {{- if .Values.crds.venafiConnection.include }}
3+ {{- if (or (semverCompare "<1.25" .Capabilities.KubeVersion.GitVersion) .Values.crds.forceRemoveValidationAnnotations) }}
4+ apiVersion : apiextensions.k8s.io/v1
5+ kind : CustomResourceDefinition
6+ metadata :
7+ name : " venaficonnections.jetstack.io"
8+ {{- if .Values.crds.keep }}
9+ annotations :
10+ # This annotation prevents the CRD from being pruned by Helm when this chart
11+ # is deleted.
12+ helm.sh/resource-policy : keep
13+ {{- end }}
14+ labels :
15+ {{- include "venafi-connection.labels" . | nindent 4 }}
Original file line number Diff line number Diff line change 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) }}
44apiVersion : apiextensions.k8s.io/v1
55kind : CustomResourceDefinition
66metadata :
Original file line number Diff line number Diff line change 1+ # DO NOT EDIT: Use 'make generate-crds-venconn' to regenerate.
12---
23apiVersion : apiextensions.k8s.io/v1
34kind : CustomResourceDefinition
Original file line number Diff line number Diff line change @@ -13,13 +13,6 @@ metadata:
1313 {{- end }}
1414 labels :
1515 {{- include "venafi-connection.labels" . | nindent 4 }}
16- ---
17- apiVersion : apiextensions.k8s.io/v1
18- kind : CustomResourceDefinition
19- metadata :
20- annotations :
21- controller-gen.kubebuilder.io/version : v0.16.1
22- name : venaficonnections.jetstack.io
2316spec :
2417 group : jetstack.io
2518 names :
Original file line number Diff line number Diff line change @@ -13,13 +13,6 @@ metadata:
1313 {{- end }}
1414 labels :
1515 {{- include "venafi-connection.labels" . | nindent 4 }}
16- ---
17- apiVersion : apiextensions.k8s.io/v1
18- kind : CustomResourceDefinition
19- metadata :
20- annotations :
21- controller-gen.kubebuilder.io/version : v0.16.1
22- name : venaficonnections.jetstack.io
2316spec :
2417 group : jetstack.io
2518 names :
Original file line number Diff line number Diff line change @@ -27,16 +27,17 @@ release: $(helm_chart_archive)
2727generate-crds-venconn : $(addprefix $(helm_chart_source_dir ) /templates/,venafi-connection-crd.yaml venafi-connection-crd.without-validations.yaml)
2828
2929$(helm_chart_source_dir ) /crd_bases/jetstack.io_venaficonnections.yaml : go.mod | $(NEEDS_GO )
30- $(GO ) run ./make/connection_crd > $@
30+ echo " # DO NOT EDIT: Use 'make generate-crds-venconn' to regenerate." > $@
31+ $(GO ) run ./make/connection_crd >> $@
3132
3233$(helm_chart_source_dir ) /templates/venafi-connection-crd.without-validations.yaml : $(helm_chart_source_dir ) /crd_bases/jetstack.io_venaficonnections.yaml $(helm_chart_source_dir ) /crd_bases/crd.header.yaml $(helm_chart_source_dir ) /crd_bases/crd.footer.yaml | $(NEEDS_YQ )
33- cat $(helm_chart_source_dir ) /crd_bases/crd.header.yaml > $@
34- $(YQ ) ' del(.. | ."x-kubernetes-validations"?) | del(.metadata.creationTimestamp)' $< | grep -v " DO NOT EDIT" >> $@
34+ cat $(helm_chart_source_dir ) /crd_bases/crd.header-without-validations .yaml > $@
35+ $(YQ ) -I2 ' {"spec": .spec} ' $< | $( YQ ) ' del(.. | ."x-kubernetes-validations"?) | del(.metadata.creationTimestamp)' | grep -v " DO NOT EDIT" >> $@
3536 cat $(helm_chart_source_dir ) /crd_bases/crd.footer.yaml >> $@
3637
3738$(helm_chart_source_dir ) /templates/venafi-connection-crd.yaml : $(helm_chart_source_dir ) /crd_bases/jetstack.io_venaficonnections.yaml $(helm_chart_source_dir ) /crd_bases/crd.header.yaml $(helm_chart_source_dir ) /crd_bases/crd.footer.yaml | $(NEEDS_YQ )
3839 cat $(helm_chart_source_dir ) /crd_bases/crd.header.yaml > $@
39- $(YQ ) ' del(.metadata.creationTimestamp)' $< | grep -v " DO NOT EDIT" >> $@
40+ $(YQ ) -I2 ' {"spec": .spec} ' $< | $( YQ ) ' del(.metadata.creationTimestamp)' | grep -v " DO NOT EDIT" >> $@
4041 cat $(helm_chart_source_dir ) /crd_bases/crd.footer.yaml >> $@
4142
4243# The generate-crds target doesn't need to be run anymore when running
You can’t perform that action at this time.
0 commit comments