Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f5a3f7d

Browse files
author
Marek Grabowski
committed
Merge pull request #8721 from smarterclayton/incorrect_description
Description of ImagePullPolicy wrong in v1(beta3)
2 parents cf7b0bd + 3db9f05 commit f5a3f7d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/api/v1/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ type Container struct {
668668
// Optional: Defaults to /dev/termination-log
669669
TerminationMessagePath string `json:"terminationMessagePath,omitempty" description:"path at which the file to which the container's termination message will be written is mounted into the container's filesystem; message written is intended to be brief final status, such as an assertion failure message; defaults to /dev/termination-log; cannot be updated"`
670670
// Optional: Policy for pulling images for this container
671-
ImagePullPolicy PullPolicy `json:"imagePullPolicy,omitempty" description:"image pull policy; one of PullAlways, PullNever, PullIfNotPresent; defaults to PullAlways if :latest tag is specified, or PullIfNotPresent otherwise; cannot be updated"`
671+
ImagePullPolicy PullPolicy `json:"imagePullPolicy,omitempty" description:"image pull policy; one of Always, Never, IfNotPresent; defaults to Always if :latest tag is specified, or IfNotPresent otherwise; cannot be updated"`
672672
// Optional: SecurityContext defines the security options the pod should be run with
673673
SecurityContext *SecurityContext `json:"securityContext,omitempty" description:"security options the pod should run with"`
674674
}

pkg/api/v1beta3/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ type Container struct {
670670
// Deprecated - see SecurityContext. Optional: Default to false.
671671
Privileged bool `json:"privileged,omitempty" description:"whether or not the container is granted privileged status; defaults to false; cannot be updated; deprecated; See SecurityContext."`
672672
// Optional: Policy for pulling images for this container
673-
ImagePullPolicy PullPolicy `json:"imagePullPolicy,omitempty" description:"image pull policy; one of PullAlways, PullNever, PullIfNotPresent; defaults to PullAlways if :latest tag is specified, or PullIfNotPresent otherwise; cannot be updated"`
673+
ImagePullPolicy PullPolicy `json:"imagePullPolicy,omitempty" description:"image pull policy; one of Always, Never, IfNotPresent; defaults to Always if :latest tag is specified, or IfNotPresent otherwise; cannot be updated"`
674674
// Deprecated - see SecurityContext. Optional: Capabilities for container.
675675
Capabilities Capabilities `json:"capabilities,omitempty" description:"capabilities for container; cannot be updated; deprecated; See SecurityContext."`
676676
// Optional: SecurityContext defines the security options the pod should be run with

0 commit comments

Comments
 (0)