Last active
February 4, 2025 04:30
-
-
Save dlbewley/fbad8e78fada175351e559dbb98169b8 to your computer and use it in GitHub Desktop.
read pull secret from openshift agent based installer ISO
This file contains 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
coreos-installer iso ignition show agent.x86_64.iso | jq -s > /tmp/agent.json | |
# you can read any file of course, but i wanted to verify the pull secret in this case | |
cat /tmp/agent.json | jq -r '.[].storage.files[] | select(.path | contains("pull-secret.yaml")) | .contents.source' | awk -F, '{print $2}' | base64 -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment