Files
home-cluster-ops/scripts/encrypt-file-by-sealed-secrets.sh

7 lines
126 B
Bash

#!/usr/bin/bash
set -e
secretName=$1
filePath=$2
cat $filePath | kubeseal --format yaml --scope cluster-wide | tee $filePath