-
Notifications
You must be signed in to change notification settings - Fork 95
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
First minimal PoC version for moving the configuration to configmap #827
Conversation
d27938e
to
4add5bb
Compare
/test insights-operator-e2e-tests |
@tremes: The following test failed, say
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. |
f566007
to
f3c59dd
Compare
f3c59dd
to
2758fa3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ncaak, rluders, tremes 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 |
/retest |
/label qe-approved |
/test insights-operator-e2e-tests |
1 similar comment
/test insights-operator-e2e-tests |
/override ci/prow/e2e-metal-ipi-ovn-ipv6 |
@tremes: Overrode contexts on behalf of tremes: ci/prow/e2e-metal-ipi-ovn-ipv6 In response to this:
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. |
/hold Revision 2f0cc66 was retested 3 times: holding |
/unhold |
/test e2e-gcp-ovn-techpreview |
One test failure - I am working on the test fix. |
@tremes: Overrode contexts on behalf of tremes: ci/prow/e2e-gcp-ovn-techpreview In response to this:
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. |
/override ci/prow/e2e-gcp-ovn-techpreview |
@tremes: Overrode contexts on behalf of tremes: ci/prow/e2e-gcp-ovn-techpreview In response to this:
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. |
@tremes: 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. |
…figmap (openshift#827)" This reverts commit d0e7565.
…n to configmap (openshift#827)" (openshift#845)" This reverts commit d589796.
…penshift#827) * First minimal PoC version for moving the configuration to configmap * fix uploader in case of initialDelay = 0 * initiate idea with static one-off config merge * add permissions for secrets * updates after review * minor changes * rebase * use mutex as previously
…figmap (openshift#827)" (openshift#845) This reverts commit d0e7565.
* Revert "Revert "First minimal PoC version for moving the configuration to configmap (openshift#827)" (openshift#845)" This reverts commit d589796. * fix possibly negative time values
This is minimal PoC for introducing the Insights Operator's configuration in the new
insights-config
configmap instead of thesupport
secret configuration. Thesupport
secret configuration continues to work (to keep backward compatibility), but the configmap takes precedence if exists.This PR introduces following new files:
pkg/config/configobserver/configmapobserver.go
- basic configmap observer watching the configmap's changes using Kubernetes informerpkg/config/configobserver/config_aggregator.go
- this is a listener for both - the original "legacy" secret configobserver as well as the new configmap observer. The idea here is to aggregate or merge the config from both sources at one place.The
insights-config
configmap is supposed to live in theopenshift-insights
namespace and right now it can look like:Right now the config map allows you to override the following config options:
The configmap (as well as the config) structure is defined in the
pkg/config/types.go
so please review this one very carefully and feel free to suggest changes (for example naming, structure, etc.)Categories
Sample Archive
Documentation
Unit Tests
Privacy
Yes. There are no sensitive data in the newly collected information.
Changelog
Breaking Changes
Yes/No
References
https://issues.redhat.com/browse/???
https://access.redhat.com/solutions/???