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 80e8f35 commit d9206d8Copy full SHA for d9206d8
pkg/controller/node/node_controller.go
@@ -173,6 +173,9 @@ func (r *ReconcileMysqlNode) Reconcile(request reconcile.Request) (reconcile.Res
173
if shouldUpdateToVersion(cluster, 300) {
174
// if the cluster is upgraded then set on the cluster an annotations that skips the GTID configuration
175
// TODO: this should be removed in the next versions
176
+ if cluster.Annotations == nil {
177
+ cluster.Annotations = make(map[string]string)
178
+ }
179
cluster.Annotations["mysql.presslabs.org/SkipGTIDPurged"] = "true"
180
return reconcile.Result{}, r.Update(ctx, cluster.Unwrap())
181
}
0 commit comments