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

added pdb version detection #260

Merged
merged 8 commits into from
Oct 19, 2022

Conversation

yuweisung
Copy link
Contributor

Fixes pod disruption budget version warning

Motivation

PDB policy api version, v1beta1 is deprecated in k8s1.21+ (not available in 1.25+).

Modifications

zookeeper-pdb, proxy-pdb, broker-pdb and bookkeepr-pdb templates are modified. If k8s api-resources container policy/v1, the *-pdb.yaml will generate respective apiVersion.

Verifying this change

  • Make sure that the change passes the CI checks.

Copy link
Contributor

@MarvinCai MarvinCai left a comment

Choose a reason for hiding this comment

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

should be backward compatible, lgtm

Copy link
Member

@michaeljmarshall michaeljmarshall left a comment

Choose a reason for hiding this comment

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

I think we'll need to take this comment into consideration here #183 (comment). @yuweisung are you able to test if this is an issue for this PR? Thanks!

update the capabilities syntax
update capability syntax
update capability version syntax
update capability version syntax
Copy link
Member

@michaeljmarshall michaeljmarshall left a comment

Choose a reason for hiding this comment

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

LGTM

@michaeljmarshall
Copy link
Member

Thanks @yuweisung!

@michaeljmarshall michaeljmarshall linked an issue Oct 19, 2022 that may be closed by this pull request
@michaeljmarshall michaeljmarshall added this to the 3.0.0 milestone Oct 19, 2022
@michaeljmarshall
Copy link
Member

I verified manually that this PR works against minikube running k8s v1.25.2.

@michaeljmarshall michaeljmarshall merged commit 816d88c into apache:master Oct 19, 2022
@yuweisung yuweisung deleted the pdb-version-detection branch October 19, 2022 15:17
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.

Support for kubernetes 1.25
3 participants