When updating a pod definition, OpenShift returns error: Forbidden: pod updates may not change fields other than [...fields...]"
Issue
-
When editing a pod (
oc edit pod <pod-name>
) and adding some attributes (like resources requests and limits), OpenShift returns error:Error "Forbidden: pod updates may not change fields other than `spec.containers[*].image`, `spec.initContainers[*].image`, `spec.activeDeadlineSeconds` or `spec.tolerations` (only additions to existing tolerations)
-
Need to edit a pod to apply customizations.
Environment
- Red Hat OpenShift Container Platform (OCP)
- 4.x
- 3.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.