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

save version of gathering rules in metadata #601

Conversation

Serhii1011010
Copy link
Contributor

Categories

  • Bugfix
  • Enhancement
  • Backporting
  • Others (CI, Infrastructure, Documentation)

Sample Archive

  • insights-operator/conditional-gatherer-rules.json

Documentation

No

Unit Tests

  • pkg/gatherers/conditional/parsing_test.go

Privacy

No new data was collected

Changelog

No

Breaking Changes

Yes, changed the structure of insights-operator/conditional-gatherer-rules.json

References

https://issues.redhat.com/browse/CCXDEV-7488
https://bugzilla.redhat.com/show_bug.cgi?id=???
https://access.redhat.com/solutions/???

@openshift-ci openshift-ci bot requested review from mfojtik and natiiix March 29, 2022 16:11
@openshift-ci
Copy link

openshift-ci bot commented Mar 29, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Sergey1011010

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 openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 29, 2022
@Serhii1011010 Serhii1011010 force-pushed the save-version-of-gathering-rules-in-metadata branch from 8cdb41f to 4ef58c4 Compare March 29, 2022 16:12
klog.Infof(
"trying to use cached gathering config containing %v gathering rules and version %v",
len(g.gatheringRules.Rules), g.gatheringRules.Version,
)
Copy link
Contributor

Choose a reason for hiding this comment

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

This is only idea. I am thinking if it would be slightly more clear to move the rest of the GetGatheringFunctions to some new function (e.g createGatheringFunctions) and return here with the function call return createGatheringFunctions(g.gatheringRules) and remove the else and simply return return createGatheringFunctions(newGatheringRules) then. And perhaps return nil in https://github.com/openshift/insights-operator/pull/601/files#diff-57e9d48447e382f53bafe213301e653fd5989c354c9d751e7f6386be25459e89R169.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@tremes
Copy link
Contributor

tremes commented Apr 1, 2022

I didn't trigger any conditional gatherer with this update but I reviewed it and the changes look reasonable and good. Thank you!
/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 1, 2022
@JoaoFula
Copy link
Contributor

JoaoFula commented Apr 1, 2022

/test insights-operator-e2e-tests

1 similar comment
@JoaoFula
Copy link
Contributor

JoaoFula commented Apr 1, 2022

/test insights-operator-e2e-tests

@xJustin
Copy link
Contributor

xJustin commented Apr 1, 2022

/label docs-approved

@openshift-ci openshift-ci bot added the docs-approved Signifies that Docs has signed off on this PR label Apr 1, 2022
@JoaoFula
Copy link
Contributor

JoaoFula commented Apr 1, 2022

/test insights-operator-e2e-tests

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@JoaoFula
Copy link
Contributor

JoaoFula commented Apr 1, 2022

/label qe-approved

@sferich888
Copy link

/label px-approved

@openshift-ci openshift-ci bot added the px-approved Signifies that Product Support has signed off on this PR label Apr 1, 2022
@JoaoFula
Copy link
Contributor

JoaoFula commented Apr 4, 2022

/label qe-approved

@openshift-ci openshift-ci bot added the qe-approved Signifies that QE has signed off on this PR label Apr 4, 2022
@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

5 similar comments
@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-ci
Copy link

openshift-ci bot commented Apr 5, 2022

@Sergey1011010: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@openshift-merge-robot openshift-merge-robot merged commit 0256159 into openshift:master Apr 5, 2022
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. docs-approved Signifies that Docs has signed off on this PR lgtm Indicates that a PR is ready to be merged. px-approved Signifies that Product Support has signed off on this PR qe-approved Signifies that QE has signed off on this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants