Is there a way to find the immutable fields in the workload's spec? I could see there are few fields mentioned as immutable in some of the workload resource documentation, But for example in StatefulSet is not clear which are immutable fields. Is there a better way to find out?
Sorry, I am not so familiar with reading the Kubernetes API spec yet, I couldn't figure it out. Is there a better way?
Thanks in advance, Naga
Welcome to the community.
Unfortunately there's no such list with all immutable fields
combined in one place.
There are two options:
kubernetes API
description. You can find it here: Kubernetes API. This is also available in more human-readable form here. Same applies here - it's not specified explicitly whether field is immutable or not.For instance all objects and fields for statefulset
can be found here.
(I will update it if I find a better way)