@@ -15,7 +15,6 @@ if [ -z "$ACTION" ] || [ "$ACTION" != "install" ] && [ "$ACTION" != "delete" ];t
1515 echo " usage: $0 {'install' | 'delete'}" ;
1616 exit 1
1717elif [ " $ACTION " = " install" ]; then
18- echo " Pachyderm set to use dalake $cfg__pachyderm__datalake__type "
1918 if [ " $cfg__pachyderm__datalake__type " = " minio" ]; then
2019 ACCESS_KEY=$( kubectl -n $cfg__project__k8s_namespace get secrets $cfg__pachyderm__datalake__minio_release -o jsonpath=" {.data.accesskey}" | base64 -d)
2120 SECRET_KEY=$( kubectl -n $cfg__project__k8s_namespace get secrets $cfg__pachyderm__datalake__minio_release -o jsonpath=" {.data.secretkey}" | base64 -d)
@@ -24,6 +23,7 @@ elif [ "$ACTION" = "install" ]; then
2423 # before installing pachyderm, make sure a bucket named $cfg__pachyderm__bucket is available on minio
2524 # echo $(datalake_run_command "$cfg__project__k8s_namespace" "mc config host add minio http://$cfg__pachyderm__datalake__minio_release:9000 $ACCESS_KEY $SECRET_KEY --api S3v4 && mc mb minio/$cfg__pachyderm__datalake__bucket --ignore-existing")
2625 $( minio_create_bucket $cfg__project__k8s_namespace $cfg__pachyderm__datalake__minio_release $cfg__project__data_folder $cfg__pachyderm__datalake__bucket )
26+ echo " Set minio bucket $cfg__pachyderm__datalake__bucket "
2727 else
2828 ACCESS_KEY=$cfg__pachyderm__datalake__access_key
2929 SECRET_KEY=$cfg__pachyderm__datalake__secret_key
@@ -32,12 +32,15 @@ elif [ "$ACTION" = "install" ]; then
3232 echo $( datalake_run_command " $cfg__project__k8s_namespace " " mc config host add dl $ENDPOINT $ACCESS_KEY $SECRET_KEY --api S3v4 && mc mb dl/$cfg__pachyderm__datalake__bucket --ignore-existing" )
3333 fi
3434
35+ echo " Pachyderm set to use dalake $cfg__pachyderm__datalake__type "
36+
3537 # https://hub.helm.sh/charts/stable/pachyderm
3638 helm upgrade $cfg__pachyderm__release stable/pachyderm \
3739 --version $cfg__pachyderm__version \
3840 --namespace $cfg__project__k8s_namespace \
3941 --values $file_folder /$cfg__pachyderm__config_file \
4042 --set s3.accessKey=$ACCESS_KEY ,s3.secretKey=$SECRET_KEY ,s3.bucketName=$cfg__pachyderm__datalake__bucket ,s3.endpoint=$ENDPOINT \
43+ --recreate-pods \
4144 --install --force
4245else
4346 helm delete $cfg__pachyderm__release --purge
0 commit comments