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

pkg/thanos: use metadata-informer for configmaps #5448

Merged

Conversation

sthaha
Copy link
Contributor

@sthaha sthaha commented Mar 23, 2023

Description

This is follow up of fix for #5410. The patch updates thanos controllers as well to use metadata-informer for watching configmaps.

Fixes: #5438

Type of change

What type of changes does your code introduce to the Prometheus operator? Put an x in the box that apply.

  • CHANGE (fix or feature that would cause existing functionality to not work as expected)
  • FEATURE (non-breaking change which adds functionality)
  • BUGFIX (non-breaking change which fixes an issue)
  • ENHANCEMENT (non-breaking change which improves existing functionality)
  • NONE (if none of the other choices apply. Example, tooling, build system, CI, docs, etc.)

This is follow up of fix of prometheus-operator#5410. The patch updates thanos controllers
as well to use metadata-informer for watching configmaps.

Fixes: prometheus-operator#5438

Signed-off-by: Sunil Thaha <sthaha@redhat.com>
@sthaha sthaha requested a review from a team as a code owner March 23, 2023 23:21
Copy link
Contributor

@JoaoBraveCoding JoaoBraveCoding left a comment

Choose a reason for hiding this comment

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

From a technical POV lgtm

@JoaoBraveCoding
Copy link
Contributor

Not sure if this shouldn't be considered an ENHANCEMENT since it improves functionality vs fixing anything 🤔

Copy link
Contributor

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

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

lgtm

@simonpasquier simonpasquier merged commit 32ebc58 into prometheus-operator:main Mar 24, 2023
@simonpasquier simonpasquier deleted the fix-move-to-metadatainformer branch March 24, 2023 11:23
simonpasquier added a commit to simonpasquier/prometheus-operator that referenced this pull request Oct 9, 2023
The Prometheus agent controller didn't use the metadata informer for
secrets and configmaps as implemented in prometheus-operator#5424 and prometheus-operator#5448 for the other
controllers.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
simonpasquier added a commit to simonpasquier/prometheus-operator that referenced this pull request Oct 10, 2023
The Prometheus agent controller didn't use the metadata informer for
secrets and configmaps as implemented in prometheus-operator#5424 and prometheus-operator#5448 for the other
controllers.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
simonpasquier added a commit to simonpasquier/prometheus-operator that referenced this pull request Oct 10, 2023
The Prometheus agent controller didn't use the metadata informer for
secrets and configmaps as implemented in prometheus-operator#5424 and prometheus-operator#5448 for the other
controllers.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
simonpasquier added a commit to simonpasquier/prometheus-operator that referenced this pull request Oct 10, 2023
The Prometheus agent controller didn't use the metadata informer for
secrets and configmaps as implemented in prometheus-operator#5424 and prometheus-operator#5448 for the other
controllers.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
simonpasquier added a commit to simonpasquier/prometheus-operator that referenced this pull request Oct 10, 2023
The Prometheus agent controller didn't use the metadata informer for
secrets and configmaps as implemented in prometheus-operator#5424 and prometheus-operator#5448 for the other
controllers.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve memory usage by using Metadata Informers
3 participants