Skip to content

Commit

Permalink
should merge to storedStatefulSet.Annotations
Browse files Browse the repository at this point in the history
when update CR Annotations,It Should update to storedStatefulSet.Annotations
  • Loading branch information
jiuker authored Dec 8, 2022
1 parent f04f716 commit 608db3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/k8s/statefulset.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (s *StatefulSetService) CreateOrUpdateStatefulSet(namespace string, statefu
// namespace is our spec(https://github.com/kubernetes/community/blob/master/contributors/devel/api-conventions.md#concurrency-control-and-consistency),
// we will replace the current namespace state.
statefulSet.ResourceVersion = storedStatefulSet.ResourceVersion
statefulSet.Annotations = util.MergeAnnotations(statefulSet.Annotations, storedStatefulSet.Annotations)
statefulSet.Annotations = util.MergeAnnotations(storedStatefulSet.Annotations, statefulSet.Annotations)
return s.UpdateStatefulSet(namespace, statefulSet)
}

Expand Down

0 comments on commit 608db3f

Please sign in to comment.