Skip to content

Commit

Permalink
Merge pull request #42 from cloudkite-io/add-aws-eso-backend
Browse files Browse the repository at this point in the history
add support for aws backend in external secrets
  • Loading branch information
TeamoreA authored Dec 20, 2024
2 parents 0c6bbe3 + a7a150e commit 874f0fd
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
2 changes: 1 addition & 1 deletion standard-app/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: standard-app
description: A Helm chart library by Cloudkite
type: application
version: 0.4.9
version: 0.5.0
maintainters:
- email: [email protected]
name: cloudkite
6 changes: 6 additions & 0 deletions standard-app/example.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,12 @@ externalSecret:
# refreshInterval: 15s
# secretPath: example-path

## AWS secrets manager
# secretStoreName: example-name
# type: aws
# refreshInterval: 1m
# secretPath: example-path

# Google Secret Manager
secretStoreName: example-name
type: gcp
Expand Down
32 changes: 32 additions & 0 deletions standard-app/templates/configs/externalsecret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ spec:
key: {{ $.Values.externalSecret.secretPath }}/{{ $.Release.Name }}
property: {{ $secret.property | default $secret.secretKey }}
{{- end }}
{{- if eq $.Values.externalSecret.type "aws" }}
key: {{ $.Values.externalSecret.secretPath }}/{{ $.Release.Name }}
property: {{ $secret.property | default $secret.secretKey }}
{{- end }}
{{- end }}
---
{{- end }}
Expand Down Expand Up @@ -72,6 +76,10 @@ spec:
key: {{ $.Values.externalSecret.secretPath }}/{{ $.Release.Name }}
property: {{ $secret.property | default $secret.secretKey }}
{{- end }}
{{- if eq $.Values.externalSecret.type "aws" }}
key: {{ $.Values.externalSecret.secretPath }}/{{ $.Release.Name }}
property: {{ $secret.property | default $secret.secretKey }}
{{- end }}
{{- end }}
---
{{- end }}
Expand Down Expand Up @@ -108,6 +116,10 @@ spec:
key: {{ $.Values.externalSecret.secretPath }}/{{ $.Release.Name }}
property: {{ $secret.property | default $secret.secretKey }}
{{- end }}
{{- if eq $.Values.externalSecret.type "aws" }}
key: {{ $.Values.externalSecret.secretPath }}/{{ $.Release.Name }}
property: {{ $secret.property | default $secret.secretKey }}
{{- end }}
{{- end }}
---
{{- end }}
Expand Down Expand Up @@ -145,6 +157,10 @@ spec:
key: {{ $.Values.externalSecret.secretPath }}/{{ $.Release.Name }}
property: {{ $secret.property | default $secret.secretKey }}
{{- end }}
{{- if eq $.Values.externalSecret.type "aws" }}
key: {{ $.Values.externalSecret.secretPath }}/{{ $.Release.Name }}
property: {{ $secret.property | default $secret.secretKey }}
{{- end }}
{{- end }}
---
{{- end }}
Expand Down Expand Up @@ -181,6 +197,10 @@ spec:
key: {{ $.Values.externalSecret.secretPath }}/{{ $.Release.Name }}
property: {{ $secret.property | default $secret.secretKey }}
{{- end }}
{{- if eq $.Values.externalSecret.type "aws" }}
key: {{ $.Values.externalSecret.secretPath }}/{{ $.Release.Name }}
property: {{ $secret.property | default $secret.secretKey }}
{{- end }}
{{- end }}
---
{{- end }}
Expand Down Expand Up @@ -219,6 +239,10 @@ spec:
key: {{ $.Values.externalSecret.secretPath }}/{{ $.Release.Name }}
property: {{ $secret.property | default $secret.secretKey }}
{{- end }}
{{- if eq $.Values.externalSecret.type "aws" }}
key: {{ $.Values.externalSecret.secretPath }}/{{ $.Release.Name }}
property: {{ $secret.property | default $secret.secretKey }}
{{- end }}
{{- end }}
---
{{- end }}
Expand Down Expand Up @@ -256,6 +280,10 @@ spec:
key: {{ $.Values.externalSecret.secretPath }}/{{ $.Release.Name }}
property: {{ $secret.property | default $secret.secretKey }}
{{- end }}
{{- if eq $.Values.externalSecret.type "aws" }}
key: {{ $.Values.externalSecret.secretPath }}/{{ $.Release.Name }}
property: {{ $secret.property | default $secret.secretKey }}
{{- end }}
{{- end }}
---
{{- end }}
Expand Down Expand Up @@ -292,6 +320,10 @@ spec:
key: {{ $.Values.externalSecret.secretPath }}/{{ $.Release.Name }}
property: {{ $secret.property | default $secret.secretKey }}
{{- end }}
{{- if eq $.Values.externalSecret.type "aws" }}
key: {{ $.Values.externalSecret.secretPath }}/{{ $.Release.Name }}
property: {{ $secret.property | default $secret.secretKey }}
{{- end }}
{{- end }}
---
{{- end }}
Expand Down

0 comments on commit 874f0fd

Please sign in to comment.