diff --git a/CHANGELOG.md b/CHANGELOG.md index c46a66af9..4ade9f44f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). * `orchestrator.secretName` is ignored in helm charts * Operator service account have no access to update mysqlbackups/status * Recurrent backup remote delete policy can not update according to the `cluster.Spec.BackupRemoteDeletePolicy` + * When the operator is restarted, it will process the Pod list once to prevent the state of the pod from being changed automatically because it is not updated (especially if the pvc is full). ## [0.6.1] - 2021-12-22 ### Changed diff --git a/pkg/controller/node/node_controller.go b/pkg/controller/node/node_controller.go index e0f02a987..32b956e84 100644 --- a/pkg/controller/node/node_controller.go +++ b/pkg/controller/node/node_controller.go @@ -120,9 +120,8 @@ func add(mgr manager.Manager, r reconcile.Reconciler) error { // Watch for changes to MysqlCluster err = c.Watch(&source.Kind{Type: &corev1.Pod{}}, &handler.EnqueueRequestForObject{}, predicate.Funcs{ - // no need to init nodes when are created CreateFunc: func(evt event.CreateEvent) bool { - return false + return isOwnedByMySQL(evt.Object) && isRunning(evt.Object) && !isReady(evt.Object) }, // trigger node initialization only on pod update, after pod is created for a while