Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding logging statements for pullsecret controller #3613

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -184,15 +184,18 @@ func (r *Reconciler) ensureGlobalPullSecret(ctx context.Context, operatorSecret,
// allows for simpler logic flow, when delete and create are not handled separately
// this call happens only when there is a need to change, it has no significant impact on performance
err := r.client.Delete(ctx, secret)
r.log.Info("Pullsecret Not Found, Creating Again")
cadenmarchese marked this conversation as resolved.
Show resolved Hide resolved
if err != nil && !kerrors.IsNotFound(err) {
return nil, err
}

err = r.client.Create(ctx, secret)
r.log.Info("Pullsecret Created")
cadenmarchese marked this conversation as resolved.
Show resolved Hide resolved
return secret, err
}

err = r.client.Update(ctx, secret)
r.log.Info("Updating Existing Pullsecret")
return secret, err
}

Expand Down
Loading