Skip to content

Commit

Permalink
Merge pull request #2 from lengrongfu/fix/controller
Browse files Browse the repository at this point in the history
fix controller
  • Loading branch information
lengrongfu committed May 14, 2023
2 parents 1c5c6c0 + a3fd2f1 commit eb67d7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Release Charts

on:
push:
tags:
- v*
branches:
- main

Expand Down
3 changes: 3 additions & 0 deletions internal/controller/registryconfigs_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ func (r *RegistryConfigsReconciler) Reconcile(ctx context.Context, req ctrl.Requ
if err := r.syncRegistryConfigsStatus(ctx, registryConfigs, nodeList); err != nil {
return ctrl.Result{}, err
}
if registryConfigs.Status.State == configregistryv1alpha1.StatusStateSuccess {
return ctrl.Result{}, nil
}
return ctrl.Result{RequeueAfter: time.Second * 30}, nil
}

Expand Down

0 comments on commit eb67d7d

Please sign in to comment.