Skip to content

Commit a3fd2f1

Browse files
committed
fix controller
1 parent 1c5c6c0 commit a3fd2f1

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Release Charts
22

33
on:
44
push:
5+
tags:
6+
- v*
57
branches:
68
- main
79

internal/controller/registryconfigs_controller.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ func (r *RegistryConfigsReconciler) Reconcile(ctx context.Context, req ctrl.Requ
100100
if err := r.syncRegistryConfigsStatus(ctx, registryConfigs, nodeList); err != nil {
101101
return ctrl.Result{}, err
102102
}
103+
if registryConfigs.Status.State == configregistryv1alpha1.StatusStateSuccess {
104+
return ctrl.Result{}, nil
105+
}
103106
return ctrl.Result{RequeueAfter: time.Second * 30}, nil
104107
}
105108

0 commit comments

Comments
 (0)