Reputation: 75
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
Upvotes: 4
Views: 3986
Reputation: 157
One easy way of finding immutable fields from the documentation is to check condig connector api resources. For example here you can search for "immutable" keyword and see all immutable fields for given resource. If you need to find immutable fields of other or all resources then you have to go one by one I'm afraid. Hope this helps.
Upvotes: 0
Reputation: 4181
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)
Upvotes: 2