#!/usr/bin/env bash export KUBECONFIG=/Users/chrisfu/dev/knoe/knoe-k3s.kubeconfig echo "==> Registry storage secret (raw):" kubectl -n gitea get secret gitlab-registry-storage -o jsonpath='{.data}' 2>&1 echo "" echo "==> Registry storage secret keys:" kubectl -n gitea get secret gitlab-registry-storage -o jsonpath='{.data.config}' 2>/dev/null \ | base64 -d 2>/dev/null || true kubectl -n gitea get secret gitlab-registry-storage -o jsonpath='{.data.s3cmd\.config}' 2>/dev/null \ | base64 -d 2>/dev/null || true echo "==> All secrets with registry in name:" kubectl -n gitea get secret --no-headers | grep -i registry | head -10 echo "==> Minio export dir on gandalf:" kubectl -n gitea run minio-ls \ --image=alpine:latest --restart=Never --rm --attach \ --overrides='{"spec":{"nodeName":"gandalf.knoe.org","tolerations":[{"operator":"Exists"}],"volumes":[{"name":"e","hostPath":{"path":"/synology/d005/gitlab/minio","type":"Directory"}}],"containers":[{"name":"c","image":"alpine:latest","command":["sh","-c","ls -la /export/"],"volumeMounts":[{"name":"e","mountPath":"/export"}]}]}}' 2>&1 || true