Skip to content
This repository was archived by the owner on Oct 21, 2020. It is now read-only.

Commit dd3c22f

Browse files
author
pilillo
committed
removed debug echoes from minio and pachyderm
1 parent 604d774 commit dd3c22f

3 files changed

Lines changed: 13 additions & 7 deletions

File tree

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
minio:
22
release: minio-datalake
33
config_file: minio_config.yaml
4-
storageClass: microk8s-hostpath
4+
storage_class: microk8s-hostpath
5+
#setup_timeout: 500

infrastructure/components/minio/setup.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,18 @@ elif [ "$ACTION" = "install" ]; then
1818
# deploying minio to k8s
1919
random_key=$(get_random_string_key 32)
2020
random_secret=$(get_random_secret_key)
21-
echo "Starting Minio with:"
22-
echo "- KEY:$random_key"
23-
echo "- SECRET:$random_secret"
21+
# debug only, to be removed
22+
#echo "Starting Minio with:"
23+
#echo "- KEY:$random_key"
24+
#echo "- SECRET:$random_secret"
2425

2526
# https://github.com/helm/charts/tree/master/stable/minio#configuration
2627
helm upgrade $cfg__minio__release stable/minio \
2728
--namespace $cfg__project__k8s_namespace \
2829
--values $file_folder/$cfg__minio__config_file \
29-
--set accessKey=$random_key,secretKey=$random_secret,persistence.storageClass=$cfg__minio__storageClass \
30-
--install --force
30+
--set accessKey=$random_key,secretKey=$random_secret,persistence.storageClass=$cfg__minio__storage_class \
31+
--recreate-pods \
32+
--install --force $( [ ! -z $cfg__minio__setup_timeout ] && [ $cfg__minio__setup_timeout -gt 0 ] && printf %s "--timeout $cfg__minio__setup_timeout --wait" )
3133
unset random_key
3234
unset random_secret
3335

infrastructure/components/pachyderm/setup.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ if [ -z "$ACTION" ] || [ "$ACTION" != "install" ] && [ "$ACTION" != "delete" ];t
1515
echo "usage: $0 {'install' | 'delete'}";
1616
exit 1
1717
elif [ "$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
4245
else
4346
helm delete $cfg__pachyderm__release --purge

0 commit comments

Comments
 (0)