diff --git a/pkg/controllers/clusterexternalsecret/clusterexternalsecret_controller.go b/pkg/controllers/clusterexternalsecret/clusterexternalsecret_controller.go index 3e2273109..8bc0c129e 100644 --- a/pkg/controllers/clusterexternalsecret/clusterexternalsecret_controller.go +++ b/pkg/controllers/clusterexternalsecret/clusterexternalsecret_controller.go @@ -16,6 +16,7 @@ package clusterexternalsecret import ( "context" + "sort" "time" "github.com/go-logr/logr" @@ -130,6 +131,7 @@ func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Resu setFailedNamespaces(&clusterExternalSecret, failedNamespaces) if len(provisionedNamespaces) > 0 { + sort.Strings(provisionedNamespaces) clusterExternalSecret.Status.ProvisionedNamespaces = provisionedNamespaces }