Skip to content

Commit

Permalink
feat: experimental support for container secrets interface
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanfaircloth committed Feb 2, 2024
1 parent 97c9f2a commit 11ca3f9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/s3proxy/templates/_secret.tpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- define "s3proxy.properties" -}}
{{- if not .Values.existingPropertiesSecret }}
{{- if and (not .Values.existingPropertiesSecret) (not .Values.csiSecret.enabled) }}
LOG_LEVEL={{ .Values.logLevel | default "info" }}
#General config
s3proxy.authorization={{ .Values.config.s3proxy.authorization }}
Expand Down
8 changes: 8 additions & 0 deletions charts/s3proxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,20 @@ spec:
sizeLimit: {{ .Values.config.jclouds.filesystem.tmpSize }}
{{- end }}
- name: secret-volume
{{- if .Values.csiSecret.enabled }}
csi:
driver: {{ .Values.csiSecret.driver | default "secrets-store.csi.k8s.io" }}
readOnly: {{ .Values.csiSecret.readOnly | default true }}
volumeAttributes:
secretProviderClass: {{ .Values.csiSecret.class }}
{{ else }}
secret:
{{- if .Values.existingPropertiesSecret }}
secretName: {{ .Values.existingPropertiesSecret }}
{{ else }}
secretName: {{ include "s3proxy.fullname" . }}
{{- end }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
1 change: 1 addition & 0 deletions charts/s3proxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ args:
- --properties
- /etc/s3proxy/s3proxy.properties

csiSecret: {}
config:
env: []
s3proxy:
Expand Down

0 comments on commit 11ca3f9

Please sign in to comment.