Generated changes for probe terminationGracePeriodSeconds

This commit is contained in:
Elana Hashman 2021-03-11 16:40:40 -08:00
parent 06e634e216
commit 7df1259d09
No known key found for this signature in database
GPG Key ID: D37F7B2A20B48FA0
74 changed files with 17808 additions and 17256 deletions

View File

@ -8957,7 +8957,7 @@
"type": "string"
},
"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",
"type": "integer"
},
@ -9249,6 +9249,11 @@
"$ref": "#/definitions/io.k8s.api.core.v1.TCPSocketAction",
"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": {
"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",

View File

@ -836,7 +836,7 @@ func probeGracePeriodInUse(podSpec *api.PodSpec) bool {
VisitContainers(podSpec, AllContainers, func(c *api.Container, containerType ContainerType) bool {
// cannot be set for readiness probes
if (c.LivenessProbe != nil && c.LivenessProbe.TerminationGracePeriodSeconds != nil) ||
(c.StartupProbe != nil && c.StartupProbe.TerminationGracePeriodSeconds != nil) {
(c.StartupProbe != nil && c.StartupProbe.TerminationGracePeriodSeconds != nil) {
inUse = true
return false
}

View File

@ -1146,8 +1146,8 @@ func TestDropProbeGracePeriod(t *testing.T) {
podWithProbeGracePeriod := func() *api.Pod {
return &api.Pod{
Spec: api.PodSpec{
RestartPolicy: api.RestartPolicyNever,
Containers: []api.Container{{Name: "container1", Image: "testimage", LivenessProbe: &probe, StartupProbe: &probe}},
RestartPolicy: api.RestartPolicyNever,
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",
hasGracePeriod: true,
pod: func() *api.Pod {
p := podWithProbeGracePeriod()
p.Spec.Containers[0].StartupProbe.TerminationGracePeriodSeconds = nil
return p
},
pod: func() *api.Pod {
p := podWithProbeGracePeriod()
p.Spec.Containers[0].StartupProbe.TerminationGracePeriodSeconds = nil
return p
},
},
{
description: "is nil",

View File

@ -6467,6 +6467,7 @@ func autoConvert_v1_Probe_To_core_Probe(in *v1.Probe, out *core.Probe, s convers
out.PeriodSeconds = in.PeriodSeconds
out.SuccessThreshold = in.SuccessThreshold
out.FailureThreshold = in.FailureThreshold
out.TerminationGracePeriodSeconds = (*int64)(unsafe.Pointer(in.TerminationGracePeriodSeconds))
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.SuccessThreshold = in.SuccessThreshold
out.FailureThreshold = in.FailureThreshold
out.TerminationGracePeriodSeconds = (*int64)(unsafe.Pointer(in.TerminationGracePeriodSeconds))
return nil
}

View File

@ -4192,6 +4192,11 @@ func (in *PreferredSchedulingTerm) DeepCopy() *PreferredSchedulingTerm {
func (in *Probe) DeepCopyInto(out *Probe) {
*out = *in
in.Handler.DeepCopyInto(&out.Handler)
if in.TerminationGracePeriodSeconds != nil {
in, out := &in.TerminationGracePeriodSeconds, &out.TerminationGracePeriodSeconds
*out = new(int64)
**out = **in
}
return
}

File diff suppressed because it is too large Load Diff

View File

@ -3421,7 +3421,8 @@ message PodSpec {
optional string restartPolicy = 3;
// 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.
// 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.
@ -3883,6 +3884,18 @@ message Probe {
// Defaults to 3. Minimum value is 1.
// +optional
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

View File

@ -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.",
"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",
"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.",
"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/",
@ -1777,12 +1777,13 @@ func (PreferredSchedulingTerm) SwaggerDoc() 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.",
"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",
"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.",
"failureThreshold": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.",
"": "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",
"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.",
"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.",
"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 {

View File

@ -4190,6 +4190,11 @@ func (in *PreferredSchedulingTerm) DeepCopy() *PreferredSchedulingTerm {
func (in *Probe) DeepCopyInto(out *Probe) {
*out = *in
in.Handler.DeepCopyInto(&out.Handler)
if in.TerminationGracePeriodSeconds != nil {
in, out := &in.TerminationGracePeriodSeconds, &out.TerminationGracePeriodSeconds
*out = new(int64)
**out = **in
}
return
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -148,7 +148,8 @@
"timeoutSeconds": 1563658126,
"periodSeconds": -1771047449,
"successThreshold": -1280107919,
"failureThreshold": -54954325
"failureThreshold": -54954325,
"terminationGracePeriodSeconds": 8559948711650432497
},
"readinessProbe": {
"exec": {
@ -158,138 +159,141 @@
},
"httpGet": {
"path": "53",
"port": "54",
"host": "55",
"scheme": "OŖ樅尷",
"port": -1395989138,
"host": "54",
"scheme": "斎AO6ĴC浔Ű壝ž",
"httpHeaders": [
{
"name": "56",
"value": "57"
"name": "55",
"value": "56"
}
]
},
"tcpSocket": {
"port": 2136826132,
"host": "58"
"port": 180803110,
"host": "57"
},
"initialDelaySeconds": 819364842,
"timeoutSeconds": 933484239,
"periodSeconds": -983896210,
"successThreshold": 552512122,
"failureThreshold": -833209928
"initialDelaySeconds": -2014231015,
"timeoutSeconds": 1488277679,
"periodSeconds": -1679907303,
"successThreshold": -1051545416,
"failureThreshold": 1305372099,
"terminationGracePeriodSeconds": -1220632347188845753
},
"startupProbe": {
"exec": {
"command": [
"59"
"58"
]
},
"httpGet": {
"path": "60",
"port": 180803110,
"host": "61",
"scheme": "ņ錕?øēƺ",
"path": "59",
"port": 1229400382,
"host": "60",
"scheme": "3ƆìQ喞艋涽託仭",
"httpHeaders": [
{
"name": "62",
"value": "63"
"name": "61",
"value": "62"
}
]
},
"tcpSocket": {
"port": "64",
"host": "65"
"port": "63",
"host": "64"
},
"initialDelaySeconds": -816398166,
"timeoutSeconds": 1229400382,
"periodSeconds": -1583208879,
"successThreshold": 1088264954,
"failureThreshold": 13573196
"initialDelaySeconds": 2076966617,
"timeoutSeconds": 202362764,
"periodSeconds": -560446848,
"successThreshold": -1098992377,
"failureThreshold": -1009864962,
"terminationGracePeriodSeconds": 2618170937706035036
},
"lifecycle": {
"postStart": {
"exec": {
"command": [
"66"
"65"
]
},
"httpGet": {
"path": "67",
"port": -1293912096,
"host": "68",
"scheme": "託仭",
"path": "66",
"port": -503563033,
"host": "67",
"scheme": "趕ã/鈱$-议}ȧ外ĺ稥氹Ç|¶鎚¡ ",
"httpHeaders": [
{
"name": "69",
"value": "70"
"name": "68",
"value": "69"
}
]
},
"tcpSocket": {
"port": "71",
"host": "72"
"port": "70",
"host": "71"
}
},
"preStop": {
"exec": {
"command": [
"73"
"72"
]
},
"httpGet": {
"path": "74",
"port": "75",
"host": "76",
"scheme": "鴜Ł%Ũ",
"path": "73",
"port": 991085362,
"host": "74",
"scheme": "磩窮秳ķ蟒苾h^樅燴壩卄",
"httpHeaders": [
{
"name": "77",
"value": "78"
"name": "75",
"value": "76"
}
]
},
"tcpSocket": {
"port": "79",
"host": "80"
"port": -479087071,
"host": "77"
}
}
},
"terminationMessagePath": "81",
"terminationMessagePolicy": "Ņ£",
"terminationMessagePath": "78",
"terminationMessagePolicy": "?讦ĭÐ",
"imagePullPolicy": "/C龷ȪÆl殛瓷雼浢Ü礽绅",
"securityContext": {
"capabilities": {
"add": [
"2Ō¾\\ĒP鄸靇杧ž"
"\"ŵw^Ü郀叚Fi皬择,Q"
],
"drop": [
"娲瘹ɭȊɚɎ(dɅ囥糷磩窮秳ķ蟒苾h^"
"ȸ{+"
]
},
"privileged": false,
"seLinuxOptions": {
"user": "82",
"role": "83",
"type": "84",
"level": "85"
"user": "79",
"role": "80",
"type": "81",
"level": "82"
},
"windowsOptions": {
"gmsaCredentialSpecName": "86",
"gmsaCredentialSpec": "87",
"runAsUserName": "88"
"gmsaCredentialSpecName": "83",
"gmsaCredentialSpec": "84",
"runAsUserName": "85"
},
"runAsUser": 4491726672505793472,
"runAsGroup": -5441351197948631872,
"runAsNonRoot": true,
"runAsUser": -1466062763730980131,
"runAsGroup": 8360795821384820753,
"runAsNonRoot": false,
"readOnlyRootFilesystem": true,
"allowPrivilegeEscalation": true,
"procMount": "ĭÐl恕ɍȇ廄裭4懙",
"procMount": "Ƙq/",
"seccompProfile": {
"type": "嵒ƫS捕ɷD¡轫n",
"localhostProfile": "89"
"type": " u衲\u003c¿燥",
"localhostProfile": "86"
}
},
"stdin": true,
"targetContainerName": "90"
"tty": true,
"targetContainerName": "87"
}
]
}

View File

@ -32,37 +32,38 @@ ephemeralContainers:
name: "28"
optional: false
image: "20"
imagePullPolicy: /C龷ȪÆl殛瓷雼浢Ü礽绅
lifecycle:
postStart:
exec:
command:
- "66"
- "65"
httpGet:
host: "68"
host: "67"
httpHeaders:
- name: "69"
value: "70"
path: "67"
port: -1293912096
scheme: 託仭
- name: "68"
value: "69"
path: "66"
port: -503563033
scheme: '趕ã/鈱$-议}ȧ外ĺ稥氹Ç|¶鎚¡ '
tcpSocket:
host: "72"
port: "71"
host: "71"
port: "70"
preStop:
exec:
command:
- "73"
- "72"
httpGet:
host: "76"
host: "74"
httpHeaders:
- name: "77"
value: "78"
path: "74"
port: "75"
scheme: 鴜Ł%Ũ
- name: "75"
value: "76"
path: "73"
port: 991085362
scheme: 磩窮秳ķ蟒苾h^樅燴壩卄
tcpSocket:
host: "80"
port: "79"
host: "77"
port: -479087071
livenessProbe:
exec:
command:
@ -82,6 +83,7 @@ ephemeralContainers:
tcpSocket:
host: "51"
port: 1366345526
terminationGracePeriodSeconds: 8559948711650432497
timeoutSeconds: 1563658126
name: "19"
ports:
@ -93,22 +95,23 @@ ephemeralContainers:
exec:
command:
- "52"
failureThreshold: -833209928
failureThreshold: 1305372099
httpGet:
host: "55"
host: "54"
httpHeaders:
- name: "56"
value: "57"
- name: "55"
value: "56"
path: "53"
port: "54"
scheme: OŖ樅尷
initialDelaySeconds: 819364842
periodSeconds: -983896210
successThreshold: 552512122
port: -1395989138
scheme: 斎AO6ĴC浔Ű壝ž
initialDelaySeconds: -2014231015
periodSeconds: -1679907303
successThreshold: -1051545416
tcpSocket:
host: "58"
port: 2136826132
timeoutSeconds: 933484239
host: "57"
port: 180803110
terminationGracePeriodSeconds: -1220632347188845753
timeoutSeconds: 1488277679
resources:
limits:
V夸eɑ: "420"
@ -118,51 +121,52 @@ ephemeralContainers:
allowPrivilegeEscalation: true
capabilities:
add:
- 2Ō¾\ĒP鄸靇杧ž
- '"ŵw^Ü郀叚Fi皬择,Q'
drop:
- 娲瘹ɭȊɚɎ(dɅ囥糷磩窮秳ķ蟒苾h^
- ȸ{+
privileged: false
procMount: ĭÐl恕ɍȇ廄裭4懙
procMount: Ƙq/
readOnlyRootFilesystem: true
runAsGroup: -5441351197948631872
runAsNonRoot: true
runAsUser: 4491726672505793472
runAsGroup: 8360795821384820753
runAsNonRoot: false
runAsUser: -1466062763730980131
seLinuxOptions:
level: "85"
role: "83"
type: "84"
user: "82"
level: "82"
role: "80"
type: "81"
user: "79"
seccompProfile:
localhostProfile: "89"
type: 嵒ƫS捕ɷD¡轫n
localhostProfile: "86"
type: ' u衲<¿燥'
windowsOptions:
gmsaCredentialSpec: "87"
gmsaCredentialSpecName: "86"
runAsUserName: "88"
gmsaCredentialSpec: "84"
gmsaCredentialSpecName: "83"
runAsUserName: "85"
startupProbe:
exec:
command:
- "59"
failureThreshold: 13573196
- "58"
failureThreshold: -1009864962
httpGet:
host: "61"
host: "60"
httpHeaders:
- name: "62"
value: "63"
path: "60"
port: 180803110
scheme: ņ錕?øēƺ
initialDelaySeconds: -816398166
periodSeconds: -1583208879
successThreshold: 1088264954
- name: "61"
value: "62"
path: "59"
port: 1229400382
scheme: 3ƆìQ喞艋涽託仭
initialDelaySeconds: 2076966617
periodSeconds: -560446848
successThreshold: -1098992377
tcpSocket:
host: "65"
port: "64"
timeoutSeconds: 1229400382
stdin: true
targetContainerName: "90"
terminationMessagePath: "81"
terminationMessagePolicy: ң
host: "64"
port: "63"
terminationGracePeriodSeconds: 2618170937706035036
timeoutSeconds: 202362764
targetContainerName: "87"
terminationMessagePath: "78"
terminationMessagePolicy: ?讦ĭÐ
tty: true
volumeDevices:
- devicePath: "44"
name: "43"

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -21,12 +21,13 @@ package v1
// ProbeApplyConfiguration represents an declarative configuration of the Probe type for use
// with apply.
type ProbeApplyConfiguration struct {
HandlerApplyConfiguration `json:",inline"`
InitialDelaySeconds *int32 `json:"initialDelaySeconds,omitempty"`
TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"`
PeriodSeconds *int32 `json:"periodSeconds,omitempty"`
SuccessThreshold *int32 `json:"successThreshold,omitempty"`
FailureThreshold *int32 `json:"failureThreshold,omitempty"`
HandlerApplyConfiguration `json:",inline"`
InitialDelaySeconds *int32 `json:"initialDelaySeconds,omitempty"`
TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"`
PeriodSeconds *int32 `json:"periodSeconds,omitempty"`
SuccessThreshold *int32 `json:"successThreshold,omitempty"`
FailureThreshold *int32 `json:"failureThreshold,omitempty"`
TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"`
}
// 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
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
}

View File

@ -5514,6 +5514,9 @@ var schemaYAML = typed.YAMLObject(`types:
- name: tcpSocket
type:
namedType: io.k8s.api.core.v1.TCPSocketAction
- name: terminationGracePeriodSeconds
type:
scalar: numeric
- name: timeoutSeconds
type:
scalar: numeric