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

New annotations “kubectl.kubernetes.io/default-container” #27095

Merged
merged 3 commits into from
Mar 22, 2021

Conversation

pacoxu
Copy link
Member

@pacoxu pacoxu commented Mar 17, 2021

kubernetes/enhancements#2227 (comment)

It is implemented in 1.21

@k8s-ci-robot k8s-ci-robot added this to the 1.21 milestone Mar 17, 2021
@k8sio-netlify-preview-bot
Copy link
Collaborator

k8sio-netlify-preview-bot commented Mar 17, 2021

Deploy preview for kubernetes-io-vnext-staging processing.

Building with commit 4c51305

https://app.netlify.com/sites/kubernetes-io-vnext-staging/deploys/605439eec6d29e0008c11441

@k8s-ci-robot k8s-ci-robot added language/en Issues or PRs related to English language sig/docs Categorizes an issue or PR as relevant to SIG Docs. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Mar 17, 2021

Example: `kubectl.kubernetes.io/default-container:container1`

If a Pod has the annotation `kubectl.kubernetes.io/default-container`, consumers (CLI, operators) know which is the default container. For example, `kubectl logs` or `kubectl exec` without `-c` or `--container` flag will use this default container.
Copy link
Contributor

Choose a reason for hiding this comment

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

  1. We're listing this in the wrong place (under a heading “The taints listed below are always used on Nodes”)
  2. We should explicitly say that the value of the annotation is the container name that is default for this Pod.

@sftim
Copy link
Contributor

sftim commented Mar 17, 2021

/sig cli

@k8s-ci-robot k8s-ci-robot added the sig/cli Categorizes an issue or PR as relevant to SIG CLI. label Mar 17, 2021
@reylejano
Copy link
Member

/assign

@pacoxu pacoxu changed the title New annotations New annotations “kubectl.kubernetes.io/default-container” Mar 19, 2021
Co-authored-by: Tim Bannister <tim@scalefactory.com>
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 19, 2021
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 19, 2021
@pacoxu pacoxu requested a review from sftim March 22, 2021 10:44
@sftim
Copy link
Contributor

sftim commented Mar 22, 2021

LGTM
/approve

(would like someone else to /lgtm)

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sftim

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 22, 2021
@rikatz
Copy link
Contributor

rikatz commented Mar 22, 2021

/lgtm

From sig-cli perspective

Thank you @pacoxu !

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 22, 2021
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 2a157ec136317edb66182d2cb813c8e422321c8c

@k8s-ci-robot k8s-ci-robot merged commit b7e6963 into kubernetes:dev-1.21 Mar 22, 2021
@pacoxu pacoxu deleted the new-annotations branch June 26, 2023 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. language/en Issues or PRs related to English language lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/cli Categorizes an issue or PR as relevant to SIG CLI. sig/docs Categorizes an issue or PR as relevant to SIG Docs. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants