Skip to content

Instantly share code, notes, and snippets.

@ccavazos
Last active September 25, 2020 22:34
Show Gist options
  • Save ccavazos/eb9a0bafc8a49e0b275515d9f2f9c8b2 to your computer and use it in GitHub Desktop.
Save ccavazos/eb9a0bafc8a49e0b275515d9f2f9c8b2 to your computer and use it in GitHub Desktop.
Cloud Pak Alias
# System: MacOS
# Shell: Zsh
# Load the Admin Password for Common Services in macOS clipboard
alias cspw='oc get secret -n ibm-common-services platform-auth-idp-credentials -o jsonpath="{.data.admin_password}" | base64 -d | pbcopy | echo "Password copied to clipboard"'
# Get Console URL
alias csurl='oc get route -n ibm-common-services cp-console -o jsonpath='{.spec.host}' && echo ""'
# Load the Licensing Token in macOS clipboard
alias cslicense='oc get secret ibm-licensing-token -o jsonpath={.data.token} -n ibm-common-services | base64 -d | pbcopy | echo "Password copied to clipboard"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment