<p>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 <a href="https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/" rel="nofollow noreferrer">StatefulSet</a> is not clear which are immutable fields. Is there a better way to find out?</p>
<p>Sorry, I am not so familiar with reading the Kubernetes API spec yet, I couldn't figure it out. Is there a better way?</p>
<p>Thanks in advance, Naga</p>

ennc0d3
<p>Welcome to the community.</p>
<p>Unfortunately there's no such list with all <code>immutable fields</code> combined in one place.</p>
<p>There are two options:</p>
<ol>
<li>As you started through reading documentation and see if this is specified explicitly.</li>
<li>Start with <code>kubernetes API</code> description. You can find it here: <a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.21/#-strong-api-overview-strong-" rel="nofollow noreferrer">Kubernetes API</a>. This is also available in more human-readable form <a href="https://kubernetes.io/docs/reference/kubernetes-api/" rel="nofollow noreferrer">here</a>. Same applies here - it's not specified explicitly whether field is immutable or not.</li>
</ol>
<p>For instance all objects and fields for <code>statefulset</code> can be found <a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.21/#statefulset-v1-apps" rel="nofollow noreferrer">here</a>.</p>
<p>(I will update it if I find a better way)</p>
