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

only auto-detect version v1 of ValidatingAdmissionPlugin during startup #1934

Merged
merged 1 commit into from
May 6, 2024

Conversation

cfryanr
Copy link
Member

@cfryanr cfryanr commented May 3, 2024

This is a follow-up to #1921.

CI showed that in an AKS 1.29 cluster which had version v1beta1 of admissionregistration.k8s.io, Pinniped would fail because the new 1.30 Kube libraries are specifically trying to start a watch for v1 of this resource.

This PR changes our new auto-detection code to specifically look for v1, and to only enable the validating admission plugin when v1 is found.

Release note:

NONE

Copy link

codecov bot commented May 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 29.39%. Comparing base (424e740) to head (85e5970).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1934   +/-   ##
=======================================
  Coverage   29.39%   29.39%           
=======================================
  Files         350      350           
  Lines       58519    58518    -1     
=======================================
+ Hits        17202    17203    +1     
+ Misses      40802    40800    -2     
  Partials      515      515           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cfryanr cfryanr force-pushed the admission_plugins_need_v1 branch from e9f7075 to 85e5970 Compare May 6, 2024 16:11
@joshuatcasey joshuatcasey merged commit 305f3f6 into main May 6, 2024
42 checks passed
@joshuatcasey joshuatcasey deleted the admission_plugins_need_v1 branch May 6, 2024 17:58
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.

None yet

3 participants