Closed nabadger closed 4 years ago
A couple of issues I'm finding:
.spec.data
.spec.encryptedData
Something like this works for me:
# Create example secret and extra only the encrypted portion into `data.json` kubectl create secret generic mysecret --dry-run --from-literal=foo=bar -o json >mysecret.json kubeseal < mysecret.json | jq -r .spec.encryptedData > data.json
// Define SealedSecret (kube.libsonnet) SealedSecret(name): $._Object('bitnami.com/v1alpha1', 'SealedSecret', name) { },
// Create sealed-secret (calling code) my_secret: kube.SealedSecret("mysecret") { spec: { encryptedData: kubecfg.parseJson(importstr "./data.json"), }, },
Was scanning through this too. It should be encryptedData.
Fixed by #36.
A couple of issues I'm finding:
.spec.data
instead of.spec.encryptedData
.Something like this works for me: