Skip to content

Commit 608db3f

Browse files
authored
should merge to storedStatefulSet.Annotations
when update CR Annotations,It Should update to storedStatefulSet.Annotations
1 parent f04f716 commit 608db3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service/k8s/statefulset.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func (s *StatefulSetService) CreateOrUpdateStatefulSet(namespace string, statefu
107107
// namespace is our spec(https://github.com/kubernetes/community/blob/master/contributors/devel/api-conventions.md#concurrency-control-and-consistency),
108108
// we will replace the current namespace state.
109109
statefulSet.ResourceVersion = storedStatefulSet.ResourceVersion
110-
statefulSet.Annotations = util.MergeAnnotations(statefulSet.Annotations, storedStatefulSet.Annotations)
110+
statefulSet.Annotations = util.MergeAnnotations(storedStatefulSet.Annotations, statefulSet.Annotations)
111111
return s.UpdateStatefulSet(namespace, statefulSet)
112112
}
113113

0 commit comments

Comments
 (0)