Skip to content

Commit

Permalink
[INF-4851] ESO external secret version
Browse files Browse the repository at this point in the history
  • Loading branch information
slaminad authored Nov 19, 2024
1 parent ea16ecb commit fd53900
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/retool/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: retool
description: A Helm chart for Kubernetes
type: application
version: 6.2.10
version: 6.2.11
maintainers:
- name: Retool Engineering
email: [email protected]
Expand Down
23 changes: 23 additions & 0 deletions charts/retool/templates/externalsecret.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{{- if .Values.externalSecrets.externalSecretsOperator.enabled }}
{{- range .Values.externalSecrets.externalSecretsOperator.secretRef }}
{{- if .Values.externalSecrets.externalSecretsOperator.useLegacyCR }}
apiVersion: kubernetes-client.io/v1
kind: ExternalSecret
metadata:
Expand All @@ -13,5 +14,27 @@ spec:
dataFrom:
- {{ .path }}
---
{{- else }}
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
annotations:
"helm.sh/hook-weight": "1"
"helm.sh/hook": pre-install,pre-upgrade
name: {{ .name }}
namespace: {{ $.Release.Namespace }}
spec:
refreshInterval: 1m
secretStoreRef:
name: aws-secretsmanager
kind: SecretStore
target:
name: {{ .name }}
creationPolicy: Owner
dataFrom:
- extract:
key: {{ .path }}
---
{{- end }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/retool/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ externalSecrets:
# path: global-retool-config
# - name: retool-db
# path: global-retool-db-config
# When true, uses kubernetes-client CRDs and not external-secrets CRDs
# Defaults to true
useLegacyCR: true

files: {}

Expand Down
3 changes: 3 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ externalSecrets:
# path: global-retool-config
# - name: retool-db
# path: global-retool-db-config
# When true, uses kubernetes-client CRDs and not external-secrets CRDs
# Defaults to true
useLegacyCR: true

files: {}

Expand Down

0 comments on commit fd53900

Please sign in to comment.