Last active
September 23, 2020 00:22
-
-
Save onefoursix/4c123de5dd833052ca136568f896777a to your computer and use it in GitHub Desktop.
This script generates a lowercase UUID and stores the value in a Secret named sdc-id within the specified namespace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
## This script generates a lowercase UUID and stores the value | |
## in a Secret named sdc-id | |
# Create a lower-cased UUID | |
SDC_ID=`uuidgen | tr "[:upper:]" "[:lower:]"` | |
# Store the UUID in a Secret | |
kubectl create secret generic sdc-id --from-literal=sdc.id=${SDC_ID} -n <your namespace> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment