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

Updating docs around default ImagePullPolicy #10284

Merged
merged 2 commits into from
Sep 21, 2018
Merged

Updating docs around default ImagePullPolicy #10284

merged 2 commits into from
Sep 21, 2018

Conversation

jrnt30
Copy link
Contributor

@jrnt30 jrnt30 commented Sep 13, 2018

This is an attempt to clear up a bit of the wording around an image's tag and how that impacts the ImagePullPolicy. The wording to me presently suggests all you need to do is use :latest as an image tag and that will change the ImagePullPolicy to latest.

This is not the case that I've observed. As it stands now, :latest only affect the ImagePullPolicy if that attribute is not present on the pod's specification. It is a bit "wordy" but there are some edge cases that are a bit difficult to explain.

Any suggestions on how to improve this structure but cover them would be appreciated.

Reference to the appropriate code/test that handle the underlying default logic I found were:
https://github.com/kubernetes/kubernetes/blob/7f23a743e8c23ac6489340bbb34fa6f1d392db9d/pkg/apis/core/v1/defaults.go#L78
https://github.com/kubernetes/kubernetes/blob/7f23a743e8c23ac6489340bbb34fa6f1d392db9d/pkg/kubelet/images/image_manager_test.go#L63

This is an attempt to clear up a bit of the wording around an image's tag and how that impacts the ImagePullPolicy.

The wording to me presently suggests *all* you need to do is use `:latest` as an image tag and that will change the `ImagePullPolicy` to latest.

This is not the case that I've observed.  As it stands now, `:latest` only affect the `ImagePullPolicy` if that attribute is not present on the pod's specification.

https://github.com/kubernetes/kubernetes/blob/7f23a743e8c23ac6489340bbb34fa6f1d392db9d/pkg/apis/core/v1/defaults.go#L78
https://github.com/kubernetes/kubernetes/blob/7f23a743e8c23ac6489340bbb34fa6f1d392db9d/pkg/kubelet/images/image_manager_test.go#L63
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Sep 13, 2018
@k8sio-netlify-preview-bot
Copy link
Collaborator

k8sio-netlify-preview-bot commented Sep 13, 2018

Deploy preview for kubernetes-io-master-staging ready!

Built with commit 760bf43

https://deploy-preview-10284--kubernetes-io-master-staging.netlify.com

Copy link
Contributor

@Bradamant3 Bradamant3 left a comment

Choose a reason for hiding this comment

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

copyedits for UX. Thanks for all the clarification!

content/en/docs/concepts/configuration/overview.md Outdated Show resolved Hide resolved
content/en/docs/concepts/configuration/overview.md Outdated Show resolved Hide resolved
content/en/docs/concepts/configuration/overview.md Outdated Show resolved Hide resolved
content/en/docs/concepts/configuration/overview.md Outdated Show resolved Hide resolved
content/en/docs/concepts/configuration/overview.md Outdated Show resolved Hide resolved
content/en/docs/concepts/configuration/overview.md Outdated Show resolved Hide resolved
content/en/docs/concepts/configuration/overview.md Outdated Show resolved Hide resolved
content/en/docs/concepts/configuration/overview.md Outdated Show resolved Hide resolved
content/en/docs/concepts/containers/images.md Outdated Show resolved Hide resolved
@Bradamant3
Copy link
Contributor

/assign

- Thanks for the super valuable feedback @Bradamant3.  It reads a *lot* better now!
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Sep 20, 2018
@jrnt30
Copy link
Contributor Author

jrnt30 commented Sep 20, 2018

Thanks for the super valuable feedback @Bradamant3. It reads much cleaner now!

@Bradamant3
Copy link
Contributor

YOLO. We probably should ask for tech review, but ...

/lgtm
/approve

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Bradamant3

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 Sep 21, 2018
@k8s-ci-robot k8s-ci-robot merged commit d73e26c into kubernetes:master Sep 21, 2018
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. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants