mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +00:00
Add missing comments in k8s.io/api/core/v1
Signed-off-by: Bo Wang <wangbob@uniontech.com>
This commit is contained in:
parent
af41aa1d9f
commit
495af2a3d4
30
api/openapi-spec/swagger.json
generated
30
api/openapi-spec/swagger.json
generated
@ -7298,6 +7298,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"io.k8s.api.core.v1.GRPCAction": {
|
||||
"description": "GRPCAction specifies an action involving a GRPC service.",
|
||||
"properties": {
|
||||
"port": {
|
||||
"description": "Port number of the gRPC service. Number must be in the range 1 to 65535.",
|
||||
@ -7661,19 +7662,19 @@
|
||||
"properties": {
|
||||
"exec": {
|
||||
"$ref": "#/definitions/io.k8s.api.core.v1.ExecAction",
|
||||
"description": "Exec specifies the action to take."
|
||||
"description": "Exec specifies a command to execute in the container."
|
||||
},
|
||||
"httpGet": {
|
||||
"$ref": "#/definitions/io.k8s.api.core.v1.HTTPGetAction",
|
||||
"description": "HTTPGet specifies the http request to perform."
|
||||
"description": "HTTPGet specifies an HTTP GET request to perform."
|
||||
},
|
||||
"sleep": {
|
||||
"$ref": "#/definitions/io.k8s.api.core.v1.SleepAction",
|
||||
"description": "Sleep represents the duration that the container should sleep before being terminated."
|
||||
"description": "Sleep represents a duration that the container should sleep."
|
||||
},
|
||||
"tcpSocket": {
|
||||
"$ref": "#/definitions/io.k8s.api.core.v1.TCPSocketAction",
|
||||
"description": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified."
|
||||
"description": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for backward compatibility. There is no validation of this field and lifecycle hooks will fail at runtime when it is specified."
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
@ -7980,12 +7981,15 @@
|
||||
"description": "NamespaceCondition contains details about state of namespace.",
|
||||
"properties": {
|
||||
"lastTransitionTime": {
|
||||
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time"
|
||||
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time",
|
||||
"description": "Last time the condition transitioned from one status to another."
|
||||
},
|
||||
"message": {
|
||||
"description": "Human-readable message indicating details about last transition.",
|
||||
"type": "string"
|
||||
},
|
||||
"reason": {
|
||||
"description": "Unique, one-word, CamelCase reason for the condition's last transition.",
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
@ -8698,9 +8702,11 @@
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"description": "Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=state%20of%20pvc-,conditions.status,-(string)%2C%20required",
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"description": "Type is the type of the condition. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=set%20to%20%27ResizeStarted%27.-,PersistentVolumeClaimCondition,-contains%20details%20about",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
@ -9292,10 +9298,11 @@
|
||||
"description": "PodDNSConfigOption defines DNS resolver options of a pod.",
|
||||
"properties": {
|
||||
"name": {
|
||||
"description": "Required.",
|
||||
"description": "Name is this DNS resolver option's name. Required.",
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"description": "Value is this DNS resolver option's value.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
@ -9955,6 +9962,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"io.k8s.api.core.v1.PortStatus": {
|
||||
"description": "PortStatus represents the error condition of a service port",
|
||||
"properties": {
|
||||
"error": {
|
||||
"description": "Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use\n CamelCase names\n- cloud provider specific error values must have names that comply with the\n format foo.example.com/CamelCase.",
|
||||
@ -10021,7 +10029,7 @@
|
||||
"properties": {
|
||||
"exec": {
|
||||
"$ref": "#/definitions/io.k8s.api.core.v1.ExecAction",
|
||||
"description": "Exec specifies the action to take."
|
||||
"description": "Exec specifies a command to execute in the container."
|
||||
},
|
||||
"failureThreshold": {
|
||||
"description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.",
|
||||
@ -10030,11 +10038,11 @@
|
||||
},
|
||||
"grpc": {
|
||||
"$ref": "#/definitions/io.k8s.api.core.v1.GRPCAction",
|
||||
"description": "GRPC specifies an action involving a GRPC port."
|
||||
"description": "GRPC specifies a GRPC HealthCheckRequest."
|
||||
},
|
||||
"httpGet": {
|
||||
"$ref": "#/definitions/io.k8s.api.core.v1.HTTPGetAction",
|
||||
"description": "HTTPGet specifies the http request to perform."
|
||||
"description": "HTTPGet specifies an HTTP GET request to perform."
|
||||
},
|
||||
"initialDelaySeconds": {
|
||||
"description": "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",
|
||||
@ -10053,7 +10061,7 @@
|
||||
},
|
||||
"tcpSocket": {
|
||||
"$ref": "#/definitions/io.k8s.api.core.v1.TCPSocketAction",
|
||||
"description": "TCPSocket specifies an action involving a TCP port."
|
||||
"description": "TCPSocket specifies a connection to a TCP port."
|
||||
},
|
||||
"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 a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.",
|
||||
@ -10587,6 +10595,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"io.k8s.api.core.v1.ResourceStatus": {
|
||||
"description": "ResourceStatus represents the status of a single resource allocated to a Pod.",
|
||||
"properties": {
|
||||
"name": {
|
||||
"description": "Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be \"claim:<claim_name>/<request>\". When this status is reported about a container, the \"claim_name\" and \"request\" must match one of the claims of this container.",
|
||||
@ -11662,6 +11671,7 @@
|
||||
"x-kubernetes-map-type": "atomic"
|
||||
},
|
||||
"io.k8s.api.core.v1.TypedObjectReference": {
|
||||
"description": "TypedObjectReference contains enough information to let you locate the typed referenced object",
|
||||
"properties": {
|
||||
"apiGroup": {
|
||||
"description": "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.",
|
||||
|
34
api/openapi-spec/v3/api__v1_openapi.json
generated
34
api/openapi-spec/v3/api__v1_openapi.json
generated
@ -2651,6 +2651,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"io.k8s.api.core.v1.GRPCAction": {
|
||||
"description": "GRPCAction specifies an action involving a GRPC service.",
|
||||
"properties": {
|
||||
"port": {
|
||||
"default": 0,
|
||||
@ -3068,7 +3069,7 @@
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.ExecAction"
|
||||
}
|
||||
],
|
||||
"description": "Exec specifies the action to take."
|
||||
"description": "Exec specifies a command to execute in the container."
|
||||
},
|
||||
"httpGet": {
|
||||
"allOf": [
|
||||
@ -3076,7 +3077,7 @@
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.HTTPGetAction"
|
||||
}
|
||||
],
|
||||
"description": "HTTPGet specifies the http request to perform."
|
||||
"description": "HTTPGet specifies an HTTP GET request to perform."
|
||||
},
|
||||
"sleep": {
|
||||
"allOf": [
|
||||
@ -3084,7 +3085,7 @@
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.SleepAction"
|
||||
}
|
||||
],
|
||||
"description": "Sleep represents the duration that the container should sleep before being terminated."
|
||||
"description": "Sleep represents a duration that the container should sleep."
|
||||
},
|
||||
"tcpSocket": {
|
||||
"allOf": [
|
||||
@ -3092,7 +3093,7 @@
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.TCPSocketAction"
|
||||
}
|
||||
],
|
||||
"description": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified."
|
||||
"description": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for backward compatibility. There is no validation of this field and lifecycle hooks will fail at runtime when it is specified."
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
@ -3458,12 +3459,19 @@
|
||||
"description": "NamespaceCondition contains details about state of namespace.",
|
||||
"properties": {
|
||||
"lastTransitionTime": {
|
||||
"$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.Time"
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.Time"
|
||||
}
|
||||
],
|
||||
"description": "Last time the condition transitioned from one status to another."
|
||||
},
|
||||
"message": {
|
||||
"description": "Human-readable message indicating details about last transition.",
|
||||
"type": "string"
|
||||
},
|
||||
"reason": {
|
||||
"description": "Unique, one-word, CamelCase reason for the condition's last transition.",
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
@ -4388,10 +4396,12 @@
|
||||
},
|
||||
"status": {
|
||||
"default": "",
|
||||
"description": "Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=state%20of%20pvc-,conditions.status,-(string)%2C%20required",
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"default": "",
|
||||
"description": "Type is the type of the condition. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=set%20to%20%27ResizeStarted%27.-,PersistentVolumeClaimCondition,-contains%20details%20about",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
@ -5210,10 +5220,11 @@
|
||||
"description": "PodDNSConfigOption defines DNS resolver options of a pod.",
|
||||
"properties": {
|
||||
"name": {
|
||||
"description": "Required.",
|
||||
"description": "Name is this DNS resolver option's name. Required.",
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"description": "Value is this DNS resolver option's value.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
@ -6052,6 +6063,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"io.k8s.api.core.v1.PortStatus": {
|
||||
"description": "PortStatus represents the error condition of a service port",
|
||||
"properties": {
|
||||
"error": {
|
||||
"description": "Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use\n CamelCase names\n- cloud provider specific error values must have names that comply with the\n format foo.example.com/CamelCase.",
|
||||
@ -6131,7 +6143,7 @@
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.ExecAction"
|
||||
}
|
||||
],
|
||||
"description": "Exec specifies the action to take."
|
||||
"description": "Exec specifies a command to execute in the container."
|
||||
},
|
||||
"failureThreshold": {
|
||||
"description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.",
|
||||
@ -6144,7 +6156,7 @@
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.GRPCAction"
|
||||
}
|
||||
],
|
||||
"description": "GRPC specifies an action involving a GRPC port."
|
||||
"description": "GRPC specifies a GRPC HealthCheckRequest."
|
||||
},
|
||||
"httpGet": {
|
||||
"allOf": [
|
||||
@ -6152,7 +6164,7 @@
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.HTTPGetAction"
|
||||
}
|
||||
],
|
||||
"description": "HTTPGet specifies the http request to perform."
|
||||
"description": "HTTPGet specifies an HTTP GET request to perform."
|
||||
},
|
||||
"initialDelaySeconds": {
|
||||
"description": "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",
|
||||
@ -6175,7 +6187,7 @@
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.TCPSocketAction"
|
||||
}
|
||||
],
|
||||
"description": "TCPSocket specifies an action involving a TCP port."
|
||||
"description": "TCPSocket specifies a connection to a TCP port."
|
||||
},
|
||||
"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 a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.",
|
||||
@ -6818,6 +6830,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"io.k8s.api.core.v1.ResourceStatus": {
|
||||
"description": "ResourceStatus represents the status of a single resource allocated to a Pod.",
|
||||
"properties": {
|
||||
"name": {
|
||||
"default": "",
|
||||
@ -8053,6 +8066,7 @@
|
||||
"x-kubernetes-map-type": "atomic"
|
||||
},
|
||||
"io.k8s.api.core.v1.TypedObjectReference": {
|
||||
"description": "TypedObjectReference contains enough information to let you locate the typed referenced object",
|
||||
"properties": {
|
||||
"apiGroup": {
|
||||
"description": "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.",
|
||||
|
23
api/openapi-spec/v3/apis__apps__v1_openapi.json
generated
23
api/openapi-spec/v3/apis__apps__v1_openapi.json
generated
@ -2570,6 +2570,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"io.k8s.api.core.v1.GRPCAction": {
|
||||
"description": "GRPCAction specifies an action involving a GRPC service.",
|
||||
"properties": {
|
||||
"port": {
|
||||
"default": 0,
|
||||
@ -2876,7 +2877,7 @@
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.ExecAction"
|
||||
}
|
||||
],
|
||||
"description": "Exec specifies the action to take."
|
||||
"description": "Exec specifies a command to execute in the container."
|
||||
},
|
||||
"httpGet": {
|
||||
"allOf": [
|
||||
@ -2884,7 +2885,7 @@
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.HTTPGetAction"
|
||||
}
|
||||
],
|
||||
"description": "HTTPGet specifies the http request to perform."
|
||||
"description": "HTTPGet specifies an HTTP GET request to perform."
|
||||
},
|
||||
"sleep": {
|
||||
"allOf": [
|
||||
@ -2892,7 +2893,7 @@
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.SleepAction"
|
||||
}
|
||||
],
|
||||
"description": "Sleep represents the duration that the container should sleep before being terminated."
|
||||
"description": "Sleep represents a duration that the container should sleep."
|
||||
},
|
||||
"tcpSocket": {
|
||||
"allOf": [
|
||||
@ -2900,7 +2901,7 @@
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.TCPSocketAction"
|
||||
}
|
||||
],
|
||||
"description": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified."
|
||||
"description": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for backward compatibility. There is no validation of this field and lifecycle hooks will fail at runtime when it is specified."
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
@ -3167,10 +3168,12 @@
|
||||
},
|
||||
"status": {
|
||||
"default": "",
|
||||
"description": "Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=state%20of%20pvc-,conditions.status,-(string)%2C%20required",
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"default": "",
|
||||
"description": "Type is the type of the condition. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=set%20to%20%27ResizeStarted%27.-,PersistentVolumeClaimCondition,-contains%20details%20about",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
@ -3541,10 +3544,11 @@
|
||||
"description": "PodDNSConfigOption defines DNS resolver options of a pod.",
|
||||
"properties": {
|
||||
"name": {
|
||||
"description": "Required.",
|
||||
"description": "Name is this DNS resolver option's name. Required.",
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"description": "Value is this DNS resolver option's value.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
@ -4123,7 +4127,7 @@
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.ExecAction"
|
||||
}
|
||||
],
|
||||
"description": "Exec specifies the action to take."
|
||||
"description": "Exec specifies a command to execute in the container."
|
||||
},
|
||||
"failureThreshold": {
|
||||
"description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.",
|
||||
@ -4136,7 +4140,7 @@
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.GRPCAction"
|
||||
}
|
||||
],
|
||||
"description": "GRPC specifies an action involving a GRPC port."
|
||||
"description": "GRPC specifies a GRPC HealthCheckRequest."
|
||||
},
|
||||
"httpGet": {
|
||||
"allOf": [
|
||||
@ -4144,7 +4148,7 @@
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.HTTPGetAction"
|
||||
}
|
||||
],
|
||||
"description": "HTTPGet specifies the http request to perform."
|
||||
"description": "HTTPGet specifies an HTTP GET request to perform."
|
||||
},
|
||||
"initialDelaySeconds": {
|
||||
"description": "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",
|
||||
@ -4167,7 +4171,7 @@
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.TCPSocketAction"
|
||||
}
|
||||
],
|
||||
"description": "TCPSocket specifies an action involving a TCP port."
|
||||
"description": "TCPSocket specifies a connection to a TCP port."
|
||||
},
|
||||
"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 a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.",
|
||||
@ -4879,6 +4883,7 @@
|
||||
"x-kubernetes-map-type": "atomic"
|
||||
},
|
||||
"io.k8s.api.core.v1.TypedObjectReference": {
|
||||
"description": "TypedObjectReference contains enough information to let you locate the typed referenced object",
|
||||
"properties": {
|
||||
"apiGroup": {
|
||||
"description": "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.",
|
||||
|
21
api/openapi-spec/v3/apis__batch__v1_openapi.json
generated
21
api/openapi-spec/v3/apis__batch__v1_openapi.json
generated
@ -1919,6 +1919,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"io.k8s.api.core.v1.GRPCAction": {
|
||||
"description": "GRPCAction specifies an action involving a GRPC service.",
|
||||
"properties": {
|
||||
"port": {
|
||||
"default": 0,
|
||||
@ -2225,7 +2226,7 @@
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.ExecAction"
|
||||
}
|
||||
],
|
||||
"description": "Exec specifies the action to take."
|
||||
"description": "Exec specifies a command to execute in the container."
|
||||
},
|
||||
"httpGet": {
|
||||
"allOf": [
|
||||
@ -2233,7 +2234,7 @@
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.HTTPGetAction"
|
||||
}
|
||||
],
|
||||
"description": "HTTPGet specifies the http request to perform."
|
||||
"description": "HTTPGet specifies an HTTP GET request to perform."
|
||||
},
|
||||
"sleep": {
|
||||
"allOf": [
|
||||
@ -2241,7 +2242,7 @@
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.SleepAction"
|
||||
}
|
||||
],
|
||||
"description": "Sleep represents the duration that the container should sleep before being terminated."
|
||||
"description": "Sleep represents a duration that the container should sleep."
|
||||
},
|
||||
"tcpSocket": {
|
||||
"allOf": [
|
||||
@ -2249,7 +2250,7 @@
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.TCPSocketAction"
|
||||
}
|
||||
],
|
||||
"description": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified."
|
||||
"description": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for backward compatibility. There is no validation of this field and lifecycle hooks will fail at runtime when it is specified."
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
@ -2745,10 +2746,11 @@
|
||||
"description": "PodDNSConfigOption defines DNS resolver options of a pod.",
|
||||
"properties": {
|
||||
"name": {
|
||||
"description": "Required.",
|
||||
"description": "Name is this DNS resolver option's name. Required.",
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"description": "Value is this DNS resolver option's value.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
@ -3327,7 +3329,7 @@
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.ExecAction"
|
||||
}
|
||||
],
|
||||
"description": "Exec specifies the action to take."
|
||||
"description": "Exec specifies a command to execute in the container."
|
||||
},
|
||||
"failureThreshold": {
|
||||
"description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.",
|
||||
@ -3340,7 +3342,7 @@
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.GRPCAction"
|
||||
}
|
||||
],
|
||||
"description": "GRPC specifies an action involving a GRPC port."
|
||||
"description": "GRPC specifies a GRPC HealthCheckRequest."
|
||||
},
|
||||
"httpGet": {
|
||||
"allOf": [
|
||||
@ -3348,7 +3350,7 @@
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.HTTPGetAction"
|
||||
}
|
||||
],
|
||||
"description": "HTTPGet specifies the http request to perform."
|
||||
"description": "HTTPGet specifies an HTTP GET request to perform."
|
||||
},
|
||||
"initialDelaySeconds": {
|
||||
"description": "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",
|
||||
@ -3371,7 +3373,7 @@
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.TCPSocketAction"
|
||||
}
|
||||
],
|
||||
"description": "TCPSocket specifies an action involving a TCP port."
|
||||
"description": "TCPSocket specifies a connection to a TCP port."
|
||||
},
|
||||
"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 a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.",
|
||||
@ -4083,6 +4085,7 @@
|
||||
"x-kubernetes-map-type": "atomic"
|
||||
},
|
||||
"io.k8s.api.core.v1.TypedObjectReference": {
|
||||
"description": "TypedObjectReference contains enough information to let you locate the typed referenced object",
|
||||
"properties": {
|
||||
"apiGroup": {
|
||||
"description": "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.",
|
||||
|
@ -3,6 +3,5 @@
|
||||
./staging/src/k8s.io/api/autoscaling/v2beta2/types.go
|
||||
./staging/src/k8s.io/api/certificates/v1/types.go
|
||||
./staging/src/k8s.io/api/certificates/v1beta1/types.go
|
||||
./staging/src/k8s.io/api/core/v1/types.go
|
||||
./staging/src/k8s.io/api/networking/v1/types.go
|
||||
./staging/src/k8s.io/api/networking/v1beta1/types.go
|
||||
|
70
pkg/generated/openapi/zz_generated.openapi.go
generated
70
pkg/generated/openapi/zz_generated.openapi.go
generated
@ -23513,7 +23513,8 @@ func schema_k8sio_api_core_v1_GRPCAction(ref common.ReferenceCallback) common.Op
|
||||
return common.OpenAPIDefinition{
|
||||
Schema: spec.Schema{
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Type: []string{"object"},
|
||||
Description: "GRPCAction specifies an action involving a GRPC service.",
|
||||
Type: []string{"object"},
|
||||
Properties: map[string]spec.Schema{
|
||||
"port": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
@ -24161,25 +24162,25 @@ func schema_k8sio_api_core_v1_LifecycleHandler(ref common.ReferenceCallback) com
|
||||
Properties: map[string]spec.Schema{
|
||||
"exec": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "Exec specifies the action to take.",
|
||||
Description: "Exec specifies a command to execute in the container.",
|
||||
Ref: ref("k8s.io/api/core/v1.ExecAction"),
|
||||
},
|
||||
},
|
||||
"httpGet": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "HTTPGet specifies the http request to perform.",
|
||||
Description: "HTTPGet specifies an HTTP GET request to perform.",
|
||||
Ref: ref("k8s.io/api/core/v1.HTTPGetAction"),
|
||||
},
|
||||
},
|
||||
"tcpSocket": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified.",
|
||||
Description: "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for backward compatibility. There is no validation of this field and lifecycle hooks will fail at runtime when it is specified.",
|
||||
Ref: ref("k8s.io/api/core/v1.TCPSocketAction"),
|
||||
},
|
||||
},
|
||||
"sleep": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "Sleep represents the duration that the container should sleep before being terminated.",
|
||||
Description: "Sleep represents a duration that the container should sleep.",
|
||||
Ref: ref("k8s.io/api/core/v1.SleepAction"),
|
||||
},
|
||||
},
|
||||
@ -24800,19 +24801,22 @@ func schema_k8sio_api_core_v1_NamespaceCondition(ref common.ReferenceCallback) c
|
||||
},
|
||||
"lastTransitionTime": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"),
|
||||
Description: "Last time the condition transitioned from one status to another.",
|
||||
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"),
|
||||
},
|
||||
},
|
||||
"reason": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Type: []string{"string"},
|
||||
Format: "",
|
||||
Description: "Unique, one-word, CamelCase reason for the condition's last transition.",
|
||||
Type: []string{"string"},
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
"message": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Type: []string{"string"},
|
||||
Format: "",
|
||||
Description: "Human-readable message indicating details about last transition.",
|
||||
Type: []string{"string"},
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
},
|
||||
@ -26121,16 +26125,18 @@ func schema_k8sio_api_core_v1_PersistentVolumeClaimCondition(ref common.Referenc
|
||||
Properties: map[string]spec.Schema{
|
||||
"type": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Default: "",
|
||||
Type: []string{"string"},
|
||||
Format: "",
|
||||
Description: "Type is the type of the condition. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=set%20to%20%27ResizeStarted%27.-,PersistentVolumeClaimCondition,-contains%20details%20about",
|
||||
Default: "",
|
||||
Type: []string{"string"},
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
"status": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Default: "",
|
||||
Type: []string{"string"},
|
||||
Format: "",
|
||||
Description: "Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=state%20of%20pvc-,conditions.status,-(string)%2C%20required",
|
||||
Default: "",
|
||||
Type: []string{"string"},
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
"lastProbeTime": {
|
||||
@ -27473,15 +27479,16 @@ func schema_k8sio_api_core_v1_PodDNSConfigOption(ref common.ReferenceCallback) c
|
||||
Properties: map[string]spec.Schema{
|
||||
"name": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "Required.",
|
||||
Description: "Name is this DNS resolver option's name. Required.",
|
||||
Type: []string{"string"},
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
"value": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Type: []string{"string"},
|
||||
Format: "",
|
||||
Description: "Value is this DNS resolver option's value.",
|
||||
Type: []string{"string"},
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
},
|
||||
@ -28985,7 +28992,8 @@ func schema_k8sio_api_core_v1_PortStatus(ref common.ReferenceCallback) common.Op
|
||||
return common.OpenAPIDefinition{
|
||||
Schema: spec.Schema{
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Type: []string{"object"},
|
||||
Description: "PortStatus represents the error condition of a service port",
|
||||
Type: []string{"object"},
|
||||
Properties: map[string]spec.Schema{
|
||||
"port": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
@ -29137,25 +29145,25 @@ func schema_k8sio_api_core_v1_Probe(ref common.ReferenceCallback) common.OpenAPI
|
||||
Properties: map[string]spec.Schema{
|
||||
"exec": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "Exec specifies the action to take.",
|
||||
Description: "Exec specifies a command to execute in the container.",
|
||||
Ref: ref("k8s.io/api/core/v1.ExecAction"),
|
||||
},
|
||||
},
|
||||
"httpGet": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "HTTPGet specifies the http request to perform.",
|
||||
Description: "HTTPGet specifies an HTTP GET request to perform.",
|
||||
Ref: ref("k8s.io/api/core/v1.HTTPGetAction"),
|
||||
},
|
||||
},
|
||||
"tcpSocket": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "TCPSocket specifies an action involving a TCP port.",
|
||||
Description: "TCPSocket specifies a connection to a TCP port.",
|
||||
Ref: ref("k8s.io/api/core/v1.TCPSocketAction"),
|
||||
},
|
||||
},
|
||||
"grpc": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "GRPC specifies an action involving a GRPC port.",
|
||||
Description: "GRPC specifies a GRPC HealthCheckRequest.",
|
||||
Ref: ref("k8s.io/api/core/v1.GRPCAction"),
|
||||
},
|
||||
},
|
||||
@ -29218,25 +29226,25 @@ func schema_k8sio_api_core_v1_ProbeHandler(ref common.ReferenceCallback) common.
|
||||
Properties: map[string]spec.Schema{
|
||||
"exec": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "Exec specifies the action to take.",
|
||||
Description: "Exec specifies a command to execute in the container.",
|
||||
Ref: ref("k8s.io/api/core/v1.ExecAction"),
|
||||
},
|
||||
},
|
||||
"httpGet": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "HTTPGet specifies the http request to perform.",
|
||||
Description: "HTTPGet specifies an HTTP GET request to perform.",
|
||||
Ref: ref("k8s.io/api/core/v1.HTTPGetAction"),
|
||||
},
|
||||
},
|
||||
"tcpSocket": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "TCPSocket specifies an action involving a TCP port.",
|
||||
Description: "TCPSocket specifies a connection to a TCP port.",
|
||||
Ref: ref("k8s.io/api/core/v1.TCPSocketAction"),
|
||||
},
|
||||
},
|
||||
"grpc": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "GRPC specifies an action involving a GRPC port.",
|
||||
Description: "GRPC specifies a GRPC HealthCheckRequest.",
|
||||
Ref: ref("k8s.io/api/core/v1.GRPCAction"),
|
||||
},
|
||||
},
|
||||
@ -30229,7 +30237,8 @@ func schema_k8sio_api_core_v1_ResourceStatus(ref common.ReferenceCallback) commo
|
||||
return common.OpenAPIDefinition{
|
||||
Schema: spec.Schema{
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Type: []string{"object"},
|
||||
Description: "ResourceStatus represents the status of a single resource allocated to a Pod.",
|
||||
Type: []string{"object"},
|
||||
Properties: map[string]spec.Schema{
|
||||
"name": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
@ -32262,7 +32271,8 @@ func schema_k8sio_api_core_v1_TypedObjectReference(ref common.ReferenceCallback)
|
||||
return common.OpenAPIDefinition{
|
||||
Schema: spec.Schema{
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Type: []string{"object"},
|
||||
Description: "TypedObjectReference contains enough information to let you locate the typed referenced object",
|
||||
Type: []string{"object"},
|
||||
Properties: map[string]spec.Schema{
|
||||
"apiGroup": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
|
@ -1869,6 +1869,7 @@ message GCEPersistentDiskVolumeSource {
|
||||
optional bool readOnly = 4;
|
||||
}
|
||||
|
||||
// GRPCAction specifies an action involving a GRPC service.
|
||||
message GRPCAction {
|
||||
// Port number of the gRPC service. Number must be in the range 1 to 65535.
|
||||
optional int32 port = 1;
|
||||
@ -2202,21 +2203,21 @@ message Lifecycle {
|
||||
// LifecycleHandler defines a specific action that should be taken in a lifecycle
|
||||
// hook. One and only one of the fields, except TCPSocket must be specified.
|
||||
message LifecycleHandler {
|
||||
// Exec specifies the action to take.
|
||||
// Exec specifies a command to execute in the container.
|
||||
// +optional
|
||||
optional ExecAction exec = 1;
|
||||
|
||||
// HTTPGet specifies the http request to perform.
|
||||
// HTTPGet specifies an HTTP GET request to perform.
|
||||
// +optional
|
||||
optional HTTPGetAction httpGet = 2;
|
||||
|
||||
// Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept
|
||||
// for the backward compatibility. There are no validation of this field and
|
||||
// lifecycle hooks will fail in runtime when tcp handler is specified.
|
||||
// for backward compatibility. There is no validation of this field and
|
||||
// lifecycle hooks will fail at runtime when it is specified.
|
||||
// +optional
|
||||
optional TCPSocketAction tcpSocket = 3;
|
||||
|
||||
// Sleep represents the duration that the container should sleep before being terminated.
|
||||
// Sleep represents a duration that the container should sleep.
|
||||
// +featureGate=PodLifecycleSleepAction
|
||||
// +optional
|
||||
optional SleepAction sleep = 4;
|
||||
@ -2447,12 +2448,15 @@ message NamespaceCondition {
|
||||
// Status of the condition, one of True, False, Unknown.
|
||||
optional string status = 2;
|
||||
|
||||
// Last time the condition transitioned from one status to another.
|
||||
// +optional
|
||||
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4;
|
||||
|
||||
// Unique, one-word, CamelCase reason for the condition's last transition.
|
||||
// +optional
|
||||
optional string reason = 5;
|
||||
|
||||
// Human-readable message indicating details about last transition.
|
||||
// +optional
|
||||
optional string message = 6;
|
||||
}
|
||||
@ -3010,8 +3014,13 @@ message PersistentVolumeClaim {
|
||||
|
||||
// PersistentVolumeClaimCondition contains details about state of pvc
|
||||
message PersistentVolumeClaimCondition {
|
||||
// Type is the type of the condition.
|
||||
// More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=set%20to%20%27ResizeStarted%27.-,PersistentVolumeClaimCondition,-contains%20details%20about
|
||||
optional string type = 1;
|
||||
|
||||
// Status is the status of the condition.
|
||||
// Can be True, False, Unknown.
|
||||
// More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=state%20of%20pvc-,conditions.status,-(string)%2C%20required
|
||||
optional string status = 2;
|
||||
|
||||
// lastProbeTime is the time we probed the condition.
|
||||
@ -3743,9 +3752,11 @@ message PodDNSConfig {
|
||||
|
||||
// PodDNSConfigOption defines DNS resolver options of a pod.
|
||||
message PodDNSConfigOption {
|
||||
// Name is this DNS resolver option's name.
|
||||
// Required.
|
||||
optional string name = 1;
|
||||
|
||||
// Value is this DNS resolver option's value.
|
||||
// +optional
|
||||
optional string value = 2;
|
||||
}
|
||||
@ -4650,6 +4661,7 @@ message PodTemplateSpec {
|
||||
optional PodSpec spec = 2;
|
||||
}
|
||||
|
||||
// PortStatus represents the error condition of a service port
|
||||
message PortStatus {
|
||||
// Port is the port number of the service port of which status is recorded here
|
||||
optional int32 port = 1;
|
||||
@ -4774,19 +4786,19 @@ message Probe {
|
||||
// ProbeHandler defines a specific action that should be taken in a probe.
|
||||
// One and only one of the fields must be specified.
|
||||
message ProbeHandler {
|
||||
// Exec specifies the action to take.
|
||||
// Exec specifies a command to execute in the container.
|
||||
// +optional
|
||||
optional ExecAction exec = 1;
|
||||
|
||||
// HTTPGet specifies the http request to perform.
|
||||
// HTTPGet specifies an HTTP GET request to perform.
|
||||
// +optional
|
||||
optional HTTPGetAction httpGet = 2;
|
||||
|
||||
// TCPSocket specifies an action involving a TCP port.
|
||||
// TCPSocket specifies a connection to a TCP port.
|
||||
// +optional
|
||||
optional TCPSocketAction tcpSocket = 3;
|
||||
|
||||
// GRPC specifies an action involving a GRPC port.
|
||||
// GRPC specifies a GRPC HealthCheckRequest.
|
||||
// +optional
|
||||
optional GRPCAction grpc = 4;
|
||||
}
|
||||
@ -5224,6 +5236,7 @@ message ResourceRequirements {
|
||||
repeated ResourceClaim claims = 3;
|
||||
}
|
||||
|
||||
// ResourceStatus represents the status of a single resource allocated to a Pod.
|
||||
message ResourceStatus {
|
||||
// Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec.
|
||||
// For DRA resources, the value must be "claim:<claim_name>/<request>".
|
||||
@ -6435,6 +6448,7 @@ message TypedLocalObjectReference {
|
||||
optional string name = 3;
|
||||
}
|
||||
|
||||
// TypedObjectReference contains enough information to let you locate the typed referenced object
|
||||
message TypedObjectReference {
|
||||
// APIGroup is the group for the resource being referenced.
|
||||
// If APIGroup is not specified, the specified Kind must be in the core API group.
|
||||
|
@ -630,6 +630,7 @@ type PersistentVolumeClaimSpec struct {
|
||||
VolumeAttributesClassName *string `json:"volumeAttributesClassName,omitempty" protobuf:"bytes,9,opt,name=volumeAttributesClassName"`
|
||||
}
|
||||
|
||||
// TypedObjectReference contains enough information to let you locate the typed referenced object
|
||||
type TypedObjectReference struct {
|
||||
// APIGroup is the group for the resource being referenced.
|
||||
// If APIGroup is not specified, the specified Kind must be in the core API group.
|
||||
@ -736,8 +737,13 @@ type ModifyVolumeStatus struct {
|
||||
|
||||
// PersistentVolumeClaimCondition contains details about state of pvc
|
||||
type PersistentVolumeClaimCondition struct {
|
||||
Type PersistentVolumeClaimConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=PersistentVolumeClaimConditionType"`
|
||||
Status ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=ConditionStatus"`
|
||||
// Type is the type of the condition.
|
||||
// More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=set%20to%20%27ResizeStarted%27.-,PersistentVolumeClaimCondition,-contains%20details%20about
|
||||
Type PersistentVolumeClaimConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=PersistentVolumeClaimConditionType"`
|
||||
// Status is the status of the condition.
|
||||
// Can be True, False, Unknown.
|
||||
// More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=state%20of%20pvc-,conditions.status,-(string)%2C%20required
|
||||
Status ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=ConditionStatus"`
|
||||
// lastProbeTime is the time we probed the condition.
|
||||
// +optional
|
||||
LastProbeTime metav1.Time `json:"lastProbeTime,omitempty" protobuf:"bytes,3,opt,name=lastProbeTime"`
|
||||
@ -2524,6 +2530,7 @@ type TCPSocketAction struct {
|
||||
Host string `json:"host,omitempty" protobuf:"bytes,2,opt,name=host"`
|
||||
}
|
||||
|
||||
// GRPCAction specifies an action involving a GRPC service.
|
||||
type GRPCAction struct {
|
||||
// Port number of the gRPC service. Number must be in the range 1 to 65535.
|
||||
Port int32 `json:"port" protobuf:"bytes,1,opt,name=port"`
|
||||
@ -2939,17 +2946,16 @@ type Container struct {
|
||||
// ProbeHandler defines a specific action that should be taken in a probe.
|
||||
// One and only one of the fields must be specified.
|
||||
type ProbeHandler struct {
|
||||
// Exec specifies the action to take.
|
||||
// Exec specifies a command to execute in the container.
|
||||
// +optional
|
||||
Exec *ExecAction `json:"exec,omitempty" protobuf:"bytes,1,opt,name=exec"`
|
||||
// HTTPGet specifies the http request to perform.
|
||||
// HTTPGet specifies an HTTP GET request to perform.
|
||||
// +optional
|
||||
HTTPGet *HTTPGetAction `json:"httpGet,omitempty" protobuf:"bytes,2,opt,name=httpGet"`
|
||||
// TCPSocket specifies an action involving a TCP port.
|
||||
// TCPSocket specifies a connection to a TCP port.
|
||||
// +optional
|
||||
TCPSocket *TCPSocketAction `json:"tcpSocket,omitempty" protobuf:"bytes,3,opt,name=tcpSocket"`
|
||||
|
||||
// GRPC specifies an action involving a GRPC port.
|
||||
// GRPC specifies a GRPC HealthCheckRequest.
|
||||
// +optional
|
||||
GRPC *GRPCAction `json:"grpc,omitempty" protobuf:"bytes,4,opt,name=grpc"`
|
||||
}
|
||||
@ -2957,18 +2963,18 @@ type ProbeHandler struct {
|
||||
// LifecycleHandler defines a specific action that should be taken in a lifecycle
|
||||
// hook. One and only one of the fields, except TCPSocket must be specified.
|
||||
type LifecycleHandler struct {
|
||||
// Exec specifies the action to take.
|
||||
// Exec specifies a command to execute in the container.
|
||||
// +optional
|
||||
Exec *ExecAction `json:"exec,omitempty" protobuf:"bytes,1,opt,name=exec"`
|
||||
// HTTPGet specifies the http request to perform.
|
||||
// HTTPGet specifies an HTTP GET request to perform.
|
||||
// +optional
|
||||
HTTPGet *HTTPGetAction `json:"httpGet,omitempty" protobuf:"bytes,2,opt,name=httpGet"`
|
||||
// Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept
|
||||
// for the backward compatibility. There are no validation of this field and
|
||||
// lifecycle hooks will fail in runtime when tcp handler is specified.
|
||||
// for backward compatibility. There is no validation of this field and
|
||||
// lifecycle hooks will fail at runtime when it is specified.
|
||||
// +optional
|
||||
TCPSocket *TCPSocketAction `json:"tcpSocket,omitempty" protobuf:"bytes,3,opt,name=tcpSocket"`
|
||||
// Sleep represents the duration that the container should sleep before being terminated.
|
||||
// Sleep represents a duration that the container should sleep.
|
||||
// +featureGate=PodLifecycleSleepAction
|
||||
// +optional
|
||||
Sleep *SleepAction `json:"sleep,omitempty" protobuf:"bytes,4,opt,name=sleep"`
|
||||
@ -3150,6 +3156,7 @@ type ContainerStatus struct {
|
||||
AllocatedResourcesStatus []ResourceStatus `json:"allocatedResourcesStatus,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,14,rep,name=allocatedResourcesStatus"`
|
||||
}
|
||||
|
||||
// ResourceStatus represents the status of a single resource allocated to a Pod.
|
||||
type ResourceStatus struct {
|
||||
// Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec.
|
||||
// For DRA resources, the value must be "claim:<claim_name>/<request>".
|
||||
@ -4605,8 +4612,10 @@ type PodDNSConfig struct {
|
||||
|
||||
// PodDNSConfigOption defines DNS resolver options of a pod.
|
||||
type PodDNSConfigOption struct {
|
||||
// Name is this DNS resolver option's name.
|
||||
// Required.
|
||||
Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"`
|
||||
// Value is this DNS resolver option's value.
|
||||
// +optional
|
||||
Value *string `json:"value,omitempty" protobuf:"bytes,2,opt,name=value"`
|
||||
}
|
||||
@ -6570,10 +6579,13 @@ type NamespaceCondition struct {
|
||||
Type NamespaceConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=NamespaceConditionType"`
|
||||
// Status of the condition, one of True, False, Unknown.
|
||||
Status ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=ConditionStatus"`
|
||||
// Last time the condition transitioned from one status to another.
|
||||
// +optional
|
||||
LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,4,opt,name=lastTransitionTime"`
|
||||
// Unique, one-word, CamelCase reason for the condition's last transition.
|
||||
// +optional
|
||||
Reason string `json:"reason,omitempty" protobuf:"bytes,5,opt,name=reason"`
|
||||
// Human-readable message indicating details about last transition.
|
||||
// +optional
|
||||
Message string `json:"message,omitempty" protobuf:"bytes,6,opt,name=message"`
|
||||
}
|
||||
@ -7868,7 +7880,6 @@ const (
|
||||
)
|
||||
|
||||
// PortStatus represents the error condition of a service port
|
||||
|
||||
type PortStatus struct {
|
||||
// Port is the port number of the service port of which status is recorded here
|
||||
Port int32 `json:"port" protobuf:"varint,1,opt,name=port"`
|
||||
|
@ -802,6 +802,7 @@ func (GCEPersistentDiskVolumeSource) SwaggerDoc() map[string]string {
|
||||
}
|
||||
|
||||
var map_GRPCAction = map[string]string{
|
||||
"": "GRPCAction specifies an action involving a GRPC service.",
|
||||
"port": "Port number of the gRPC service. Number must be in the range 1 to 65535.",
|
||||
"service": "Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.",
|
||||
}
|
||||
@ -967,10 +968,10 @@ func (Lifecycle) SwaggerDoc() map[string]string {
|
||||
|
||||
var map_LifecycleHandler = map[string]string{
|
||||
"": "LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.",
|
||||
"exec": "Exec specifies the action to take.",
|
||||
"httpGet": "HTTPGet specifies the http request to perform.",
|
||||
"tcpSocket": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified.",
|
||||
"sleep": "Sleep represents the duration that the container should sleep before being terminated.",
|
||||
"exec": "Exec specifies a command to execute in the container.",
|
||||
"httpGet": "HTTPGet specifies an HTTP GET request to perform.",
|
||||
"tcpSocket": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for backward compatibility. There is no validation of this field and lifecycle hooks will fail at runtime when it is specified.",
|
||||
"sleep": "Sleep represents a duration that the container should sleep.",
|
||||
}
|
||||
|
||||
func (LifecycleHandler) SwaggerDoc() map[string]string {
|
||||
@ -1104,9 +1105,12 @@ func (Namespace) SwaggerDoc() map[string]string {
|
||||
}
|
||||
|
||||
var map_NamespaceCondition = map[string]string{
|
||||
"": "NamespaceCondition contains details about state of namespace.",
|
||||
"type": "Type of namespace controller condition.",
|
||||
"status": "Status of the condition, one of True, False, Unknown.",
|
||||
"": "NamespaceCondition contains details about state of namespace.",
|
||||
"type": "Type of namespace controller condition.",
|
||||
"status": "Status of the condition, one of True, False, Unknown.",
|
||||
"lastTransitionTime": "Last time the condition transitioned from one status to another.",
|
||||
"reason": "Unique, one-word, CamelCase reason for the condition's last transition.",
|
||||
"message": "Human-readable message indicating details about last transition.",
|
||||
}
|
||||
|
||||
func (NamespaceCondition) SwaggerDoc() map[string]string {
|
||||
@ -1398,6 +1402,8 @@ func (PersistentVolumeClaim) SwaggerDoc() map[string]string {
|
||||
|
||||
var map_PersistentVolumeClaimCondition = map[string]string{
|
||||
"": "PersistentVolumeClaimCondition contains details about state of pvc",
|
||||
"type": "Type is the type of the condition. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=set%20to%20%27ResizeStarted%27.-,PersistentVolumeClaimCondition,-contains%20details%20about",
|
||||
"status": "Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=state%20of%20pvc-,conditions.status,-(string)%2C%20required",
|
||||
"lastProbeTime": "lastProbeTime is the time we probed the condition.",
|
||||
"lastTransitionTime": "lastTransitionTime is the time the condition transitioned from one status to another.",
|
||||
"reason": "reason is a unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"Resizing\" that means the underlying persistent volume is being resized.",
|
||||
@ -1634,8 +1640,9 @@ func (PodDNSConfig) SwaggerDoc() map[string]string {
|
||||
}
|
||||
|
||||
var map_PodDNSConfigOption = map[string]string{
|
||||
"": "PodDNSConfigOption defines DNS resolver options of a pod.",
|
||||
"name": "Required.",
|
||||
"": "PodDNSConfigOption defines DNS resolver options of a pod.",
|
||||
"name": "Name is this DNS resolver option's name. Required.",
|
||||
"value": "Value is this DNS resolver option's value.",
|
||||
}
|
||||
|
||||
func (PodDNSConfigOption) SwaggerDoc() map[string]string {
|
||||
@ -1900,6 +1907,7 @@ func (PodTemplateSpec) SwaggerDoc() map[string]string {
|
||||
}
|
||||
|
||||
var map_PortStatus = map[string]string{
|
||||
"": "PortStatus represents the error condition of a service port",
|
||||
"port": "Port is the port number of the service port of which status is recorded here",
|
||||
"protocol": "Protocol is the protocol of the service port of which status is recorded here The supported values are: \"TCP\", \"UDP\", \"SCTP\"",
|
||||
"error": "Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use\n CamelCase names\n- cloud provider specific error values must have names that comply with the\n format foo.example.com/CamelCase.",
|
||||
@ -1967,10 +1975,10 @@ func (Probe) SwaggerDoc() map[string]string {
|
||||
|
||||
var map_ProbeHandler = map[string]string{
|
||||
"": "ProbeHandler defines a specific action that should be taken in a probe. One and only one of the fields must be specified.",
|
||||
"exec": "Exec specifies the action to take.",
|
||||
"httpGet": "HTTPGet specifies the http request to perform.",
|
||||
"tcpSocket": "TCPSocket specifies an action involving a TCP port.",
|
||||
"grpc": "GRPC specifies an action involving a GRPC port.",
|
||||
"exec": "Exec specifies a command to execute in the container.",
|
||||
"httpGet": "HTTPGet specifies an HTTP GET request to perform.",
|
||||
"tcpSocket": "TCPSocket specifies a connection to a TCP port.",
|
||||
"grpc": "GRPC specifies a GRPC HealthCheckRequest.",
|
||||
}
|
||||
|
||||
func (ProbeHandler) SwaggerDoc() map[string]string {
|
||||
@ -2189,6 +2197,7 @@ func (ResourceRequirements) SwaggerDoc() map[string]string {
|
||||
}
|
||||
|
||||
var map_ResourceStatus = map[string]string{
|
||||
"": "ResourceStatus represents the status of a single resource allocated to a Pod.",
|
||||
"name": "Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be \"claim:<claim_name>/<request>\". When this status is reported about a container, the \"claim_name\" and \"request\" must match one of the claims of this container.",
|
||||
"resources": "List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases.",
|
||||
}
|
||||
@ -2629,6 +2638,7 @@ func (TypedLocalObjectReference) SwaggerDoc() map[string]string {
|
||||
}
|
||||
|
||||
var map_TypedObjectReference = map[string]string{
|
||||
"": "TypedObjectReference contains enough information to let you locate the typed referenced object",
|
||||
"apiGroup": "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.",
|
||||
"kind": "Kind is the type of resource being referenced",
|
||||
"name": "Name is the name of resource being referenced",
|
||||
|
Loading…
Reference in New Issue
Block a user