From 4f3d496874c92c84088f1839658213abf7891746 Mon Sep 17 00:00:00 2001 From: Carlos Santana Date: Mon, 4 Mar 2024 20:05:09 -0500 Subject: [PATCH] add variable to skip default providerConfig Signed-off-by: Carlos Santana --- charts/crossplane-aws/templates/provider-config.yaml | 2 ++ charts/crossplane-aws/values.yaml | 1 + 2 files changed, 3 insertions(+) diff --git a/charts/crossplane-aws/templates/provider-config.yaml b/charts/crossplane-aws/templates/provider-config.yaml index 1b65d9d..3916eb3 100644 --- a/charts/crossplane-aws/templates/provider-config.yaml +++ b/charts/crossplane-aws/templates/provider-config.yaml @@ -21,6 +21,7 @@ spec: {{- .spec | toYaml | nindent 2 }} {{- end }} +{{- if .Values.providerConfig.default }} --- {{- with .Values.providerConfig }} apiVersion: aws.crossplane.io/v1beta1 @@ -43,5 +44,6 @@ metadata: spec: {{- .spec | toYaml | nindent 2 }} {{- end }} +{{- end }} {{- end }} diff --git a/charts/crossplane-aws/values.yaml b/charts/crossplane-aws/values.yaml index 45c0d72..f773938 100644 --- a/charts/crossplane-aws/values.yaml +++ b/charts/crossplane-aws/values.yaml @@ -38,6 +38,7 @@ provider: providerConfig: enabled: true + default: true metadata: name: "aws-provider-config" annotations: {}