有没有办法在工作负载的规范中找到不可变字段?我可以看到在一些工作负载资源文档中提到的字段很少是不可变的,但是例如在StatefulSet中并不清楚哪些是不可变字段。有没有更好的方法来找出答案?
抱歉,我对阅读 Kubernetes API 规范还不是很熟悉,我想不通。有没有更好的办法?
在此先感谢,娜迦
有没有办法在工作负载的规范中找到不可变字段?我可以看到在一些工作负载资源文档中提到的字段很少是不可变的,但是例如在StatefulSet中并不清楚哪些是不可变字段。有没有更好的方法来找出答案?
抱歉,我对阅读 Kubernetes API 规范还不是很熟悉,我想不通。有没有更好的办法?
在此先感谢,娜迦
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)