-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
Add Ephemeral Containers to the Kubernetes core API #59416
Conversation
1b53e8a
to
e27bc24
Compare
5c00903
to
ede1fb2
Compare
Need api reviewers/approvers. @liggitt @lavalamp @smarterclayton does anyone of you have time to review? |
7e2d87b
to
d378931
Compare
8423dc3
to
3d9a12d
Compare
/retest |
/retest |
@@ -2843,6 +2843,17 @@ type PodSpec struct { | |||
// +patchMergeKey=name | |||
// +patchStrategy=merge | |||
Containers []Container `json:"containers" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,2,rep,name=containers"` | |||
// EphemeralContainers is the list of ephemeral containers that run in this pod. Ephemeral containers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that the name should be ephemeralContainers
in Godoc when referencing the field. I'm ok with this being a follow up if there's nothing else in this pass.
/lgtm Follow up PRs already identified, I'll do a godoc pass before we hit freeze. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: smarterclayton, verb The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hey @verb 👋, do you think it would be possible to change the release notes entry at this PR to document the user facing changes? It is currently marked as NONE but we definitely want to add this one to the notes. :) |
Hi @saschagrunert, Right now it's just a disconnected API, but #59484 updates the kubelet to launch ephemeral containers so I thought it'd be a good place for release notes. I expect it to merge in time for 1.16. Would that work? |
That would be wonderful, thank you 🙏 |
What this PR does / why we need it: This updates the Kubernetes API as described in kubernetes/community#1269 to add Ephemeral Containers. The new subresource of pod is hidden behind an alpha feature flag.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):WIP #27140
WIP #10834
Special notes for your reviewer:
/assign @yujuhong
/cc @liggitt @dchen1107 @smarterclayton @lavalamp
Release note:
Follow Up PRs:
I've split some topics to separate PRs to reduce load on API reviewer. Once this API change is submitted I'll rebase these and find additional reviewers:
To Do:
Container
fields toEphemeralContainer
rather than inlining.Container
andEphemeralContainer
remain in sync.