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 pdb defaulting logic #3200

Merged
merged 6 commits into from
Aug 7, 2024

Conversation

jaronoff97
Copy link
Contributor

Description: Fixes a bug where we setting the field on the CRD itself which was causing it to be added permanently to the CR in the defaulting webhook. This meant that when a user went to apply a change and didn't want that default anymore we would crash.

Link to tracking Issue(s):

Testing: Unit tests, e2e tests, manual

Documentation:

@jaronoff97 jaronoff97 marked this pull request as ready for review August 6, 2024 19:29
@jaronoff97 jaronoff97 requested a review from a team August 6, 2024 19:30
type test struct {
name string
MinAvailable *intstr.IntOrString
type expected struct {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

i swapped around where the defaulting is happening so now we should test that here.

@jaronoff97 jaronoff97 requested a review from pavolloffay August 7, 2024 14:03
@jaronoff97 jaronoff97 enabled auto-merge (squash) August 7, 2024 14:15
@jaronoff97 jaronoff97 merged commit 0551975 into open-telemetry:main Aug 7, 2024
33 checks passed
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.

Otel operator creating invalid PDB
3 participants