Skip to content

Commit

Permalink
Fix some trivial nits
Browse files Browse the repository at this point in the history
Reported by golint.

Signed-off-by: Greg Kurz <groug@kaod.org>
  • Loading branch information
gkurz committed Oct 4, 2024
1 parent fc1af84 commit 3468605
Showing 1 changed file with 2 additions and 2 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

0 comments on commit 3468605

Please sign in to comment.