2023-01-31 17:20:39 +00:00
|
|
|
{{- if not .Values.useExistingSecret }}
|
2022-11-03 19:29:11 +00:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Secret
|
|
|
|
metadata:
|
2023-05-12 13:19:04 +00:00
|
|
|
name: {{ include "s3gw.defaultUserCredentialsSecret" . }}
|
2022-11-03 19:29:11 +00:00
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
labels:
|
|
|
|
{{ include "s3gw.labels" . | indent 4 }}
|
|
|
|
type: Opaque
|
|
|
|
stringData:
|
2023-01-31 17:20:39 +00:00
|
|
|
RGW_DEFAULT_USER_ACCESS_KEY: {{ include "s3gw.defaultAccessKey" . | quote }}
|
|
|
|
RGW_DEFAULT_USER_SECRET_KEY: {{ include "s3gw.defaultSecretKey" . | quote }}
|
|
|
|
{{- end }}
|
2022-11-03 19:29:11 +00:00
|
|
|
{{- if .Values.imageCredentials }}
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Secret
|
|
|
|
metadata:
|
2023-09-29 14:18:51 +00:00
|
|
|
name: '{{ .Release.Name }}-s3gw-image-pull-secret'
|
2022-11-03 19:29:11 +00:00
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
labels:
|
|
|
|
{{ include "s3gw.labels" . | indent 4 }}
|
|
|
|
type: kubernetes.io/dockerconfigjson
|
|
|
|
data:
|
|
|
|
.dockerconfigjson: {{ template "s3gw.imagePullSecret" . }}
|
|
|
|
{{- end }}
|