Skip to content

added pdb version detection - #260

Merged
michaeljmarshall merged 8 commits into
apache:masterfrom
yuweisung:pdb-version-detection
Oct 19, 2022
Merged

michaeljmarshall merged 8 commits into
apache:masterfrom
yuweisung:pdb-version-detection

Conversation

@yuweisung

Copy link
Copy Markdown
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.

@MarvinCai MarvinCai left a comment

Copy link
Copy Markdown
Contributor

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

@michaeljmarshall michaeljmarshall left a comment

Copy link
Copy Markdown
Member

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

@michaeljmarshall michaeljmarshall left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@michaeljmarshall

Copy link
Copy Markdown
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
Copy Markdown
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