2

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

ennc0d3
  • 45
  • 4

1 Answers1

1

Welcome to the community.

Unfortunately there's no such list with all immutable fields combined in one place.

There are two options:

  1. As you started through reading documentation and see if this is specified explicitly.
  2. Start with 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)

moonkotte
  • 3,661
  • 2
  • 10
  • 25