Skip to content

Commit

Permalink
Merge pull request #464 from gkurz/fix-golint
Browse files Browse the repository at this point in the history
Fix golint and CI
  • Loading branch information
gkurz authored Oct 7, 2024
2 parents 24834d1 + 3468605 commit c315250
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 686 deletions.
4 changes: 2 additions & 2 deletions controllers/openshift_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1151,7 +1151,7 @@ func (r *KataConfigOpenShiftReconciler) processKataConfigInstallRequest() (ctrl.
// The MCO isn't updating nor do we think it should be. This is
// the case e.g. when we're reconciliating a KataConfig change
// that doesn't affect kata installation on cluster.
if !isMcoUpdating && r.kataConfig.Status.WaitingForMcoToStart == true {
if !isMcoUpdating && r.kataConfig.Status.WaitingForMcoToStart {
r.Log.Info("Waiting for MCO to start updating.")
// We don't requeue, an MCP going Updated->Updating will
// trigger reconciliation by itself thanks to our watching MCPs.
Expand Down Expand Up @@ -2176,7 +2176,7 @@ func (r *KataConfigOpenShiftReconciler) isUpdating() bool {
}

func (r *KataConfigOpenShiftReconciler) createAuthJsonSecret() error {
var err error = nil
var err error

pullSecret := &corev1.Secret{}
err = r.Client.Get(context.TODO(), types.NamespacedName{Name: "pull-secret", Namespace: "openshift-config"}, pullSecret)
Expand Down
Loading

0 comments on commit c315250

Please sign in to comment.