sshca: Add update-machine-ids script
The `update-machine-ids.sh` shell script helps update the `sshca-data` SealedSecret with the current contents of the `machine-ids.json` file (stored locally, not tracked in Git).
This commit is contained in:
1
sshca/update-machine-ids.sh
Normal file
1
sshca/update-machine-ids.sh
Normal file
@@ -0,0 +1 @@
|
|||||||
|
yq eval '(select(.metadata.name == "sshca-data") | .spec.encryptedData["machine-ids.json"]) = "'"$(kubeseal -n sshca --raw --from-file sshca/machine-ids.json --name sshca-data)"'"' -i sshca/secrets.yaml
|
||||||
Reference in New Issue
Block a user