#!/bin/bash ## @todo switch to infisical # ns=futureporn # kubectl --namespace $ns delete secret universal-auth-credentials --ignore-not-found # kubectl --namespace $ns create secret generic universal-auth-credentials \ # --from-literal=clientSecret="${INFISICAL_CLIENT_SECRET}" \ # --from-literal=clientId="${INFISICAL_CLIENT_ID}" # echo "@todo remove all the unused secrets" # exit 256 CLOUD_DATA=$(echo -e "[default]\naws_access_key_id: $VELERO_S3_KEY_ID\naws_secret_access_key: $VELERO_S3_ACCESS_KEY" | base64 -w 0) kubectl --namespace=velero delete secret velero --ignore-not-found ## we do this so helm can adopt our pre-made secret @see https://github.com/helm/helm/pull/7649 cat <