Skip to content

Commit

Permalink
add base64 secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
abhiyerra committed Dec 16, 2022
1 parent f17ea26 commit 96373bc
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ apps:
secrets:
KEY_NAME: "Value"
KEY_NAME2: "Value"
secrets64:
KEY_NAME3: "dmFsdWUK" # echo "dmFsdWUK" | base64 -d
```

# Helm Template
Expand Down
2 changes: 1 addition & 1 deletion charts/tiphys/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: tiphys
description: A High Level Helm Chart
type: application
version: 0.9.0
version: 0.9.1
appVersion: 1.16.0

dependencies:
Expand Down
6 changes: 5 additions & 1 deletion charts/tiphys/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ metadata:
stringData:
{{- range $k, $v := .Values.secrets }}
{{ $k }}: {{ $v | quote -}}
{{ end }}
{{- end }}
data:
{{- range $k, $v := .Values.secrets64 }}
{{ $k }}: {{ $v | quote -}}
{{- end }}
1 change: 1 addition & 0 deletions charts/tiphys/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ nodeSelector: {}
tolerations: []
affinity: {}
secrets: {}
secrets64: {}
envRaw: {}

datadog:
Expand Down

0 comments on commit 96373bc

Please sign in to comment.