Permissions Issues with Custom Annotations for OpenShift Projects
Issue
- We are looking into how to annotate OpenShift resources with custom metadata
- Tried to use
oc annotate project [NAME]but we seem to lack access rights to add custom annotations - Is it possible to set up rights to perform custom annotations of resources?
- Attempting to annotate a project gives:
$ oc annotate projects testproject someannotation=true
The Project "testproject" is invalid: metadata.annotations[someannotation]: Invalid value: "true": field is immutable, try updating the namespace
- Attempting to annotate a namespace gives:
$ oc annotate namespaces testproject someannotation=true
Error from server (Forbidden): User "myuser" cannot "patch" "namespaces" with name "testproject" in project "testproject"
Environment
- Red Hat OpenShift Container Platform
- 3.6
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.
