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:
parent
4070021885
commit
53443eaadf
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue