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

Support k8s 1.28 #1630

Merged
merged 6 commits into from
Aug 28, 2023
Merged

Support k8s 1.28 #1630

merged 6 commits into from
Aug 28, 2023

Conversation

joshuatcasey
Copy link
Member

@joshuatcasey joshuatcasey commented Aug 17, 2023

See https://www.pivotaltracker.com/story/show/185846474 for details.

NOTE: As of 2023-08-20, this has several commits that have workarounds to support things that changed in K8s 1.28. Please review this PR commit-by-commit.

Add generated code for K8s 1.28.
Require golang 1.20+ to compile, due to changes in the k8s golang libraries.

@codecov
Copy link

codecov bot commented Aug 17, 2023

Codecov Report

Merging #1630 (ca05969) into main (20cfa0a) will decrease coverage by 0.04%.
The diff coverage is 20.00%.

@@            Coverage Diff             @@
##             main    #1630      +/-   ##
==========================================
- Coverage   75.48%   75.44%   -0.04%     
==========================================
  Files         166      166              
  Lines       15078    15082       +4     
==========================================
- Hits        11381    11379       -2     
- Misses       3399     3405       +6     
  Partials      298      298              
Files Changed Coverage Δ
internal/concierge/server/server.go 17.80% <0.00%> (-0.39%) ⬇️
internal/concierge/impersonator/impersonator.go 82.54% <100.00%> (ø)

... and 1 file with indirect coverage changes

@joshuatcasey joshuatcasey changed the title Support k8s 1 28 Support k8s 1.28 Aug 18, 2023
@joshuatcasey joshuatcasey force-pushed the jtc/support-k8s-1-28 branch 4 times, most recently from ca19553 to 3848509 Compare August 22, 2023 22:06
@joshuatcasey joshuatcasey force-pushed the jtc/support-k8s-1-28 branch 13 times, most recently from a9d1d54 to 35ad6a3 Compare August 25, 2023 11:59
@benjaminapetersen
Copy link
Member

Reviewing!
Main concern: not making mulitple-IDPs difficult to merge later. 🤔

if event != nil {
ae = event
ac := audit.AuditContextFrom(ctx)
Copy link
Member

Choose a reason for hiding this comment

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

So, if event is nil, nothing gets created, but this still works? Though we said that Events are no longer pointers?

Copy link
Member

Choose a reason for hiding this comment

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

But ac.Event = *event is a pointer, and seems to work?

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

@benjaminapetersen benjaminapetersen left a comment

Choose a reason for hiding this comment

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

@joshuatcasey joshuatcasey merged commit 8edecff into main Aug 28, 2023
@joshuatcasey joshuatcasey deleted the jtc/support-k8s-1-28 branch August 28, 2023 16:49
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.

3 participants