Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions charts/s3-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.s3.mountCertsFromSecret }}
volumes:
- name: ca-certs
secret:
secretName: "{{.Values.s3.mountCertsFromSecret}}"
{{- end }}
containers:
- args:
- --health-probe-bind-address=:8081
Expand All @@ -45,11 +51,20 @@ spec:
{{- if .Values.s3.caCertificateBundlePath }}
- --s3-ca-certificate-bundle-path={{ .Values.s3.caCertificateBundlePath }}
{{- end }}
{{- if .Values.s3.disableTls }}
- --useSsl=false
{{- end }}
{{- range .Values.s3.caCertificatesBase64 }}
- --s3-ca-certificate-base64={{ . }}
{{- end }}
command:
- /manager
{{- if .Values.s3.mountCertsFromSecret }}
volumeMounts:
- name: ca-certs
mountPath: "{{.Values.s3.caCertificateBundlePath}}"
subPath: {{.Values.s3.mountCertsFromSecretKey | default "public.crt" }}
{{- end }}
env:
- name: KUBERNETES_CLUSTER_DOMAIN
value: {{ quote .Values.kubernetesClusterDomain }}
Expand All @@ -58,7 +73,7 @@ spec:
valueFrom:
secretKeyRef:
name: {{ .Values.s3.existingSecret }}
key: S3_ACCESS_KEY
key: {{ .Values.s3.accessKeyName }}
{{- else }}
value: {{ .Values.s3.accessKey }}
{{- end }}
Expand All @@ -67,7 +82,7 @@ spec:
valueFrom:
secretKeyRef:
name: {{ .Values.s3.existingSecret }}
key: S3_SECRET_KEY
key: {{ .Values.s3.secretKeyName }}
{{- else }}
value: {{ .Values.s3.secretKey }}
{{- end }}
Expand All @@ -93,4 +108,4 @@ spec:
securityContext:
runAsNonRoot: true
serviceAccountName: {{ include "s3-operator.fullname" . }}-controller-manager
terminationGracePeriodSeconds: 10
terminationGracePeriodSeconds: 10
5 changes: 5 additions & 0 deletions charts/s3-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ controllerManager:
kubernetesClusterDomain: cluster.local
s3:
endpointUrl: "localhost:9000"
disableTls: false
# mountCertsFromSecret:
# mountCertsFromSecretKey
accessKeyName: S3_ACCESS_KEY
secretKeyName: S3_SECRET_KEY

# To manage access/secret keys, two options :
# - (Poor) Directly set them using the accessKey/secretKey parameters below.
Expand Down