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

Add PodDisruptionBudget to eck-operator Helm chart #6671

Merged

Conversation

eliskovets
Copy link
Contributor

Allow PodDisruptionBudget be configured via parameter for eck-operator statefulset deployment.

@botelastic botelastic bot added the triage label Apr 10, 2023
@thbkrkr thbkrkr self-assigned this Apr 11, 2023
@thbkrkr thbkrkr added the >enhancement Enhancement of existing functionality label Apr 11, 2023
@botelastic botelastic bot removed the triage label Apr 11, 2023
deploy/eck-operator/templates/pdb.yaml Outdated Show resolved Hide resolved
deploy/eck-operator/values.yaml Outdated Show resolved Hide resolved
deploy/eck-operator/values.yaml Outdated Show resolved Hide resolved
@thbkrkr thbkrkr added the v2.8.0 label Apr 11, 2023
eliskovets and others added 3 commits April 11, 2023 12:29
Co-authored-by: Thibault Richard <thbkrkr@users.noreply.github.com>
Co-authored-by: Thibault Richard <thbkrkr@users.noreply.github.com>
Co-authored-by: Thibault Richard <thbkrkr@users.noreply.github.com>
@eliskovets
Copy link
Contributor Author

@thbkrkr Thank you for all the suggestions. I've updated the PR.

@eliskovets eliskovets requested a review from thbkrkr April 11, 2023 16:38
@thbkrkr
Copy link
Contributor

thbkrkr commented Apr 11, 2023

@elasticmachine run elasticsearch-ci/docs

@thbkrkr
Copy link
Contributor

thbkrkr commented Apr 11, 2023

buildkite test this

@thbkrkr thbkrkr requested a review from naemono April 11, 2023 18:24
Copy link
Contributor

@naemono naemono left a comment

Choose a reason for hiding this comment

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

The only bit I was concerned about was validating an invalid pdb, which k8s does for us:

helm upgrade -i elastic-operator . -n elastic-system --values ~/tmp/eck-operator-standard.yaml --set=installCRDs=false --set=podDisruptionBudget.enabled=true --set=podDisruptionBudget.maxUnavailable=2
Error: UPGRADE FAILED: cannot patch "elastic-operator" with kind PodDisruptionBudget: PodDisruptionBudget.policy "elastic-operator" is invalid: spec: Invalid value: policy.PodDisruptionBudgetSpec{MinAvailable:(*intstr.IntOrString)(0xc04181de80), Selector:(*v1.LabelSelector)(0xc04181dea0), MaxUnavailable:(*intstr.IntOrString)(0xc04181dec0)}: minAvailable and maxUnavailable cannot be both set

My testing showed this working as intended, so 👍

@thbkrkr thbkrkr merged commit 4adad8e into elastic:main Apr 12, 2023
@thbkrkr thbkrkr changed the title Add PDB for eck-operator helm chart Add PodDisruptionBudget to eck-operator helm chart Apr 12, 2023
@thbkrkr thbkrkr changed the title Add PodDisruptionBudget to eck-operator helm chart Add PodDisruptionBudget to eck-operator Helm chart Apr 13, 2023
@eliskovets eliskovets deleted the feature/eliskovets/add-pdb-for-eck-operator branch April 14, 2023 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement Enhancement of existing functionality v2.8.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants