diff --git a/charts/mlrun-ce/templates/config/jupyter-env-configmap.yaml b/charts/mlrun-ce/templates/config/jupyter-env-configmap.yaml index b38f4ed..cdba3b2 100644 --- a/charts/mlrun-ce/templates/config/jupyter-env-configmap.yaml +++ b/charts/mlrun-ce/templates/config/jupyter-env-configmap.yaml @@ -5,15 +5,17 @@ kind: ConfigMap metadata: name: jupyter-common-env data: +{{- if not .Values.global.infrastructure.aws.s3NonAnonymous }} S3_ENDPOINT_URL: {{ include "mlrun-ce.minio.service.url" . }} + AWS_SECRET_ACCESS_KEY: {{ .Values.minio.rootPassword }} + AWS_ACCESS_KEY_ID: {{ .Values.minio.rootUser }} +{{- end }} MLRUN_STORAGE__AUTO_MOUNT_TYPE: s3 S3_NON_ANONYMOUS: {{ .Values.global.infrastructure.aws.s3NonAnonymous | quote | default "\"True\"" }} MLRUN_CE__MODE: {{ .Values.jupyterNotebook.ce.mode | default "full" }} MLRUN_CE__VERSION: {{ .Chart.Version }} MLRUN_FUNCTION__SPEC__SERVICE_ACCOUNT__DEFAULT: {{ .Values.mlrun.api.functionSpecServiceAccountDefault | default "" | quote }} MLRUN_FEATURE_STORE__DATA_PREFIXES__DEFAULT: s3:///{{ $bucket_name }}/projects/{project}/FeatureStore/{name}/{kind} - AWS_SECRET_ACCESS_KEY: {{ .Values.minio.rootPassword }} - AWS_ACCESS_KEY_ID: {{ .Values.minio.rootUser }} MLRUN_STORAGE__AUTO_MOUNT_PARAMS: {{ include "mlrun.storage.auto.mount.params" . }} MLRUN_ARTIFACT_PATH: s3://{{ $bucket_name }}/projects/{{ `{{run.project}}` }}/artifacts{{ `{{run.uid}}` }} MLRUN_FEATURE_STORE__DATA_PREFIXES__NOSQL: "" diff --git a/charts/mlrun-ce/templates/config/mlrun-env-configmap.yaml b/charts/mlrun-ce/templates/config/mlrun-env-configmap.yaml index aef36d5..7fb1672 100644 --- a/charts/mlrun-ce/templates/config/mlrun-env-configmap.yaml +++ b/charts/mlrun-ce/templates/config/mlrun-env-configmap.yaml @@ -10,10 +10,12 @@ data: MLRUN_STORAGE__AUTO_MOUNT_TYPE: s3 MLRUN_STORAGE__AUTO_MOUNT_PARAMS: {{ include "mlrun.storage.auto.mount.params" . }} MLRUN_HTTPDB__PROJECTS__FOLLOWERS: nuclio - S3_ENDPOINT_URL: {{ include "mlrun-ce.minio.service.url" . }} - MLRUN_FUNCTION__SPEC__SERVICE_ACCOUNT__DEFAULT: {{ .Values.mlrun.api.functionSpecServiceAccountDefault | default "" | quote }} +{{- if not .Values.global.infrastructure.aws.s3NonAnonymous }} AWS_SECRET_ACCESS_KEY: {{ .Values.minio.rootPassword }} AWS_ACCESS_KEY_ID: {{ .Values.minio.rootUser }} + S3_ENDPOINT_URL: {{ include "mlrun-ce.minio.service.url" . }} +{{- end }} + MLRUN_FUNCTION__SPEC__SERVICE_ACCOUNT__DEFAULT: {{ .Values.mlrun.api.functionSpecServiceAccountDefault | default "" | quote }} MLRUN_HTTPDB__REAL_PATH: s3:// MLRUN_ARTIFACT_PATH: s3://{{ $bucket_name }}/projects/{{ `{{run.project}}` }}/artifacts MLRUN_FEATURE_STORE__DATA_PREFIXES__DEFAULT: s3://{{ $bucket_name }}/projects/{project}/FeatureStore/{name}/{kind}