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

replace UpdateStatus() for ApplyStatus Prometheus #5912

Conversation

marioferh
Copy link
Contributor

Description

To set the status subresource, the operator make use of ApplyStatus() instead of UpdateStatus() to avoid informer errors.

Type of change

  • 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.)

Changelog entry

  • replace UpdateStatus() for ApplyStatus() in order to avoid informer errors.

@marioferh marioferh requested a review from a team as a code owner September 13, 2023 11:10
Prometheus Agent and Prometheus Server

Signed-off-by: Mario Fernandez <mariofer@redhat.com>
@marioferh marioferh force-pushed the replace_UpdateStatus_prometheus branch from 4c09da4 to 74f6a02 Compare September 13, 2023 11:11
inline func
PrometheusOperatorFieldManager to opreator pkg

Signed-off-by: Mario Fernandez <mariofer@redhat.com>
Signed-off-by: Mario Fernandez <mariofer@redhat.com>
pkg/prometheus/agent/operator.go Outdated Show resolved Hide resolved
pkg/operator/applyconfiguration.go Outdated Show resolved Hide resolved
Signed-off-by: Mario Fernandez <mariofer@redhat.com>
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.

Thanks!

@simonpasquier simonpasquier enabled auto-merge (squash) September 18, 2023 14:57
@simonpasquier simonpasquier merged commit 6756b1c into prometheus-operator:main Sep 18, 2023
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants