Skip to content
Snippets Groups Projects
Commit 48e421cd authored by Mikhail Piatliou (EPAM)'s avatar Mikhail Piatliou (EPAM)
Browse files

Merge branch 'GONRG-4886-using-external-s3' into 'master'

GONRG-4886: using external s3

See merge request !228
parents 7d71940c 5076d18d
No related branches found
No related tags found
1 merge request!228GONRG-4886: using external s3
Pipeline #121908 failed
......@@ -127,6 +127,7 @@ cat ~/.config/gcloud/application_default_credentials.json | grep client_id
| Name | Description | Type | Default |Required |
|------|-------------|------|---------|---------|
**domain** | your domain | string | - | yes
**minioExternalEndpoint** | api url for external minio, if external minio is configured - this value will be set for MINIO_ENDPOINT and FILE_MINIO_ENDPOINT in bootstrap configmap| string | - | no
### Config variables
......
......@@ -19,6 +19,8 @@ data:
{{- if .Values.conf.onPremEnabled }}
SERVICE_ACCOUNT: {{ printf "%s@service.local" .Values.data.datafierSa | quote }}
DOMAIN: "{{ .Values.data.domain }}"
MINIO_ENDPOINT: "{{ default "http://minio:9000" .Values.data.minioExternalEndpoint }}"
FILE_MINIO_ENDPOINT: "{{ default (printf "https://s3.%s" .Values.data.domain) .Values.data.minioExternalEndpoint }}"
{{- else }}
AUDIENCES: "{{ .Values.data.googleAudiences }}"
{{- end }}
......@@ -15,6 +15,7 @@ data:
partitionCleanUpEnabled: "false"
# bootstrap variables onprem
domain: ""
minioExternalEndpoint: "" # use only if external minio is configured
conf:
configmap: "partition-config"
appName: "partition"
......
......@@ -52,7 +52,7 @@ generate_post_data_anthos() {
},
"file.minio.endpoint": {
"sensitive": false,
"value": "https://s3.${DOMAIN}"
"value": "${FILE_MINIO_ENDPOINT}"
},
"file.minio.accessKey": {
"sensitive": true,
......@@ -64,7 +64,7 @@ generate_post_data_anthos() {
},
"obm.minio.endpoint": {
"sensitive": false,
"value": "http://minio:9000"
"value": "${MINIO_ENDPOINT}"
},
"obm.minio.accessKey": {
"sensitive": true,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment