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

resourceapply: log changes when objects are modified #244

Merged
merged 2 commits into from
Feb 18, 2019

Conversation

mfojtik
Copy link
Contributor

@mfojtik mfojtik commented Feb 18, 2019

This change will cause logging all changes to resources that we apply updates to. We already log diffs with CR's but we don't see why we changing things like pods/role bindings/etc.

I think this will improve our ability to debug changes done by operators and identify changes that are not desired which is worth the extra DeepCopy() ?

Test bump: openshift/cluster-kube-controller-manager-operator#160

@openshift-ci-robot openshift-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 18, 2019
@mfojtik
Copy link
Contributor Author

mfojtik commented Feb 18, 2019

/cc @deads2k
/cc @sttts

@mfojtik
Copy link
Contributor Author

mfojtik commented Feb 18, 2019

/hold

will add more changes

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 18, 2019
@mfojtik
Copy link
Contributor Author

mfojtik commented Feb 18, 2019

/hold cancel

Change the status controller to spit json patch diff instead of object diff (it reads better and it is more compact).

@deads2k
Copy link
Contributor

deads2k commented Feb 18, 2019

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 18, 2019
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deads2k, mfojtik

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

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 18, 2019
@openshift-merge-robot openshift-merge-robot merged commit 3536543 into openshift:master Feb 18, 2019
bertinatto pushed a commit to bertinatto/library-go that referenced this pull request Jul 2, 2020
resourceapply: log changes when objects are modified
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants