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

Improve logs #462

Merged
Merged

Conversation

ASBishop
Copy link
Contributor

This is an updated version of Gorka's PR #365. In addition to rebasing, it drops one commit that's no longer required (the change was made in another PR).

Akrog added 3 commits October 30, 2024 14:32
Add a couple of additional log entries.
There are a couple of places where the logs will say "Deployment
successfully reconciled" when they are actually referring to CRs.

This is quite confusing, because Deployment is an OpenShift object which
we are not using.

This patch changes this so we stop saying Deployment and instead refer
to the specific CR we are talking about.
There are a number of placeholder reconciliation method that do nothing
except logging messages of how the method has been entered and exited.

This is useless code as well as clutter in the logs, so this patch
removes them.

Affected methods are:

- reconcileInit
- reconcileUpdate
- reconcileUpgrade

There are instances where reconcileInit is actually doing things, and in
those cases methods were left untouched.
@openshift-ci openshift-ci bot requested review from eharney and lewisdenny October 30, 2024 22:39
@ASBishop ASBishop mentioned this pull request Oct 30, 2024
@ASBishop ASBishop requested review from fmount and Akrog October 30, 2024 22:41
Copy link
Contributor

@fmount fmount left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

Copy link
Contributor

openshift-ci bot commented Oct 31, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ASBishop, fmount

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@fmount
Copy link
Contributor

fmount commented Oct 31, 2024

Looks good and in line with what we did in other operators.

@openshift-merge-bot openshift-merge-bot bot merged commit fcec1d5 into openstack-k8s-operators:main Oct 31, 2024
7 checks passed
@ASBishop ASBishop deleted the improvelogs branch October 31, 2024 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants