Better script test + renamed AWS env var to MINIO
This commit is contained in:
@@ -32,12 +32,12 @@ spec:
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: s3-credentials
|
||||
key: AWS_ACCESS_KEY_ID
|
||||
key: MINIO_ACCESS_KEY_ID
|
||||
- name: TENANT_PASS
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: s3-credentials
|
||||
key: AWS_SECRET_ACCESS_KEY
|
||||
key: MINIO_SECRET_ACCESS_KEY
|
||||
- name: BUCKET_REF
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
|
||||
@@ -8,9 +8,9 @@ metadata:
|
||||
app.kubernetes.io/tenant: 'tenant-{{ .Values.name }}'
|
||||
type: Opaque
|
||||
stringData:
|
||||
AWS_ACCESS_KEY_ID: 'tenant-{{ .Values.name }}-user'
|
||||
MINIO_ACCESS_KEY_ID: 'tenant-{{ .Values.name }}-user'
|
||||
# If the secret exist, keep. Otherwise create a new random one. (To prevent a new password at each sync).
|
||||
AWS_SECRET_ACCESS_KEY: {{ if and $existingSecret $existingSecret.data (hasKey $existingSecret.data "AWS_SECRET_ACCESS_KEY") }}{{ index $existingSecret.data "AWS_SECRET_ACCESS_KEY" | b64dec }}{{ else }}{{ randAlphaNum 24 }}{{ end }}
|
||||
MINIO_SECRET_ACCESS_KEY: {{ if and $existingSecret $existingSecret.data (hasKey $existingSecret.data "AWS_SECRET_ACCESS_KEY") }}{{ index $existingSecret.data "AWS_SECRET_ACCESS_KEY" | b64dec }}{{ else }}{{ randAlphaNum 24 }}{{ end }}
|
||||
S3_ENDPOINT: "http://minio.minio.svc.cluster.local:9000"
|
||||
BUCKET_REF: "ref-tenant-{{ .Values.name }}"
|
||||
BUCKET_WORK: "work-tenant-{{ .Values.name }}"
|
||||
|
||||
Reference in New Issue
Block a user