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(argo-workflows): Add unhealthyPodEvictionPolicy to workflow controller PDB #3012

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fleuryc-owkin
Copy link

@fleuryc-owkin fleuryc-owkin commented Nov 7, 2024

Resolves #3011

Checklist:

  • I have bumped the chart version according to versioning
  • I have updated the documentation according to documentation
  • I have updated the chart changelog with all the changes that come with this pull request according to changelog.
  • Any new values are backwards compatible and/or have sensible default.
  • I have signed off all my commits as required by DCO.
  • My build is green (troubleshooting builds).

@@ -14,6 +14,7 @@ spec:
{{- else }}
minAvailable: 0
{{- end }}
unhealthyPodEvictionPolicy: IfHealthyBudget
Copy link
Member

Choose a reason for hiding this comment

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

Feels like this should be user-configurable as some users may well prefer AlwaysAllow

Copy link
Author

Choose a reason for hiding this comment

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

Done ✅

I ran ./scripts/helm-docs.sh but the attribute doesn't show up in the doc. What did I do wrong ?

@tico24
Copy link
Member

tico24 commented Nov 7, 2024

Also this only went stable fairly recently didn't it (maybe 1.31 from memory)? How will this work for older k8s clusters?

@fleuryc-owkin fleuryc-owkin force-pushed the fix/wf-controller-pdb-unhealthyPodEvictionPolicy branch from 11ebb3d to 75a88df Compare November 7, 2024 11:41
@github-actions github-actions bot added size/S and removed size/XS labels Nov 7, 2024
@fleuryc-owkin
Copy link
Author

Also this only went stable fairly recently didn't it (maybe 1.31 from memory)? How will this work for older k8s clusters?

I added a comment and made the parameter optional.

@@ -344,6 +344,9 @@ controller:
enabled: false
# minAvailable: 1
# maxUnavailable: 1

# -- [unhealthyPodEvictionPolicy] is only valid for v1.31+
Copy link
Member

Choose a reason for hiding this comment

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

v1.31 of what?
It's valid for earlier versions but it's behind a gate.

Copy link
Author

Choose a reason for hiding this comment

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

Fixed the comment ✅

@fleuryc-owkin fleuryc-owkin force-pushed the fix/wf-controller-pdb-unhealthyPodEvictionPolicy branch from 75a88df to cd21b38 Compare November 7, 2024 13:01
Comment on lines 19 to 20
- kind: added
description: Support lifecycle and terminationGracePeriodSeconds for server
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please remove old one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support PDB unhealthyPodEvictionPolicy
3 participants