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

feat: update apiVersion for PodDisruptionBudget and HorizontalPodAutoscaler #685

Merged

Conversation

karakanb
Copy link
Contributor

@karakanb karakanb commented Jan 4, 2023

What issues does your PR fix?

What does your PR do?

This PR updates the default apiVersions we use for the PodDisruptionBudget and HorizontalPodAutoscaler resources to ensure support of Kubernetes 1.25+, and introduces values for users to set the older ones, if needed.

Adds the following values for PodDisruptionBudget:

  • flower.podDisruptionBudget.apiVersion (default: policy/v1)
  • pgbouncer.podDisruptionBudget.apiVersion (default: policy/v1)
  • scheduler.podDisruptionBudget.apiVersion (default: policy/v1)
  • triggerer.podDisruptionBudget.apiVersion (default: policy/v1)
  • web.podDisruptionBudget.apiVersion (default: policy/v1)
  • workers.podDisruptionBudget.apiVersion (default: policy/v1)

Adds the following values for HorizontalPodAutoscaler:

  • workers.autoscaling.apiVersion (default: autoscaling/v2)

Checklist

For all Pull Requests

For releasing ONLY

Signed-off-by: Burak Karakan <burak.karakan@gmail.com>
Signed-off-by: Burak Karakan <burak.karakan@gmail.com>
Signed-off-by: Burak Karakan <burak.karakan@gmail.com>
Signed-off-by: Burak Karakan <burak.karakan@gmail.com>
Copy link
Member

@thesuperzapper thesuperzapper left a comment

Choose a reason for hiding this comment

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

@karakanb thanks for the PR, I agree that this is an important change, are you able to make the small number of changes (listed in the comments) so we can get this released ASAP?

@thesuperzapper thesuperzapper changed the title Feature/support k8s v125plus use newer apis for PodDisruptionBudget and HorizontalPodAutoscaler (fix 1.25+) Feb 7, 2023
Signed-off-by: Burak Karakan <burak.karakan@gmail.com>
Signed-off-by: Burak Karakan <burak.karakan@gmail.com>
…a versions

Signed-off-by: Burak Karakan <burak.karakan@gmail.com>
@karakanb
Copy link
Contributor Author

@thesuperzapper I have done the changes you have asked for, hope it's good to go now. 🤞

@hakuno
Copy link

hakuno commented Mar 29, 2023

+1 Any news?

@inventionlabsSydney
Copy link

Hey guys,

Any news on this? PodDisruptionBudget has been in known deprecation since 1.21. This is now blocking many peoples cluster upgrades.

@thesuperzapper is there anything we as the community can do to move this along faster?

@thesuperzapper thesuperzapper added the kind/enhancement kind - new features or changes label Apr 5, 2023
@thesuperzapper thesuperzapper changed the title use newer apis for PodDisruptionBudget and HorizontalPodAutoscaler (fix 1.25+) feat: use newPodDisruptionBudget and HorizontalPodAutoscaler apis (fix 1.25+) Apr 5, 2023
@thesuperzapper thesuperzapper removed the kind/enhancement kind - new features or changes label Apr 5, 2023
@thesuperzapper thesuperzapper changed the title feat: use newPodDisruptionBudget and HorizontalPodAutoscaler apis (fix 1.25+) feat: use new PodDisruptionBudget and HorizontalPodAutoscaler apis (fix 1.25+) Apr 6, 2023
@thesuperzapper thesuperzapper changed the title feat: use new PodDisruptionBudget and HorizontalPodAutoscaler apis (fix 1.25+) feat: update apiVersion for PodDisruptionBudget and HorizontalPodAutoscaler Apr 6, 2023
…utoscaler`

Signed-off-by: Mathew Wicks <thesuperzapper@users.noreply.github.com>
@thesuperzapper thesuperzapper added the status/ready-to-merge status - this will be merged into next release label Apr 6, 2023
Copy link
Member

@thesuperzapper thesuperzapper left a comment

Choose a reason for hiding this comment

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

@karakanb thanks for your patience, I will be including this PR in 8.7.0 of the chart today.

Note that I pushed a small doc fix to your branch.

@thesuperzapper thesuperzapper merged commit 82a1549 into airflow-helm:main Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/ready-to-merge status - this will be merged into next release
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

PodDisruptionBudget and HorizontalPodAutoscaler use unavailable apis (fix Kubernetes 1.25+)
4 participants