There was an error while loading. Please reload this page.
1 parent 6511e46 commit 9be4a4eCopy full SHA for 9be4a4e
2 files changed
templates/seal-secret-install-job.yaml
@@ -68,15 +68,15 @@ spec:
68
exit 0
69
fi
70
71
- secret_value="$(tr -dc 'A-Za-z0-9' </dev/urandom | head -c "$value_length")"
+ secret_value="$(openssl rand -base64 "$value_length" | tr -d '\n')"
72
cat <<EOF | kubectl create -f -
73
apiVersion: v1
74
kind: Secret
75
metadata:
76
name: "${secret_name}"
77
type: Opaque
78
immutable: true
79
- stringData:
+ data:
80
"${secret_key}": "${secret_value}"
81
EOF
82
echo "Created secret $secret_name."
values.yaml
@@ -12,7 +12,7 @@ sealSecret:
12
# Key used inside the secret data.
13
key: SEAL_SECRET
14
# Random value length generated by the job.
15
- length: 64
+ length: 32
16
job:
17
image: quay.io/appuio/oc:v4.21
18
imagePullPolicy: IfNotPresent
0 commit comments