Skip to content

Commit

Permalink
Revert "Revert "minio: Set secure=true to enable TLS by default (kube…
Browse files Browse the repository at this point in the history
…flow#3168)" (kubeflow#3192)"

This reverts commit 743746b.
  • Loading branch information
Bobgy committed Mar 5, 2020
1 parent 75b5fd7 commit 8435299
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/apiserver/client_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ func initMinioClient(initConnectionTimeout time.Duration) storage.ObjectStoreInt
minioServiceRegion := common.GetStringConfigWithDefault(
"ObjectStoreConfig.Region", os.Getenv(minioServiceRegion))
minioServiceSecure := common.GetBoolConfigWithDefault(
"ObjectStoreConfig.Secure", common.GetBoolFromStringWithDefault(os.Getenv(minioServiceSecure), false))
"ObjectStoreConfig.Secure", common.GetBoolFromStringWithDefault(os.Getenv(minioServiceSecure), true))
accessKey := common.GetStringConfigWithDefault("ObjectStoreConfig.AccessKey", "")
secretKey := common.GetStringConfigWithDefault("ObjectStoreConfig.SecretAccessKey", "")
bucketName := common.GetStringConfigWithDefault("ObjectStoreConfig.BucketName", os.Getenv(pipelineBucketName))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,8 @@ spec:
{{ if .Values.managedstorage.enabled }}
- name: OBJECTSTORECONFIG_BUCKETNAME
value: '{{ tpl .Values.managedstorage.gcsBucketName . }}'
- name: OBJECTSTORECONFIG_SECURE
value: "false"
- name: DBCONFIG_DBNAME
{{ if .Values.managedstorage.databaseNamePrefix }}
value: '{{ .Values.managedstorage.databaseNamePrefix }}_pipeline'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: OBJECTSTORECONFIG_SECURE
value: "false"
image: gcr.io/ml-pipeline/api-server:0.1.27
imagePullPolicy: IfNotPresent
name: ml-pipeline-api-server
Expand Down

0 comments on commit 8435299

Please sign in to comment.