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

fix: update reloader requests and limits when updated #5971

Merged
merged 2 commits into from Oct 20, 2023

Conversation

simonpasquier
Copy link
Contributor

@simonpasquier simonpasquier commented Oct 6, 2023

Description

Closes #5970

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

Changelog entry

Please put a one-line changelog entry below. This will be copied to the changelog file during the release process.


@simonpasquier
Copy link
Contributor Author

Need to add tests for this.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
@simonpasquier simonpasquier marked this pull request as ready for review October 16, 2023 11:33
@simonpasquier simonpasquier requested a review from a team as a code owner October 16, 2023 11:33
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Comment on lines +75 to +80
// The struct tag are needed for github.com/mitchellh/hashstructure to take
// the field values into account when generating the statefulset hash.
CPURequests Quantity `hash:"string"`
CPULimits Quantity `hash:"string"`
MemoryRequests Quantity `hash:"string"`
MemoryLimits Quantity `hash:"string"`
Copy link
Member

Choose a reason for hiding this comment

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

Interesting! TIL

Comment on lines +198 to +208
type PrometheusOperatorOpts struct {
Namespace string
AllowedNamespaces []string
DeniedNamespaces []string
PrometheusNamespaces []string
AlertmanagerNamespaces []string
EnableAdmissionWebhook bool
ClusterRoleBindings bool
EnableScrapeConfigs bool
AdditionalArgs []string
}
Copy link
Member

Choose a reason for hiding this comment

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

Loved the abstraction here!

@simonpasquier simonpasquier merged commit 7890689 into prometheus-operator:main Oct 20, 2023
17 checks passed
@simonpasquier simonpasquier deleted the fix-5970 branch October 20, 2023 07:43
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.

reloader config limits and requests not being updated
2 participants