Generated changes for probe terminationGracePeriodSeconds
This commit is contained in:
parent
06e634e216
commit
7df1259d09
7
api/openapi-spec/swagger.json
generated
7
api/openapi-spec/swagger.json
generated
@ -8957,7 +8957,7 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"terminationGracePeriodSeconds": {
|
"terminationGracePeriodSeconds": {
|
||||||
"description": "Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds.",
|
"description": "Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds.",
|
||||||
"format": "int64",
|
"format": "int64",
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
@ -9249,6 +9249,11 @@
|
|||||||
"$ref": "#/definitions/io.k8s.api.core.v1.TCPSocketAction",
|
"$ref": "#/definitions/io.k8s.api.core.v1.TCPSocketAction",
|
||||||
"description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported"
|
"description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported"
|
||||||
},
|
},
|
||||||
|
"terminationGracePeriodSeconds": {
|
||||||
|
"description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is an alpha field and requires enabling ProbeTerminationGracePeriod feature gate.",
|
||||||
|
"format": "int64",
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
"timeoutSeconds": {
|
"timeoutSeconds": {
|
||||||
"description": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes",
|
"description": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes",
|
||||||
"format": "int32",
|
"format": "int32",
|
||||||
|
@ -836,7 +836,7 @@ func probeGracePeriodInUse(podSpec *api.PodSpec) bool {
|
|||||||
VisitContainers(podSpec, AllContainers, func(c *api.Container, containerType ContainerType) bool {
|
VisitContainers(podSpec, AllContainers, func(c *api.Container, containerType ContainerType) bool {
|
||||||
// cannot be set for readiness probes
|
// cannot be set for readiness probes
|
||||||
if (c.LivenessProbe != nil && c.LivenessProbe.TerminationGracePeriodSeconds != nil) ||
|
if (c.LivenessProbe != nil && c.LivenessProbe.TerminationGracePeriodSeconds != nil) ||
|
||||||
(c.StartupProbe != nil && c.StartupProbe.TerminationGracePeriodSeconds != nil) {
|
(c.StartupProbe != nil && c.StartupProbe.TerminationGracePeriodSeconds != nil) {
|
||||||
inUse = true
|
inUse = true
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
@ -1146,8 +1146,8 @@ func TestDropProbeGracePeriod(t *testing.T) {
|
|||||||
podWithProbeGracePeriod := func() *api.Pod {
|
podWithProbeGracePeriod := func() *api.Pod {
|
||||||
return &api.Pod{
|
return &api.Pod{
|
||||||
Spec: api.PodSpec{
|
Spec: api.PodSpec{
|
||||||
RestartPolicy: api.RestartPolicyNever,
|
RestartPolicy: api.RestartPolicyNever,
|
||||||
Containers: []api.Container{{Name: "container1", Image: "testimage", LivenessProbe: &probe, StartupProbe: &probe}},
|
Containers: []api.Container{{Name: "container1", Image: "testimage", LivenessProbe: &probe, StartupProbe: &probe}},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1176,11 +1176,11 @@ func TestDropProbeGracePeriod(t *testing.T) {
|
|||||||
{
|
{
|
||||||
description: "only has liveness probe-level terminationGracePeriod",
|
description: "only has liveness probe-level terminationGracePeriod",
|
||||||
hasGracePeriod: true,
|
hasGracePeriod: true,
|
||||||
pod: func() *api.Pod {
|
pod: func() *api.Pod {
|
||||||
p := podWithProbeGracePeriod()
|
p := podWithProbeGracePeriod()
|
||||||
p.Spec.Containers[0].StartupProbe.TerminationGracePeriodSeconds = nil
|
p.Spec.Containers[0].StartupProbe.TerminationGracePeriodSeconds = nil
|
||||||
return p
|
return p
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
description: "is nil",
|
description: "is nil",
|
||||||
|
2
pkg/apis/core/v1/zz_generated.conversion.go
generated
2
pkg/apis/core/v1/zz_generated.conversion.go
generated
@ -6467,6 +6467,7 @@ func autoConvert_v1_Probe_To_core_Probe(in *v1.Probe, out *core.Probe, s convers
|
|||||||
out.PeriodSeconds = in.PeriodSeconds
|
out.PeriodSeconds = in.PeriodSeconds
|
||||||
out.SuccessThreshold = in.SuccessThreshold
|
out.SuccessThreshold = in.SuccessThreshold
|
||||||
out.FailureThreshold = in.FailureThreshold
|
out.FailureThreshold = in.FailureThreshold
|
||||||
|
out.TerminationGracePeriodSeconds = (*int64)(unsafe.Pointer(in.TerminationGracePeriodSeconds))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -6484,6 +6485,7 @@ func autoConvert_core_Probe_To_v1_Probe(in *core.Probe, out *v1.Probe, s convers
|
|||||||
out.PeriodSeconds = in.PeriodSeconds
|
out.PeriodSeconds = in.PeriodSeconds
|
||||||
out.SuccessThreshold = in.SuccessThreshold
|
out.SuccessThreshold = in.SuccessThreshold
|
||||||
out.FailureThreshold = in.FailureThreshold
|
out.FailureThreshold = in.FailureThreshold
|
||||||
|
out.TerminationGracePeriodSeconds = (*int64)(unsafe.Pointer(in.TerminationGracePeriodSeconds))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
5
pkg/apis/core/zz_generated.deepcopy.go
generated
5
pkg/apis/core/zz_generated.deepcopy.go
generated
@ -4192,6 +4192,11 @@ func (in *PreferredSchedulingTerm) DeepCopy() *PreferredSchedulingTerm {
|
|||||||
func (in *Probe) DeepCopyInto(out *Probe) {
|
func (in *Probe) DeepCopyInto(out *Probe) {
|
||||||
*out = *in
|
*out = *in
|
||||||
in.Handler.DeepCopyInto(&out.Handler)
|
in.Handler.DeepCopyInto(&out.Handler)
|
||||||
|
if in.TerminationGracePeriodSeconds != nil {
|
||||||
|
in, out := &in.TerminationGracePeriodSeconds, &out.TerminationGracePeriodSeconds
|
||||||
|
*out = new(int64)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
1788
staging/src/k8s.io/api/core/v1/generated.pb.go
generated
1788
staging/src/k8s.io/api/core/v1/generated.pb.go
generated
File diff suppressed because it is too large
Load Diff
@ -3421,7 +3421,8 @@ message PodSpec {
|
|||||||
optional string restartPolicy = 3;
|
optional string restartPolicy = 3;
|
||||||
|
|
||||||
// Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.
|
// Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.
|
||||||
// Value must be non-negative integer. The value zero indicates delete immediately.
|
// Value must be non-negative integer. The value zero indicates stop immediately via
|
||||||
|
// the kill signal (no opportunity to shut down).
|
||||||
// If this value is nil, the default grace period will be used instead.
|
// If this value is nil, the default grace period will be used instead.
|
||||||
// The grace period is the duration in seconds after the processes running in the pod are sent
|
// The grace period is the duration in seconds after the processes running in the pod are sent
|
||||||
// a termination signal and the time when the processes are forcibly halted with a kill signal.
|
// a termination signal and the time when the processes are forcibly halted with a kill signal.
|
||||||
@ -3883,6 +3884,18 @@ message Probe {
|
|||||||
// Defaults to 3. Minimum value is 1.
|
// Defaults to 3. Minimum value is 1.
|
||||||
// +optional
|
// +optional
|
||||||
optional int32 failureThreshold = 6;
|
optional int32 failureThreshold = 6;
|
||||||
|
|
||||||
|
// Optional duration in seconds the pod needs to terminate gracefully upon probe failure.
|
||||||
|
// The grace period is the duration in seconds after the processes running in the pod are sent
|
||||||
|
// a termination signal and the time when the processes are forcibly halted with a kill signal.
|
||||||
|
// Set this value longer than the expected cleanup time for your process.
|
||||||
|
// If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this
|
||||||
|
// value overrides the value provided by the pod spec.
|
||||||
|
// Value must be non-negative integer. The value zero indicates stop immediately via
|
||||||
|
// the kill signal (no opportunity to shut down).
|
||||||
|
// This is an alpha field and requires enabling ProbeTerminationGracePeriod feature gate.
|
||||||
|
// +optional
|
||||||
|
optional int64 terminationGracePeriodSeconds = 7;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Represents a projected volume source
|
// Represents a projected volume source
|
||||||
|
@ -1627,7 +1627,7 @@ var map_PodSpec = map[string]string{
|
|||||||
"containers": "List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated.",
|
"containers": "List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated.",
|
||||||
"ephemeralContainers": "List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature.",
|
"ephemeralContainers": "List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature.",
|
||||||
"restartPolicy": "Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy",
|
"restartPolicy": "Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy",
|
||||||
"terminationGracePeriodSeconds": "Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds.",
|
"terminationGracePeriodSeconds": "Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds.",
|
||||||
"activeDeadlineSeconds": "Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer.",
|
"activeDeadlineSeconds": "Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer.",
|
||||||
"dnsPolicy": "Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.",
|
"dnsPolicy": "Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.",
|
||||||
"nodeSelector": "NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/",
|
"nodeSelector": "NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/",
|
||||||
@ -1777,12 +1777,13 @@ func (PreferredSchedulingTerm) SwaggerDoc() map[string]string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var map_Probe = map[string]string{
|
var map_Probe = map[string]string{
|
||||||
"": "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.",
|
"": "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.",
|
||||||
"initialDelaySeconds": "Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes",
|
"initialDelaySeconds": "Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes",
|
||||||
"timeoutSeconds": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes",
|
"timeoutSeconds": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes",
|
||||||
"periodSeconds": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.",
|
"periodSeconds": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.",
|
||||||
"successThreshold": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.",
|
"successThreshold": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.",
|
||||||
"failureThreshold": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.",
|
"failureThreshold": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.",
|
||||||
|
"terminationGracePeriodSeconds": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is an alpha field and requires enabling ProbeTerminationGracePeriod feature gate.",
|
||||||
}
|
}
|
||||||
|
|
||||||
func (Probe) SwaggerDoc() map[string]string {
|
func (Probe) SwaggerDoc() map[string]string {
|
||||||
|
@ -4190,6 +4190,11 @@ func (in *PreferredSchedulingTerm) DeepCopy() *PreferredSchedulingTerm {
|
|||||||
func (in *Probe) DeepCopyInto(out *Probe) {
|
func (in *Probe) DeepCopyInto(out *Probe) {
|
||||||
*out = *in
|
*out = *in
|
||||||
in.Handler.DeepCopyInto(&out.Handler)
|
in.Handler.DeepCopyInto(&out.Handler)
|
||||||
|
if in.TerminationGracePeriodSeconds != nil {
|
||||||
|
in, out := &in.TerminationGracePeriodSeconds, &out.TerminationGracePeriodSeconds
|
||||||
|
*out = new(int64)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
BIN
staging/src/k8s.io/api/testdata/HEAD/batch.v1.Job.pb
vendored
BIN
staging/src/k8s.io/api/testdata/HEAD/batch.v1.Job.pb
vendored
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -148,7 +148,8 @@
|
|||||||
"timeoutSeconds": 1563658126,
|
"timeoutSeconds": 1563658126,
|
||||||
"periodSeconds": -1771047449,
|
"periodSeconds": -1771047449,
|
||||||
"successThreshold": -1280107919,
|
"successThreshold": -1280107919,
|
||||||
"failureThreshold": -54954325
|
"failureThreshold": -54954325,
|
||||||
|
"terminationGracePeriodSeconds": 8559948711650432497
|
||||||
},
|
},
|
||||||
"readinessProbe": {
|
"readinessProbe": {
|
||||||
"exec": {
|
"exec": {
|
||||||
@ -158,138 +159,141 @@
|
|||||||
},
|
},
|
||||||
"httpGet": {
|
"httpGet": {
|
||||||
"path": "53",
|
"path": "53",
|
||||||
"port": "54",
|
"port": -1395989138,
|
||||||
"host": "55",
|
"host": "54",
|
||||||
"scheme": "OŖ樅尷",
|
"scheme": "斎AO6ĴC浔Ű壝ž",
|
||||||
"httpHeaders": [
|
"httpHeaders": [
|
||||||
{
|
{
|
||||||
"name": "56",
|
"name": "55",
|
||||||
"value": "57"
|
"value": "56"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"tcpSocket": {
|
"tcpSocket": {
|
||||||
"port": 2136826132,
|
"port": 180803110,
|
||||||
"host": "58"
|
"host": "57"
|
||||||
},
|
},
|
||||||
"initialDelaySeconds": 819364842,
|
"initialDelaySeconds": -2014231015,
|
||||||
"timeoutSeconds": 933484239,
|
"timeoutSeconds": 1488277679,
|
||||||
"periodSeconds": -983896210,
|
"periodSeconds": -1679907303,
|
||||||
"successThreshold": 552512122,
|
"successThreshold": -1051545416,
|
||||||
"failureThreshold": -833209928
|
"failureThreshold": 1305372099,
|
||||||
|
"terminationGracePeriodSeconds": -1220632347188845753
|
||||||
},
|
},
|
||||||
"startupProbe": {
|
"startupProbe": {
|
||||||
"exec": {
|
"exec": {
|
||||||
"command": [
|
"command": [
|
||||||
"59"
|
"58"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"httpGet": {
|
"httpGet": {
|
||||||
"path": "60",
|
"path": "59",
|
||||||
"port": 180803110,
|
"port": 1229400382,
|
||||||
"host": "61",
|
"host": "60",
|
||||||
"scheme": "ņ錕?øēƺ",
|
"scheme": "3ƆìQ喞艋涽託仭",
|
||||||
"httpHeaders": [
|
"httpHeaders": [
|
||||||
{
|
{
|
||||||
"name": "62",
|
"name": "61",
|
||||||
"value": "63"
|
"value": "62"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"tcpSocket": {
|
"tcpSocket": {
|
||||||
"port": "64",
|
"port": "63",
|
||||||
"host": "65"
|
"host": "64"
|
||||||
},
|
},
|
||||||
"initialDelaySeconds": -816398166,
|
"initialDelaySeconds": 2076966617,
|
||||||
"timeoutSeconds": 1229400382,
|
"timeoutSeconds": 202362764,
|
||||||
"periodSeconds": -1583208879,
|
"periodSeconds": -560446848,
|
||||||
"successThreshold": 1088264954,
|
"successThreshold": -1098992377,
|
||||||
"failureThreshold": 13573196
|
"failureThreshold": -1009864962,
|
||||||
|
"terminationGracePeriodSeconds": 2618170937706035036
|
||||||
},
|
},
|
||||||
"lifecycle": {
|
"lifecycle": {
|
||||||
"postStart": {
|
"postStart": {
|
||||||
"exec": {
|
"exec": {
|
||||||
"command": [
|
"command": [
|
||||||
"66"
|
"65"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"httpGet": {
|
"httpGet": {
|
||||||
"path": "67",
|
"path": "66",
|
||||||
"port": -1293912096,
|
"port": -503563033,
|
||||||
"host": "68",
|
"host": "67",
|
||||||
"scheme": "託仭",
|
"scheme": "趕ã/鈱$-议}ȧ外ĺ稥氹Ç|¶鎚¡ ",
|
||||||
"httpHeaders": [
|
"httpHeaders": [
|
||||||
{
|
{
|
||||||
"name": "69",
|
"name": "68",
|
||||||
"value": "70"
|
"value": "69"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"tcpSocket": {
|
"tcpSocket": {
|
||||||
"port": "71",
|
"port": "70",
|
||||||
"host": "72"
|
"host": "71"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"preStop": {
|
"preStop": {
|
||||||
"exec": {
|
"exec": {
|
||||||
"command": [
|
"command": [
|
||||||
"73"
|
"72"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"httpGet": {
|
"httpGet": {
|
||||||
"path": "74",
|
"path": "73",
|
||||||
"port": "75",
|
"port": 991085362,
|
||||||
"host": "76",
|
"host": "74",
|
||||||
"scheme": "鴜Ł%Ũ",
|
"scheme": "磩窮秳ķ蟒苾h^樅燴壩卄",
|
||||||
"httpHeaders": [
|
"httpHeaders": [
|
||||||
{
|
{
|
||||||
"name": "77",
|
"name": "75",
|
||||||
"value": "78"
|
"value": "76"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"tcpSocket": {
|
"tcpSocket": {
|
||||||
"port": "79",
|
"port": -479087071,
|
||||||
"host": "80"
|
"host": "77"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"terminationMessagePath": "81",
|
"terminationMessagePath": "78",
|
||||||
"terminationMessagePolicy": "Ņ£",
|
"terminationMessagePolicy": "?讦ĭÐ",
|
||||||
|
"imagePullPolicy": "/C龷ȪÆl殛瓷雼浢Ü礽绅",
|
||||||
"securityContext": {
|
"securityContext": {
|
||||||
"capabilities": {
|
"capabilities": {
|
||||||
"add": [
|
"add": [
|
||||||
"2Ō¾\\ĒP鄸靇杧ž"
|
"\"ŵw^Ü郀叚Fi皬择,Q"
|
||||||
],
|
],
|
||||||
"drop": [
|
"drop": [
|
||||||
"娲瘹ɭȊɚɎ(dɅ囥糷磩窮秳ķ蟒苾h^"
|
"ȸ{+"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"privileged": false,
|
"privileged": false,
|
||||||
"seLinuxOptions": {
|
"seLinuxOptions": {
|
||||||
"user": "82",
|
"user": "79",
|
||||||
"role": "83",
|
"role": "80",
|
||||||
"type": "84",
|
"type": "81",
|
||||||
"level": "85"
|
"level": "82"
|
||||||
},
|
},
|
||||||
"windowsOptions": {
|
"windowsOptions": {
|
||||||
"gmsaCredentialSpecName": "86",
|
"gmsaCredentialSpecName": "83",
|
||||||
"gmsaCredentialSpec": "87",
|
"gmsaCredentialSpec": "84",
|
||||||
"runAsUserName": "88"
|
"runAsUserName": "85"
|
||||||
},
|
},
|
||||||
"runAsUser": 4491726672505793472,
|
"runAsUser": -1466062763730980131,
|
||||||
"runAsGroup": -5441351197948631872,
|
"runAsGroup": 8360795821384820753,
|
||||||
"runAsNonRoot": true,
|
"runAsNonRoot": false,
|
||||||
"readOnlyRootFilesystem": true,
|
"readOnlyRootFilesystem": true,
|
||||||
"allowPrivilegeEscalation": true,
|
"allowPrivilegeEscalation": true,
|
||||||
"procMount": "ĭÐl恕ɍȇ廄裭4懙",
|
"procMount": "Ƙq/",
|
||||||
"seccompProfile": {
|
"seccompProfile": {
|
||||||
"type": "嵒ƫS捕ɷD¡轫n",
|
"type": " u衲\u003c¿燥",
|
||||||
"localhostProfile": "89"
|
"localhostProfile": "86"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"stdin": true,
|
"tty": true,
|
||||||
"targetContainerName": "90"
|
"targetContainerName": "87"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
Binary file not shown.
@ -32,37 +32,38 @@ ephemeralContainers:
|
|||||||
name: "28"
|
name: "28"
|
||||||
optional: false
|
optional: false
|
||||||
image: "20"
|
image: "20"
|
||||||
|
imagePullPolicy: /C龷ȪÆl殛瓷雼浢Ü礽绅
|
||||||
lifecycle:
|
lifecycle:
|
||||||
postStart:
|
postStart:
|
||||||
exec:
|
exec:
|
||||||
command:
|
command:
|
||||||
- "66"
|
- "65"
|
||||||
httpGet:
|
httpGet:
|
||||||
host: "68"
|
host: "67"
|
||||||
httpHeaders:
|
httpHeaders:
|
||||||
- name: "69"
|
- name: "68"
|
||||||
value: "70"
|
value: "69"
|
||||||
path: "67"
|
path: "66"
|
||||||
port: -1293912096
|
port: -503563033
|
||||||
scheme: 託仭
|
scheme: '趕ã/鈱$-议}ȧ外ĺ稥氹Ç|¶鎚¡ '
|
||||||
tcpSocket:
|
tcpSocket:
|
||||||
host: "72"
|
host: "71"
|
||||||
port: "71"
|
port: "70"
|
||||||
preStop:
|
preStop:
|
||||||
exec:
|
exec:
|
||||||
command:
|
command:
|
||||||
- "73"
|
- "72"
|
||||||
httpGet:
|
httpGet:
|
||||||
host: "76"
|
host: "74"
|
||||||
httpHeaders:
|
httpHeaders:
|
||||||
- name: "77"
|
- name: "75"
|
||||||
value: "78"
|
value: "76"
|
||||||
path: "74"
|
path: "73"
|
||||||
port: "75"
|
port: 991085362
|
||||||
scheme: 鴜Ł%Ũ
|
scheme: 磩窮秳ķ蟒苾h^樅燴壩卄
|
||||||
tcpSocket:
|
tcpSocket:
|
||||||
host: "80"
|
host: "77"
|
||||||
port: "79"
|
port: -479087071
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
exec:
|
exec:
|
||||||
command:
|
command:
|
||||||
@ -82,6 +83,7 @@ ephemeralContainers:
|
|||||||
tcpSocket:
|
tcpSocket:
|
||||||
host: "51"
|
host: "51"
|
||||||
port: 1366345526
|
port: 1366345526
|
||||||
|
terminationGracePeriodSeconds: 8559948711650432497
|
||||||
timeoutSeconds: 1563658126
|
timeoutSeconds: 1563658126
|
||||||
name: "19"
|
name: "19"
|
||||||
ports:
|
ports:
|
||||||
@ -93,22 +95,23 @@ ephemeralContainers:
|
|||||||
exec:
|
exec:
|
||||||
command:
|
command:
|
||||||
- "52"
|
- "52"
|
||||||
failureThreshold: -833209928
|
failureThreshold: 1305372099
|
||||||
httpGet:
|
httpGet:
|
||||||
host: "55"
|
host: "54"
|
||||||
httpHeaders:
|
httpHeaders:
|
||||||
- name: "56"
|
- name: "55"
|
||||||
value: "57"
|
value: "56"
|
||||||
path: "53"
|
path: "53"
|
||||||
port: "54"
|
port: -1395989138
|
||||||
scheme: OŖ樅尷
|
scheme: 斎AO6ĴC浔Ű壝ž
|
||||||
initialDelaySeconds: 819364842
|
initialDelaySeconds: -2014231015
|
||||||
periodSeconds: -983896210
|
periodSeconds: -1679907303
|
||||||
successThreshold: 552512122
|
successThreshold: -1051545416
|
||||||
tcpSocket:
|
tcpSocket:
|
||||||
host: "58"
|
host: "57"
|
||||||
port: 2136826132
|
port: 180803110
|
||||||
timeoutSeconds: 933484239
|
terminationGracePeriodSeconds: -1220632347188845753
|
||||||
|
timeoutSeconds: 1488277679
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
V夸eɑeʤ: "420"
|
V夸eɑeʤ: "420"
|
||||||
@ -118,51 +121,52 @@ ephemeralContainers:
|
|||||||
allowPrivilegeEscalation: true
|
allowPrivilegeEscalation: true
|
||||||
capabilities:
|
capabilities:
|
||||||
add:
|
add:
|
||||||
- 2Ō¾\ĒP鄸靇杧ž
|
- '"ŵw^Ü郀叚Fi皬择,Q'
|
||||||
drop:
|
drop:
|
||||||
- 娲瘹ɭȊɚɎ(dɅ囥糷磩窮秳ķ蟒苾h^
|
- ȸ{+
|
||||||
privileged: false
|
privileged: false
|
||||||
procMount: ĭÐl恕ɍȇ廄裭4懙
|
procMount: Ƙq/
|
||||||
readOnlyRootFilesystem: true
|
readOnlyRootFilesystem: true
|
||||||
runAsGroup: -5441351197948631872
|
runAsGroup: 8360795821384820753
|
||||||
runAsNonRoot: true
|
runAsNonRoot: false
|
||||||
runAsUser: 4491726672505793472
|
runAsUser: -1466062763730980131
|
||||||
seLinuxOptions:
|
seLinuxOptions:
|
||||||
level: "85"
|
level: "82"
|
||||||
role: "83"
|
role: "80"
|
||||||
type: "84"
|
type: "81"
|
||||||
user: "82"
|
user: "79"
|
||||||
seccompProfile:
|
seccompProfile:
|
||||||
localhostProfile: "89"
|
localhostProfile: "86"
|
||||||
type: 嵒ƫS捕ɷD¡轫n
|
type: ' u衲<¿燥'
|
||||||
windowsOptions:
|
windowsOptions:
|
||||||
gmsaCredentialSpec: "87"
|
gmsaCredentialSpec: "84"
|
||||||
gmsaCredentialSpecName: "86"
|
gmsaCredentialSpecName: "83"
|
||||||
runAsUserName: "88"
|
runAsUserName: "85"
|
||||||
startupProbe:
|
startupProbe:
|
||||||
exec:
|
exec:
|
||||||
command:
|
command:
|
||||||
- "59"
|
- "58"
|
||||||
failureThreshold: 13573196
|
failureThreshold: -1009864962
|
||||||
httpGet:
|
httpGet:
|
||||||
host: "61"
|
host: "60"
|
||||||
httpHeaders:
|
httpHeaders:
|
||||||
- name: "62"
|
- name: "61"
|
||||||
value: "63"
|
value: "62"
|
||||||
path: "60"
|
path: "59"
|
||||||
port: 180803110
|
port: 1229400382
|
||||||
scheme: ņ錕?øēƺ
|
scheme: 3ƆìQ喞艋涽託仭
|
||||||
initialDelaySeconds: -816398166
|
initialDelaySeconds: 2076966617
|
||||||
periodSeconds: -1583208879
|
periodSeconds: -560446848
|
||||||
successThreshold: 1088264954
|
successThreshold: -1098992377
|
||||||
tcpSocket:
|
tcpSocket:
|
||||||
host: "65"
|
host: "64"
|
||||||
port: "64"
|
port: "63"
|
||||||
timeoutSeconds: 1229400382
|
terminationGracePeriodSeconds: 2618170937706035036
|
||||||
stdin: true
|
timeoutSeconds: 202362764
|
||||||
targetContainerName: "90"
|
targetContainerName: "87"
|
||||||
terminationMessagePath: "81"
|
terminationMessagePath: "78"
|
||||||
terminationMessagePolicy: ң
|
terminationMessagePolicy: ?讦ĭÐ
|
||||||
|
tty: true
|
||||||
volumeDevices:
|
volumeDevices:
|
||||||
- devicePath: "44"
|
- devicePath: "44"
|
||||||
name: "43"
|
name: "43"
|
||||||
|
File diff suppressed because it is too large
Load Diff
BIN
staging/src/k8s.io/api/testdata/HEAD/core.v1.Pod.pb
vendored
BIN
staging/src/k8s.io/api/testdata/HEAD/core.v1.Pod.pb
vendored
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -21,12 +21,13 @@ package v1
|
|||||||
// ProbeApplyConfiguration represents an declarative configuration of the Probe type for use
|
// ProbeApplyConfiguration represents an declarative configuration of the Probe type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ProbeApplyConfiguration struct {
|
type ProbeApplyConfiguration struct {
|
||||||
HandlerApplyConfiguration `json:",inline"`
|
HandlerApplyConfiguration `json:",inline"`
|
||||||
InitialDelaySeconds *int32 `json:"initialDelaySeconds,omitempty"`
|
InitialDelaySeconds *int32 `json:"initialDelaySeconds,omitempty"`
|
||||||
TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"`
|
TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"`
|
||||||
PeriodSeconds *int32 `json:"periodSeconds,omitempty"`
|
PeriodSeconds *int32 `json:"periodSeconds,omitempty"`
|
||||||
SuccessThreshold *int32 `json:"successThreshold,omitempty"`
|
SuccessThreshold *int32 `json:"successThreshold,omitempty"`
|
||||||
FailureThreshold *int32 `json:"failureThreshold,omitempty"`
|
FailureThreshold *int32 `json:"failureThreshold,omitempty"`
|
||||||
|
TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ProbeApplyConfiguration constructs an declarative configuration of the Probe type for use with
|
// ProbeApplyConfiguration constructs an declarative configuration of the Probe type for use with
|
||||||
@ -98,3 +99,11 @@ func (b *ProbeApplyConfiguration) WithFailureThreshold(value int32) *ProbeApplyC
|
|||||||
b.FailureThreshold = &value
|
b.FailureThreshold = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WithTerminationGracePeriodSeconds sets the TerminationGracePeriodSeconds field in the declarative configuration to the given value
|
||||||
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
|
// If called multiple times, the TerminationGracePeriodSeconds field is set to the value of the last call.
|
||||||
|
func (b *ProbeApplyConfiguration) WithTerminationGracePeriodSeconds(value int64) *ProbeApplyConfiguration {
|
||||||
|
b.TerminationGracePeriodSeconds = &value
|
||||||
|
return b
|
||||||
|
}
|
||||||
|
@ -5514,6 +5514,9 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
- name: tcpSocket
|
- name: tcpSocket
|
||||||
type:
|
type:
|
||||||
namedType: io.k8s.api.core.v1.TCPSocketAction
|
namedType: io.k8s.api.core.v1.TCPSocketAction
|
||||||
|
- name: terminationGracePeriodSeconds
|
||||||
|
type:
|
||||||
|
scalar: numeric
|
||||||
- name: timeoutSeconds
|
- name: timeoutSeconds
|
||||||
type:
|
type:
|
||||||
scalar: numeric
|
scalar: numeric
|
||||||
|
Loading…
Reference in New Issue
Block a user