@@ -609,8 +609,8 @@ spec:
609609 most preferred is the one with the greatest sum of weights, i.e.
610610 for each node that meets all of the scheduling requirements (resource
611611 request, requiredDuringScheduling anti-affinity expressions, etc.),
612- compute a sum by iterating through the elements of this field and adding
613- "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
612+ compute a sum by iterating through the elements of this field and subtracting
613+ "weight" from the sum if the node has pods which matches the corresponding podAffinityTerm; the
614614 node(s) with the highest sum are the most preferred.
615615 items :
616616 description : The weights of all of the matched WeightedPodAffinityTerm
@@ -1035,8 +1035,9 @@ spec:
10351035 in a Container.
10361036 properties :
10371037 name :
1038- description : Name of the environment variable. Must be
1039- a C_IDENTIFIER.
1038+ description : |-
1039+ Name of the environment variable.
1040+ May consist of any printable ASCII characters except '='.
10401041 type : string
10411042 value :
10421043 description : |-
@@ -1094,6 +1095,43 @@ spec:
10941095 - fieldPath
10951096 type : object
10961097 x-kubernetes-map-type : atomic
1098+ fileKeyRef :
1099+ description : |-
1100+ FileKeyRef selects a key of the env file.
1101+ Requires the EnvFiles feature gate to be enabled.
1102+ properties :
1103+ key :
1104+ description : |-
1105+ The key within the env file. An invalid key will prevent the pod from starting.
1106+ The keys defined within a source may consist of any printable ASCII characters except '='.
1107+ During Alpha stage of the EnvFiles feature gate, the key size is limited to 128 characters.
1108+ type : string
1109+ optional :
1110+ default : false
1111+ description : |-
1112+ Specify whether the file or its key must be defined. If the file or key
1113+ does not exist, then the env var is not published.
1114+ If optional is set to true and the specified key does not exist,
1115+ the environment variable will not be set in the Pod's containers.
1116+
1117+ If optional is set to false and the specified key does not exist,
1118+ an error will be returned during Pod creation.
1119+ type : boolean
1120+ path :
1121+ description : |-
1122+ The path within the volume from which to select the file.
1123+ Must be relative and may not contain the '..' path or start with '..'.
1124+ type : string
1125+ volumeName :
1126+ description : The name of the volume mount containing
1127+ the env file.
1128+ type : string
1129+ required :
1130+ - key
1131+ - path
1132+ - volumeName
1133+ type : object
1134+ x-kubernetes-map-type : atomic
10971135 resourceFieldRef :
10981136 description : |-
10991137 Selects a resource of the container: only resources limits and requests
@@ -1154,8 +1192,8 @@ spec:
11541192 envFrom :
11551193 description : |-
11561194 List of sources to populate environment variables in the container.
1157- The keys defined within a source must be a C_IDENTIFIER. All invalid keys
1158- will be reported as an event when the container is starting. When a key exists in multiple
1195+ The keys defined within a source may consist of any printable ASCII characters except '='.
1196+ When a key exists in multiple
11591197 sources, the value associated with the last source will take precedence.
11601198 Values defined by an Env with a duplicate key will take precedence.
11611199 Cannot be updated.
@@ -1182,8 +1220,9 @@ spec:
11821220 type : object
11831221 x-kubernetes-map-type : atomic
11841222 prefix :
1185- description : Optional text to prepend to the name of each
1186- environment variable. Must be a C_IDENTIFIER.
1223+ description : |-
1224+ Optional text to prepend to the name of each environment variable.
1225+ May consist of any printable ASCII characters except '='.
11871226 type : string
11881227 secretRef :
11891228 description : The Secret to select from
@@ -1854,7 +1893,7 @@ spec:
18541893 Claims lists the names of resources, defined in spec.resourceClaims,
18551894 that are used by this container.
18561895
1857- This is an alpha field and requires enabling the
1896+ This field depends on the
18581897 DynamicResourceAllocation feature gate.
18591898
18601899 This field is immutable. It can only be set for containers.
@@ -1908,10 +1947,10 @@ spec:
19081947 restartPolicy :
19091948 description : |-
19101949 RestartPolicy defines the restart behavior of individual containers in a pod.
1911- This field may only be set for init containers, and the only allowed value is "Always".
1912- For non-init containers or when this field is not specified,
1950+ This overrides the pod-level restart policy. When this field is not specified,
19131951 the restart behavior is defined by the Pod's restart policy and the container type.
1914- Setting the RestartPolicy as "Always" for the init container will have the following effect:
1952+ Additionally, setting the RestartPolicy as "Always" for the init container will
1953+ have the following effect:
19151954 this init container will be continually restarted on
19161955 exit until all regular containers have terminated. Once all regular
19171956 containers have completed, all init containers with restartPolicy "Always"
@@ -1923,6 +1962,59 @@ spec:
19231962 init container is started, or after any startupProbe has successfully
19241963 completed.
19251964 type : string
1965+ restartPolicyRules :
1966+ description : |-
1967+ Represents a list of rules to be checked to determine if the
1968+ container should be restarted on exit. The rules are evaluated in
1969+ order. Once a rule matches a container exit condition, the remaining
1970+ rules are ignored. If no rule matches the container exit condition,
1971+ the Container-level restart policy determines the whether the container
1972+ is restarted or not. Constraints on the rules:
1973+ - At most 20 rules are allowed.
1974+ - Rules can have the same action.
1975+ - Identical rules are not forbidden in validations.
1976+ When rules are specified, container MUST set RestartPolicy explicitly
1977+ even it if matches the Pod's RestartPolicy.
1978+ items :
1979+ description : ContainerRestartRule describes how a container
1980+ exit is handled.
1981+ properties :
1982+ action :
1983+ description : |-
1984+ Specifies the action taken on a container exit if the requirements
1985+ are satisfied. The only possible value is "Restart" to restart the
1986+ container.
1987+ type : string
1988+ exitCodes :
1989+ description : Represents the exit codes to check on container
1990+ exits.
1991+ properties :
1992+ operator :
1993+ description : |-
1994+ Represents the relationship between the container exit code(s) and the
1995+ specified values. Possible values are:
1996+ - In: the requirement is satisfied if the container exit code is in the
1997+ set of specified values.
1998+ - NotIn: the requirement is satisfied if the container exit code is
1999+ not in the set of specified values.
2000+ type : string
2001+ values :
2002+ description : |-
2003+ Specifies the set of values to check for container exit codes.
2004+ At most 255 elements are allowed.
2005+ items :
2006+ format : int32
2007+ type : integer
2008+ type : array
2009+ x-kubernetes-list-type : set
2010+ required :
2011+ - operator
2012+ type : object
2013+ required :
2014+ - action
2015+ type : object
2016+ type : array
2017+ x-kubernetes-list-type : atomic
19262018 securityContext :
19272019 description : |-
19282020 SecurityContext defines the security options the container should be run with.
@@ -2451,7 +2543,7 @@ spec:
24512543 Claims lists the names of resources, defined in spec.resourceClaims,
24522544 that are used by this container.
24532545
2454- This is an alpha field and requires enabling the
2546+ This field depends on the
24552547 DynamicResourceAllocation feature gate.
24562548
24572549 This field is immutable. It can only be set for containers.
0 commit comments