@@ -4156,11 +4156,15 @@ spec:
41564156
41574157
41584158 If not specified, KubeBlocks automatically creates a default ServiceAccount named
4159- "kb-{componentdefinition.name} ", bound to a role with rules defined in ComponentDefinition's
4159+ "kb-{clusterName}-{compName} ", bound to a cluster role with rules defined in ComponentDefinition's
41604160 `policyRules` field. If needed (currently this means if any lifecycleAction is enabled),
4161- it will also be bound to a default role named
4161+ it will also be bound to a default cluster role named
41624162 "kubeblocks-cluster-pod-role", which is installed together with KubeBlocks.
4163- If multiple components use the same ComponentDefinition, they will share one ServiceAccount.
4163+
4164+
4165+ Before KubeBlocks 1.1, the automatically created serviceaccount is named "kb-{componentdefinition.name}".
4166+ To reduce unintended pod restart, old pods still use old serviceaccount. New serviceaccount will be used
4167+ when a workload has been restarted.
41644168
41654169
41664170 If the field is not empty, the specified ServiceAccount will be used, and KubeBlocks will not
@@ -15527,11 +15531,15 @@ spec:
1552715531
1552815532
1552915533 If not specified, KubeBlocks automatically creates a default ServiceAccount named
15530- "kb-{componentdefinition.name} ", bound to a role with rules defined in ComponentDefinition's
15534+ "kb-{clusterName}-{compName} ", bound to a cluster role with rules defined in ComponentDefinition's
1553115535 `policyRules` field. If needed (currently this means if any lifecycleAction is enabled),
15532- it will also be bound to a default role named
15536+ it will also be bound to a default cluster role named
1553315537 "kubeblocks-cluster-pod-role", which is installed together with KubeBlocks.
15534- If multiple components use the same ComponentDefinition, they will share one ServiceAccount.
15538+
15539+
15540+ Before KubeBlocks 1.1, the automatically created serviceaccount is named "kb-{componentdefinition.name}".
15541+ To reduce unintended pod restart, old pods still use old serviceaccount. New serviceaccount will be used
15542+ when a workload has been restarted.
1553515543
1553615544
1553715545 If the field is not empty, the specified ServiceAccount will be used, and KubeBlocks will not
0 commit comments