Skip to content

Instantly share code, notes, and snippets.

@dlbewley
Last active February 4, 2025 04:30
Show Gist options
  • Save dlbewley/fbad8e78fada175351e559dbb98169b8 to your computer and use it in GitHub Desktop.
Save dlbewley/fbad8e78fada175351e559dbb98169b8 to your computer and use it in GitHub Desktop.
read pull secret from openshift agent based installer ISO
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