Skip to content

Commit

Permalink
add variable to skip default providerConfig
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Santana <csantana23@gmail.com>
  • Loading branch information
csantanapr committed Mar 5, 2024
1 parent 235aed5 commit 4f3d496
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/crossplane-aws/templates/provider-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ spec:
{{- .spec | toYaml | nindent 2 }}
{{- end }}

{{- if .Values.providerConfig.default }}
---
{{- with .Values.providerConfig }}
apiVersion: aws.crossplane.io/v1beta1
Expand All @@ -43,5 +44,6 @@ metadata:
spec:
{{- .spec | toYaml | nindent 2 }}
{{- end }}
{{- end }}

{{- end }}
1 change: 1 addition & 0 deletions charts/crossplane-aws/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ provider:

providerConfig:
enabled: true
default: true
metadata:
name: "aws-provider-config"
annotations: {}
Expand Down

0 comments on commit 4f3d496

Please sign in to comment.