Skip to content

Commit

Permalink
fix nil pointer (#1053)
Browse files Browse the repository at this point in the history
  • Loading branch information
nhudson authored Nov 21, 2024
1 parent f3e0756 commit 3c0dc8f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 22 deletions.
2 changes: 1 addition & 1 deletion charts/conductor/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.7.0
version: 0.7.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
41 changes: 20 additions & 21 deletions charts/conductor/templates/external-secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,25 @@
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: {{ .Release.Name }}
namespace: {{ .Release.Namespace }}
name: {{ .Release.Name }}
namespace: {{ .Release.Namespace }}
spec:
refreshInterval: {{ .Values.externalSecrets.refreshInterval }}
secretStoreRef:
name: {{ .Values.externalSecrets.parameterStore.name }}
kind: {{ .Values.externalSecrets.parameterStore.kind }}
target:
creationPolicy: 'Owner'
name: {{ .Values.externalSecrets.secretName }}
{{- if .Values.externalSecrets.secretRegex }}
dataFrom:
- find:
name:
regexp: {{ .Values.externalSecrets.secretRegex }}
{{- end }}
{{- if and .Values.externalSecrets.remoteRef.key .Values.externalSecrets.remoteRef.secretKey }}
data:
- secretKey: {{ .Values.externalSecrets.remoteRef.secretKey }}
remoteRef:
key: {{ .Values.externalSecrets.remoteRef.key }}
{{- end }}
refreshInterval: {{ .Values.externalSecrets.refreshInterval }}
secretStoreRef:
name: {{ .Values.externalSecrets.parameterStore.name }}
kind: {{ .Values.externalSecrets.parameterStore.kind }}
target:
creationPolicy: 'Owner'
name: {{ .Values.externalSecrets.secretName }}
{{- if .Values.externalSecrets.secretRegex }}
dataFrom:
- find:
name:
regexp: {{ .Values.externalSecrets.secretRegex }}
{{- else if and (hasKey .Values.externalSecrets "remoteRef") .Values.externalSecrets.remoteRef.key .Values.externalSecrets.remoteRef.secretKey }}
data:
- secretKey: {{ .Values.externalSecrets.remoteRef.secretKey }}
remoteRef:
key: {{ .Values.externalSecrets.remoteRef.key }}
{{- end }}
{{- end }}

0 comments on commit 3c0dc8f

Please sign in to comment.