Skip to content

Commit

Permalink
remove extraneous logs
Browse files Browse the repository at this point in the history
  • Loading branch information
rsafonseca committed Sep 9, 2024
1 parent 6c4d618 commit 3023055
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions controllers/controlplane/kopscontrolplane_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ func PrepareKopsCloudResources(ctx context.Context, kopsClientset simple.Clients
defer func() {
os.Stdout = stdout
}()
//os.Stdout = nil
os.Stdout = nil

if err := applyCmd.Run(ctx); err != nil {
return err
Expand Down Expand Up @@ -583,16 +583,13 @@ func (r *KopsControlPlaneReconciler) Reconcile(ctx context.Context, req ctrl.Req
if r.DryRun {
cli, ok := ctx.Value(ClientKey{}).(client.Reader)
if !ok {
log.Info("failed to get kube client")
return ctrl.Result{}, nil
return ctrl.Result{}, errors.New("failed to get kube reader client object")
}
kubeReader = cli
kcp, ok := ctx.Value(KCPKey{}).(controlplanev1alpha1.KopsControlPlane)
if !ok {
log.Info("failed to get kcp")
return ctrl.Result{}, nil
return ctrl.Result{}, errors.New("failed to get kcp object")
} else {
log.Info("got kcp")
kopsControlPlane = &kcp
}
} else {
Expand Down

0 comments on commit 3023055

Please sign in to comment.