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

Correct namespace selector for cluster versions with non-numeric characters #3184

Conversation

xzhang-brex
Copy link
Contributor

@xzhang-brex xzhang-brex commented May 16, 2023

Description

This pull request addresses an issue with the mutating webhook where it previously could not correctly apply the namespace selector if the cluster version contained non-numeric characters.

The problem was primarily seen in cases where the Kubernetes version, specifically the minor version, included non-numeric characters, such as "22+".

Changes in this PR ensure that the webhook now correctly interprets and handles such versions. The namespace selector will now function as expected even when the cluster version is formatted like Major:"1", Minor:"22+".

Checklist

  • I made sure to update ./CHANGELOG.md.
  • I made sure to add any docs changes required for my change (including release notes).
  • My change is adequately tested.
  • I updated DEVELOPING.md with any any special dev tricks I had to use to work on this code efficiently.
  • I updated TELEMETRY.md if I added, changed, or removed a metric name.
  • Once my PR is ready to have integration tests ran, I posted the PR in #telepresence-dev in the datawire-oss slack so that the "ok to test" label can be applied.

@xzhang-brex xzhang-brex marked this pull request as ready for review May 16, 2023 05:39
…acters. Now correctly handles versions like Major:'1', Minor:'22+'.

Signed-off-by: Xu Zhang <xzhang@brex.com>
@xzhang-brex xzhang-brex force-pushed the make-kube-version-more-flexible branch from 673b405 to 704745e Compare May 16, 2023 05:57
@thallgren thallgren added the ok to test Applied by maintainers when a PR is ready to have tests run on it label May 16, 2023
@github-actions github-actions bot removed the ok to test Applied by maintainers when a PR is ready to have tests run on it label May 16, 2023
@thallgren thallgren merged commit ae0bd80 into telepresenceio:release/v2 May 16, 2023
@thallgren
Copy link
Member

Thank you so much for this contribution @xzhang-brex !

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.

2 participants