From 8759e8805e7d796ee5e88b67a1f8fa589b43c146 Mon Sep 17 00:00:00 2001 From: usiegl00 <50933431+usiegl00@users.noreply.github.com> Date: Tue, 23 Apr 2024 14:15:27 +0900 Subject: [PATCH] Attempt to fix helm install crds. --- .../crds/databases.spotahome.com_redisfailovers.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/charts/redisoperator/crds/databases.spotahome.com_redisfailovers.yaml b/charts/redisoperator/crds/databases.spotahome.com_redisfailovers.yaml index 72015cca2..3d53815d5 100644 --- a/charts/redisoperator/crds/databases.spotahome.com_redisfailovers.yaml +++ b/charts/redisoperator/crds/databases.spotahome.com_redisfailovers.yaml @@ -4,10 +4,12 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - {{- with .Values.crds.annotations }} - {{- toYaml . | nindent 4 }} - {{- end }} controller-gen.kubebuilder.io/version: (devel) + {{if gt (len .Values.crds.annotations) 0 }} + {{- with .Values.crds.annotations }} + {{- toYaml . | nindent 4 }} + {{- end }} + {{- end }} creationTimestamp: null name: redisfailovers.databases.spotahome.com spec: