16.2 condition设计约定
导读
conditions:
- lastTransitionTime: "2020-12-15T01:52:53Z"
lastUpdateTime: "2020-12-15T01:52:53Z"
message: Deployment has minimum availability.
reason: MinimumReplicasAvailable
status: "True"
type: Available
- lastTransitionTime: "2020-12-15T01:52:39Z"
lastUpdateTime: "2020-12-15T01:52:53Z"
message: ReplicaSet "nginx-deployment-85b45874d9" has successfully progressed.
reason: NewReplicaSetAvailable
status: "True"
type: Progressingconditions设计原则
condition字段内容
condition设计约定
约定一:condition定义要有明确的信息
约定二:condition需要保持兼容
约定三:condition需要控制器第一次处理资源时更新
约定四:condition类型名需要确保可读性
约定五:condition不要定义成状态机
最后更新于
这有帮助吗?