Improve spec.template.spec.restartPolicy description
This commit is contained in:
@@ -180,6 +180,7 @@ type StatefulSetSpec struct {
|
||||
// of the StatefulSet. Each pod will be named with the format
|
||||
// <statefulsetname>-<podindex>. For example, a pod in a StatefulSet named
|
||||
// "web" with index number "3" would be named "web-3".
|
||||
// The only allowed template.spec.restartPolicy value is "Always".
|
||||
Template api.PodTemplateSpec
|
||||
|
||||
// VolumeClaimTemplates is a list of claims that pods are allowed to reference.
|
||||
@@ -376,6 +377,7 @@ type DeploymentSpec struct {
|
||||
Selector *metav1.LabelSelector
|
||||
|
||||
// Template describes the pods that will be created.
|
||||
// The only allowed template.spec.restartPolicy value is "Always".
|
||||
Template api.PodTemplateSpec
|
||||
|
||||
// The deployment strategy to use to replace existing pods with new ones.
|
||||
@@ -666,6 +668,7 @@ type DaemonSetSpec struct {
|
||||
// The DaemonSet will create exactly one copy of this pod on every node
|
||||
// that matches the template's node selector (or on every node if no node
|
||||
// selector is specified).
|
||||
// The only allowed template.spec.restartPolicy value is "Always".
|
||||
// More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
|
||||
Template api.PodTemplateSpec
|
||||
|
||||
@@ -857,6 +860,7 @@ type ReplicaSetSpec struct {
|
||||
|
||||
// Template is the object that describes the pod that will be created if
|
||||
// insufficient replicas are detected.
|
||||
// The only allowed template.spec.restartPolicy value is "Always".
|
||||
// +optional
|
||||
Template api.PodTemplateSpec
|
||||
}
|
||||
|
@@ -295,6 +295,7 @@ type JobSpec struct {
|
||||
ManualSelector *bool
|
||||
|
||||
// Describes the pod that will be created when executing a job.
|
||||
// The only allowed template.spec.restartPolicy values are "Never" or "OnFailure".
|
||||
Template api.PodTemplateSpec
|
||||
|
||||
// ttlSecondsAfterFinished limits the lifetime of a Job that has finished
|
||||
|
@@ -3621,6 +3621,7 @@ type ReplicationControllerSpec struct {
|
||||
// Template is the object that describes the pod that will be created if
|
||||
// insufficient replicas are detected. Internally, this takes precedence over a
|
||||
// TemplateRef.
|
||||
// The only allowed template.spec.restartPolicy value is "Always".
|
||||
// +optional
|
||||
Template *PodTemplateSpec
|
||||
}
|
||||
|
Reference in New Issue
Block a user