1.5. 服务帐户补丁
注意
此功能使用 ServiceAccountPatching 功能门控制,该功能为 alpha 阶段,默认为禁用。如需更多信息,请参阅 功能门。
默认情况下,Cluster Operator 不会更新服务帐户。
在这个版本中,您可以在每次协调中启用对服务帐户的更新。例如,Cluster Operator 可向服务帐户应用自定义标签或注解。使用 template.serviceAccount 属性为自定义资源配置自定义标签和注解。
自定义标签和注解示例
# ...
template:
serviceAccount:
metadata:
labels:
label1: value1
label2: value2
annotations:
annotation1: value1
annotation2: value2
# ...
请参阅 服务帐户补丁功能门。