We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8fc366 commit b51b048Copy full SHA for b51b048
pkg/controller/mysqlcluster/internal/upgrades/upgrades.go
@@ -142,6 +142,9 @@ func (u *upgrader) ShouldUpdate() bool {
142
}
143
144
func (u *upgrader) markUpgradeComplete() error {
145
+ if u.cluster.Annotations == nil {
146
+ u.cluster.Annotations = make(map[string]string)
147
+ }
148
u.cluster.Annotations[VersionAnnotation] = strconv.Itoa(u.version)
149
err := u.client.Update(context.TODO(), u.cluster.Unwrap())
150
if err != nil {
0 commit comments