How to get a value from the key containing `/`
Issue
- We want to get a value of
openshift.io/requester:which isjoefrom below definition.
# oc get project demo -o yaml
apiVersion: v1
kind: Project
metadata:
annotations:
openshift.io/description: ""
openshift.io/display-name: ""
openshift.io/requester: joe
openshift.io/sa.scc.mcs: s0:c8,c7
openshift.io/sa.scc.supplemental-groups: 1000070000/10000
openshift.io/sa.scc.uid-range: 1000070000/10000
- How to get it?
Environment
- OpenShift Container Platform
- 3.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
