1

有没有办法在工作负载的规范中找到不可变字段?我可以看到在一些工作负载资源文档中提到的字段很少是不可变的,但是例如在StatefulSet中并不清楚哪些是不可变字段。有没有更好的方法来找出答案?

抱歉,我对阅读 Kubernetes API 规范还不是很熟悉,我想不通。有没有更好的办法?

在此先感谢,娜迦

4

1 回答 1

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)

于 2021-07-13T15:24:30.503 回答