1
0
Fork 0
mirror of https://github.com/external-secrets/external-secrets.git synced 2024-12-14 11:57:59 +00:00

Fix provisionedNamespaces in Status field of ClusterExternalSecret keeps getting updated non-stop (#1441)

Signed-off-by: Kewei Ma <kewei@indeed.com>
This commit is contained in:
Kewei Ma 2022-08-09 10:55:34 -05:00 committed by GitHub
parent 4070021885
commit 53443eaadf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}