feat(argo-rollouts): Default to keeping CRD's on helm uninstall (#922)

Signed-off-by: Artem <code@temik.me>
This commit is contained in:
Artem Yakimenko 2021-09-18 02:39:06 +10:00 committed by GitHub
parent 804cd4ec54
commit 489443e387
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 19 additions and 2 deletions

View file

@ -4,6 +4,9 @@ kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.5.0
{{- if .Values.keepCRDs }}
"helm.sh/resource-policy": keep
{{- end }}
{{- if .Values.crdAnnotations }}
{{- toYaml .Values.crdAnnotations | nindent 4 }}
{{- end }}

View file

@ -4,6 +4,9 @@ kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.5.0
{{- if .Values.keepCRDs }}
"helm.sh/resource-policy": keep
{{- end }}
{{- if .Values.crdAnnotations }}
{{- toYaml .Values.crdAnnotations | nindent 4 }}
{{- end }}

View file

@ -4,6 +4,9 @@ kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.5.0
{{- if .Values.keepCRDs }}
"helm.sh/resource-policy": keep
{{- end }}
{{- if .Values.crdAnnotations }}
{{- toYaml .Values.crdAnnotations | nindent 4 }}
{{- end }}

View file

@ -4,6 +4,9 @@ kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.5.0
{{- if .Values.keepCRDs }}
"helm.sh/resource-policy": keep
{{- end }}
{{- if .Values.crdAnnotations }}
{{- toYaml .Values.crdAnnotations | nindent 4 }}
{{- end }}

View file

@ -4,6 +4,9 @@ kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.5.0
{{- if .Values.keepCRDs }}
"helm.sh/resource-policy": keep
{{- end }}
{{- if .Values.crdAnnotations }}
{{- toYaml .Values.crdAnnotations | nindent 4 }}
{{- end }}