fix(cli): cleanup
Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
parent
201b74350c
commit
396aefaf90
1 changed files with 2 additions and 2 deletions
|
|
@ -347,11 +347,11 @@ function cleanup() {
|
|||
# Run minio cleanup
|
||||
MINIO_ACCESS_KEY=$(yq 'explode(.) | .global.s3.accessKey' ${OR_DIR}/vars.yaml)
|
||||
MINIO_SECRET_KEY=$(yq 'explode(.) | .global.s3.secretKey' ${OR_DIR}/vars.yaml)
|
||||
MINIO_HOST=$(yq 'explode(.) | .global.minio.host' ${OR_DIR}/vars.yaml)
|
||||
MINIO_HOST=$(yq 'explode(.) | .global.s3.endpoint' ${OR_DIR}/vars.yaml)
|
||||
kubectl delete po -n "${APP_NS}" minio-cleanup &>/dev/null || true
|
||||
kubectl run minio-cleanup -n "${APP_NS}" \
|
||||
--restart=Never \
|
||||
--env MINIO_HOST="$pghost" \
|
||||
--env MINIO_HOST="$MINIO_HOST" \
|
||||
--image bitnami/minio:2020.10.9-debian-10-r6 -- /bin/sh -c "
|
||||
mc alias set minio $MINIO_HOST $MINIO_ACCESS_KEY $MINIO_SECRET_KEY &&
|
||||
mc rm --recursive --dangerous --force --older-than ${delete_from_number_days}d minio/mobs
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue