k8s_pb/api/core/v1/mod.rs
1// This file is @generated by prost-build.
2/// Represents a Persistent Disk resource in AWS.
3///
4/// An AWS EBS disk must exist before mounting to a container. The disk
5/// must also be in the same AWS zone as the kubelet. An AWS EBS disk
6/// can only be mounted as read/write once. AWS EBS volumes support
7/// ownership management and SELinux relabeling.
8#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
9pub struct AwsElasticBlockStoreVolumeSource {
10 /// volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume).
11 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore>
12 #[prost(string, optional, tag = "1")]
13 pub volume_id: ::core::option::Option<::prost::alloc::string::String>,
14 /// fsType is the filesystem type of the volume that you want to mount.
15 /// Tip: Ensure that the filesystem type is supported by the host operating system.
16 /// Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
17 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore>
18 /// TODO: how do we prevent errors in the filesystem from compromising the machine
19 /// +optional
20 #[prost(string, optional, tag = "2")]
21 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
22 /// partition is the partition in the volume that you want to mount.
23 /// If omitted, the default is to mount by volume name.
24 /// Examples: For volume /dev/sda1, you specify the partition as "1".
25 /// Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
26 /// +optional
27 #[prost(int32, optional, tag = "3")]
28 pub partition: ::core::option::Option<i32>,
29 /// readOnly value true will force the readOnly setting in VolumeMounts.
30 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore>
31 /// +optional
32 #[prost(bool, optional, tag = "4")]
33 pub read_only: ::core::option::Option<bool>,
34}
35/// Affinity is a group of affinity scheduling rules.
36#[derive(Clone, PartialEq, ::prost::Message)]
37pub struct Affinity {
38 /// Describes node affinity scheduling rules for the pod.
39 /// +optional
40 #[prost(message, optional, tag = "1")]
41 pub node_affinity: ::core::option::Option<NodeAffinity>,
42 /// Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
43 /// +optional
44 #[prost(message, optional, tag = "2")]
45 pub pod_affinity: ::core::option::Option<PodAffinity>,
46 /// Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
47 /// +optional
48 #[prost(message, optional, tag = "3")]
49 pub pod_anti_affinity: ::core::option::Option<PodAntiAffinity>,
50}
51/// AppArmorProfile defines a pod or container's AppArmor settings.
52/// +union
53#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
54pub struct AppArmorProfile {
55 /// type indicates which kind of AppArmor profile will be applied.
56 /// Valid options are:
57 /// Localhost - a profile pre-loaded on the node.
58 /// RuntimeDefault - the container runtime's default profile.
59 /// Unconfined - no AppArmor enforcement.
60 /// +unionDiscriminator
61 #[prost(string, optional, tag = "1")]
62 pub r#type: ::core::option::Option<::prost::alloc::string::String>,
63 /// localhostProfile indicates a profile loaded on the node that should be used.
64 /// The profile must be preconfigured on the node to work.
65 /// Must match the loaded name of the profile.
66 /// Must be set if and only if type is "Localhost".
67 /// +optional
68 #[prost(string, optional, tag = "2")]
69 pub localhost_profile: ::core::option::Option<::prost::alloc::string::String>,
70}
71/// AttachedVolume describes a volume attached to a node
72#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
73pub struct AttachedVolume {
74 /// Name of the attached volume
75 #[prost(string, optional, tag = "1")]
76 pub name: ::core::option::Option<::prost::alloc::string::String>,
77 /// DevicePath represents the device path where the volume should be available
78 #[prost(string, optional, tag = "2")]
79 pub device_path: ::core::option::Option<::prost::alloc::string::String>,
80}
81/// AvoidPods describes pods that should avoid this node. This is the value for a
82/// Node annotation with key scheduler.alpha.kubernetes.io/preferAvoidPods and
83/// will eventually become a field of NodeStatus.
84#[derive(Clone, PartialEq, ::prost::Message)]
85pub struct AvoidPods {
86 /// Bounded-sized list of signatures of pods that should avoid this node, sorted
87 /// in timestamp order from oldest to newest. Size of the slice is unspecified.
88 /// +optional
89 /// +listType=atomic
90 #[prost(message, repeated, tag = "1")]
91 pub prefer_avoid_pods: ::prost::alloc::vec::Vec<PreferAvoidPodsEntry>,
92}
93/// AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
94#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
95pub struct AzureDiskVolumeSource {
96 /// diskName is the Name of the data disk in the blob storage
97 #[prost(string, optional, tag = "1")]
98 pub disk_name: ::core::option::Option<::prost::alloc::string::String>,
99 /// diskURI is the URI of data disk in the blob storage
100 #[prost(string, optional, tag = "2")]
101 pub disk_uri: ::core::option::Option<::prost::alloc::string::String>,
102 /// cachingMode is the Host Caching mode: None, Read Only, Read Write.
103 /// +optional
104 /// +default=ref(AzureDataDiskCachingReadWrite)
105 #[prost(string, optional, tag = "3")]
106 pub caching_mode: ::core::option::Option<::prost::alloc::string::String>,
107 /// fsType is Filesystem type to mount.
108 /// Must be a filesystem type supported by the host operating system.
109 /// Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
110 /// +optional
111 /// +default="ext4"
112 #[prost(string, optional, tag = "4")]
113 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
114 /// readOnly Defaults to false (read/write). ReadOnly here will force
115 /// the ReadOnly setting in VolumeMounts.
116 /// +optional
117 /// +default=false
118 #[prost(bool, optional, tag = "5")]
119 pub read_only: ::core::option::Option<bool>,
120 /// kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared
121 /// +default=ref(AzureSharedBlobDisk)
122 #[prost(string, optional, tag = "6")]
123 pub kind: ::core::option::Option<::prost::alloc::string::String>,
124}
125/// AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
126#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
127pub struct AzureFilePersistentVolumeSource {
128 /// secretName is the name of secret that contains Azure Storage Account Name and Key
129 #[prost(string, optional, tag = "1")]
130 pub secret_name: ::core::option::Option<::prost::alloc::string::String>,
131 /// shareName is the azure Share Name
132 #[prost(string, optional, tag = "2")]
133 pub share_name: ::core::option::Option<::prost::alloc::string::String>,
134 /// readOnly defaults to false (read/write). ReadOnly here will force
135 /// the ReadOnly setting in VolumeMounts.
136 /// +optional
137 #[prost(bool, optional, tag = "3")]
138 pub read_only: ::core::option::Option<bool>,
139 /// secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key
140 /// default is the same as the Pod
141 /// +optional
142 #[prost(string, optional, tag = "4")]
143 pub secret_namespace: ::core::option::Option<::prost::alloc::string::String>,
144}
145/// AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
146#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
147pub struct AzureFileVolumeSource {
148 /// secretName is the name of secret that contains Azure Storage Account Name and Key
149 #[prost(string, optional, tag = "1")]
150 pub secret_name: ::core::option::Option<::prost::alloc::string::String>,
151 /// shareName is the azure share Name
152 #[prost(string, optional, tag = "2")]
153 pub share_name: ::core::option::Option<::prost::alloc::string::String>,
154 /// readOnly defaults to false (read/write). ReadOnly here will force
155 /// the ReadOnly setting in VolumeMounts.
156 /// +optional
157 #[prost(bool, optional, tag = "3")]
158 pub read_only: ::core::option::Option<bool>,
159}
160/// Binding ties one object to another; for example, a pod is bound to a node by a scheduler.
161#[derive(Clone, PartialEq, ::prost::Message)]
162pub struct Binding {
163 /// Standard object's metadata.
164 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
165 /// +optional
166 #[prost(message, optional, tag = "1")]
167 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
168 /// The target object that you want to bind to the standard object.
169 #[prost(message, optional, tag = "2")]
170 pub target: ::core::option::Option<ObjectReference>,
171}
172/// Represents storage that is managed by an external CSI volume driver
173#[derive(Clone, PartialEq, ::prost::Message)]
174pub struct CSIPersistentVolumeSource {
175 /// driver is the name of the driver to use for this volume.
176 /// Required.
177 #[prost(string, optional, tag = "1")]
178 pub driver: ::core::option::Option<::prost::alloc::string::String>,
179 /// volumeHandle is the unique volume name returned by the CSI volume
180 /// plugin’s CreateVolume to refer to the volume on all subsequent calls.
181 /// Required.
182 #[prost(string, optional, tag = "2")]
183 pub volume_handle: ::core::option::Option<::prost::alloc::string::String>,
184 /// readOnly value to pass to ControllerPublishVolumeRequest.
185 /// Defaults to false (read/write).
186 /// +optional
187 #[prost(bool, optional, tag = "3")]
188 pub read_only: ::core::option::Option<bool>,
189 /// fsType to mount. Must be a filesystem type supported by the host operating system.
190 /// Ex. "ext4", "xfs", "ntfs".
191 /// +optional
192 #[prost(string, optional, tag = "4")]
193 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
194 /// volumeAttributes of the volume to publish.
195 /// +optional
196 #[prost(btree_map = "string, string", tag = "5")]
197 pub volume_attributes:
198 ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
199 /// controllerPublishSecretRef is a reference to the secret object containing
200 /// sensitive information to pass to the CSI driver to complete the CSI
201 /// ControllerPublishVolume and ControllerUnpublishVolume calls.
202 /// This field is optional, and may be empty if no secret is required. If the
203 /// secret object contains more than one secret, all secrets are passed.
204 /// +optional
205 #[prost(message, optional, tag = "6")]
206 pub controller_publish_secret_ref: ::core::option::Option<SecretReference>,
207 /// nodeStageSecretRef is a reference to the secret object containing sensitive
208 /// information to pass to the CSI driver to complete the CSI NodeStageVolume
209 /// and NodeStageVolume and NodeUnstageVolume calls.
210 /// This field is optional, and may be empty if no secret is required. If the
211 /// secret object contains more than one secret, all secrets are passed.
212 /// +optional
213 #[prost(message, optional, tag = "7")]
214 pub node_stage_secret_ref: ::core::option::Option<SecretReference>,
215 /// nodePublishSecretRef is a reference to the secret object containing
216 /// sensitive information to pass to the CSI driver to complete the CSI
217 /// NodePublishVolume and NodeUnpublishVolume calls.
218 /// This field is optional, and may be empty if no secret is required. If the
219 /// secret object contains more than one secret, all secrets are passed.
220 /// +optional
221 #[prost(message, optional, tag = "8")]
222 pub node_publish_secret_ref: ::core::option::Option<SecretReference>,
223 /// controllerExpandSecretRef is a reference to the secret object containing
224 /// sensitive information to pass to the CSI driver to complete the CSI
225 /// ControllerExpandVolume call.
226 /// This field is optional, and may be empty if no secret is required. If the
227 /// secret object contains more than one secret, all secrets are passed.
228 /// +optional
229 #[prost(message, optional, tag = "9")]
230 pub controller_expand_secret_ref: ::core::option::Option<SecretReference>,
231 /// nodeExpandSecretRef is a reference to the secret object containing
232 /// sensitive information to pass to the CSI driver to complete the CSI
233 /// NodeExpandVolume call.
234 /// This field is optional, may be omitted if no secret is required. If the
235 /// secret object contains more than one secret, all secrets are passed.
236 /// +optional
237 #[prost(message, optional, tag = "10")]
238 pub node_expand_secret_ref: ::core::option::Option<SecretReference>,
239}
240/// Represents a source location of a volume to mount, managed by an external CSI driver
241#[derive(Clone, PartialEq, ::prost::Message)]
242pub struct CSIVolumeSource {
243 /// driver is the name of the CSI driver that handles this volume.
244 /// Consult with your admin for the correct name as registered in the cluster.
245 #[prost(string, optional, tag = "1")]
246 pub driver: ::core::option::Option<::prost::alloc::string::String>,
247 /// readOnly specifies a read-only configuration for the volume.
248 /// Defaults to false (read/write).
249 /// +optional
250 #[prost(bool, optional, tag = "2")]
251 pub read_only: ::core::option::Option<bool>,
252 /// fsType to mount. Ex. "ext4", "xfs", "ntfs".
253 /// If not provided, the empty value is passed to the associated CSI driver
254 /// which will determine the default filesystem to apply.
255 /// +optional
256 #[prost(string, optional, tag = "3")]
257 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
258 /// volumeAttributes stores driver-specific properties that are passed to the CSI
259 /// driver. Consult your driver's documentation for supported values.
260 /// +optional
261 #[prost(btree_map = "string, string", tag = "4")]
262 pub volume_attributes:
263 ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
264 /// nodePublishSecretRef is a reference to the secret object containing
265 /// sensitive information to pass to the CSI driver to complete the CSI
266 /// NodePublishVolume and NodeUnpublishVolume calls.
267 /// This field is optional, and may be empty if no secret is required. If the
268 /// secret object contains more than one secret, all secret references are passed.
269 /// +optional
270 #[prost(message, optional, tag = "5")]
271 pub node_publish_secret_ref: ::core::option::Option<LocalObjectReference>,
272}
273/// Adds and removes POSIX capabilities from running containers.
274#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
275pub struct Capabilities {
276 /// Added capabilities
277 /// +optional
278 /// +listType=atomic
279 #[prost(string, repeated, tag = "1")]
280 pub add: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
281 /// Removed capabilities
282 /// +optional
283 /// +listType=atomic
284 #[prost(string, repeated, tag = "2")]
285 pub drop: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
286}
287/// Represents a Ceph Filesystem mount that lasts the lifetime of a pod
288/// Cephfs volumes do not support ownership management or SELinux relabeling.
289#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
290pub struct CephFsPersistentVolumeSource {
291 /// monitors is Required: Monitors is a collection of Ceph monitors
292 /// More info: <https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it>
293 /// +listType=atomic
294 #[prost(string, repeated, tag = "1")]
295 pub monitors: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
296 /// path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /
297 /// +optional
298 #[prost(string, optional, tag = "2")]
299 pub path: ::core::option::Option<::prost::alloc::string::String>,
300 /// user is Optional: User is the rados user name, default is admin
301 /// More info: <https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it>
302 /// +optional
303 #[prost(string, optional, tag = "3")]
304 pub user: ::core::option::Option<::prost::alloc::string::String>,
305 /// secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
306 /// More info: <https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it>
307 /// +optional
308 #[prost(string, optional, tag = "4")]
309 pub secret_file: ::core::option::Option<::prost::alloc::string::String>,
310 /// secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty.
311 /// More info: <https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it>
312 /// +optional
313 #[prost(message, optional, tag = "5")]
314 pub secret_ref: ::core::option::Option<SecretReference>,
315 /// readOnly is Optional: Defaults to false (read/write). ReadOnly here will force
316 /// the ReadOnly setting in VolumeMounts.
317 /// More info: <https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it>
318 /// +optional
319 #[prost(bool, optional, tag = "6")]
320 pub read_only: ::core::option::Option<bool>,
321}
322/// Represents a Ceph Filesystem mount that lasts the lifetime of a pod
323/// Cephfs volumes do not support ownership management or SELinux relabeling.
324#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
325pub struct CephFsVolumeSource {
326 /// monitors is Required: Monitors is a collection of Ceph monitors
327 /// More info: <https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it>
328 /// +listType=atomic
329 #[prost(string, repeated, tag = "1")]
330 pub monitors: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
331 /// path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /
332 /// +optional
333 #[prost(string, optional, tag = "2")]
334 pub path: ::core::option::Option<::prost::alloc::string::String>,
335 /// user is optional: User is the rados user name, default is admin
336 /// More info: <https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it>
337 /// +optional
338 #[prost(string, optional, tag = "3")]
339 pub user: ::core::option::Option<::prost::alloc::string::String>,
340 /// secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
341 /// More info: <https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it>
342 /// +optional
343 #[prost(string, optional, tag = "4")]
344 pub secret_file: ::core::option::Option<::prost::alloc::string::String>,
345 /// secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty.
346 /// More info: <https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it>
347 /// +optional
348 #[prost(message, optional, tag = "5")]
349 pub secret_ref: ::core::option::Option<LocalObjectReference>,
350 /// readOnly is Optional: Defaults to false (read/write). ReadOnly here will force
351 /// the ReadOnly setting in VolumeMounts.
352 /// More info: <https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it>
353 /// +optional
354 #[prost(bool, optional, tag = "6")]
355 pub read_only: ::core::option::Option<bool>,
356}
357/// Represents a cinder volume resource in Openstack.
358/// A Cinder volume must exist before mounting to a container.
359/// The volume must also be in the same region as the kubelet.
360/// Cinder volumes support ownership management and SELinux relabeling.
361#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
362pub struct CinderPersistentVolumeSource {
363 /// volumeID used to identify the volume in cinder.
364 /// More info: <https://examples.k8s.io/mysql-cinder-pd/README.md>
365 #[prost(string, optional, tag = "1")]
366 pub volume_id: ::core::option::Option<::prost::alloc::string::String>,
367 /// fsType Filesystem type to mount.
368 /// Must be a filesystem type supported by the host operating system.
369 /// Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
370 /// More info: <https://examples.k8s.io/mysql-cinder-pd/README.md>
371 /// +optional
372 #[prost(string, optional, tag = "2")]
373 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
374 /// readOnly is Optional: Defaults to false (read/write). ReadOnly here will force
375 /// the ReadOnly setting in VolumeMounts.
376 /// More info: <https://examples.k8s.io/mysql-cinder-pd/README.md>
377 /// +optional
378 #[prost(bool, optional, tag = "3")]
379 pub read_only: ::core::option::Option<bool>,
380 /// secretRef is Optional: points to a secret object containing parameters used to connect
381 /// to OpenStack.
382 /// +optional
383 #[prost(message, optional, tag = "4")]
384 pub secret_ref: ::core::option::Option<SecretReference>,
385}
386/// Represents a cinder volume resource in Openstack.
387/// A Cinder volume must exist before mounting to a container.
388/// The volume must also be in the same region as the kubelet.
389/// Cinder volumes support ownership management and SELinux relabeling.
390#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
391pub struct CinderVolumeSource {
392 /// volumeID used to identify the volume in cinder.
393 /// More info: <https://examples.k8s.io/mysql-cinder-pd/README.md>
394 #[prost(string, optional, tag = "1")]
395 pub volume_id: ::core::option::Option<::prost::alloc::string::String>,
396 /// fsType is the filesystem type to mount.
397 /// Must be a filesystem type supported by the host operating system.
398 /// Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
399 /// More info: <https://examples.k8s.io/mysql-cinder-pd/README.md>
400 /// +optional
401 #[prost(string, optional, tag = "2")]
402 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
403 /// readOnly defaults to false (read/write). ReadOnly here will force
404 /// the ReadOnly setting in VolumeMounts.
405 /// More info: <https://examples.k8s.io/mysql-cinder-pd/README.md>
406 /// +optional
407 #[prost(bool, optional, tag = "3")]
408 pub read_only: ::core::option::Option<bool>,
409 /// secretRef is optional: points to a secret object containing parameters used to connect
410 /// to OpenStack.
411 /// +optional
412 #[prost(message, optional, tag = "4")]
413 pub secret_ref: ::core::option::Option<LocalObjectReference>,
414}
415/// ClientIPConfig represents the configurations of Client IP based session affinity.
416#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
417pub struct ClientIpConfig {
418 /// timeoutSeconds specifies the seconds of ClientIP type session sticky time.
419 /// The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP".
420 /// Default value is 10800(for 3 hours).
421 /// +optional
422 #[prost(int32, optional, tag = "1")]
423 pub timeout_seconds: ::core::option::Option<i32>,
424}
425/// ClusterTrustBundleProjection describes how to select a set of
426/// ClusterTrustBundle objects and project their contents into the pod
427/// filesystem.
428#[derive(Clone, PartialEq, ::prost::Message)]
429pub struct ClusterTrustBundleProjection {
430 /// Select a single ClusterTrustBundle by object name. Mutually-exclusive
431 /// with signerName and labelSelector.
432 /// +optional
433 #[prost(string, optional, tag = "1")]
434 pub name: ::core::option::Option<::prost::alloc::string::String>,
435 /// Select all ClusterTrustBundles that match this signer name.
436 /// Mutually-exclusive with name. The contents of all selected
437 /// ClusterTrustBundles will be unified and deduplicated.
438 /// +optional
439 #[prost(string, optional, tag = "2")]
440 pub signer_name: ::core::option::Option<::prost::alloc::string::String>,
441 /// Select all ClusterTrustBundles that match this label selector. Only has
442 /// effect if signerName is set. Mutually-exclusive with name. If unset,
443 /// interpreted as "match nothing". If set but empty, interpreted as "match
444 /// everything".
445 /// +optional
446 #[prost(message, optional, tag = "3")]
447 pub label_selector:
448 ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::LabelSelector>,
449 /// If true, don't block pod startup if the referenced ClusterTrustBundle(s)
450 /// aren't available. If using name, then the named ClusterTrustBundle is
451 /// allowed not to exist. If using signerName, then the combination of
452 /// signerName and labelSelector is allowed to match zero
453 /// ClusterTrustBundles.
454 /// +optional
455 #[prost(bool, optional, tag = "5")]
456 pub optional: ::core::option::Option<bool>,
457 /// Relative path from the volume root to write the bundle.
458 #[prost(string, optional, tag = "4")]
459 pub path: ::core::option::Option<::prost::alloc::string::String>,
460}
461/// Information about the condition of a component.
462#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
463pub struct ComponentCondition {
464 /// Type of condition for a component.
465 /// Valid value: "Healthy"
466 #[prost(string, optional, tag = "1")]
467 pub r#type: ::core::option::Option<::prost::alloc::string::String>,
468 /// Status of the condition for a component.
469 /// Valid values for "Healthy": "True", "False", or "Unknown".
470 #[prost(string, optional, tag = "2")]
471 pub status: ::core::option::Option<::prost::alloc::string::String>,
472 /// Message about the condition for a component.
473 /// For example, information about a health check.
474 /// +optional
475 #[prost(string, optional, tag = "3")]
476 pub message: ::core::option::Option<::prost::alloc::string::String>,
477 /// Condition error code for a component.
478 /// For example, a health check error code.
479 /// +optional
480 #[prost(string, optional, tag = "4")]
481 pub error: ::core::option::Option<::prost::alloc::string::String>,
482}
483/// ComponentStatus (and ComponentStatusList) holds the cluster validation info.
484/// Deprecated: This API is deprecated in v1.19+
485#[derive(Clone, PartialEq, ::prost::Message)]
486pub struct ComponentStatus {
487 /// Standard object's metadata.
488 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
489 /// +optional
490 #[prost(message, optional, tag = "1")]
491 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
492 /// List of component conditions observed
493 /// +optional
494 /// +patchMergeKey=type
495 /// +patchStrategy=merge
496 /// +listType=map
497 /// +listMapKey=type
498 #[prost(message, repeated, tag = "2")]
499 pub conditions: ::prost::alloc::vec::Vec<ComponentCondition>,
500}
501/// Status of all the conditions for the component as a list of ComponentStatus objects.
502/// Deprecated: This API is deprecated in v1.19+
503#[derive(Clone, PartialEq, ::prost::Message)]
504pub struct ComponentStatusList {
505 /// Standard list metadata.
506 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds>
507 /// +optional
508 #[prost(message, optional, tag = "1")]
509 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
510 /// List of ComponentStatus objects.
511 #[prost(message, repeated, tag = "2")]
512 pub items: ::prost::alloc::vec::Vec<ComponentStatus>,
513}
514/// ConfigMap holds configuration data for pods to consume.
515#[derive(Clone, PartialEq, ::prost::Message)]
516pub struct ConfigMap {
517 /// Standard object's metadata.
518 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
519 /// +optional
520 #[prost(message, optional, tag = "1")]
521 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
522 /// Immutable, if set to true, ensures that data stored in the ConfigMap cannot
523 /// be updated (only object metadata can be modified).
524 /// If not set to true, the field can be modified at any time.
525 /// Defaulted to nil.
526 /// +optional
527 #[prost(bool, optional, tag = "4")]
528 pub immutable: ::core::option::Option<bool>,
529 /// Data contains the configuration data.
530 /// Each key must consist of alphanumeric characters, '-', '_' or '.'.
531 /// Values with non-UTF-8 byte sequences must use the BinaryData field.
532 /// The keys stored in Data must not overlap with the keys in
533 /// the BinaryData field, this is enforced during validation process.
534 /// +optional
535 #[prost(btree_map = "string, string", tag = "2")]
536 pub data:
537 ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
538 /// BinaryData contains the binary data.
539 /// Each key must consist of alphanumeric characters, '-', '_' or '.'.
540 /// BinaryData can contain byte sequences that are not in the UTF-8 range.
541 /// The keys stored in BinaryData must not overlap with the ones in
542 /// the Data field, this is enforced during validation process.
543 /// Using this field will require 1.10+ apiserver and
544 /// kubelet.
545 /// +optional
546 #[prost(btree_map = "string, bytes", tag = "3")]
547 pub binary_data:
548 ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::vec::Vec<u8>>,
549}
550/// ConfigMapEnvSource selects a ConfigMap to populate the environment
551/// variables with.
552///
553/// The contents of the target ConfigMap's Data field will represent the
554/// key-value pairs as environment variables.
555#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
556pub struct ConfigMapEnvSource {
557 /// The ConfigMap to select from.
558 #[prost(message, optional, tag = "1")]
559 pub local_object_reference: ::core::option::Option<LocalObjectReference>,
560 /// Specify whether the ConfigMap must be defined
561 /// +optional
562 #[prost(bool, optional, tag = "2")]
563 pub optional: ::core::option::Option<bool>,
564}
565/// Selects a key from a ConfigMap.
566/// +structType=atomic
567#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
568pub struct ConfigMapKeySelector {
569 /// The ConfigMap to select from.
570 #[prost(message, optional, tag = "1")]
571 pub local_object_reference: ::core::option::Option<LocalObjectReference>,
572 /// The key to select.
573 #[prost(string, optional, tag = "2")]
574 pub key: ::core::option::Option<::prost::alloc::string::String>,
575 /// Specify whether the ConfigMap or its key must be defined
576 /// +optional
577 #[prost(bool, optional, tag = "3")]
578 pub optional: ::core::option::Option<bool>,
579}
580/// ConfigMapList is a resource containing a list of ConfigMap objects.
581#[derive(Clone, PartialEq, ::prost::Message)]
582pub struct ConfigMapList {
583 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
584 /// +optional
585 #[prost(message, optional, tag = "1")]
586 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
587 /// Items is the list of ConfigMaps.
588 #[prost(message, repeated, tag = "2")]
589 pub items: ::prost::alloc::vec::Vec<ConfigMap>,
590}
591/// ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node.
592/// This API is deprecated since 1.22: <https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration>
593#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
594pub struct ConfigMapNodeConfigSource {
595 /// Namespace is the metadata.namespace of the referenced ConfigMap.
596 /// This field is required in all cases.
597 #[prost(string, optional, tag = "1")]
598 pub namespace: ::core::option::Option<::prost::alloc::string::String>,
599 /// Name is the metadata.name of the referenced ConfigMap.
600 /// This field is required in all cases.
601 #[prost(string, optional, tag = "2")]
602 pub name: ::core::option::Option<::prost::alloc::string::String>,
603 /// UID is the metadata.UID of the referenced ConfigMap.
604 /// This field is forbidden in Node.Spec, and required in Node.Status.
605 /// +optional
606 #[prost(string, optional, tag = "3")]
607 pub uid: ::core::option::Option<::prost::alloc::string::String>,
608 /// ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap.
609 /// This field is forbidden in Node.Spec, and required in Node.Status.
610 /// +optional
611 #[prost(string, optional, tag = "4")]
612 pub resource_version: ::core::option::Option<::prost::alloc::string::String>,
613 /// KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure
614 /// This field is required in all cases.
615 #[prost(string, optional, tag = "5")]
616 pub kubelet_config_key: ::core::option::Option<::prost::alloc::string::String>,
617}
618/// Adapts a ConfigMap into a projected volume.
619///
620/// The contents of the target ConfigMap's Data field will be presented in a
621/// projected volume as files using the keys in the Data field as the file names,
622/// unless the items element is populated with specific mappings of keys to paths.
623/// Note that this is identical to a configmap volume source without the default
624/// mode.
625#[derive(Clone, PartialEq, ::prost::Message)]
626pub struct ConfigMapProjection {
627 #[prost(message, optional, tag = "1")]
628 pub local_object_reference: ::core::option::Option<LocalObjectReference>,
629 /// items if unspecified, each key-value pair in the Data field of the referenced
630 /// ConfigMap will be projected into the volume as a file whose name is the
631 /// key and content is the value. If specified, the listed keys will be
632 /// projected into the specified paths, and unlisted keys will not be
633 /// present. If a key is specified which is not present in the ConfigMap,
634 /// the volume setup will error unless it is marked optional. Paths must be
635 /// relative and may not contain the '..' path or start with '..'.
636 /// +optional
637 /// +listType=atomic
638 #[prost(message, repeated, tag = "2")]
639 pub items: ::prost::alloc::vec::Vec<KeyToPath>,
640 /// optional specify whether the ConfigMap or its keys must be defined
641 /// +optional
642 #[prost(bool, optional, tag = "4")]
643 pub optional: ::core::option::Option<bool>,
644}
645/// Adapts a ConfigMap into a volume.
646///
647/// The contents of the target ConfigMap's Data field will be presented in a
648/// volume as files using the keys in the Data field as the file names, unless
649/// the items element is populated with specific mappings of keys to paths.
650/// ConfigMap volumes support ownership management and SELinux relabeling.
651#[derive(Clone, PartialEq, ::prost::Message)]
652pub struct ConfigMapVolumeSource {
653 #[prost(message, optional, tag = "1")]
654 pub local_object_reference: ::core::option::Option<LocalObjectReference>,
655 /// items if unspecified, each key-value pair in the Data field of the referenced
656 /// ConfigMap will be projected into the volume as a file whose name is the
657 /// key and content is the value. If specified, the listed keys will be
658 /// projected into the specified paths, and unlisted keys will not be
659 /// present. If a key is specified which is not present in the ConfigMap,
660 /// the volume setup will error unless it is marked optional. Paths must be
661 /// relative and may not contain the '..' path or start with '..'.
662 /// +optional
663 /// +listType=atomic
664 #[prost(message, repeated, tag = "2")]
665 pub items: ::prost::alloc::vec::Vec<KeyToPath>,
666 /// defaultMode is optional: mode bits used to set permissions on created files by default.
667 /// Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
668 /// YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
669 /// Defaults to 0644.
670 /// Directories within the path are not affected by this setting.
671 /// This might be in conflict with other options that affect the file
672 /// mode, like fsGroup, and the result can be other mode bits set.
673 /// +optional
674 #[prost(int32, optional, tag = "3")]
675 pub default_mode: ::core::option::Option<i32>,
676 /// optional specify whether the ConfigMap or its keys must be defined
677 /// +optional
678 #[prost(bool, optional, tag = "4")]
679 pub optional: ::core::option::Option<bool>,
680}
681/// A single application container that you want to run within a pod.
682#[derive(Clone, PartialEq, ::prost::Message)]
683pub struct Container {
684 /// Name of the container specified as a DNS_LABEL.
685 /// Each container in a pod must have a unique name (DNS_LABEL).
686 /// Cannot be updated.
687 #[prost(string, optional, tag = "1")]
688 pub name: ::core::option::Option<::prost::alloc::string::String>,
689 /// Container image name.
690 /// More info: <https://kubernetes.io/docs/concepts/containers/images>
691 /// This field is optional to allow higher level config management to default or override
692 /// container images in workload controllers like Deployments and StatefulSets.
693 /// +optional
694 #[prost(string, optional, tag = "2")]
695 pub image: ::core::option::Option<::prost::alloc::string::String>,
696 /// Entrypoint array. Not executed within a shell.
697 /// The container image's ENTRYPOINT is used if this is not provided.
698 /// Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
699 /// cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
700 /// to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
701 /// produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
702 /// of whether the variable exists or not. Cannot be updated.
703 /// More info: <https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell>
704 /// +optional
705 /// +listType=atomic
706 #[prost(string, repeated, tag = "3")]
707 pub command: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
708 /// Arguments to the entrypoint.
709 /// The container image's CMD is used if this is not provided.
710 /// Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
711 /// cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
712 /// to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
713 /// produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
714 /// of whether the variable exists or not. Cannot be updated.
715 /// More info: <https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell>
716 /// +optional
717 /// +listType=atomic
718 #[prost(string, repeated, tag = "4")]
719 pub args: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
720 /// Container's working directory.
721 /// If not specified, the container runtime's default will be used, which
722 /// might be configured in the container image.
723 /// Cannot be updated.
724 /// +optional
725 #[prost(string, optional, tag = "5")]
726 pub working_dir: ::core::option::Option<::prost::alloc::string::String>,
727 /// List of ports to expose from the container. Not specifying a port here
728 /// DOES NOT prevent that port from being exposed. Any port which is
729 /// listening on the default "0.0.0.0" address inside a container will be
730 /// accessible from the network.
731 /// Modifying this array with strategic merge patch may corrupt the data.
732 /// For more information See <https://github.com/kubernetes/kubernetes/issues/108255.>
733 /// Cannot be updated.
734 /// +optional
735 /// +patchMergeKey=containerPort
736 /// +patchStrategy=merge
737 /// +listType=map
738 /// +listMapKey=containerPort
739 /// +listMapKey=protocol
740 #[prost(message, repeated, tag = "6")]
741 pub ports: ::prost::alloc::vec::Vec<ContainerPort>,
742 /// List of sources to populate environment variables in the container.
743 /// The keys defined within a source must be a C_IDENTIFIER. All invalid keys
744 /// will be reported as an event when the container is starting. When a key exists in multiple
745 /// sources, the value associated with the last source will take precedence.
746 /// Values defined by an Env with a duplicate key will take precedence.
747 /// Cannot be updated.
748 /// +optional
749 /// +listType=atomic
750 #[prost(message, repeated, tag = "19")]
751 pub env_from: ::prost::alloc::vec::Vec<EnvFromSource>,
752 /// List of environment variables to set in the container.
753 /// Cannot be updated.
754 /// +optional
755 /// +patchMergeKey=name
756 /// +patchStrategy=merge
757 /// +listType=map
758 /// +listMapKey=name
759 #[prost(message, repeated, tag = "7")]
760 pub env: ::prost::alloc::vec::Vec<EnvVar>,
761 /// Compute Resources required by this container.
762 /// Cannot be updated.
763 /// More info: <https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/>
764 /// +optional
765 #[prost(message, optional, tag = "8")]
766 pub resources: ::core::option::Option<ResourceRequirements>,
767 /// Resources resize policy for the container.
768 /// +featureGate=InPlacePodVerticalScaling
769 /// +optional
770 /// +listType=atomic
771 #[prost(message, repeated, tag = "23")]
772 pub resize_policy: ::prost::alloc::vec::Vec<ContainerResizePolicy>,
773 /// RestartPolicy defines the restart behavior of individual containers in a pod.
774 /// This field may only be set for init containers, and the only allowed value is "Always".
775 /// For non-init containers or when this field is not specified,
776 /// the restart behavior is defined by the Pod's restart policy and the container type.
777 /// Setting the RestartPolicy as "Always" for the init container will have the following effect:
778 /// this init container will be continually restarted on
779 /// exit until all regular containers have terminated. Once all regular
780 /// containers have completed, all init containers with restartPolicy "Always"
781 /// will be shut down. This lifecycle differs from normal init containers and
782 /// is often referred to as a "sidecar" container. Although this init
783 /// container still starts in the init container sequence, it does not wait
784 /// for the container to complete before proceeding to the next init
785 /// container. Instead, the next init container starts immediately after this
786 /// init container is started, or after any startupProbe has successfully
787 /// completed.
788 /// +featureGate=SidecarContainers
789 /// +optional
790 #[prost(string, optional, tag = "24")]
791 pub restart_policy: ::core::option::Option<::prost::alloc::string::String>,
792 /// Pod volumes to mount into the container's filesystem.
793 /// Cannot be updated.
794 /// +optional
795 /// +patchMergeKey=mountPath
796 /// +patchStrategy=merge
797 /// +listType=map
798 /// +listMapKey=mountPath
799 #[prost(message, repeated, tag = "9")]
800 pub volume_mounts: ::prost::alloc::vec::Vec<VolumeMount>,
801 /// volumeDevices is the list of block devices to be used by the container.
802 /// +patchMergeKey=devicePath
803 /// +patchStrategy=merge
804 /// +listType=map
805 /// +listMapKey=devicePath
806 /// +optional
807 #[prost(message, repeated, tag = "21")]
808 pub volume_devices: ::prost::alloc::vec::Vec<VolumeDevice>,
809 /// Periodic probe of container liveness.
810 /// Container will be restarted if the probe fails.
811 /// Cannot be updated.
812 /// More info: <https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes>
813 /// +optional
814 #[prost(message, optional, tag = "10")]
815 pub liveness_probe: ::core::option::Option<Probe>,
816 /// Periodic probe of container service readiness.
817 /// Container will be removed from service endpoints if the probe fails.
818 /// Cannot be updated.
819 /// More info: <https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes>
820 /// +optional
821 #[prost(message, optional, tag = "11")]
822 pub readiness_probe: ::core::option::Option<Probe>,
823 /// StartupProbe indicates that the Pod has successfully initialized.
824 /// If specified, no other probes are executed until this completes successfully.
825 /// If this probe fails, the Pod will be restarted, just as if the livenessProbe failed.
826 /// This can be used to provide different probe parameters at the beginning of a Pod's lifecycle,
827 /// when it might take a long time to load data or warm a cache, than during steady-state operation.
828 /// This cannot be updated.
829 /// More info: <https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes>
830 /// +optional
831 #[prost(message, optional, tag = "22")]
832 pub startup_probe: ::core::option::Option<Probe>,
833 /// Actions that the management system should take in response to container lifecycle events.
834 /// Cannot be updated.
835 /// +optional
836 #[prost(message, optional, tag = "12")]
837 pub lifecycle: ::core::option::Option<Lifecycle>,
838 /// Optional: Path at which the file to which the container's termination message
839 /// will be written is mounted into the container's filesystem.
840 /// Message written is intended to be brief final status, such as an assertion failure message.
841 /// Will be truncated by the node if greater than 4096 bytes. The total message length across
842 /// all containers will be limited to 12kb.
843 /// Defaults to /dev/termination-log.
844 /// Cannot be updated.
845 /// +optional
846 #[prost(string, optional, tag = "13")]
847 pub termination_message_path: ::core::option::Option<::prost::alloc::string::String>,
848 /// Indicate how the termination message should be populated. File will use the contents of
849 /// terminationMessagePath to populate the container status message on both success and failure.
850 /// FallbackToLogsOnError will use the last chunk of container log output if the termination
851 /// message file is empty and the container exited with an error.
852 /// The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
853 /// Defaults to File.
854 /// Cannot be updated.
855 /// +optional
856 #[prost(string, optional, tag = "20")]
857 pub termination_message_policy: ::core::option::Option<::prost::alloc::string::String>,
858 /// Image pull policy.
859 /// One of Always, Never, IfNotPresent.
860 /// Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
861 /// Cannot be updated.
862 /// More info: <https://kubernetes.io/docs/concepts/containers/images#updating-images>
863 /// +optional
864 #[prost(string, optional, tag = "14")]
865 pub image_pull_policy: ::core::option::Option<::prost::alloc::string::String>,
866 /// SecurityContext defines the security options the container should be run with.
867 /// If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
868 /// More info: <https://kubernetes.io/docs/tasks/configure-pod-container/security-context/>
869 /// +optional
870 #[prost(message, optional, tag = "15")]
871 pub security_context: ::core::option::Option<SecurityContext>,
872 /// Whether this container should allocate a buffer for stdin in the container runtime. If this
873 /// is not set, reads from stdin in the container will always result in EOF.
874 /// Default is false.
875 /// +optional
876 #[prost(bool, optional, tag = "16")]
877 pub stdin: ::core::option::Option<bool>,
878 /// Whether the container runtime should close the stdin channel after it has been opened by
879 /// a single attach. When stdin is true the stdin stream will remain open across multiple attach
880 /// sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
881 /// first client attaches to stdin, and then remains open and accepts data until the client disconnects,
882 /// at which time stdin is closed and remains closed until the container is restarted. If this
883 /// flag is false, a container processes that reads from stdin will never receive an EOF.
884 /// Default is false
885 /// +optional
886 #[prost(bool, optional, tag = "17")]
887 pub stdin_once: ::core::option::Option<bool>,
888 /// Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
889 /// Default is false.
890 /// +optional
891 #[prost(bool, optional, tag = "18")]
892 pub tty: ::core::option::Option<bool>,
893}
894/// Describe a container image
895#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
896pub struct ContainerImage {
897 /// Names by which this image is known.
898 /// e.g. \["kubernetes.example/hyperkube:v1.0.7", "cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7"\]
899 /// +optional
900 /// +listType=atomic
901 #[prost(string, repeated, tag = "1")]
902 pub names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
903 /// The size of the image in bytes.
904 /// +optional
905 #[prost(int64, optional, tag = "2")]
906 pub size_bytes: ::core::option::Option<i64>,
907}
908/// ContainerPort represents a network port in a single container.
909#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
910pub struct ContainerPort {
911 /// If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
912 /// named port in a pod must have a unique name. Name for the port that can be
913 /// referred to by services.
914 /// +optional
915 #[prost(string, optional, tag = "1")]
916 pub name: ::core::option::Option<::prost::alloc::string::String>,
917 /// Number of port to expose on the host.
918 /// If specified, this must be a valid port number, 0 < x < 65536.
919 /// If HostNetwork is specified, this must match ContainerPort.
920 /// Most containers do not need this.
921 /// +optional
922 #[prost(int32, optional, tag = "2")]
923 pub host_port: ::core::option::Option<i32>,
924 /// Number of port to expose on the pod's IP address.
925 /// This must be a valid port number, 0 < x < 65536.
926 #[prost(int32, optional, tag = "3")]
927 pub container_port: ::core::option::Option<i32>,
928 /// Protocol for port. Must be UDP, TCP, or SCTP.
929 /// Defaults to "TCP".
930 /// +optional
931 /// +default="TCP"
932 #[prost(string, optional, tag = "4")]
933 pub protocol: ::core::option::Option<::prost::alloc::string::String>,
934 /// What host IP to bind the external port to.
935 /// +optional
936 #[prost(string, optional, tag = "5")]
937 pub host_ip: ::core::option::Option<::prost::alloc::string::String>,
938}
939/// ContainerResizePolicy represents resource resize policy for the container.
940#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
941pub struct ContainerResizePolicy {
942 /// Name of the resource to which this resource resize policy applies.
943 /// Supported values: cpu, memory.
944 #[prost(string, optional, tag = "1")]
945 pub resource_name: ::core::option::Option<::prost::alloc::string::String>,
946 /// Restart policy to apply when specified resource is resized.
947 /// If not specified, it defaults to NotRequired.
948 #[prost(string, optional, tag = "2")]
949 pub restart_policy: ::core::option::Option<::prost::alloc::string::String>,
950}
951/// ContainerState holds a possible state of container.
952/// Only one of its members may be specified.
953/// If none of them is specified, the default one is ContainerStateWaiting.
954#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
955pub struct ContainerState {
956 /// Details about a waiting container
957 /// +optional
958 #[prost(message, optional, tag = "1")]
959 pub waiting: ::core::option::Option<ContainerStateWaiting>,
960 /// Details about a running container
961 /// +optional
962 #[prost(message, optional, tag = "2")]
963 pub running: ::core::option::Option<ContainerStateRunning>,
964 /// Details about a terminated container
965 /// +optional
966 #[prost(message, optional, tag = "3")]
967 pub terminated: ::core::option::Option<ContainerStateTerminated>,
968}
969/// ContainerStateRunning is a running state of a container.
970#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
971pub struct ContainerStateRunning {
972 /// Time at which the container was last (re-)started
973 /// +optional
974 #[prost(message, optional, tag = "1")]
975 pub started_at: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::Time>,
976}
977/// ContainerStateTerminated is a terminated state of a container.
978#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
979pub struct ContainerStateTerminated {
980 /// Exit status from the last termination of the container
981 #[prost(int32, optional, tag = "1")]
982 pub exit_code: ::core::option::Option<i32>,
983 /// Signal from the last termination of the container
984 /// +optional
985 #[prost(int32, optional, tag = "2")]
986 pub signal: ::core::option::Option<i32>,
987 /// (brief) reason from the last termination of the container
988 /// +optional
989 #[prost(string, optional, tag = "3")]
990 pub reason: ::core::option::Option<::prost::alloc::string::String>,
991 /// Message regarding the last termination of the container
992 /// +optional
993 #[prost(string, optional, tag = "4")]
994 pub message: ::core::option::Option<::prost::alloc::string::String>,
995 /// Time at which previous execution of the container started
996 /// +optional
997 #[prost(message, optional, tag = "5")]
998 pub started_at: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::Time>,
999 /// Time at which the container last terminated
1000 /// +optional
1001 #[prost(message, optional, tag = "6")]
1002 pub finished_at: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::Time>,
1003 /// Container's ID in the format '<type>://<container_id>'
1004 /// +optional
1005 #[prost(string, optional, tag = "7")]
1006 pub container_id: ::core::option::Option<::prost::alloc::string::String>,
1007}
1008/// ContainerStateWaiting is a waiting state of a container.
1009#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1010pub struct ContainerStateWaiting {
1011 /// (brief) reason the container is not yet running.
1012 /// +optional
1013 #[prost(string, optional, tag = "1")]
1014 pub reason: ::core::option::Option<::prost::alloc::string::String>,
1015 /// Message regarding why the container is not yet running.
1016 /// +optional
1017 #[prost(string, optional, tag = "2")]
1018 pub message: ::core::option::Option<::prost::alloc::string::String>,
1019}
1020/// ContainerStatus contains details for the current status of this container.
1021#[derive(Clone, PartialEq, ::prost::Message)]
1022pub struct ContainerStatus {
1023 /// Name is a DNS_LABEL representing the unique name of the container.
1024 /// Each container in a pod must have a unique name across all container types.
1025 /// Cannot be updated.
1026 #[prost(string, optional, tag = "1")]
1027 pub name: ::core::option::Option<::prost::alloc::string::String>,
1028 /// State holds details about the container's current condition.
1029 /// +optional
1030 #[prost(message, optional, tag = "2")]
1031 pub state: ::core::option::Option<ContainerState>,
1032 /// LastTerminationState holds the last termination state of the container to
1033 /// help debug container crashes and restarts. This field is not
1034 /// populated if the container is still running and RestartCount is 0.
1035 /// +optional
1036 #[prost(message, optional, tag = "3")]
1037 pub last_state: ::core::option::Option<ContainerState>,
1038 /// Ready specifies whether the container is currently passing its readiness check.
1039 /// The value will change as readiness probes keep executing. If no readiness
1040 /// probes are specified, this field defaults to true once the container is
1041 /// fully started (see Started field).
1042 ///
1043 /// The value is typically used to determine whether a container is ready to
1044 /// accept traffic.
1045 #[prost(bool, optional, tag = "4")]
1046 pub ready: ::core::option::Option<bool>,
1047 /// RestartCount holds the number of times the container has been restarted.
1048 /// Kubelet makes an effort to always increment the value, but there
1049 /// are cases when the state may be lost due to node restarts and then the value
1050 /// may be reset to 0. The value is never negative.
1051 #[prost(int32, optional, tag = "5")]
1052 pub restart_count: ::core::option::Option<i32>,
1053 /// Image is the name of container image that the container is running.
1054 /// The container image may not match the image used in the PodSpec,
1055 /// as it may have been resolved by the runtime.
1056 /// More info: <https://kubernetes.io/docs/concepts/containers/images.>
1057 #[prost(string, optional, tag = "6")]
1058 pub image: ::core::option::Option<::prost::alloc::string::String>,
1059 /// ImageID is the image ID of the container's image. The image ID may not
1060 /// match the image ID of the image used in the PodSpec, as it may have been
1061 /// resolved by the runtime.
1062 #[prost(string, optional, tag = "7")]
1063 pub image_id: ::core::option::Option<::prost::alloc::string::String>,
1064 /// ContainerID is the ID of the container in the format '<type>://<container_id>'.
1065 /// Where type is a container runtime identifier, returned from Version call of CRI API
1066 /// (for example "containerd").
1067 /// +optional
1068 #[prost(string, optional, tag = "8")]
1069 pub container_id: ::core::option::Option<::prost::alloc::string::String>,
1070 /// Started indicates whether the container has finished its postStart lifecycle hook
1071 /// and passed its startup probe.
1072 /// Initialized as false, becomes true after startupProbe is considered
1073 /// successful. Resets to false when the container is restarted, or if kubelet
1074 /// loses state temporarily. In both cases, startup probes will run again.
1075 /// Is always true when no startupProbe is defined and container is running and
1076 /// has passed the postStart lifecycle hook. The null value must be treated the
1077 /// same as false.
1078 /// +optional
1079 #[prost(bool, optional, tag = "9")]
1080 pub started: ::core::option::Option<bool>,
1081 /// AllocatedResources represents the compute resources allocated for this container by the
1082 /// node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission
1083 /// and after successfully admitting desired pod resize.
1084 /// +featureGate=InPlacePodVerticalScalingAllocatedStatus
1085 /// +optional
1086 #[prost(btree_map = "string, message", tag = "10")]
1087 pub allocated_resources: ::prost::alloc::collections::BTreeMap<
1088 ::prost::alloc::string::String,
1089 super::super::super::apimachinery::pkg::api::resource::Quantity,
1090 >,
1091 /// Resources represents the compute resource requests and limits that have been successfully
1092 /// enacted on the running container after it has been started or has been successfully resized.
1093 /// +featureGate=InPlacePodVerticalScaling
1094 /// +optional
1095 #[prost(message, optional, tag = "11")]
1096 pub resources: ::core::option::Option<ResourceRequirements>,
1097 /// Status of volume mounts.
1098 /// +optional
1099 /// +patchMergeKey=mountPath
1100 /// +patchStrategy=merge
1101 /// +listType=map
1102 /// +listMapKey=mountPath
1103 /// +featureGate=RecursiveReadOnlyMounts
1104 #[prost(message, repeated, tag = "12")]
1105 pub volume_mounts: ::prost::alloc::vec::Vec<VolumeMountStatus>,
1106 /// User represents user identity information initially attached to the first process of the container
1107 /// +featureGate=SupplementalGroupsPolicy
1108 /// +optional
1109 #[prost(message, optional, tag = "13")]
1110 pub user: ::core::option::Option<ContainerUser>,
1111 /// AllocatedResourcesStatus represents the status of various resources
1112 /// allocated for this Pod.
1113 /// +featureGate=ResourceHealthStatus
1114 /// +optional
1115 /// +patchMergeKey=name
1116 /// +patchStrategy=merge
1117 /// +listType=map
1118 /// +listMapKey=name
1119 #[prost(message, repeated, tag = "14")]
1120 pub allocated_resources_status: ::prost::alloc::vec::Vec<ResourceStatus>,
1121 /// StopSignal reports the effective stop signal for this container
1122 /// +featureGate=ContainerStopSignals
1123 /// +optional
1124 #[prost(string, optional, tag = "15")]
1125 pub stop_signal: ::core::option::Option<::prost::alloc::string::String>,
1126}
1127/// ContainerUser represents user identity information
1128#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1129pub struct ContainerUser {
1130 /// Linux holds user identity information initially attached to the first process of the containers in Linux.
1131 /// Note that the actual running identity can be changed if the process has enough privilege to do so.
1132 /// +optional
1133 #[prost(message, optional, tag = "1")]
1134 pub linux: ::core::option::Option<LinuxContainerUser>,
1135}
1136/// DaemonEndpoint contains information about a single Daemon endpoint.
1137#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
1138pub struct DaemonEndpoint {
1139 /// Port number of the given endpoint.
1140 #[prost(int32, optional, tag = "1")]
1141 pub port: ::core::option::Option<i32>,
1142}
1143/// Represents downward API info for projecting into a projected volume.
1144/// Note that this is identical to a downwardAPI volume source without the default
1145/// mode.
1146#[derive(Clone, PartialEq, ::prost::Message)]
1147pub struct DownwardAPIProjection {
1148 /// Items is a list of DownwardAPIVolume file
1149 /// +optional
1150 /// +listType=atomic
1151 #[prost(message, repeated, tag = "1")]
1152 pub items: ::prost::alloc::vec::Vec<DownwardAPIVolumeFile>,
1153}
1154/// DownwardAPIVolumeFile represents information to create the file containing the pod field
1155#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1156pub struct DownwardAPIVolumeFile {
1157 /// Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'
1158 #[prost(string, optional, tag = "1")]
1159 pub path: ::core::option::Option<::prost::alloc::string::String>,
1160 /// Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported.
1161 /// +optional
1162 #[prost(message, optional, tag = "2")]
1163 pub field_ref: ::core::option::Option<ObjectFieldSelector>,
1164 /// Selects a resource of the container: only resources limits and requests
1165 /// (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.
1166 /// +optional
1167 #[prost(message, optional, tag = "3")]
1168 pub resource_field_ref: ::core::option::Option<ResourceFieldSelector>,
1169 /// Optional: mode bits used to set permissions on this file, must be an octal value
1170 /// between 0000 and 0777 or a decimal value between 0 and 511.
1171 /// YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
1172 /// If not specified, the volume defaultMode will be used.
1173 /// This might be in conflict with other options that affect the file
1174 /// mode, like fsGroup, and the result can be other mode bits set.
1175 /// +optional
1176 #[prost(int32, optional, tag = "4")]
1177 pub mode: ::core::option::Option<i32>,
1178}
1179/// DownwardAPIVolumeSource represents a volume containing downward API info.
1180/// Downward API volumes support ownership management and SELinux relabeling.
1181#[derive(Clone, PartialEq, ::prost::Message)]
1182pub struct DownwardAPIVolumeSource {
1183 /// Items is a list of downward API volume file
1184 /// +optional
1185 /// +listType=atomic
1186 #[prost(message, repeated, tag = "1")]
1187 pub items: ::prost::alloc::vec::Vec<DownwardAPIVolumeFile>,
1188 /// Optional: mode bits to use on created files by default. Must be a
1189 /// Optional: mode bits used to set permissions on created files by default.
1190 /// Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
1191 /// YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
1192 /// Defaults to 0644.
1193 /// Directories within the path are not affected by this setting.
1194 /// This might be in conflict with other options that affect the file
1195 /// mode, like fsGroup, and the result can be other mode bits set.
1196 /// +optional
1197 #[prost(int32, optional, tag = "2")]
1198 pub default_mode: ::core::option::Option<i32>,
1199}
1200/// Represents an empty directory for a pod.
1201/// Empty directory volumes support ownership management and SELinux relabeling.
1202#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1203pub struct EmptyDirVolumeSource {
1204 /// medium represents what type of storage medium should back this directory.
1205 /// The default is "" which means to use the node's default medium.
1206 /// Must be an empty string (default) or Memory.
1207 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#emptydir>
1208 /// +optional
1209 #[prost(string, optional, tag = "1")]
1210 pub medium: ::core::option::Option<::prost::alloc::string::String>,
1211 /// sizeLimit is the total amount of local storage required for this EmptyDir volume.
1212 /// The size limit is also applicable for memory medium.
1213 /// The maximum usage on memory medium EmptyDir would be the minimum value between
1214 /// the SizeLimit specified here and the sum of memory limits of all containers in a pod.
1215 /// The default is nil which means that the limit is undefined.
1216 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#emptydir>
1217 /// +optional
1218 #[prost(message, optional, tag = "2")]
1219 pub size_limit: ::core::option::Option<super::super::super::apimachinery::pkg::api::resource::Quantity>,
1220}
1221/// EndpointAddress is a tuple that describes single IP address.
1222/// Deprecated: This API is deprecated in v1.33+.
1223/// +structType=atomic
1224#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1225pub struct EndpointAddress {
1226 /// The IP of this endpoint.
1227 /// May not be loopback (127.0.0.0/8 or ::1), link-local (169.254.0.0/16 or fe80::/10),
1228 /// or link-local multicast (224.0.0.0/24 or ff02::/16).
1229 #[prost(string, optional, tag = "1")]
1230 pub ip: ::core::option::Option<::prost::alloc::string::String>,
1231 /// The Hostname of this endpoint
1232 /// +optional
1233 #[prost(string, optional, tag = "3")]
1234 pub hostname: ::core::option::Option<::prost::alloc::string::String>,
1235 /// Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.
1236 /// +optional
1237 #[prost(string, optional, tag = "4")]
1238 pub node_name: ::core::option::Option<::prost::alloc::string::String>,
1239 /// Reference to object providing the endpoint.
1240 /// +optional
1241 #[prost(message, optional, tag = "2")]
1242 pub target_ref: ::core::option::Option<ObjectReference>,
1243}
1244/// EndpointPort is a tuple that describes a single port.
1245/// Deprecated: This API is deprecated in v1.33+.
1246/// +structType=atomic
1247#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1248pub struct EndpointPort {
1249 /// The name of this port. This must match the 'name' field in the
1250 /// corresponding ServicePort.
1251 /// Must be a DNS_LABEL.
1252 /// Optional only if one port is defined.
1253 /// +optional
1254 #[prost(string, optional, tag = "1")]
1255 pub name: ::core::option::Option<::prost::alloc::string::String>,
1256 /// The port number of the endpoint.
1257 #[prost(int32, optional, tag = "2")]
1258 pub port: ::core::option::Option<i32>,
1259 /// The IP protocol for this port.
1260 /// Must be UDP, TCP, or SCTP.
1261 /// Default is TCP.
1262 /// +optional
1263 #[prost(string, optional, tag = "3")]
1264 pub protocol: ::core::option::Option<::prost::alloc::string::String>,
1265 /// The application protocol for this port.
1266 /// This is used as a hint for implementations to offer richer behavior for protocols that they understand.
1267 /// This field follows standard Kubernetes label syntax.
1268 /// Valid values are either:
1269 ///
1270 /// * Un-prefixed protocol names - reserved for IANA standard service names (as per
1271 /// RFC-6335 and <https://www.iana.org/assignments/service-names>).
1272 ///
1273 /// * Kubernetes-defined prefixed names:
1274 /// * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in <https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior->
1275 /// * 'kubernetes.io/ws' - WebSocket over cleartext as described in <https://www.rfc-editor.org/rfc/rfc6455>
1276 /// * 'kubernetes.io/wss' - WebSocket over TLS as described in <https://www.rfc-editor.org/rfc/rfc6455>
1277 ///
1278 /// * Other protocols should use implementation-defined prefixed names such as
1279 /// mycompany.com/my-custom-protocol.
1280 /// +optional
1281 #[prost(string, optional, tag = "4")]
1282 pub app_protocol: ::core::option::Option<::prost::alloc::string::String>,
1283}
1284/// EndpointSubset is a group of addresses with a common set of ports. The
1285/// expanded set of endpoints is the Cartesian product of Addresses x Ports.
1286/// For example, given:
1287///
1288/// {
1289/// Addresses: \[{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}\],
1290/// Ports: \[{"name": "a", "port": 8675}, {"name": "b", "port": 309}\]
1291/// }
1292///
1293/// The resulting set of endpoints can be viewed as:
1294///
1295/// a: \[ 10.10.1.1:8675, 10.10.2.2:8675 \],
1296/// b: \[ 10.10.1.1:309, 10.10.2.2:309 \]
1297///
1298/// Deprecated: This API is deprecated in v1.33+.
1299#[derive(Clone, PartialEq, ::prost::Message)]
1300pub struct EndpointSubset {
1301 /// IP addresses which offer the related ports that are marked as ready. These endpoints
1302 /// should be considered safe for load balancers and clients to utilize.
1303 /// +optional
1304 /// +listType=atomic
1305 #[prost(message, repeated, tag = "1")]
1306 pub addresses: ::prost::alloc::vec::Vec<EndpointAddress>,
1307 /// IP addresses which offer the related ports but are not currently marked as ready
1308 /// because they have not yet finished starting, have recently failed a readiness check,
1309 /// or have recently failed a liveness check.
1310 /// +optional
1311 /// +listType=atomic
1312 #[prost(message, repeated, tag = "2")]
1313 pub not_ready_addresses: ::prost::alloc::vec::Vec<EndpointAddress>,
1314 /// Port numbers available on the related IP addresses.
1315 /// +optional
1316 /// +listType=atomic
1317 #[prost(message, repeated, tag = "3")]
1318 pub ports: ::prost::alloc::vec::Vec<EndpointPort>,
1319}
1320/// Endpoints is a collection of endpoints that implement the actual service. Example:
1321///
1322/// Name: "mysvc",
1323/// Subsets: [
1324/// {
1325/// Addresses: \[{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}\],
1326/// Ports: \[{"name": "a", "port": 8675}, {"name": "b", "port": 309}\]
1327/// },
1328/// {
1329/// Addresses: \[{"ip": "10.10.3.3"}\],
1330/// Ports: \[{"name": "a", "port": 93}, {"name": "b", "port": 76}\]
1331/// },
1332/// ]
1333///
1334/// Endpoints is a legacy API and does not contain information about all Service features.
1335/// Use discoveryv1.EndpointSlice for complete information about Service endpoints.
1336///
1337/// Deprecated: This API is deprecated in v1.33+. Use discoveryv1.EndpointSlice.
1338#[derive(Clone, PartialEq, ::prost::Message)]
1339pub struct Endpoints {
1340 /// Standard object's metadata.
1341 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
1342 /// +optional
1343 #[prost(message, optional, tag = "1")]
1344 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
1345 /// The set of all endpoints is the union of all subsets. Addresses are placed into
1346 /// subsets according to the IPs they share. A single address with multiple ports,
1347 /// some of which are ready and some of which are not (because they come from
1348 /// different containers) will result in the address being displayed in different
1349 /// subsets for the different ports. No address will appear in both Addresses and
1350 /// NotReadyAddresses in the same subset.
1351 /// Sets of addresses and ports that comprise a service.
1352 /// +optional
1353 /// +listType=atomic
1354 #[prost(message, repeated, tag = "2")]
1355 pub subsets: ::prost::alloc::vec::Vec<EndpointSubset>,
1356}
1357/// EndpointsList is a list of endpoints.
1358/// Deprecated: This API is deprecated in v1.33+.
1359#[derive(Clone, PartialEq, ::prost::Message)]
1360pub struct EndpointsList {
1361 /// Standard list metadata.
1362 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds>
1363 /// +optional
1364 #[prost(message, optional, tag = "1")]
1365 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
1366 /// List of endpoints.
1367 #[prost(message, repeated, tag = "2")]
1368 pub items: ::prost::alloc::vec::Vec<Endpoints>,
1369}
1370/// EnvFromSource represents the source of a set of ConfigMaps or Secrets
1371#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1372pub struct EnvFromSource {
1373 /// Optional text to prepend to the name of each environment variable. Must be a C_IDENTIFIER.
1374 /// +optional
1375 #[prost(string, optional, tag = "1")]
1376 pub prefix: ::core::option::Option<::prost::alloc::string::String>,
1377 /// The ConfigMap to select from
1378 /// +optional
1379 #[prost(message, optional, tag = "2")]
1380 pub config_map_ref: ::core::option::Option<ConfigMapEnvSource>,
1381 /// The Secret to select from
1382 /// +optional
1383 #[prost(message, optional, tag = "3")]
1384 pub secret_ref: ::core::option::Option<SecretEnvSource>,
1385}
1386/// EnvVar represents an environment variable present in a Container.
1387#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1388pub struct EnvVar {
1389 /// Name of the environment variable. Must be a C_IDENTIFIER.
1390 #[prost(string, optional, tag = "1")]
1391 pub name: ::core::option::Option<::prost::alloc::string::String>,
1392 /// Variable references $(VAR_NAME) are expanded
1393 /// using the previously defined environment variables in the container and
1394 /// any service environment variables. If a variable cannot be resolved,
1395 /// the reference in the input string will be unchanged. Double $$ are reduced
1396 /// to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.
1397 /// "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".
1398 /// Escaped references will never be expanded, regardless of whether the variable
1399 /// exists or not.
1400 /// Defaults to "".
1401 /// +optional
1402 #[prost(string, optional, tag = "2")]
1403 pub value: ::core::option::Option<::prost::alloc::string::String>,
1404 /// Source for the environment variable's value. Cannot be used if value is not empty.
1405 /// +optional
1406 #[prost(message, optional, tag = "3")]
1407 pub value_from: ::core::option::Option<EnvVarSource>,
1408}
1409/// EnvVarSource represents a source for the value of an EnvVar.
1410#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1411pub struct EnvVarSource {
1412 /// Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels\['<KEY>'\]`, `metadata.annotations\['<KEY>'\]`,
1413 /// spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
1414 /// +optional
1415 #[prost(message, optional, tag = "1")]
1416 pub field_ref: ::core::option::Option<ObjectFieldSelector>,
1417 /// Selects a resource of the container: only resources limits and requests
1418 /// (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
1419 /// +optional
1420 #[prost(message, optional, tag = "2")]
1421 pub resource_field_ref: ::core::option::Option<ResourceFieldSelector>,
1422 /// Selects a key of a ConfigMap.
1423 /// +optional
1424 #[prost(message, optional, tag = "3")]
1425 pub config_map_key_ref: ::core::option::Option<ConfigMapKeySelector>,
1426 /// Selects a key of a secret in the pod's namespace
1427 /// +optional
1428 #[prost(message, optional, tag = "4")]
1429 pub secret_key_ref: ::core::option::Option<SecretKeySelector>,
1430}
1431/// An EphemeralContainer is a temporary container that you may add to an existing Pod for
1432/// user-initiated activities such as debugging. Ephemeral containers have no resource or
1433/// scheduling guarantees, and they will not be restarted when they exit or when a Pod is
1434/// removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the
1435/// Pod to exceed its resource allocation.
1436///
1437/// To add an ephemeral container, use the ephemeralcontainers subresource of an existing
1438/// Pod. Ephemeral containers may not be removed or restarted.
1439#[derive(Clone, PartialEq, ::prost::Message)]
1440pub struct EphemeralContainer {
1441 /// Ephemeral containers have all of the fields of Container, plus additional fields
1442 /// specific to ephemeral containers. Fields in common with Container are in the
1443 /// following inlined struct so than an EphemeralContainer may easily be converted
1444 /// to a Container.
1445 #[prost(message, optional, tag = "1")]
1446 pub ephemeral_container_common: ::core::option::Option<EphemeralContainerCommon>,
1447 /// If set, the name of the container from PodSpec that this ephemeral container targets.
1448 /// The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container.
1449 /// If not set then the ephemeral container uses the namespaces configured in the Pod spec.
1450 ///
1451 /// The container runtime must implement support for this feature. If the runtime does not
1452 /// support namespace targeting then the result of setting this field is undefined.
1453 /// +optional
1454 #[prost(string, optional, tag = "2")]
1455 pub target_container_name: ::core::option::Option<::prost::alloc::string::String>,
1456}
1457/// EphemeralContainerCommon is a copy of all fields in Container to be inlined in
1458/// EphemeralContainer. This separate type allows easy conversion from EphemeralContainer
1459/// to Container and allows separate documentation for the fields of EphemeralContainer.
1460/// When a new field is added to Container it must be added here as well.
1461#[derive(Clone, PartialEq, ::prost::Message)]
1462pub struct EphemeralContainerCommon {
1463 /// Name of the ephemeral container specified as a DNS_LABEL.
1464 /// This name must be unique among all containers, init containers and ephemeral containers.
1465 #[prost(string, optional, tag = "1")]
1466 pub name: ::core::option::Option<::prost::alloc::string::String>,
1467 /// Container image name.
1468 /// More info: <https://kubernetes.io/docs/concepts/containers/images>
1469 #[prost(string, optional, tag = "2")]
1470 pub image: ::core::option::Option<::prost::alloc::string::String>,
1471 /// Entrypoint array. Not executed within a shell.
1472 /// The image's ENTRYPOINT is used if this is not provided.
1473 /// Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
1474 /// cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
1475 /// to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
1476 /// produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
1477 /// of whether the variable exists or not. Cannot be updated.
1478 /// More info: <https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell>
1479 /// +optional
1480 /// +listType=atomic
1481 #[prost(string, repeated, tag = "3")]
1482 pub command: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1483 /// Arguments to the entrypoint.
1484 /// The image's CMD is used if this is not provided.
1485 /// Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
1486 /// cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
1487 /// to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
1488 /// produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
1489 /// of whether the variable exists or not. Cannot be updated.
1490 /// More info: <https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell>
1491 /// +optional
1492 /// +listType=atomic
1493 #[prost(string, repeated, tag = "4")]
1494 pub args: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1495 /// Container's working directory.
1496 /// If not specified, the container runtime's default will be used, which
1497 /// might be configured in the container image.
1498 /// Cannot be updated.
1499 /// +optional
1500 #[prost(string, optional, tag = "5")]
1501 pub working_dir: ::core::option::Option<::prost::alloc::string::String>,
1502 /// Ports are not allowed for ephemeral containers.
1503 /// +optional
1504 /// +patchMergeKey=containerPort
1505 /// +patchStrategy=merge
1506 /// +listType=map
1507 /// +listMapKey=containerPort
1508 /// +listMapKey=protocol
1509 #[prost(message, repeated, tag = "6")]
1510 pub ports: ::prost::alloc::vec::Vec<ContainerPort>,
1511 /// List of sources to populate environment variables in the container.
1512 /// The keys defined within a source must be a C_IDENTIFIER. All invalid keys
1513 /// will be reported as an event when the container is starting. When a key exists in multiple
1514 /// sources, the value associated with the last source will take precedence.
1515 /// Values defined by an Env with a duplicate key will take precedence.
1516 /// Cannot be updated.
1517 /// +optional
1518 /// +listType=atomic
1519 #[prost(message, repeated, tag = "19")]
1520 pub env_from: ::prost::alloc::vec::Vec<EnvFromSource>,
1521 /// List of environment variables to set in the container.
1522 /// Cannot be updated.
1523 /// +optional
1524 /// +patchMergeKey=name
1525 /// +patchStrategy=merge
1526 /// +listType=map
1527 /// +listMapKey=name
1528 #[prost(message, repeated, tag = "7")]
1529 pub env: ::prost::alloc::vec::Vec<EnvVar>,
1530 /// Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources
1531 /// already allocated to the pod.
1532 /// +optional
1533 #[prost(message, optional, tag = "8")]
1534 pub resources: ::core::option::Option<ResourceRequirements>,
1535 /// Resources resize policy for the container.
1536 /// +featureGate=InPlacePodVerticalScaling
1537 /// +optional
1538 /// +listType=atomic
1539 #[prost(message, repeated, tag = "23")]
1540 pub resize_policy: ::prost::alloc::vec::Vec<ContainerResizePolicy>,
1541 /// Restart policy for the container to manage the restart behavior of each
1542 /// container within a pod.
1543 /// This may only be set for init containers. You cannot set this field on
1544 /// ephemeral containers.
1545 /// +featureGate=SidecarContainers
1546 /// +optional
1547 #[prost(string, optional, tag = "24")]
1548 pub restart_policy: ::core::option::Option<::prost::alloc::string::String>,
1549 /// Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.
1550 /// Cannot be updated.
1551 /// +optional
1552 /// +patchMergeKey=mountPath
1553 /// +patchStrategy=merge
1554 /// +listType=map
1555 /// +listMapKey=mountPath
1556 #[prost(message, repeated, tag = "9")]
1557 pub volume_mounts: ::prost::alloc::vec::Vec<VolumeMount>,
1558 /// volumeDevices is the list of block devices to be used by the container.
1559 /// +patchMergeKey=devicePath
1560 /// +patchStrategy=merge
1561 /// +listType=map
1562 /// +listMapKey=devicePath
1563 /// +optional
1564 #[prost(message, repeated, tag = "21")]
1565 pub volume_devices: ::prost::alloc::vec::Vec<VolumeDevice>,
1566 /// Probes are not allowed for ephemeral containers.
1567 /// +optional
1568 #[prost(message, optional, tag = "10")]
1569 pub liveness_probe: ::core::option::Option<Probe>,
1570 /// Probes are not allowed for ephemeral containers.
1571 /// +optional
1572 #[prost(message, optional, tag = "11")]
1573 pub readiness_probe: ::core::option::Option<Probe>,
1574 /// Probes are not allowed for ephemeral containers.
1575 /// +optional
1576 #[prost(message, optional, tag = "22")]
1577 pub startup_probe: ::core::option::Option<Probe>,
1578 /// Lifecycle is not allowed for ephemeral containers.
1579 /// +optional
1580 #[prost(message, optional, tag = "12")]
1581 pub lifecycle: ::core::option::Option<Lifecycle>,
1582 /// Optional: Path at which the file to which the container's termination message
1583 /// will be written is mounted into the container's filesystem.
1584 /// Message written is intended to be brief final status, such as an assertion failure message.
1585 /// Will be truncated by the node if greater than 4096 bytes. The total message length across
1586 /// all containers will be limited to 12kb.
1587 /// Defaults to /dev/termination-log.
1588 /// Cannot be updated.
1589 /// +optional
1590 #[prost(string, optional, tag = "13")]
1591 pub termination_message_path: ::core::option::Option<::prost::alloc::string::String>,
1592 /// Indicate how the termination message should be populated. File will use the contents of
1593 /// terminationMessagePath to populate the container status message on both success and failure.
1594 /// FallbackToLogsOnError will use the last chunk of container log output if the termination
1595 /// message file is empty and the container exited with an error.
1596 /// The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
1597 /// Defaults to File.
1598 /// Cannot be updated.
1599 /// +optional
1600 #[prost(string, optional, tag = "20")]
1601 pub termination_message_policy: ::core::option::Option<::prost::alloc::string::String>,
1602 /// Image pull policy.
1603 /// One of Always, Never, IfNotPresent.
1604 /// Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
1605 /// Cannot be updated.
1606 /// More info: <https://kubernetes.io/docs/concepts/containers/images#updating-images>
1607 /// +optional
1608 #[prost(string, optional, tag = "14")]
1609 pub image_pull_policy: ::core::option::Option<::prost::alloc::string::String>,
1610 /// Optional: SecurityContext defines the security options the ephemeral container should be run with.
1611 /// If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
1612 /// +optional
1613 #[prost(message, optional, tag = "15")]
1614 pub security_context: ::core::option::Option<SecurityContext>,
1615 /// Whether this container should allocate a buffer for stdin in the container runtime. If this
1616 /// is not set, reads from stdin in the container will always result in EOF.
1617 /// Default is false.
1618 /// +optional
1619 #[prost(bool, optional, tag = "16")]
1620 pub stdin: ::core::option::Option<bool>,
1621 /// Whether the container runtime should close the stdin channel after it has been opened by
1622 /// a single attach. When stdin is true the stdin stream will remain open across multiple attach
1623 /// sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
1624 /// first client attaches to stdin, and then remains open and accepts data until the client disconnects,
1625 /// at which time stdin is closed and remains closed until the container is restarted. If this
1626 /// flag is false, a container processes that reads from stdin will never receive an EOF.
1627 /// Default is false
1628 /// +optional
1629 #[prost(bool, optional, tag = "17")]
1630 pub stdin_once: ::core::option::Option<bool>,
1631 /// Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
1632 /// Default is false.
1633 /// +optional
1634 #[prost(bool, optional, tag = "18")]
1635 pub tty: ::core::option::Option<bool>,
1636}
1637/// Represents an ephemeral volume that is handled by a normal storage driver.
1638#[derive(Clone, PartialEq, ::prost::Message)]
1639pub struct EphemeralVolumeSource {
1640 /// Will be used to create a stand-alone PVC to provision the volume.
1641 /// The pod in which this EphemeralVolumeSource is embedded will be the
1642 /// owner of the PVC, i.e. the PVC will be deleted together with the
1643 /// pod. The name of the PVC will be `<pod name>-<volume name>` where
1644 /// `<volume name>` is the name from the `PodSpec.Volumes` array
1645 /// entry. Pod validation will reject the pod if the concatenated name
1646 /// is not valid for a PVC (for example, too long).
1647 ///
1648 /// An existing PVC with that name that is not owned by the pod
1649 /// will *not* be used for the pod to avoid using an unrelated
1650 /// volume by mistake. Starting the pod is then blocked until
1651 /// the unrelated PVC is removed. If such a pre-created PVC is
1652 /// meant to be used by the pod, the PVC has to updated with an
1653 /// owner reference to the pod once the pod exists. Normally
1654 /// this should not be necessary, but it may be useful when
1655 /// manually reconstructing a broken cluster.
1656 ///
1657 /// This field is read-only and no changes will be made by Kubernetes
1658 /// to the PVC after it has been created.
1659 ///
1660 /// Required, must not be nil.
1661 #[prost(message, optional, tag = "1")]
1662 pub volume_claim_template: ::core::option::Option<PersistentVolumeClaimTemplate>,
1663}
1664/// Event is a report of an event somewhere in the cluster. Events
1665/// have a limited retention time and triggers and messages may evolve
1666/// with time. Event consumers should not rely on the timing of an event
1667/// with a given Reason reflecting a consistent underlying trigger, or the
1668/// continued existence of events with that Reason. Events should be
1669/// treated as informative, best-effort, supplemental data.
1670#[derive(Clone, PartialEq, ::prost::Message)]
1671pub struct Event {
1672 /// Standard object's metadata.
1673 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
1674 #[prost(message, optional, tag = "1")]
1675 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
1676 /// The object that this event is about.
1677 #[prost(message, optional, tag = "2")]
1678 pub involved_object: ::core::option::Option<ObjectReference>,
1679 /// This should be a short, machine understandable string that gives the reason
1680 /// for the transition into the object's current status.
1681 /// TODO: provide exact specification for format.
1682 /// +optional
1683 #[prost(string, optional, tag = "3")]
1684 pub reason: ::core::option::Option<::prost::alloc::string::String>,
1685 /// A human-readable description of the status of this operation.
1686 /// TODO: decide on maximum length.
1687 /// +optional
1688 #[prost(string, optional, tag = "4")]
1689 pub message: ::core::option::Option<::prost::alloc::string::String>,
1690 /// The component reporting this event. Should be a short machine understandable string.
1691 /// +optional
1692 #[prost(message, optional, tag = "5")]
1693 pub source: ::core::option::Option<EventSource>,
1694 /// The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)
1695 /// +optional
1696 #[prost(message, optional, tag = "6")]
1697 pub first_timestamp: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::Time>,
1698 /// The time at which the most recent occurrence of this event was recorded.
1699 /// +optional
1700 #[prost(message, optional, tag = "7")]
1701 pub last_timestamp: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::Time>,
1702 /// The number of times this event has occurred.
1703 /// +optional
1704 #[prost(int32, optional, tag = "8")]
1705 pub count: ::core::option::Option<i32>,
1706 /// Type of this event (Normal, Warning), new types could be added in the future
1707 /// +optional
1708 #[prost(string, optional, tag = "9")]
1709 pub r#type: ::core::option::Option<::prost::alloc::string::String>,
1710 /// Time when this Event was first observed.
1711 /// +optional
1712 #[prost(message, optional, tag = "10")]
1713 pub event_time: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::MicroTime>,
1714 /// Data about the Event series this event represents or nil if it's a singleton Event.
1715 /// +optional
1716 #[prost(message, optional, tag = "11")]
1717 pub series: ::core::option::Option<EventSeries>,
1718 /// What action was taken/failed regarding to the Regarding object.
1719 /// +optional
1720 #[prost(string, optional, tag = "12")]
1721 pub action: ::core::option::Option<::prost::alloc::string::String>,
1722 /// Optional secondary object for more complex actions.
1723 /// +optional
1724 #[prost(message, optional, tag = "13")]
1725 pub related: ::core::option::Option<ObjectReference>,
1726 /// Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
1727 /// +optional
1728 #[prost(string, optional, tag = "14")]
1729 pub reporting_component: ::core::option::Option<::prost::alloc::string::String>,
1730 /// ID of the controller instance, e.g. `kubelet-xyzf`.
1731 /// +optional
1732 #[prost(string, optional, tag = "15")]
1733 pub reporting_instance: ::core::option::Option<::prost::alloc::string::String>,
1734}
1735/// EventList is a list of events.
1736#[derive(Clone, PartialEq, ::prost::Message)]
1737pub struct EventList {
1738 /// Standard list metadata.
1739 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds>
1740 /// +optional
1741 #[prost(message, optional, tag = "1")]
1742 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
1743 /// List of events
1744 #[prost(message, repeated, tag = "2")]
1745 pub items: ::prost::alloc::vec::Vec<Event>,
1746}
1747/// EventSeries contain information on series of events, i.e. thing that was/is happening
1748/// continuously for some time.
1749#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
1750pub struct EventSeries {
1751 /// Number of occurrences in this series up to the last heartbeat time
1752 #[prost(int32, optional, tag = "1")]
1753 pub count: ::core::option::Option<i32>,
1754 /// Time of the last occurrence observed
1755 #[prost(message, optional, tag = "2")]
1756 pub last_observed_time:
1757 ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::MicroTime>,
1758}
1759/// EventSource contains information for an event.
1760#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1761pub struct EventSource {
1762 /// Component from which the event is generated.
1763 /// +optional
1764 #[prost(string, optional, tag = "1")]
1765 pub component: ::core::option::Option<::prost::alloc::string::String>,
1766 /// Node name on which the event is generated.
1767 /// +optional
1768 #[prost(string, optional, tag = "2")]
1769 pub host: ::core::option::Option<::prost::alloc::string::String>,
1770}
1771/// ExecAction describes a "run in container" action.
1772#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1773pub struct ExecAction {
1774 /// Command is the command line to execute inside the container, the working directory for the
1775 /// command is root ('/') in the container's filesystem. The command is simply exec'd, it is
1776 /// not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use
1777 /// a shell, you need to explicitly call out to that shell.
1778 /// Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
1779 /// +optional
1780 /// +listType=atomic
1781 #[prost(string, repeated, tag = "1")]
1782 pub command: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1783}
1784/// Represents a Fibre Channel volume.
1785/// Fibre Channel volumes can only be mounted as read/write once.
1786/// Fibre Channel volumes support ownership management and SELinux relabeling.
1787#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1788pub struct FcVolumeSource {
1789 /// targetWWNs is Optional: FC target worldwide names (WWNs)
1790 /// +optional
1791 /// +listType=atomic
1792 #[prost(string, repeated, tag = "1")]
1793 pub target_ww_ns: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1794 /// lun is Optional: FC target lun number
1795 /// +optional
1796 #[prost(int32, optional, tag = "2")]
1797 pub lun: ::core::option::Option<i32>,
1798 /// fsType is the filesystem type to mount.
1799 /// Must be a filesystem type supported by the host operating system.
1800 /// Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
1801 /// TODO: how do we prevent errors in the filesystem from compromising the machine
1802 /// +optional
1803 #[prost(string, optional, tag = "3")]
1804 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
1805 /// readOnly is Optional: Defaults to false (read/write). ReadOnly here will force
1806 /// the ReadOnly setting in VolumeMounts.
1807 /// +optional
1808 #[prost(bool, optional, tag = "4")]
1809 pub read_only: ::core::option::Option<bool>,
1810 /// wwids Optional: FC volume world wide identifiers (wwids)
1811 /// Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
1812 /// +optional
1813 /// +listType=atomic
1814 #[prost(string, repeated, tag = "5")]
1815 pub wwids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1816}
1817/// FlexPersistentVolumeSource represents a generic persistent volume resource that is
1818/// provisioned/attached using an exec based plugin.
1819#[derive(Clone, PartialEq, ::prost::Message)]
1820pub struct FlexPersistentVolumeSource {
1821 /// driver is the name of the driver to use for this volume.
1822 #[prost(string, optional, tag = "1")]
1823 pub driver: ::core::option::Option<::prost::alloc::string::String>,
1824 /// fsType is the Filesystem type to mount.
1825 /// Must be a filesystem type supported by the host operating system.
1826 /// Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
1827 /// +optional
1828 #[prost(string, optional, tag = "2")]
1829 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
1830 /// secretRef is Optional: SecretRef is reference to the secret object containing
1831 /// sensitive information to pass to the plugin scripts. This may be
1832 /// empty if no secret object is specified. If the secret object
1833 /// contains more than one secret, all secrets are passed to the plugin
1834 /// scripts.
1835 /// +optional
1836 #[prost(message, optional, tag = "3")]
1837 pub secret_ref: ::core::option::Option<SecretReference>,
1838 /// readOnly is Optional: defaults to false (read/write). ReadOnly here will force
1839 /// the ReadOnly setting in VolumeMounts.
1840 /// +optional
1841 #[prost(bool, optional, tag = "4")]
1842 pub read_only: ::core::option::Option<bool>,
1843 /// options is Optional: this field holds extra command options if any.
1844 /// +optional
1845 #[prost(btree_map = "string, string", tag = "5")]
1846 pub options:
1847 ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
1848}
1849/// FlexVolume represents a generic volume resource that is
1850/// provisioned/attached using an exec based plugin.
1851#[derive(Clone, PartialEq, ::prost::Message)]
1852pub struct FlexVolumeSource {
1853 /// driver is the name of the driver to use for this volume.
1854 #[prost(string, optional, tag = "1")]
1855 pub driver: ::core::option::Option<::prost::alloc::string::String>,
1856 /// fsType is the filesystem type to mount.
1857 /// Must be a filesystem type supported by the host operating system.
1858 /// Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
1859 /// +optional
1860 #[prost(string, optional, tag = "2")]
1861 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
1862 /// secretRef is Optional: secretRef is reference to the secret object containing
1863 /// sensitive information to pass to the plugin scripts. This may be
1864 /// empty if no secret object is specified. If the secret object
1865 /// contains more than one secret, all secrets are passed to the plugin
1866 /// scripts.
1867 /// +optional
1868 #[prost(message, optional, tag = "3")]
1869 pub secret_ref: ::core::option::Option<LocalObjectReference>,
1870 /// readOnly is Optional: defaults to false (read/write). ReadOnly here will force
1871 /// the ReadOnly setting in VolumeMounts.
1872 /// +optional
1873 #[prost(bool, optional, tag = "4")]
1874 pub read_only: ::core::option::Option<bool>,
1875 /// options is Optional: this field holds extra command options if any.
1876 /// +optional
1877 #[prost(btree_map = "string, string", tag = "5")]
1878 pub options:
1879 ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
1880}
1881/// Represents a Flocker volume mounted by the Flocker agent.
1882/// One and only one of datasetName and datasetUUID should be set.
1883/// Flocker volumes do not support ownership management or SELinux relabeling.
1884#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1885pub struct FlockerVolumeSource {
1886 /// datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker
1887 /// should be considered as deprecated
1888 /// +optional
1889 #[prost(string, optional, tag = "1")]
1890 pub dataset_name: ::core::option::Option<::prost::alloc::string::String>,
1891 /// datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset
1892 /// +optional
1893 #[prost(string, optional, tag = "2")]
1894 pub dataset_uuid: ::core::option::Option<::prost::alloc::string::String>,
1895}
1896/// Represents a Persistent Disk resource in Google Compute Engine.
1897///
1898/// A GCE PD must exist before mounting to a container. The disk must
1899/// also be in the same GCE project and zone as the kubelet. A GCE PD
1900/// can only be mounted as read/write once or read-only many times. GCE
1901/// PDs support ownership management and SELinux relabeling.
1902#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1903pub struct GcePersistentDiskVolumeSource {
1904 /// pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE.
1905 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk>
1906 #[prost(string, optional, tag = "1")]
1907 pub pd_name: ::core::option::Option<::prost::alloc::string::String>,
1908 /// fsType is filesystem type of the volume that you want to mount.
1909 /// Tip: Ensure that the filesystem type is supported by the host operating system.
1910 /// Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
1911 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk>
1912 /// TODO: how do we prevent errors in the filesystem from compromising the machine
1913 /// +optional
1914 #[prost(string, optional, tag = "2")]
1915 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
1916 /// partition is the partition in the volume that you want to mount.
1917 /// If omitted, the default is to mount by volume name.
1918 /// Examples: For volume /dev/sda1, you specify the partition as "1".
1919 /// Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
1920 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk>
1921 /// +optional
1922 #[prost(int32, optional, tag = "3")]
1923 pub partition: ::core::option::Option<i32>,
1924 /// readOnly here will force the ReadOnly setting in VolumeMounts.
1925 /// Defaults to false.
1926 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk>
1927 /// +optional
1928 #[prost(bool, optional, tag = "4")]
1929 pub read_only: ::core::option::Option<bool>,
1930}
1931/// GRPCAction specifies an action involving a GRPC service.
1932#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1933pub struct GrpcAction {
1934 /// Port number of the gRPC service. Number must be in the range 1 to 65535.
1935 #[prost(int32, optional, tag = "1")]
1936 pub port: ::core::option::Option<i32>,
1937 /// Service is the name of the service to place in the gRPC HealthCheckRequest
1938 /// (see <https://github.com/grpc/grpc/blob/master/doc/health-checking.md>).
1939 ///
1940 /// If this is not specified, the default behavior is defined by gRPC.
1941 /// +optional
1942 /// +default=""
1943 #[prost(string, optional, tag = "2")]
1944 pub service: ::core::option::Option<::prost::alloc::string::String>,
1945}
1946/// Represents a volume that is populated with the contents of a git repository.
1947/// Git repo volumes do not support ownership management.
1948/// Git repo volumes support SELinux relabeling.
1949///
1950/// DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an
1951/// EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir
1952/// into the Pod's container.
1953#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1954pub struct GitRepoVolumeSource {
1955 /// repository is the URL
1956 #[prost(string, optional, tag = "1")]
1957 pub repository: ::core::option::Option<::prost::alloc::string::String>,
1958 /// revision is the commit hash for the specified revision.
1959 /// +optional
1960 #[prost(string, optional, tag = "2")]
1961 pub revision: ::core::option::Option<::prost::alloc::string::String>,
1962 /// directory is the target directory name.
1963 /// Must not contain or start with '..'. If '.' is supplied, the volume directory will be the
1964 /// git repository. Otherwise, if specified, the volume will contain the git repository in
1965 /// the subdirectory with the given name.
1966 /// +optional
1967 #[prost(string, optional, tag = "3")]
1968 pub directory: ::core::option::Option<::prost::alloc::string::String>,
1969}
1970/// Represents a Glusterfs mount that lasts the lifetime of a pod.
1971/// Glusterfs volumes do not support ownership management or SELinux relabeling.
1972#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1973pub struct GlusterfsPersistentVolumeSource {
1974 /// endpoints is the endpoint name that details Glusterfs topology.
1975 /// More info: <https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod>
1976 #[prost(string, optional, tag = "1")]
1977 pub endpoints: ::core::option::Option<::prost::alloc::string::String>,
1978 /// path is the Glusterfs volume path.
1979 /// More info: <https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod>
1980 #[prost(string, optional, tag = "2")]
1981 pub path: ::core::option::Option<::prost::alloc::string::String>,
1982 /// readOnly here will force the Glusterfs volume to be mounted with read-only permissions.
1983 /// Defaults to false.
1984 /// More info: <https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod>
1985 /// +optional
1986 #[prost(bool, optional, tag = "3")]
1987 pub read_only: ::core::option::Option<bool>,
1988 /// endpointsNamespace is the namespace that contains Glusterfs endpoint.
1989 /// If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC.
1990 /// More info: <https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod>
1991 /// +optional
1992 #[prost(string, optional, tag = "4")]
1993 pub endpoints_namespace: ::core::option::Option<::prost::alloc::string::String>,
1994}
1995/// Represents a Glusterfs mount that lasts the lifetime of a pod.
1996/// Glusterfs volumes do not support ownership management or SELinux relabeling.
1997#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1998pub struct GlusterfsVolumeSource {
1999 /// endpoints is the endpoint name that details Glusterfs topology.
2000 /// More info: <https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod>
2001 #[prost(string, optional, tag = "1")]
2002 pub endpoints: ::core::option::Option<::prost::alloc::string::String>,
2003 /// path is the Glusterfs volume path.
2004 /// More info: <https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod>
2005 #[prost(string, optional, tag = "2")]
2006 pub path: ::core::option::Option<::prost::alloc::string::String>,
2007 /// readOnly here will force the Glusterfs volume to be mounted with read-only permissions.
2008 /// Defaults to false.
2009 /// More info: <https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod>
2010 /// +optional
2011 #[prost(bool, optional, tag = "3")]
2012 pub read_only: ::core::option::Option<bool>,
2013}
2014/// HTTPGetAction describes an action based on HTTP Get requests.
2015#[derive(Clone, PartialEq, ::prost::Message)]
2016pub struct HttpGetAction {
2017 /// Path to access on the HTTP server.
2018 /// +optional
2019 #[prost(string, optional, tag = "1")]
2020 pub path: ::core::option::Option<::prost::alloc::string::String>,
2021 /// Name or number of the port to access on the container.
2022 /// Number must be in the range 1 to 65535.
2023 /// Name must be an IANA_SVC_NAME.
2024 #[prost(message, optional, tag = "2")]
2025 pub port: ::core::option::Option<super::super::super::apimachinery::pkg::util::intstr::IntOrString>,
2026 /// Host name to connect to, defaults to the pod IP. You probably want to set
2027 /// "Host" in httpHeaders instead.
2028 /// +optional
2029 #[prost(string, optional, tag = "3")]
2030 pub host: ::core::option::Option<::prost::alloc::string::String>,
2031 /// Scheme to use for connecting to the host.
2032 /// Defaults to HTTP.
2033 /// +optional
2034 #[prost(string, optional, tag = "4")]
2035 pub scheme: ::core::option::Option<::prost::alloc::string::String>,
2036 /// Custom headers to set in the request. HTTP allows repeated headers.
2037 /// +optional
2038 /// +listType=atomic
2039 #[prost(message, repeated, tag = "5")]
2040 pub http_headers: ::prost::alloc::vec::Vec<HttpHeader>,
2041}
2042/// HTTPHeader describes a custom header to be used in HTTP probes
2043#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2044pub struct HttpHeader {
2045 /// The header field name.
2046 /// This will be canonicalized upon output, so case-variant names will be understood as the same header.
2047 #[prost(string, optional, tag = "1")]
2048 pub name: ::core::option::Option<::prost::alloc::string::String>,
2049 /// The header field value
2050 #[prost(string, optional, tag = "2")]
2051 pub value: ::core::option::Option<::prost::alloc::string::String>,
2052}
2053/// HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the
2054/// pod's hosts file.
2055#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2056pub struct HostAlias {
2057 /// IP address of the host file entry.
2058 /// +required
2059 #[prost(string, optional, tag = "1")]
2060 pub ip: ::core::option::Option<::prost::alloc::string::String>,
2061 /// Hostnames for the above IP address.
2062 /// +listType=atomic
2063 #[prost(string, repeated, tag = "2")]
2064 pub hostnames: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2065}
2066/// HostIP represents a single IP address allocated to the host.
2067#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2068pub struct HostIp {
2069 /// IP is the IP address assigned to the host
2070 /// +required
2071 #[prost(string, optional, tag = "1")]
2072 pub ip: ::core::option::Option<::prost::alloc::string::String>,
2073}
2074/// Represents a host path mapped into a pod.
2075/// Host path volumes do not support ownership management or SELinux relabeling.
2076#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2077pub struct HostPathVolumeSource {
2078 /// path of the directory on the host.
2079 /// If the path is a symlink, it will follow the link to the real path.
2080 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#hostpath>
2081 #[prost(string, optional, tag = "1")]
2082 pub path: ::core::option::Option<::prost::alloc::string::String>,
2083 /// type for HostPath Volume
2084 /// Defaults to ""
2085 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#hostpath>
2086 /// +optional
2087 #[prost(string, optional, tag = "2")]
2088 pub r#type: ::core::option::Option<::prost::alloc::string::String>,
2089}
2090/// ISCSIPersistentVolumeSource represents an ISCSI disk.
2091/// ISCSI volumes can only be mounted as read/write once.
2092/// ISCSI volumes support ownership management and SELinux relabeling.
2093#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2094pub struct IscsiPersistentVolumeSource {
2095 /// targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
2096 /// is other than default (typically TCP ports 860 and 3260).
2097 #[prost(string, optional, tag = "1")]
2098 pub target_portal: ::core::option::Option<::prost::alloc::string::String>,
2099 /// iqn is Target iSCSI Qualified Name.
2100 #[prost(string, optional, tag = "2")]
2101 pub iqn: ::core::option::Option<::prost::alloc::string::String>,
2102 /// lun is iSCSI Target Lun number.
2103 #[prost(int32, optional, tag = "3")]
2104 pub lun: ::core::option::Option<i32>,
2105 /// iscsiInterface is the interface Name that uses an iSCSI transport.
2106 /// Defaults to 'default' (tcp).
2107 /// +optional
2108 /// +default="default"
2109 #[prost(string, optional, tag = "4")]
2110 pub iscsi_interface: ::core::option::Option<::prost::alloc::string::String>,
2111 /// fsType is the filesystem type of the volume that you want to mount.
2112 /// Tip: Ensure that the filesystem type is supported by the host operating system.
2113 /// Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
2114 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#iscsi>
2115 /// TODO: how do we prevent errors in the filesystem from compromising the machine
2116 /// +optional
2117 #[prost(string, optional, tag = "5")]
2118 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
2119 /// readOnly here will force the ReadOnly setting in VolumeMounts.
2120 /// Defaults to false.
2121 /// +optional
2122 #[prost(bool, optional, tag = "6")]
2123 pub read_only: ::core::option::Option<bool>,
2124 /// portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port
2125 /// is other than default (typically TCP ports 860 and 3260).
2126 /// +optional
2127 /// +listType=atomic
2128 #[prost(string, repeated, tag = "7")]
2129 pub portals: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2130 /// chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication
2131 /// +optional
2132 #[prost(bool, optional, tag = "8")]
2133 pub chap_auth_discovery: ::core::option::Option<bool>,
2134 /// chapAuthSession defines whether support iSCSI Session CHAP authentication
2135 /// +optional
2136 #[prost(bool, optional, tag = "11")]
2137 pub chap_auth_session: ::core::option::Option<bool>,
2138 /// secretRef is the CHAP Secret for iSCSI target and initiator authentication
2139 /// +optional
2140 #[prost(message, optional, tag = "10")]
2141 pub secret_ref: ::core::option::Option<SecretReference>,
2142 /// initiatorName is the custom iSCSI Initiator Name.
2143 /// If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
2144 /// <target portal>:<volume name> will be created for the connection.
2145 /// +optional
2146 #[prost(string, optional, tag = "12")]
2147 pub initiator_name: ::core::option::Option<::prost::alloc::string::String>,
2148}
2149/// Represents an ISCSI disk.
2150/// ISCSI volumes can only be mounted as read/write once.
2151/// ISCSI volumes support ownership management and SELinux relabeling.
2152#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2153pub struct IscsiVolumeSource {
2154 /// targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
2155 /// is other than default (typically TCP ports 860 and 3260).
2156 #[prost(string, optional, tag = "1")]
2157 pub target_portal: ::core::option::Option<::prost::alloc::string::String>,
2158 /// iqn is the target iSCSI Qualified Name.
2159 #[prost(string, optional, tag = "2")]
2160 pub iqn: ::core::option::Option<::prost::alloc::string::String>,
2161 /// lun represents iSCSI Target Lun number.
2162 #[prost(int32, optional, tag = "3")]
2163 pub lun: ::core::option::Option<i32>,
2164 /// iscsiInterface is the interface Name that uses an iSCSI transport.
2165 /// Defaults to 'default' (tcp).
2166 /// +optional
2167 /// +default="default"
2168 #[prost(string, optional, tag = "4")]
2169 pub iscsi_interface: ::core::option::Option<::prost::alloc::string::String>,
2170 /// fsType is the filesystem type of the volume that you want to mount.
2171 /// Tip: Ensure that the filesystem type is supported by the host operating system.
2172 /// Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
2173 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#iscsi>
2174 /// TODO: how do we prevent errors in the filesystem from compromising the machine
2175 /// +optional
2176 #[prost(string, optional, tag = "5")]
2177 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
2178 /// readOnly here will force the ReadOnly setting in VolumeMounts.
2179 /// Defaults to false.
2180 /// +optional
2181 #[prost(bool, optional, tag = "6")]
2182 pub read_only: ::core::option::Option<bool>,
2183 /// portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port
2184 /// is other than default (typically TCP ports 860 and 3260).
2185 /// +optional
2186 /// +listType=atomic
2187 #[prost(string, repeated, tag = "7")]
2188 pub portals: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2189 /// chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication
2190 /// +optional
2191 #[prost(bool, optional, tag = "8")]
2192 pub chap_auth_discovery: ::core::option::Option<bool>,
2193 /// chapAuthSession defines whether support iSCSI Session CHAP authentication
2194 /// +optional
2195 #[prost(bool, optional, tag = "11")]
2196 pub chap_auth_session: ::core::option::Option<bool>,
2197 /// secretRef is the CHAP Secret for iSCSI target and initiator authentication
2198 /// +optional
2199 #[prost(message, optional, tag = "10")]
2200 pub secret_ref: ::core::option::Option<LocalObjectReference>,
2201 /// initiatorName is the custom iSCSI Initiator Name.
2202 /// If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
2203 /// <target portal>:<volume name> will be created for the connection.
2204 /// +optional
2205 #[prost(string, optional, tag = "12")]
2206 pub initiator_name: ::core::option::Option<::prost::alloc::string::String>,
2207}
2208/// ImageVolumeSource represents a image volume resource.
2209#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2210pub struct ImageVolumeSource {
2211 /// Required: Image or artifact reference to be used.
2212 /// Behaves in the same way as pod.spec.containers\[*\].image.
2213 /// Pull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets.
2214 /// More info: <https://kubernetes.io/docs/concepts/containers/images>
2215 /// This field is optional to allow higher level config management to default or override
2216 /// container images in workload controllers like Deployments and StatefulSets.
2217 /// +optional
2218 #[prost(string, optional, tag = "1")]
2219 pub reference: ::core::option::Option<::prost::alloc::string::String>,
2220 /// Policy for pulling OCI objects. Possible values are:
2221 /// Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails.
2222 /// Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present.
2223 /// IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.
2224 /// Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
2225 /// +optional
2226 #[prost(string, optional, tag = "2")]
2227 pub pull_policy: ::core::option::Option<::prost::alloc::string::String>,
2228}
2229/// Maps a string key to a path within a volume.
2230#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2231pub struct KeyToPath {
2232 /// key is the key to project.
2233 #[prost(string, optional, tag = "1")]
2234 pub key: ::core::option::Option<::prost::alloc::string::String>,
2235 /// path is the relative path of the file to map the key to.
2236 /// May not be an absolute path.
2237 /// May not contain the path element '..'.
2238 /// May not start with the string '..'.
2239 #[prost(string, optional, tag = "2")]
2240 pub path: ::core::option::Option<::prost::alloc::string::String>,
2241 /// mode is Optional: mode bits used to set permissions on this file.
2242 /// Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
2243 /// YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
2244 /// If not specified, the volume defaultMode will be used.
2245 /// This might be in conflict with other options that affect the file
2246 /// mode, like fsGroup, and the result can be other mode bits set.
2247 /// +optional
2248 #[prost(int32, optional, tag = "3")]
2249 pub mode: ::core::option::Option<i32>,
2250}
2251/// Lifecycle describes actions that the management system should take in response to container lifecycle
2252/// events. For the PostStart and PreStop lifecycle handlers, management of the container blocks
2253/// until the action is complete, unless the container process fails, in which case the handler is aborted.
2254#[derive(Clone, PartialEq, ::prost::Message)]
2255pub struct Lifecycle {
2256 /// PostStart is called immediately after a container is created. If the handler fails,
2257 /// the container is terminated and restarted according to its restart policy.
2258 /// Other management of the container blocks until the hook completes.
2259 /// More info: <https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks>
2260 /// +optional
2261 #[prost(message, optional, tag = "1")]
2262 pub post_start: ::core::option::Option<LifecycleHandler>,
2263 /// PreStop is called immediately before a container is terminated due to an
2264 /// API request or management event such as liveness/startup probe failure,
2265 /// preemption, resource contention, etc. The handler is not called if the
2266 /// container crashes or exits. The Pod's termination grace period countdown begins before the
2267 /// PreStop hook is executed. Regardless of the outcome of the handler, the
2268 /// container will eventually terminate within the Pod's termination grace
2269 /// period (unless delayed by finalizers). Other management of the container blocks until the hook completes
2270 /// or until the termination grace period is reached.
2271 /// More info: <https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks>
2272 /// +optional
2273 #[prost(message, optional, tag = "2")]
2274 pub pre_stop: ::core::option::Option<LifecycleHandler>,
2275 /// StopSignal defines which signal will be sent to a container when it is being stopped.
2276 /// If not specified, the default is defined by the container runtime in use.
2277 /// StopSignal can only be set for Pods with a non-empty .spec.os.name
2278 /// +optional
2279 #[prost(string, optional, tag = "3")]
2280 pub stop_signal: ::core::option::Option<::prost::alloc::string::String>,
2281}
2282/// LifecycleHandler defines a specific action that should be taken in a lifecycle
2283/// hook. One and only one of the fields, except TCPSocket must be specified.
2284#[derive(Clone, PartialEq, ::prost::Message)]
2285pub struct LifecycleHandler {
2286 /// Exec specifies a command to execute in the container.
2287 /// +optional
2288 #[prost(message, optional, tag = "1")]
2289 pub exec: ::core::option::Option<ExecAction>,
2290 /// HTTPGet specifies an HTTP GET request to perform.
2291 /// +optional
2292 #[prost(message, optional, tag = "2")]
2293 pub http_get: ::core::option::Option<HttpGetAction>,
2294 /// Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept
2295 /// for backward compatibility. There is no validation of this field and
2296 /// lifecycle hooks will fail at runtime when it is specified.
2297 /// +optional
2298 #[prost(message, optional, tag = "3")]
2299 pub tcp_socket: ::core::option::Option<TcpSocketAction>,
2300 /// Sleep represents a duration that the container should sleep.
2301 /// +featureGate=PodLifecycleSleepAction
2302 /// +optional
2303 #[prost(message, optional, tag = "4")]
2304 pub sleep: ::core::option::Option<SleepAction>,
2305}
2306/// LimitRange sets resource usage limits for each kind of resource in a Namespace.
2307#[derive(Clone, PartialEq, ::prost::Message)]
2308pub struct LimitRange {
2309 /// Standard object's metadata.
2310 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
2311 /// +optional
2312 #[prost(message, optional, tag = "1")]
2313 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
2314 /// Spec defines the limits enforced.
2315 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status>
2316 /// +optional
2317 #[prost(message, optional, tag = "2")]
2318 pub spec: ::core::option::Option<LimitRangeSpec>,
2319}
2320/// LimitRangeItem defines a min/max usage limit for any resource that matches on kind.
2321#[derive(Clone, PartialEq, ::prost::Message)]
2322pub struct LimitRangeItem {
2323 /// Type of resource that this limit applies to.
2324 #[prost(string, optional, tag = "1")]
2325 pub r#type: ::core::option::Option<::prost::alloc::string::String>,
2326 /// Max usage constraints on this kind by resource name.
2327 /// +optional
2328 #[prost(btree_map = "string, message", tag = "2")]
2329 pub max: ::prost::alloc::collections::BTreeMap<
2330 ::prost::alloc::string::String,
2331 super::super::super::apimachinery::pkg::api::resource::Quantity,
2332 >,
2333 /// Min usage constraints on this kind by resource name.
2334 /// +optional
2335 #[prost(btree_map = "string, message", tag = "3")]
2336 pub min: ::prost::alloc::collections::BTreeMap<
2337 ::prost::alloc::string::String,
2338 super::super::super::apimachinery::pkg::api::resource::Quantity,
2339 >,
2340 /// Default resource requirement limit value by resource name if resource limit is omitted.
2341 /// +optional
2342 #[prost(btree_map = "string, message", tag = "4")]
2343 pub default: ::prost::alloc::collections::BTreeMap<
2344 ::prost::alloc::string::String,
2345 super::super::super::apimachinery::pkg::api::resource::Quantity,
2346 >,
2347 /// DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.
2348 /// +optional
2349 #[prost(btree_map = "string, message", tag = "5")]
2350 pub default_request: ::prost::alloc::collections::BTreeMap<
2351 ::prost::alloc::string::String,
2352 super::super::super::apimachinery::pkg::api::resource::Quantity,
2353 >,
2354 /// MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.
2355 /// +optional
2356 #[prost(btree_map = "string, message", tag = "6")]
2357 pub max_limit_request_ratio: ::prost::alloc::collections::BTreeMap<
2358 ::prost::alloc::string::String,
2359 super::super::super::apimachinery::pkg::api::resource::Quantity,
2360 >,
2361}
2362/// LimitRangeList is a list of LimitRange items.
2363#[derive(Clone, PartialEq, ::prost::Message)]
2364pub struct LimitRangeList {
2365 /// Standard list metadata.
2366 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds>
2367 /// +optional
2368 #[prost(message, optional, tag = "1")]
2369 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
2370 /// Items is a list of LimitRange objects.
2371 /// More info: <https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/>
2372 #[prost(message, repeated, tag = "2")]
2373 pub items: ::prost::alloc::vec::Vec<LimitRange>,
2374}
2375/// LimitRangeSpec defines a min/max usage limit for resources that match on kind.
2376#[derive(Clone, PartialEq, ::prost::Message)]
2377pub struct LimitRangeSpec {
2378 /// Limits is the list of LimitRangeItem objects that are enforced.
2379 /// +listType=atomic
2380 #[prost(message, repeated, tag = "1")]
2381 pub limits: ::prost::alloc::vec::Vec<LimitRangeItem>,
2382}
2383/// LinuxContainerUser represents user identity information in Linux containers
2384#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2385pub struct LinuxContainerUser {
2386 /// UID is the primary uid initially attached to the first process in the container
2387 #[prost(int64, optional, tag = "1")]
2388 pub uid: ::core::option::Option<i64>,
2389 /// GID is the primary gid initially attached to the first process in the container
2390 #[prost(int64, optional, tag = "2")]
2391 pub gid: ::core::option::Option<i64>,
2392 /// SupplementalGroups are the supplemental groups initially attached to the first process in the container
2393 /// +optional
2394 /// +listType=atomic
2395 #[prost(int64, repeated, packed = "false", tag = "3")]
2396 pub supplemental_groups: ::prost::alloc::vec::Vec<i64>,
2397}
2398/// List holds a list of objects, which may not be known by the server.
2399#[derive(Clone, PartialEq, ::prost::Message)]
2400pub struct List {
2401 /// Standard list metadata.
2402 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds>
2403 /// +optional
2404 #[prost(message, optional, tag = "1")]
2405 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
2406 /// List of objects
2407 #[prost(message, repeated, tag = "2")]
2408 pub items: ::prost::alloc::vec::Vec<super::super::super::apimachinery::pkg::runtime::RawExtension>,
2409}
2410/// LoadBalancerIngress represents the status of a load-balancer ingress point:
2411/// traffic intended for the service should be sent to an ingress point.
2412#[derive(Clone, PartialEq, ::prost::Message)]
2413pub struct LoadBalancerIngress {
2414 /// IP is set for load-balancer ingress points that are IP based
2415 /// (typically GCE or OpenStack load-balancers)
2416 /// +optional
2417 #[prost(string, optional, tag = "1")]
2418 pub ip: ::core::option::Option<::prost::alloc::string::String>,
2419 /// Hostname is set for load-balancer ingress points that are DNS based
2420 /// (typically AWS load-balancers)
2421 /// +optional
2422 #[prost(string, optional, tag = "2")]
2423 pub hostname: ::core::option::Option<::prost::alloc::string::String>,
2424 /// IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified.
2425 /// Setting this to "VIP" indicates that traffic is delivered to the node with
2426 /// the destination set to the load-balancer's IP and port.
2427 /// Setting this to "Proxy" indicates that traffic is delivered to the node or pod with
2428 /// the destination set to the node's IP and node port or the pod's IP and port.
2429 /// Service implementations may use this information to adjust traffic routing.
2430 /// +optional
2431 #[prost(string, optional, tag = "3")]
2432 pub ip_mode: ::core::option::Option<::prost::alloc::string::String>,
2433 /// Ports is a list of records of service ports
2434 /// If used, every port defined in the service should have an entry in it
2435 /// +listType=atomic
2436 /// +optional
2437 #[prost(message, repeated, tag = "4")]
2438 pub ports: ::prost::alloc::vec::Vec<PortStatus>,
2439}
2440/// LoadBalancerStatus represents the status of a load-balancer.
2441#[derive(Clone, PartialEq, ::prost::Message)]
2442pub struct LoadBalancerStatus {
2443 /// Ingress is a list containing ingress points for the load-balancer.
2444 /// Traffic intended for the service should be sent to these ingress points.
2445 /// +optional
2446 /// +listType=atomic
2447 #[prost(message, repeated, tag = "1")]
2448 pub ingress: ::prost::alloc::vec::Vec<LoadBalancerIngress>,
2449}
2450/// LocalObjectReference contains enough information to let you locate the
2451/// referenced object inside the same namespace.
2452/// ---
2453/// New uses of this type are discouraged because of difficulty describing its usage when embedded in APIs.
2454/// 1. Invalid usage help. It is impossible to add specific help for individual usage. In most embedded usages, there are particular
2455/// restrictions like, "must refer only to types A and B" or "UID not honored" or "name must be restricted".
2456/// Those cannot be well described when embedded.
2457/// 2. Inconsistent validation. Because the usages are different, the validation rules are different by usage, which makes it hard for users to predict what will happen.
2458/// 3. We cannot easily change it. Because this type is embedded in many locations, updates to this type
2459/// will affect numerous schemas. Don't make new APIs embed an underspecified API type they do not control.
2460///
2461/// Instead of using this type, create a locally provided and used type that is well-focused on your reference.
2462/// For example, ServiceReferences for admission registration: <https://github.com/kubernetes/api/blob/release-1.17/admissionregistration/v1/types.go#L533> .
2463/// +structType=atomic
2464#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2465pub struct LocalObjectReference {
2466 /// Name of the referent.
2467 /// This field is effectively required, but due to backwards compatibility is
2468 /// allowed to be empty. Instances of this type with an empty value here are
2469 /// almost certainly wrong.
2470 /// More info: <https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names>
2471 /// +optional
2472 /// +default=""
2473 /// +kubebuilder:default=""
2474 /// TODO: Drop `kubebuilder:default` when controller-gen doesn't need it <https://github.com/kubernetes-sigs/kubebuilder/issues/3896.>
2475 #[prost(string, optional, tag = "1")]
2476 pub name: ::core::option::Option<::prost::alloc::string::String>,
2477}
2478/// Local represents directly-attached storage with node affinity
2479#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2480pub struct LocalVolumeSource {
2481 /// path of the full path to the volume on the node.
2482 /// It can be either a directory or block device (disk, partition, ...).
2483 #[prost(string, optional, tag = "1")]
2484 pub path: ::core::option::Option<::prost::alloc::string::String>,
2485 /// fsType is the filesystem type to mount.
2486 /// It applies only when the Path is a block device.
2487 /// Must be a filesystem type supported by the host operating system.
2488 /// Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a filesystem if unspecified.
2489 /// +optional
2490 #[prost(string, optional, tag = "2")]
2491 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
2492}
2493/// ModifyVolumeStatus represents the status object of ControllerModifyVolume operation
2494#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2495pub struct ModifyVolumeStatus {
2496 /// targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled
2497 #[prost(string, optional, tag = "1")]
2498 pub target_volume_attributes_class_name: ::core::option::Option<::prost::alloc::string::String>,
2499 /// status is the status of the ControllerModifyVolume operation. It can be in any of following states:
2500 /// - Pending
2501 /// Pending indicates that the PersistentVolumeClaim cannot be modified due to unmet requirements, such as
2502 /// the specified VolumeAttributesClass not existing.
2503 /// - InProgress
2504 /// InProgress indicates that the volume is being modified.
2505 /// - Infeasible
2506 /// Infeasible indicates that the request has been rejected as invalid by the CSI driver. To
2507 /// resolve the error, a valid VolumeAttributesClass needs to be specified.
2508 /// Note: New statuses can be added in the future. Consumers should check for unknown statuses and fail appropriately.
2509 #[prost(string, optional, tag = "2")]
2510 pub status: ::core::option::Option<::prost::alloc::string::String>,
2511}
2512/// Represents an NFS mount that lasts the lifetime of a pod.
2513/// NFS volumes do not support ownership management or SELinux relabeling.
2514#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2515pub struct NfsVolumeSource {
2516 /// server is the hostname or IP address of the NFS server.
2517 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#nfs>
2518 #[prost(string, optional, tag = "1")]
2519 pub server: ::core::option::Option<::prost::alloc::string::String>,
2520 /// path that is exported by the NFS server.
2521 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#nfs>
2522 #[prost(string, optional, tag = "2")]
2523 pub path: ::core::option::Option<::prost::alloc::string::String>,
2524 /// readOnly here will force the NFS export to be mounted with read-only permissions.
2525 /// Defaults to false.
2526 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#nfs>
2527 /// +optional
2528 #[prost(bool, optional, tag = "3")]
2529 pub read_only: ::core::option::Option<bool>,
2530}
2531/// Namespace provides a scope for Names.
2532/// Use of multiple namespaces is optional.
2533#[derive(Clone, PartialEq, ::prost::Message)]
2534pub struct Namespace {
2535 /// Standard object's metadata.
2536 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
2537 /// +optional
2538 #[prost(message, optional, tag = "1")]
2539 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
2540 /// Spec defines the behavior of the Namespace.
2541 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status>
2542 /// +optional
2543 #[prost(message, optional, tag = "2")]
2544 pub spec: ::core::option::Option<NamespaceSpec>,
2545 /// Status describes the current status of a Namespace.
2546 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status>
2547 /// +optional
2548 #[prost(message, optional, tag = "3")]
2549 pub status: ::core::option::Option<NamespaceStatus>,
2550}
2551/// NamespaceCondition contains details about state of namespace.
2552#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2553pub struct NamespaceCondition {
2554 /// Type of namespace controller condition.
2555 #[prost(string, optional, tag = "1")]
2556 pub r#type: ::core::option::Option<::prost::alloc::string::String>,
2557 /// Status of the condition, one of True, False, Unknown.
2558 #[prost(string, optional, tag = "2")]
2559 pub status: ::core::option::Option<::prost::alloc::string::String>,
2560 /// Last time the condition transitioned from one status to another.
2561 /// +optional
2562 #[prost(message, optional, tag = "4")]
2563 pub last_transition_time:
2564 ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::Time>,
2565 /// Unique, one-word, CamelCase reason for the condition's last transition.
2566 /// +optional
2567 #[prost(string, optional, tag = "5")]
2568 pub reason: ::core::option::Option<::prost::alloc::string::String>,
2569 /// Human-readable message indicating details about last transition.
2570 /// +optional
2571 #[prost(string, optional, tag = "6")]
2572 pub message: ::core::option::Option<::prost::alloc::string::String>,
2573}
2574/// NamespaceList is a list of Namespaces.
2575#[derive(Clone, PartialEq, ::prost::Message)]
2576pub struct NamespaceList {
2577 /// Standard list metadata.
2578 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds>
2579 /// +optional
2580 #[prost(message, optional, tag = "1")]
2581 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
2582 /// Items is the list of Namespace objects in the list.
2583 /// More info: <https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/>
2584 #[prost(message, repeated, tag = "2")]
2585 pub items: ::prost::alloc::vec::Vec<Namespace>,
2586}
2587/// NamespaceSpec describes the attributes on a Namespace.
2588#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2589pub struct NamespaceSpec {
2590 /// Finalizers is an opaque list of values that must be empty to permanently remove object from storage.
2591 /// More info: <https://kubernetes.io/docs/tasks/administer-cluster/namespaces/>
2592 /// +optional
2593 /// +listType=atomic
2594 #[prost(string, repeated, tag = "1")]
2595 pub finalizers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2596}
2597/// NamespaceStatus is information about the current status of a Namespace.
2598#[derive(Clone, PartialEq, ::prost::Message)]
2599pub struct NamespaceStatus {
2600 /// Phase is the current lifecycle phase of the namespace.
2601 /// More info: <https://kubernetes.io/docs/tasks/administer-cluster/namespaces/>
2602 /// +optional
2603 #[prost(string, optional, tag = "1")]
2604 pub phase: ::core::option::Option<::prost::alloc::string::String>,
2605 /// Represents the latest available observations of a namespace's current state.
2606 /// +optional
2607 /// +patchMergeKey=type
2608 /// +patchStrategy=merge
2609 /// +listType=map
2610 /// +listMapKey=type
2611 #[prost(message, repeated, tag = "2")]
2612 pub conditions: ::prost::alloc::vec::Vec<NamespaceCondition>,
2613}
2614/// Node is a worker node in Kubernetes.
2615/// Each node will have a unique identifier in the cache (i.e. in etcd).
2616#[derive(Clone, PartialEq, ::prost::Message)]
2617pub struct Node {
2618 /// Standard object's metadata.
2619 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
2620 /// +optional
2621 #[prost(message, optional, tag = "1")]
2622 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
2623 /// Spec defines the behavior of a node.
2624 /// <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status>
2625 /// +optional
2626 #[prost(message, optional, tag = "2")]
2627 pub spec: ::core::option::Option<NodeSpec>,
2628 /// Most recently observed status of the node.
2629 /// Populated by the system.
2630 /// Read-only.
2631 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status>
2632 /// +optional
2633 #[prost(message, optional, tag = "3")]
2634 pub status: ::core::option::Option<NodeStatus>,
2635}
2636/// NodeAddress contains information for the node's address.
2637#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2638pub struct NodeAddress {
2639 /// Node address type, one of Hostname, ExternalIP or InternalIP.
2640 #[prost(string, optional, tag = "1")]
2641 pub r#type: ::core::option::Option<::prost::alloc::string::String>,
2642 /// The node address.
2643 #[prost(string, optional, tag = "2")]
2644 pub address: ::core::option::Option<::prost::alloc::string::String>,
2645}
2646/// Node affinity is a group of node affinity scheduling rules.
2647#[derive(Clone, PartialEq, ::prost::Message)]
2648pub struct NodeAffinity {
2649 /// If the affinity requirements specified by this field are not met at
2650 /// scheduling time, the pod will not be scheduled onto the node.
2651 /// If the affinity requirements specified by this field cease to be met
2652 /// at some point during pod execution (e.g. due to an update), the system
2653 /// may or may not try to eventually evict the pod from its node.
2654 /// +optional
2655 #[prost(message, optional, tag = "1")]
2656 pub required_during_scheduling_ignored_during_execution: ::core::option::Option<NodeSelector>,
2657 /// The scheduler will prefer to schedule pods to nodes that satisfy
2658 /// the affinity expressions specified by this field, but it may choose
2659 /// a node that violates one or more of the expressions. The node that is
2660 /// most preferred is the one with the greatest sum of weights, i.e.
2661 /// for each node that meets all of the scheduling requirements (resource
2662 /// request, requiredDuringScheduling affinity expressions, etc.),
2663 /// compute a sum by iterating through the elements of this field and adding
2664 /// "weight" to the sum if the node matches the corresponding matchExpressions; the
2665 /// node(s) with the highest sum are the most preferred.
2666 /// +optional
2667 /// +listType=atomic
2668 #[prost(message, repeated, tag = "2")]
2669 pub preferred_during_scheduling_ignored_during_execution:
2670 ::prost::alloc::vec::Vec<PreferredSchedulingTerm>,
2671}
2672/// NodeCondition contains condition information for a node.
2673#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2674pub struct NodeCondition {
2675 /// Type of node condition.
2676 #[prost(string, optional, tag = "1")]
2677 pub r#type: ::core::option::Option<::prost::alloc::string::String>,
2678 /// Status of the condition, one of True, False, Unknown.
2679 #[prost(string, optional, tag = "2")]
2680 pub status: ::core::option::Option<::prost::alloc::string::String>,
2681 /// Last time we got an update on a given condition.
2682 /// +optional
2683 #[prost(message, optional, tag = "3")]
2684 pub last_heartbeat_time:
2685 ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::Time>,
2686 /// Last time the condition transit from one status to another.
2687 /// +optional
2688 #[prost(message, optional, tag = "4")]
2689 pub last_transition_time:
2690 ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::Time>,
2691 /// (brief) reason for the condition's last transition.
2692 /// +optional
2693 #[prost(string, optional, tag = "5")]
2694 pub reason: ::core::option::Option<::prost::alloc::string::String>,
2695 /// Human readable message indicating details about last transition.
2696 /// +optional
2697 #[prost(string, optional, tag = "6")]
2698 pub message: ::core::option::Option<::prost::alloc::string::String>,
2699}
2700/// NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil.
2701/// This API is deprecated since 1.22
2702#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2703pub struct NodeConfigSource {
2704 /// ConfigMap is a reference to a Node's ConfigMap
2705 #[prost(message, optional, tag = "2")]
2706 pub config_map: ::core::option::Option<ConfigMapNodeConfigSource>,
2707}
2708/// NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.
2709#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2710pub struct NodeConfigStatus {
2711 /// Assigned reports the checkpointed config the node will try to use.
2712 /// When Node.Spec.ConfigSource is updated, the node checkpoints the associated
2713 /// config payload to local disk, along with a record indicating intended
2714 /// config. The node refers to this record to choose its config checkpoint, and
2715 /// reports this record in Assigned. Assigned only updates in the status after
2716 /// the record has been checkpointed to disk. When the Kubelet is restarted,
2717 /// it tries to make the Assigned config the Active config by loading and
2718 /// validating the checkpointed payload identified by Assigned.
2719 /// +optional
2720 #[prost(message, optional, tag = "1")]
2721 pub assigned: ::core::option::Option<NodeConfigSource>,
2722 /// Active reports the checkpointed config the node is actively using.
2723 /// Active will represent either the current version of the Assigned config,
2724 /// or the current LastKnownGood config, depending on whether attempting to use the
2725 /// Assigned config results in an error.
2726 /// +optional
2727 #[prost(message, optional, tag = "2")]
2728 pub active: ::core::option::Option<NodeConfigSource>,
2729 /// LastKnownGood reports the checkpointed config the node will fall back to
2730 /// when it encounters an error attempting to use the Assigned config.
2731 /// The Assigned config becomes the LastKnownGood config when the node determines
2732 /// that the Assigned config is stable and correct.
2733 /// This is currently implemented as a 10-minute soak period starting when the local
2734 /// record of Assigned config is updated. If the Assigned config is Active at the end
2735 /// of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is
2736 /// reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil,
2737 /// because the local default config is always assumed good.
2738 /// You should not make assumptions about the node's method of determining config stability
2739 /// and correctness, as this may change or become configurable in the future.
2740 /// +optional
2741 #[prost(message, optional, tag = "3")]
2742 pub last_known_good: ::core::option::Option<NodeConfigSource>,
2743 /// Error describes any problems reconciling the Spec.ConfigSource to the Active config.
2744 /// Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned
2745 /// record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting
2746 /// to load or validate the Assigned config, etc.
2747 /// Errors may occur at different points while syncing config. Earlier errors (e.g. download or
2748 /// checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across
2749 /// Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in
2750 /// a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error
2751 /// by fixing the config assigned in Spec.ConfigSource.
2752 /// You can find additional information for debugging by searching the error message in the Kubelet log.
2753 /// Error is a human-readable description of the error state; machines can check whether or not Error
2754 /// is empty, but should not rely on the stability of the Error text across Kubelet versions.
2755 /// +optional
2756 #[prost(string, optional, tag = "4")]
2757 pub error: ::core::option::Option<::prost::alloc::string::String>,
2758}
2759/// NodeDaemonEndpoints lists ports opened by daemons running on the Node.
2760#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
2761pub struct NodeDaemonEndpoints {
2762 /// Endpoint on which Kubelet is listening.
2763 /// +optional
2764 #[prost(message, optional, tag = "1")]
2765 pub kubelet_endpoint: ::core::option::Option<DaemonEndpoint>,
2766}
2767/// NodeFeatures describes the set of features implemented by the CRI implementation.
2768/// The features contained in the NodeFeatures should depend only on the cri implementation
2769/// independent of runtime handlers.
2770#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
2771pub struct NodeFeatures {
2772 /// SupplementalGroupsPolicy is set to true if the runtime supports SupplementalGroupsPolicy and ContainerUser.
2773 /// +optional
2774 #[prost(bool, optional, tag = "1")]
2775 pub supplemental_groups_policy: ::core::option::Option<bool>,
2776}
2777/// NodeList is the whole list of all Nodes which have been registered with master.
2778#[derive(Clone, PartialEq, ::prost::Message)]
2779pub struct NodeList {
2780 /// Standard list metadata.
2781 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds>
2782 /// +optional
2783 #[prost(message, optional, tag = "1")]
2784 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
2785 /// List of nodes
2786 #[prost(message, repeated, tag = "2")]
2787 pub items: ::prost::alloc::vec::Vec<Node>,
2788}
2789/// NodeProxyOptions is the query options to a Node's proxy call.
2790#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2791pub struct NodeProxyOptions {
2792 /// Path is the URL path to use for the current proxy request to node.
2793 /// +optional
2794 #[prost(string, optional, tag = "1")]
2795 pub path: ::core::option::Option<::prost::alloc::string::String>,
2796}
2797/// NodeRuntimeHandler is a set of runtime handler information.
2798#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2799pub struct NodeRuntimeHandler {
2800 /// Runtime handler name.
2801 /// Empty for the default runtime handler.
2802 /// +optional
2803 #[prost(string, optional, tag = "1")]
2804 pub name: ::core::option::Option<::prost::alloc::string::String>,
2805 /// Supported features.
2806 /// +optional
2807 #[prost(message, optional, tag = "2")]
2808 pub features: ::core::option::Option<NodeRuntimeHandlerFeatures>,
2809}
2810/// NodeRuntimeHandlerFeatures is a set of features implemented by the runtime handler.
2811#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
2812pub struct NodeRuntimeHandlerFeatures {
2813 /// RecursiveReadOnlyMounts is set to true if the runtime handler supports RecursiveReadOnlyMounts.
2814 /// +featureGate=RecursiveReadOnlyMounts
2815 /// +optional
2816 #[prost(bool, optional, tag = "1")]
2817 pub recursive_read_only_mounts: ::core::option::Option<bool>,
2818 /// UserNamespaces is set to true if the runtime handler supports UserNamespaces, including for volumes.
2819 /// +featureGate=UserNamespacesSupport
2820 /// +optional
2821 #[prost(bool, optional, tag = "2")]
2822 pub user_namespaces: ::core::option::Option<bool>,
2823}
2824/// A node selector represents the union of the results of one or more label queries
2825/// over a set of nodes; that is, it represents the OR of the selectors represented
2826/// by the node selector terms.
2827/// +structType=atomic
2828#[derive(Clone, PartialEq, ::prost::Message)]
2829pub struct NodeSelector {
2830 /// Required. A list of node selector terms. The terms are ORed.
2831 /// +listType=atomic
2832 #[prost(message, repeated, tag = "1")]
2833 pub node_selector_terms: ::prost::alloc::vec::Vec<NodeSelectorTerm>,
2834}
2835/// A node selector requirement is a selector that contains values, a key, and an operator
2836/// that relates the key and values.
2837#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2838pub struct NodeSelectorRequirement {
2839 /// The label key that the selector applies to.
2840 #[prost(string, optional, tag = "1")]
2841 pub key: ::core::option::Option<::prost::alloc::string::String>,
2842 /// Represents a key's relationship to a set of values.
2843 /// Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
2844 #[prost(string, optional, tag = "2")]
2845 pub operator: ::core::option::Option<::prost::alloc::string::String>,
2846 /// An array of string values. If the operator is In or NotIn,
2847 /// the values array must be non-empty. If the operator is Exists or DoesNotExist,
2848 /// the values array must be empty. If the operator is Gt or Lt, the values
2849 /// array must have a single element, which will be interpreted as an integer.
2850 /// This array is replaced during a strategic merge patch.
2851 /// +optional
2852 /// +listType=atomic
2853 #[prost(string, repeated, tag = "3")]
2854 pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2855}
2856/// A null or empty node selector term matches no objects. The requirements of
2857/// them are ANDed.
2858/// The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.
2859/// +structType=atomic
2860#[derive(Clone, PartialEq, ::prost::Message)]
2861pub struct NodeSelectorTerm {
2862 /// A list of node selector requirements by node's labels.
2863 /// +optional
2864 /// +listType=atomic
2865 #[prost(message, repeated, tag = "1")]
2866 pub match_expressions: ::prost::alloc::vec::Vec<NodeSelectorRequirement>,
2867 /// A list of node selector requirements by node's fields.
2868 /// +optional
2869 /// +listType=atomic
2870 #[prost(message, repeated, tag = "2")]
2871 pub match_fields: ::prost::alloc::vec::Vec<NodeSelectorRequirement>,
2872}
2873/// NodeSpec describes the attributes that a node is created with.
2874#[derive(Clone, PartialEq, ::prost::Message)]
2875pub struct NodeSpec {
2876 /// PodCIDR represents the pod IP range assigned to the node.
2877 /// +optional
2878 #[prost(string, optional, tag = "1")]
2879 pub pod_cidr: ::core::option::Option<::prost::alloc::string::String>,
2880 /// podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this
2881 /// field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for
2882 /// each of IPv4 and IPv6.
2883 /// +optional
2884 /// +patchStrategy=merge
2885 /// +listType=set
2886 #[prost(string, repeated, tag = "7")]
2887 pub pod_cid_rs: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2888 /// ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>
2889 /// +optional
2890 #[prost(string, optional, tag = "3")]
2891 pub provider_id: ::core::option::Option<::prost::alloc::string::String>,
2892 /// Unschedulable controls node schedulability of new pods. By default, node is schedulable.
2893 /// More info: <https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration>
2894 /// +optional
2895 #[prost(bool, optional, tag = "4")]
2896 pub unschedulable: ::core::option::Option<bool>,
2897 /// If specified, the node's taints.
2898 /// +optional
2899 /// +listType=atomic
2900 #[prost(message, repeated, tag = "5")]
2901 pub taints: ::prost::alloc::vec::Vec<Taint>,
2902 /// Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed.
2903 /// +optional
2904 #[prost(message, optional, tag = "6")]
2905 pub config_source: ::core::option::Option<NodeConfigSource>,
2906 /// Deprecated. Not all kubelets will set this field. Remove field after 1.13.
2907 /// see: <https://issues.k8s.io/61966>
2908 /// +optional
2909 #[prost(string, optional, tag = "2")]
2910 pub external_id: ::core::option::Option<::prost::alloc::string::String>,
2911}
2912/// NodeStatus is information about the current status of a node.
2913#[derive(Clone, PartialEq, ::prost::Message)]
2914pub struct NodeStatus {
2915 /// Capacity represents the total resources of a node.
2916 /// More info: <https://kubernetes.io/docs/reference/node/node-status/#capacity>
2917 /// +optional
2918 #[prost(btree_map = "string, message", tag = "1")]
2919 pub capacity: ::prost::alloc::collections::BTreeMap<
2920 ::prost::alloc::string::String,
2921 super::super::super::apimachinery::pkg::api::resource::Quantity,
2922 >,
2923 /// Allocatable represents the resources of a node that are available for scheduling.
2924 /// Defaults to Capacity.
2925 /// +optional
2926 #[prost(btree_map = "string, message", tag = "2")]
2927 pub allocatable: ::prost::alloc::collections::BTreeMap<
2928 ::prost::alloc::string::String,
2929 super::super::super::apimachinery::pkg::api::resource::Quantity,
2930 >,
2931 /// NodePhase is the recently observed lifecycle phase of the node.
2932 /// More info: <https://kubernetes.io/docs/concepts/nodes/node/#phase>
2933 /// The field is never populated, and now is deprecated.
2934 /// +optional
2935 #[prost(string, optional, tag = "3")]
2936 pub phase: ::core::option::Option<::prost::alloc::string::String>,
2937 /// Conditions is an array of current observed node conditions.
2938 /// More info: <https://kubernetes.io/docs/reference/node/node-status/#condition>
2939 /// +optional
2940 /// +patchMergeKey=type
2941 /// +patchStrategy=merge
2942 /// +listType=map
2943 /// +listMapKey=type
2944 #[prost(message, repeated, tag = "4")]
2945 pub conditions: ::prost::alloc::vec::Vec<NodeCondition>,
2946 /// List of addresses reachable to the node.
2947 /// Queried from cloud provider, if available.
2948 /// More info: <https://kubernetes.io/docs/reference/node/node-status/#addresses>
2949 /// Note: This field is declared as mergeable, but the merge key is not sufficiently
2950 /// unique, which can cause data corruption when it is merged. Callers should instead
2951 /// use a full-replacement patch. See <https://pr.k8s.io/79391> for an example.
2952 /// Consumers should assume that addresses can change during the
2953 /// lifetime of a Node. However, there are some exceptions where this may not
2954 /// be possible, such as Pods that inherit a Node's address in its own status or
2955 /// consumers of the downward API (status.hostIP).
2956 /// +optional
2957 /// +patchMergeKey=type
2958 /// +patchStrategy=merge
2959 /// +listType=map
2960 /// +listMapKey=type
2961 #[prost(message, repeated, tag = "5")]
2962 pub addresses: ::prost::alloc::vec::Vec<NodeAddress>,
2963 /// Endpoints of daemons running on the Node.
2964 /// +optional
2965 #[prost(message, optional, tag = "6")]
2966 pub daemon_endpoints: ::core::option::Option<NodeDaemonEndpoints>,
2967 /// Set of ids/uuids to uniquely identify the node.
2968 /// More info: <https://kubernetes.io/docs/reference/node/node-status/#info>
2969 /// +optional
2970 #[prost(message, optional, tag = "7")]
2971 pub node_info: ::core::option::Option<NodeSystemInfo>,
2972 /// List of container images on this node
2973 /// +optional
2974 /// +listType=atomic
2975 #[prost(message, repeated, tag = "8")]
2976 pub images: ::prost::alloc::vec::Vec<ContainerImage>,
2977 /// List of attachable volumes in use (mounted) by the node.
2978 /// +optional
2979 /// +listType=atomic
2980 #[prost(string, repeated, tag = "9")]
2981 pub volumes_in_use: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2982 /// List of volumes that are attached to the node.
2983 /// +optional
2984 /// +listType=atomic
2985 #[prost(message, repeated, tag = "10")]
2986 pub volumes_attached: ::prost::alloc::vec::Vec<AttachedVolume>,
2987 /// Status of the config assigned to the node via the dynamic Kubelet config feature.
2988 /// +optional
2989 #[prost(message, optional, tag = "11")]
2990 pub config: ::core::option::Option<NodeConfigStatus>,
2991 /// The available runtime handlers.
2992 /// +featureGate=RecursiveReadOnlyMounts
2993 /// +featureGate=UserNamespacesSupport
2994 /// +optional
2995 /// +listType=atomic
2996 #[prost(message, repeated, tag = "12")]
2997 pub runtime_handlers: ::prost::alloc::vec::Vec<NodeRuntimeHandler>,
2998 /// Features describes the set of features implemented by the CRI implementation.
2999 /// +featureGate=SupplementalGroupsPolicy
3000 /// +optional
3001 #[prost(message, optional, tag = "13")]
3002 pub features: ::core::option::Option<NodeFeatures>,
3003}
3004/// NodeSwapStatus represents swap memory information.
3005#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
3006pub struct NodeSwapStatus {
3007 /// Total amount of swap memory in bytes.
3008 /// +optional
3009 #[prost(int64, optional, tag = "1")]
3010 pub capacity: ::core::option::Option<i64>,
3011}
3012/// NodeSystemInfo is a set of ids/uuids to uniquely identify the node.
3013#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
3014pub struct NodeSystemInfo {
3015 /// MachineID reported by the node. For unique machine identification
3016 /// in the cluster this field is preferred. Learn more from man(5)
3017 /// machine-id: <http://man7.org/linux/man-pages/man5/machine-id.5.html>
3018 #[prost(string, optional, tag = "1")]
3019 pub machine_id: ::core::option::Option<::prost::alloc::string::String>,
3020 /// SystemUUID reported by the node. For unique machine identification
3021 /// MachineID is preferred. This field is specific to Red Hat hosts
3022 /// <https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid>
3023 #[prost(string, optional, tag = "2")]
3024 pub system_uuid: ::core::option::Option<::prost::alloc::string::String>,
3025 /// Boot ID reported by the node.
3026 #[prost(string, optional, tag = "3")]
3027 pub boot_id: ::core::option::Option<::prost::alloc::string::String>,
3028 /// Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).
3029 #[prost(string, optional, tag = "4")]
3030 pub kernel_version: ::core::option::Option<::prost::alloc::string::String>,
3031 /// OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).
3032 #[prost(string, optional, tag = "5")]
3033 pub os_image: ::core::option::Option<::prost::alloc::string::String>,
3034 /// ContainerRuntime Version reported by the node through runtime remote API (e.g. containerd://1.4.2).
3035 #[prost(string, optional, tag = "6")]
3036 pub container_runtime_version: ::core::option::Option<::prost::alloc::string::String>,
3037 /// Kubelet Version reported by the node.
3038 #[prost(string, optional, tag = "7")]
3039 pub kubelet_version: ::core::option::Option<::prost::alloc::string::String>,
3040 /// Deprecated: KubeProxy Version reported by the node.
3041 #[prost(string, optional, tag = "8")]
3042 pub kube_proxy_version: ::core::option::Option<::prost::alloc::string::String>,
3043 /// The Operating System reported by the node
3044 #[prost(string, optional, tag = "9")]
3045 pub operating_system: ::core::option::Option<::prost::alloc::string::String>,
3046 /// The Architecture reported by the node
3047 #[prost(string, optional, tag = "10")]
3048 pub architecture: ::core::option::Option<::prost::alloc::string::String>,
3049 /// Swap Info reported by the node.
3050 #[prost(message, optional, tag = "11")]
3051 pub swap: ::core::option::Option<NodeSwapStatus>,
3052}
3053/// ObjectFieldSelector selects an APIVersioned field of an object.
3054/// +structType=atomic
3055#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
3056pub struct ObjectFieldSelector {
3057 /// Version of the schema the FieldPath is written in terms of, defaults to "v1".
3058 /// +optional
3059 #[prost(string, optional, tag = "1")]
3060 pub api_version: ::core::option::Option<::prost::alloc::string::String>,
3061 /// Path of the field to select in the specified API version.
3062 #[prost(string, optional, tag = "2")]
3063 pub field_path: ::core::option::Option<::prost::alloc::string::String>,
3064}
3065/// ObjectReference contains enough information to let you inspect or modify the referred object.
3066/// ---
3067/// New uses of this type are discouraged because of difficulty describing its usage when embedded in APIs.
3068/// 1. Ignored fields. It includes many fields which are not generally honored. For instance, ResourceVersion and FieldPath are both very rarely valid in actual usage.
3069/// 2. Invalid usage help. It is impossible to add specific help for individual usage. In most embedded usages, there are particular
3070/// restrictions like, "must refer only to types A and B" or "UID not honored" or "name must be restricted".
3071/// Those cannot be well described when embedded.
3072/// 3. Inconsistent validation. Because the usages are different, the validation rules are different by usage, which makes it hard for users to predict what will happen.
3073/// 4. The fields are both imprecise and overly precise. Kind is not a precise mapping to a URL. This can produce ambiguity
3074/// during interpretation and require a REST mapping. In most cases, the dependency is on the group,resource tuple
3075/// and the version of the actual struct is irrelevant.
3076/// 5. We cannot easily change it. Because this type is embedded in many locations, updates to this type
3077/// will affect numerous schemas. Don't make new APIs embed an underspecified API type they do not control.
3078///
3079/// Instead of using this type, create a locally provided and used type that is well-focused on your reference.
3080/// For example, ServiceReferences for admission registration: <https://github.com/kubernetes/api/blob/release-1.17/admissionregistration/v1/types.go#L533> .
3081/// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
3082/// +structType=atomic
3083#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
3084pub struct ObjectReference {
3085 /// Kind of the referent.
3086 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds>
3087 /// +optional
3088 #[prost(string, optional, tag = "1")]
3089 pub kind: ::core::option::Option<::prost::alloc::string::String>,
3090 /// Namespace of the referent.
3091 /// More info: <https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/>
3092 /// +optional
3093 #[prost(string, optional, tag = "2")]
3094 pub namespace: ::core::option::Option<::prost::alloc::string::String>,
3095 /// Name of the referent.
3096 /// More info: <https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names>
3097 /// +optional
3098 #[prost(string, optional, tag = "3")]
3099 pub name: ::core::option::Option<::prost::alloc::string::String>,
3100 /// UID of the referent.
3101 /// More info: <https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids>
3102 /// +optional
3103 #[prost(string, optional, tag = "4")]
3104 pub uid: ::core::option::Option<::prost::alloc::string::String>,
3105 /// API version of the referent.
3106 /// +optional
3107 #[prost(string, optional, tag = "5")]
3108 pub api_version: ::core::option::Option<::prost::alloc::string::String>,
3109 /// Specific resourceVersion to which this reference is made, if any.
3110 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency>
3111 /// +optional
3112 #[prost(string, optional, tag = "6")]
3113 pub resource_version: ::core::option::Option<::prost::alloc::string::String>,
3114 /// If referring to a piece of an object instead of an entire object, this string
3115 /// should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers\[2\].
3116 /// For example, if the object reference is to a container within a pod, this would take on a value like:
3117 /// "spec.containers{name}" (where "name" refers to the name of the container that triggered
3118 /// the event) or if no container name is specified "spec.containers\[2\]" (container with
3119 /// index 2 in this pod). This syntax is chosen only to have some well-defined way of
3120 /// referencing a part of an object.
3121 /// TODO: this design is not final and this field is subject to change in the future.
3122 /// +optional
3123 #[prost(string, optional, tag = "7")]
3124 pub field_path: ::core::option::Option<::prost::alloc::string::String>,
3125}
3126/// PersistentVolume (PV) is a storage resource provisioned by an administrator.
3127/// It is analogous to a node.
3128/// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes>
3129#[derive(Clone, PartialEq, ::prost::Message)]
3130pub struct PersistentVolume {
3131 /// Standard object's metadata.
3132 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
3133 /// +optional
3134 #[prost(message, optional, tag = "1")]
3135 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
3136 /// spec defines a specification of a persistent volume owned by the cluster.
3137 /// Provisioned by an administrator.
3138 /// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes>
3139 /// +optional
3140 #[prost(message, optional, tag = "2")]
3141 pub spec: ::core::option::Option<PersistentVolumeSpec>,
3142 /// status represents the current information/status for the persistent volume.
3143 /// Populated by the system.
3144 /// Read-only.
3145 /// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes>
3146 /// +optional
3147 #[prost(message, optional, tag = "3")]
3148 pub status: ::core::option::Option<PersistentVolumeStatus>,
3149}
3150/// PersistentVolumeClaim is a user's request for and claim to a persistent volume
3151#[derive(Clone, PartialEq, ::prost::Message)]
3152pub struct PersistentVolumeClaim {
3153 /// Standard object's metadata.
3154 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
3155 /// +optional
3156 #[prost(message, optional, tag = "1")]
3157 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
3158 /// spec defines the desired characteristics of a volume requested by a pod author.
3159 /// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims>
3160 /// +optional
3161 #[prost(message, optional, tag = "2")]
3162 pub spec: ::core::option::Option<PersistentVolumeClaimSpec>,
3163 /// status represents the current information/status of a persistent volume claim.
3164 /// Read-only.
3165 /// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims>
3166 /// +optional
3167 #[prost(message, optional, tag = "3")]
3168 pub status: ::core::option::Option<PersistentVolumeClaimStatus>,
3169}
3170/// PersistentVolumeClaimCondition contains details about state of pvc
3171#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
3172pub struct PersistentVolumeClaimCondition {
3173 /// Type is the type of the condition.
3174 /// 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>
3175 #[prost(string, optional, tag = "1")]
3176 pub r#type: ::core::option::Option<::prost::alloc::string::String>,
3177 /// Status is the status of the condition.
3178 /// Can be True, False, Unknown.
3179 /// 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
3180 #[prost(string, optional, tag = "2")]
3181 pub status: ::core::option::Option<::prost::alloc::string::String>,
3182 /// lastProbeTime is the time we probed the condition.
3183 /// +optional
3184 #[prost(message, optional, tag = "3")]
3185 pub last_probe_time: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::Time>,
3186 /// lastTransitionTime is the time the condition transitioned from one status to another.
3187 /// +optional
3188 #[prost(message, optional, tag = "4")]
3189 pub last_transition_time:
3190 ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::Time>,
3191 /// reason is a unique, this should be a short, machine understandable string that gives the reason
3192 /// for condition's last transition. If it reports "Resizing" that means the underlying
3193 /// persistent volume is being resized.
3194 /// +optional
3195 #[prost(string, optional, tag = "5")]
3196 pub reason: ::core::option::Option<::prost::alloc::string::String>,
3197 /// message is the human-readable message indicating details about last transition.
3198 /// +optional
3199 #[prost(string, optional, tag = "6")]
3200 pub message: ::core::option::Option<::prost::alloc::string::String>,
3201}
3202/// PersistentVolumeClaimList is a list of PersistentVolumeClaim items.
3203#[derive(Clone, PartialEq, ::prost::Message)]
3204pub struct PersistentVolumeClaimList {
3205 /// Standard list metadata.
3206 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds>
3207 /// +optional
3208 #[prost(message, optional, tag = "1")]
3209 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
3210 /// items is a list of persistent volume claims.
3211 /// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims>
3212 #[prost(message, repeated, tag = "2")]
3213 pub items: ::prost::alloc::vec::Vec<PersistentVolumeClaim>,
3214}
3215/// PersistentVolumeClaimSpec describes the common attributes of storage devices
3216/// and allows a Source for provider-specific attributes
3217#[derive(Clone, PartialEq, ::prost::Message)]
3218pub struct PersistentVolumeClaimSpec {
3219 /// accessModes contains the desired access modes the volume should have.
3220 /// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1>
3221 /// +optional
3222 /// +listType=atomic
3223 #[prost(string, repeated, tag = "1")]
3224 pub access_modes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
3225 /// selector is a label query over volumes to consider for binding.
3226 /// +optional
3227 #[prost(message, optional, tag = "4")]
3228 pub selector:
3229 ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::LabelSelector>,
3230 /// resources represents the minimum resources the volume should have.
3231 /// If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements
3232 /// that are lower than previous value but must still be higher than capacity recorded in the
3233 /// status field of the claim.
3234 /// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources>
3235 /// +optional
3236 #[prost(message, optional, tag = "2")]
3237 pub resources: ::core::option::Option<VolumeResourceRequirements>,
3238 /// volumeName is the binding reference to the PersistentVolume backing this claim.
3239 /// +optional
3240 #[prost(string, optional, tag = "3")]
3241 pub volume_name: ::core::option::Option<::prost::alloc::string::String>,
3242 /// storageClassName is the name of the StorageClass required by the claim.
3243 /// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1>
3244 /// +optional
3245 #[prost(string, optional, tag = "5")]
3246 pub storage_class_name: ::core::option::Option<::prost::alloc::string::String>,
3247 /// volumeMode defines what type of volume is required by the claim.
3248 /// Value of Filesystem is implied when not included in claim spec.
3249 /// +optional
3250 #[prost(string, optional, tag = "6")]
3251 pub volume_mode: ::core::option::Option<::prost::alloc::string::String>,
3252 /// dataSource field can be used to specify either:
3253 /// * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)
3254 /// * An existing PVC (PersistentVolumeClaim)
3255 /// If the provisioner or an external controller can support the specified data source,
3256 /// it will create a new volume based on the contents of the specified data source.
3257 /// When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef,
3258 /// and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified.
3259 /// If the namespace is specified, then dataSourceRef will not be copied to dataSource.
3260 /// +optional
3261 #[prost(message, optional, tag = "7")]
3262 pub data_source: ::core::option::Option<TypedLocalObjectReference>,
3263 /// dataSourceRef specifies the object from which to populate the volume with data, if a non-empty
3264 /// volume is desired. This may be any object from a non-empty API group (non
3265 /// core object) or a PersistentVolumeClaim object.
3266 /// When this field is specified, volume binding will only succeed if the type of
3267 /// the specified object matches some installed volume populator or dynamic
3268 /// provisioner.
3269 /// This field will replace the functionality of the dataSource field and as such
3270 /// if both fields are non-empty, they must have the same value. For backwards
3271 /// compatibility, when namespace isn't specified in dataSourceRef,
3272 /// both fields (dataSource and dataSourceRef) will be set to the same
3273 /// value automatically if one of them is empty and the other is non-empty.
3274 /// When namespace is specified in dataSourceRef,
3275 /// dataSource isn't set to the same value and must be empty.
3276 /// There are three important differences between dataSource and dataSourceRef:
3277 /// * While dataSource only allows two specific types of objects, dataSourceRef
3278 /// allows any non-core object, as well as PersistentVolumeClaim objects.
3279 /// * While dataSource ignores disallowed values (dropping them), dataSourceRef
3280 /// preserves all values, and generates an error if a disallowed value is
3281 /// specified.
3282 /// * While dataSource only allows local objects, dataSourceRef allows objects
3283 /// in any namespaces.
3284 /// (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.
3285 /// (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
3286 /// +optional
3287 #[prost(message, optional, tag = "8")]
3288 pub data_source_ref: ::core::option::Option<TypedObjectReference>,
3289 /// volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim.
3290 /// If specified, the CSI driver will create or update the volume with the attributes defined
3291 /// in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName,
3292 /// it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass
3293 /// will be applied to the claim but it's not allowed to reset this field to empty string once it is set.
3294 /// If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass
3295 /// will be set by the persistentvolume controller if it exists.
3296 /// If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be
3297 /// set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource
3298 /// exists.
3299 /// More info: <https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/>
3300 /// (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default).
3301 /// +featureGate=VolumeAttributesClass
3302 /// +optional
3303 #[prost(string, optional, tag = "9")]
3304 pub volume_attributes_class_name: ::core::option::Option<::prost::alloc::string::String>,
3305}
3306/// PersistentVolumeClaimStatus is the current status of a persistent volume claim.
3307#[derive(Clone, PartialEq, ::prost::Message)]
3308pub struct PersistentVolumeClaimStatus {
3309 /// phase represents the current phase of PersistentVolumeClaim.
3310 /// +optional
3311 #[prost(string, optional, tag = "1")]
3312 pub phase: ::core::option::Option<::prost::alloc::string::String>,
3313 /// accessModes contains the actual access modes the volume backing the PVC has.
3314 /// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1>
3315 /// +optional
3316 /// +listType=atomic
3317 #[prost(string, repeated, tag = "2")]
3318 pub access_modes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
3319 /// capacity represents the actual resources of the underlying volume.
3320 /// +optional
3321 #[prost(btree_map = "string, message", tag = "3")]
3322 pub capacity: ::prost::alloc::collections::BTreeMap<
3323 ::prost::alloc::string::String,
3324 super::super::super::apimachinery::pkg::api::resource::Quantity,
3325 >,
3326 /// conditions is the current Condition of persistent volume claim. If underlying persistent volume is being
3327 /// resized then the Condition will be set to 'Resizing'.
3328 /// +optional
3329 /// +patchMergeKey=type
3330 /// +patchStrategy=merge
3331 /// +listType=map
3332 /// +listMapKey=type
3333 #[prost(message, repeated, tag = "4")]
3334 pub conditions: ::prost::alloc::vec::Vec<PersistentVolumeClaimCondition>,
3335 /// allocatedResources tracks the resources allocated to a PVC including its capacity.
3336 /// Key names follow standard Kubernetes label syntax. Valid values are either:
3337 /// * Un-prefixed keys:
3338 /// - storage - the capacity of the volume.
3339 /// * Custom resources must use implementation-defined prefixed names such as "example.com/my-custom-resource"
3340 /// Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered
3341 /// reserved and hence may not be used.
3342 ///
3343 /// Capacity reported here may be larger than the actual capacity when a volume expansion operation
3344 /// is requested.
3345 /// For storage quota, the larger value from allocatedResources and PVC.spec.resources is used.
3346 /// If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation.
3347 /// If a volume expansion capacity request is lowered, allocatedResources is only
3348 /// lowered if there are no expansion operations in progress and if the actual volume capacity
3349 /// is equal or lower than the requested capacity.
3350 ///
3351 /// A controller that receives PVC update with previously unknown resourceName
3352 /// should ignore the update for the purpose it was designed. For example - a controller that
3353 /// only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid
3354 /// resources associated with PVC.
3355 ///
3356 /// This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.
3357 /// +featureGate=RecoverVolumeExpansionFailure
3358 /// +optional
3359 #[prost(btree_map = "string, message", tag = "5")]
3360 pub allocated_resources: ::prost::alloc::collections::BTreeMap<
3361 ::prost::alloc::string::String,
3362 super::super::super::apimachinery::pkg::api::resource::Quantity,
3363 >,
3364 /// allocatedResourceStatuses stores status of resource being resized for the given PVC.
3365 /// Key names follow standard Kubernetes label syntax. Valid values are either:
3366 /// * Un-prefixed keys:
3367 /// - storage - the capacity of the volume.
3368 /// * Custom resources must use implementation-defined prefixed names such as "example.com/my-custom-resource"
3369 /// Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered
3370 /// reserved and hence may not be used.
3371 ///
3372 /// ClaimResourceStatus can be in any of following states:
3373 /// - ControllerResizeInProgress:
3374 /// State set when resize controller starts resizing the volume in control-plane.
3375 /// - ControllerResizeFailed:
3376 /// State set when resize has failed in resize controller with a terminal error.
3377 /// - NodeResizePending:
3378 /// State set when resize controller has finished resizing the volume but further resizing of
3379 /// volume is needed on the node.
3380 /// - NodeResizeInProgress:
3381 /// State set when kubelet starts resizing the volume.
3382 /// - NodeResizeFailed:
3383 /// State set when resizing has failed in kubelet with a terminal error. Transient errors don't set
3384 /// NodeResizeFailed.
3385 /// For example: if expanding a PVC for more capacity - this field can be one of the following states:
3386 /// - pvc.status.allocatedResourceStatus\['storage'\] = "ControllerResizeInProgress"
3387 /// - pvc.status.allocatedResourceStatus\['storage'\] = "ControllerResizeFailed"
3388 /// - pvc.status.allocatedResourceStatus\['storage'\] = "NodeResizePending"
3389 /// - pvc.status.allocatedResourceStatus\['storage'\] = "NodeResizeInProgress"
3390 /// - pvc.status.allocatedResourceStatus\['storage'\] = "NodeResizeFailed"
3391 /// When this field is not set, it means that no resize operation is in progress for the given PVC.
3392 ///
3393 /// A controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus
3394 /// should ignore the update for the purpose it was designed. For example - a controller that
3395 /// only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid
3396 /// resources associated with PVC.
3397 ///
3398 /// This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.
3399 /// +featureGate=RecoverVolumeExpansionFailure
3400 /// +mapType=granular
3401 /// +optional
3402 #[prost(btree_map = "string, string", tag = "7")]
3403 pub allocated_resource_statuses:
3404 ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
3405 /// currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using.
3406 /// When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim
3407 /// This is a beta field and requires enabling VolumeAttributesClass feature (off by default).
3408 /// +featureGate=VolumeAttributesClass
3409 /// +optional
3410 #[prost(string, optional, tag = "8")]
3411 pub current_volume_attributes_class_name: ::core::option::Option<::prost::alloc::string::String>,
3412 /// ModifyVolumeStatus represents the status object of ControllerModifyVolume operation.
3413 /// When this is unset, there is no ModifyVolume operation being attempted.
3414 /// This is a beta field and requires enabling VolumeAttributesClass feature (off by default).
3415 /// +featureGate=VolumeAttributesClass
3416 /// +optional
3417 #[prost(message, optional, tag = "9")]
3418 pub modify_volume_status: ::core::option::Option<ModifyVolumeStatus>,
3419}
3420/// PersistentVolumeClaimTemplate is used to produce
3421/// PersistentVolumeClaim objects as part of an EphemeralVolumeSource.
3422#[derive(Clone, PartialEq, ::prost::Message)]
3423pub struct PersistentVolumeClaimTemplate {
3424 /// May contain labels and annotations that will be copied into the PVC
3425 /// when creating it. No other fields are allowed and will be rejected during
3426 /// validation.
3427 ///
3428 /// +optional
3429 #[prost(message, optional, tag = "1")]
3430 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
3431 /// The specification for the PersistentVolumeClaim. The entire content is
3432 /// copied unchanged into the PVC that gets created from this
3433 /// template. The same fields as in a PersistentVolumeClaim
3434 /// are also valid here.
3435 #[prost(message, optional, tag = "2")]
3436 pub spec: ::core::option::Option<PersistentVolumeClaimSpec>,
3437}
3438/// PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace.
3439/// This volume finds the bound PV and mounts that volume for the pod. A
3440/// PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another
3441/// type of volume that is owned by someone else (the system).
3442#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
3443pub struct PersistentVolumeClaimVolumeSource {
3444 /// claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.
3445 /// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims>
3446 #[prost(string, optional, tag = "1")]
3447 pub claim_name: ::core::option::Option<::prost::alloc::string::String>,
3448 /// readOnly Will force the ReadOnly setting in VolumeMounts.
3449 /// Default false.
3450 /// +optional
3451 #[prost(bool, optional, tag = "2")]
3452 pub read_only: ::core::option::Option<bool>,
3453}
3454/// PersistentVolumeList is a list of PersistentVolume items.
3455#[derive(Clone, PartialEq, ::prost::Message)]
3456pub struct PersistentVolumeList {
3457 /// Standard list metadata.
3458 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds>
3459 /// +optional
3460 #[prost(message, optional, tag = "1")]
3461 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
3462 /// items is a list of persistent volumes.
3463 /// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes>
3464 #[prost(message, repeated, tag = "2")]
3465 pub items: ::prost::alloc::vec::Vec<PersistentVolume>,
3466}
3467/// PersistentVolumeSource is similar to VolumeSource but meant for the
3468/// administrator who creates PVs. Exactly one of its members must be set.
3469#[derive(Clone, PartialEq, ::prost::Message)]
3470pub struct PersistentVolumeSource {
3471 /// gcePersistentDisk represents a GCE Disk resource that is attached to a
3472 /// kubelet's host machine and then exposed to the pod. Provisioned by an admin.
3473 /// Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree
3474 /// gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver.
3475 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk>
3476 /// +optional
3477 #[prost(message, optional, tag = "1")]
3478 pub gce_persistent_disk: ::core::option::Option<GcePersistentDiskVolumeSource>,
3479 /// awsElasticBlockStore represents an AWS Disk resource that is attached to a
3480 /// kubelet's host machine and then exposed to the pod.
3481 /// Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree
3482 /// awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver.
3483 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore>
3484 /// +optional
3485 #[prost(message, optional, tag = "2")]
3486 pub aws_elastic_block_store: ::core::option::Option<AwsElasticBlockStoreVolumeSource>,
3487 /// hostPath represents a directory on the host.
3488 /// Provisioned by a developer or tester.
3489 /// This is useful for single-node development and testing only!
3490 /// On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster.
3491 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#hostpath>
3492 /// +optional
3493 #[prost(message, optional, tag = "3")]
3494 pub host_path: ::core::option::Option<HostPathVolumeSource>,
3495 /// glusterfs represents a Glusterfs volume that is attached to a host and
3496 /// exposed to the pod. Provisioned by an admin.
3497 /// Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported.
3498 /// More info: <https://examples.k8s.io/volumes/glusterfs/README.md>
3499 /// +optional
3500 #[prost(message, optional, tag = "4")]
3501 pub glusterfs: ::core::option::Option<GlusterfsPersistentVolumeSource>,
3502 /// nfs represents an NFS mount on the host. Provisioned by an admin.
3503 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#nfs>
3504 /// +optional
3505 #[prost(message, optional, tag = "5")]
3506 pub nfs: ::core::option::Option<NfsVolumeSource>,
3507 /// rbd represents a Rados Block Device mount on the host that shares a pod's lifetime.
3508 /// Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported.
3509 /// More info: <https://examples.k8s.io/volumes/rbd/README.md>
3510 /// +optional
3511 #[prost(message, optional, tag = "6")]
3512 pub rbd: ::core::option::Option<RbdPersistentVolumeSource>,
3513 /// iscsi represents an ISCSI Disk resource that is attached to a
3514 /// kubelet's host machine and then exposed to the pod. Provisioned by an admin.
3515 /// +optional
3516 #[prost(message, optional, tag = "7")]
3517 pub iscsi: ::core::option::Option<IscsiPersistentVolumeSource>,
3518 /// cinder represents a cinder volume attached and mounted on kubelets host machine.
3519 /// Deprecated: Cinder is deprecated. All operations for the in-tree cinder type
3520 /// are redirected to the cinder.csi.openstack.org CSI driver.
3521 /// More info: <https://examples.k8s.io/mysql-cinder-pd/README.md>
3522 /// +optional
3523 #[prost(message, optional, tag = "8")]
3524 pub cinder: ::core::option::Option<CinderPersistentVolumeSource>,
3525 /// cephFS represents a Ceph FS mount on the host that shares a pod's lifetime.
3526 /// Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported.
3527 /// +optional
3528 #[prost(message, optional, tag = "9")]
3529 pub cephfs: ::core::option::Option<CephFsPersistentVolumeSource>,
3530 /// fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
3531 /// +optional
3532 #[prost(message, optional, tag = "10")]
3533 pub fc: ::core::option::Option<FcVolumeSource>,
3534 /// flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running.
3535 /// Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported.
3536 /// +optional
3537 #[prost(message, optional, tag = "11")]
3538 pub flocker: ::core::option::Option<FlockerVolumeSource>,
3539 /// flexVolume represents a generic volume resource that is
3540 /// provisioned/attached using an exec based plugin.
3541 /// Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead.
3542 /// +optional
3543 #[prost(message, optional, tag = "12")]
3544 pub flex_volume: ::core::option::Option<FlexPersistentVolumeSource>,
3545 /// azureFile represents an Azure File Service mount on the host and bind mount to the pod.
3546 /// Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type
3547 /// are redirected to the file.csi.azure.com CSI driver.
3548 /// +optional
3549 #[prost(message, optional, tag = "13")]
3550 pub azure_file: ::core::option::Option<AzureFilePersistentVolumeSource>,
3551 /// vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine.
3552 /// Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type
3553 /// are redirected to the csi.vsphere.vmware.com CSI driver.
3554 /// +optional
3555 #[prost(message, optional, tag = "14")]
3556 pub vsphere_volume: ::core::option::Option<VsphereVirtualDiskVolumeSource>,
3557 /// quobyte represents a Quobyte mount on the host that shares a pod's lifetime.
3558 /// Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported.
3559 /// +optional
3560 #[prost(message, optional, tag = "15")]
3561 pub quobyte: ::core::option::Option<QuobyteVolumeSource>,
3562 /// azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
3563 /// Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type
3564 /// are redirected to the disk.csi.azure.com CSI driver.
3565 /// +optional
3566 #[prost(message, optional, tag = "16")]
3567 pub azure_disk: ::core::option::Option<AzureDiskVolumeSource>,
3568 /// photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine.
3569 /// Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported.
3570 #[prost(message, optional, tag = "17")]
3571 pub photon_persistent_disk: ::core::option::Option<PhotonPersistentDiskVolumeSource>,
3572 /// portworxVolume represents a portworx volume attached and mounted on kubelets host machine.
3573 /// Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type
3574 /// are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate
3575 /// is on.
3576 /// +optional
3577 #[prost(message, optional, tag = "18")]
3578 pub portworx_volume: ::core::option::Option<PortworxVolumeSource>,
3579 /// scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
3580 /// Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported.
3581 /// +optional
3582 #[prost(message, optional, tag = "19")]
3583 pub scale_io: ::core::option::Option<ScaleIoPersistentVolumeSource>,
3584 /// local represents directly-attached storage with node affinity
3585 /// +optional
3586 #[prost(message, optional, tag = "20")]
3587 pub local: ::core::option::Option<LocalVolumeSource>,
3588 /// storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod.
3589 /// Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported.
3590 /// More info: <https://examples.k8s.io/volumes/storageos/README.md>
3591 /// +optional
3592 #[prost(message, optional, tag = "21")]
3593 pub storageos: ::core::option::Option<StorageOsPersistentVolumeSource>,
3594 /// csi represents storage that is handled by an external CSI driver.
3595 /// +optional
3596 #[prost(message, optional, tag = "22")]
3597 pub csi: ::core::option::Option<CSIPersistentVolumeSource>,
3598}
3599/// PersistentVolumeSpec is the specification of a persistent volume.
3600#[derive(Clone, PartialEq, ::prost::Message)]
3601pub struct PersistentVolumeSpec {
3602 /// capacity is the description of the persistent volume's resources and capacity.
3603 /// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity>
3604 /// +optional
3605 #[prost(btree_map = "string, message", tag = "1")]
3606 pub capacity: ::prost::alloc::collections::BTreeMap<
3607 ::prost::alloc::string::String,
3608 super::super::super::apimachinery::pkg::api::resource::Quantity,
3609 >,
3610 /// persistentVolumeSource is the actual volume backing the persistent volume.
3611 #[prost(message, optional, tag = "2")]
3612 pub persistent_volume_source: ::core::option::Option<PersistentVolumeSource>,
3613 /// accessModes contains all ways the volume can be mounted.
3614 /// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes>
3615 /// +optional
3616 /// +listType=atomic
3617 #[prost(string, repeated, tag = "3")]
3618 pub access_modes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
3619 /// claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
3620 /// Expected to be non-nil when bound.
3621 /// claim.VolumeName is the authoritative bind between PV and PVC.
3622 /// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding>
3623 /// +optional
3624 /// +structType=granular
3625 #[prost(message, optional, tag = "4")]
3626 pub claim_ref: ::core::option::Option<ObjectReference>,
3627 /// persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim.
3628 /// Valid options are Retain (default for manually created PersistentVolumes), Delete (default
3629 /// for dynamically provisioned PersistentVolumes), and Recycle (deprecated).
3630 /// Recycle must be supported by the volume plugin underlying this PersistentVolume.
3631 /// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming>
3632 /// +optional
3633 #[prost(string, optional, tag = "5")]
3634 pub persistent_volume_reclaim_policy: ::core::option::Option<::prost::alloc::string::String>,
3635 /// storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value
3636 /// means that this volume does not belong to any StorageClass.
3637 /// +optional
3638 #[prost(string, optional, tag = "6")]
3639 pub storage_class_name: ::core::option::Option<::prost::alloc::string::String>,
3640 /// mountOptions is the list of mount options, e.g. \["ro", "soft"\]. Not validated - mount will
3641 /// simply fail if one is invalid.
3642 /// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options>
3643 /// +optional
3644 /// +listType=atomic
3645 #[prost(string, repeated, tag = "7")]
3646 pub mount_options: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
3647 /// volumeMode defines if a volume is intended to be used with a formatted filesystem
3648 /// or to remain in raw block state. Value of Filesystem is implied when not included in spec.
3649 /// +optional
3650 #[prost(string, optional, tag = "8")]
3651 pub volume_mode: ::core::option::Option<::prost::alloc::string::String>,
3652 /// nodeAffinity defines constraints that limit what nodes this volume can be accessed from.
3653 /// This field influences the scheduling of pods that use this volume.
3654 /// +optional
3655 #[prost(message, optional, tag = "9")]
3656 pub node_affinity: ::core::option::Option<VolumeNodeAffinity>,
3657 /// Name of VolumeAttributesClass to which this persistent volume belongs. Empty value
3658 /// is not allowed. When this field is not set, it indicates that this volume does not belong to any
3659 /// VolumeAttributesClass. This field is mutable and can be changed by the CSI driver
3660 /// after a volume has been updated successfully to a new class.
3661 /// For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound
3662 /// PersistentVolumeClaims during the binding process.
3663 /// This is a beta field and requires enabling VolumeAttributesClass feature (off by default).
3664 /// +featureGate=VolumeAttributesClass
3665 /// +optional
3666 #[prost(string, optional, tag = "10")]
3667 pub volume_attributes_class_name: ::core::option::Option<::prost::alloc::string::String>,
3668}
3669/// PersistentVolumeStatus is the current status of a persistent volume.
3670#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
3671pub struct PersistentVolumeStatus {
3672 /// phase indicates if a volume is available, bound to a claim, or released by a claim.
3673 /// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase>
3674 /// +optional
3675 #[prost(string, optional, tag = "1")]
3676 pub phase: ::core::option::Option<::prost::alloc::string::String>,
3677 /// message is a human-readable message indicating details about why the volume is in this state.
3678 /// +optional
3679 #[prost(string, optional, tag = "2")]
3680 pub message: ::core::option::Option<::prost::alloc::string::String>,
3681 /// reason is a brief CamelCase string that describes any failure and is meant
3682 /// for machine parsing and tidy display in the CLI.
3683 /// +optional
3684 #[prost(string, optional, tag = "3")]
3685 pub reason: ::core::option::Option<::prost::alloc::string::String>,
3686 /// lastPhaseTransitionTime is the time the phase transitioned from one to another
3687 /// and automatically resets to current time everytime a volume phase transitions.
3688 /// +optional
3689 #[prost(message, optional, tag = "4")]
3690 pub last_phase_transition_time:
3691 ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::Time>,
3692}
3693/// Represents a Photon Controller persistent disk resource.
3694#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
3695pub struct PhotonPersistentDiskVolumeSource {
3696 /// pdID is the ID that identifies Photon Controller persistent disk
3697 #[prost(string, optional, tag = "1")]
3698 pub pd_id: ::core::option::Option<::prost::alloc::string::String>,
3699 /// fsType is the filesystem type to mount.
3700 /// Must be a filesystem type supported by the host operating system.
3701 /// Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
3702 #[prost(string, optional, tag = "2")]
3703 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
3704}
3705/// Pod is a collection of containers that can run on a host. This resource is created
3706/// by clients and scheduled onto hosts.
3707#[derive(Clone, PartialEq, ::prost::Message)]
3708pub struct Pod {
3709 /// Standard object's metadata.
3710 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
3711 /// +optional
3712 #[prost(message, optional, tag = "1")]
3713 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
3714 /// Specification of the desired behavior of the pod.
3715 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status>
3716 /// +optional
3717 #[prost(message, optional, tag = "2")]
3718 pub spec: ::core::option::Option<PodSpec>,
3719 /// Most recently observed status of the pod.
3720 /// This data may not be up to date.
3721 /// Populated by the system.
3722 /// Read-only.
3723 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status>
3724 /// +optional
3725 #[prost(message, optional, tag = "3")]
3726 pub status: ::core::option::Option<PodStatus>,
3727}
3728/// Pod affinity is a group of inter pod affinity scheduling rules.
3729#[derive(Clone, PartialEq, ::prost::Message)]
3730pub struct PodAffinity {
3731 /// If the affinity requirements specified by this field are not met at
3732 /// scheduling time, the pod will not be scheduled onto the node.
3733 /// If the affinity requirements specified by this field cease to be met
3734 /// at some point during pod execution (e.g. due to a pod label update), the
3735 /// system may or may not try to eventually evict the pod from its node.
3736 /// When there are multiple elements, the lists of nodes corresponding to each
3737 /// podAffinityTerm are intersected, i.e. all terms must be satisfied.
3738 /// +optional
3739 /// +listType=atomic
3740 #[prost(message, repeated, tag = "1")]
3741 pub required_during_scheduling_ignored_during_execution: ::prost::alloc::vec::Vec<PodAffinityTerm>,
3742 /// The scheduler will prefer to schedule pods to nodes that satisfy
3743 /// the affinity expressions specified by this field, but it may choose
3744 /// a node that violates one or more of the expressions. The node that is
3745 /// most preferred is the one with the greatest sum of weights, i.e.
3746 /// for each node that meets all of the scheduling requirements (resource
3747 /// request, requiredDuringScheduling affinity expressions, etc.),
3748 /// compute a sum by iterating through the elements of this field and adding
3749 /// "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
3750 /// node(s) with the highest sum are the most preferred.
3751 /// +optional
3752 /// +listType=atomic
3753 #[prost(message, repeated, tag = "2")]
3754 pub preferred_during_scheduling_ignored_during_execution:
3755 ::prost::alloc::vec::Vec<WeightedPodAffinityTerm>,
3756}
3757/// Defines a set of pods (namely those matching the labelSelector
3758/// relative to the given namespace(s)) that this pod should be
3759/// co-located (affinity) or not co-located (anti-affinity) with,
3760/// where co-located is defined as running on a node whose value of
3761/// the label with key <topologyKey> matches that of any node on which
3762/// a pod of the set of pods is running
3763#[derive(Clone, PartialEq, ::prost::Message)]
3764pub struct PodAffinityTerm {
3765 /// A label query over a set of resources, in this case pods.
3766 /// If it's null, this PodAffinityTerm matches with no Pods.
3767 /// +optional
3768 #[prost(message, optional, tag = "1")]
3769 pub label_selector:
3770 ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::LabelSelector>,
3771 /// namespaces specifies a static list of namespace names that the term applies to.
3772 /// The term is applied to the union of the namespaces listed in this field
3773 /// and the ones selected by namespaceSelector.
3774 /// null or empty namespaces list and null namespaceSelector means "this pod's namespace".
3775 /// +optional
3776 /// +listType=atomic
3777 #[prost(string, repeated, tag = "2")]
3778 pub namespaces: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
3779 /// This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
3780 /// the labelSelector in the specified namespaces, where co-located is defined as running on a node
3781 /// whose value of the label with key topologyKey matches that of any node on which any of the
3782 /// selected pods is running.
3783 /// Empty topologyKey is not allowed.
3784 #[prost(string, optional, tag = "3")]
3785 pub topology_key: ::core::option::Option<::prost::alloc::string::String>,
3786 /// A label query over the set of namespaces that the term applies to.
3787 /// The term is applied to the union of the namespaces selected by this field
3788 /// and the ones listed in the namespaces field.
3789 /// null selector and null or empty namespaces list means "this pod's namespace".
3790 /// An empty selector ({}) matches all namespaces.
3791 /// +optional
3792 #[prost(message, optional, tag = "4")]
3793 pub namespace_selector:
3794 ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::LabelSelector>,
3795 /// MatchLabelKeys is a set of pod label keys to select which pods will
3796 /// be taken into consideration. The keys are used to lookup values from the
3797 /// incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`
3798 /// to select the group of existing pods which pods will be taken into consideration
3799 /// for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
3800 /// pod labels will be ignored. The default value is empty.
3801 /// The same key is forbidden to exist in both matchLabelKeys and labelSelector.
3802 /// Also, matchLabelKeys cannot be set when labelSelector isn't set.
3803 ///
3804 /// +listType=atomic
3805 /// +optional
3806 #[prost(string, repeated, tag = "5")]
3807 pub match_label_keys: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
3808 /// MismatchLabelKeys is a set of pod label keys to select which pods will
3809 /// be taken into consideration. The keys are used to lookup values from the
3810 /// incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`
3811 /// to select the group of existing pods which pods will be taken into consideration
3812 /// for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
3813 /// pod labels will be ignored. The default value is empty.
3814 /// The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.
3815 /// Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
3816 ///
3817 /// +listType=atomic
3818 /// +optional
3819 #[prost(string, repeated, tag = "6")]
3820 pub mismatch_label_keys: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
3821}
3822/// Pod anti affinity is a group of inter pod anti affinity scheduling rules.
3823#[derive(Clone, PartialEq, ::prost::Message)]
3824pub struct PodAntiAffinity {
3825 /// If the anti-affinity requirements specified by this field are not met at
3826 /// scheduling time, the pod will not be scheduled onto the node.
3827 /// If the anti-affinity requirements specified by this field cease to be met
3828 /// at some point during pod execution (e.g. due to a pod label update), the
3829 /// system may or may not try to eventually evict the pod from its node.
3830 /// When there are multiple elements, the lists of nodes corresponding to each
3831 /// podAffinityTerm are intersected, i.e. all terms must be satisfied.
3832 /// +optional
3833 /// +listType=atomic
3834 #[prost(message, repeated, tag = "1")]
3835 pub required_during_scheduling_ignored_during_execution: ::prost::alloc::vec::Vec<PodAffinityTerm>,
3836 /// The scheduler will prefer to schedule pods to nodes that satisfy
3837 /// the anti-affinity expressions specified by this field, but it may choose
3838 /// a node that violates one or more of the expressions. The node that is
3839 /// most preferred is the one with the greatest sum of weights, i.e.
3840 /// for each node that meets all of the scheduling requirements (resource
3841 /// request, requiredDuringScheduling anti-affinity expressions, etc.),
3842 /// compute a sum by iterating through the elements of this field and adding
3843 /// "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
3844 /// node(s) with the highest sum are the most preferred.
3845 /// +optional
3846 /// +listType=atomic
3847 #[prost(message, repeated, tag = "2")]
3848 pub preferred_during_scheduling_ignored_during_execution:
3849 ::prost::alloc::vec::Vec<WeightedPodAffinityTerm>,
3850}
3851/// PodAttachOptions is the query options to a Pod's remote attach call.
3852/// ---
3853/// TODO: merge w/ PodExecOptions below for stdin, stdout, etc
3854/// and also when we cut V2, we should export a "StreamOptions" or somesuch that contains Stdin, Stdout, Stder and TTY
3855#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
3856pub struct PodAttachOptions {
3857 /// Stdin if true, redirects the standard input stream of the pod for this call.
3858 /// Defaults to false.
3859 /// +optional
3860 #[prost(bool, optional, tag = "1")]
3861 pub stdin: ::core::option::Option<bool>,
3862 /// Stdout if true indicates that stdout is to be redirected for the attach call.
3863 /// Defaults to true.
3864 /// +optional
3865 #[prost(bool, optional, tag = "2")]
3866 pub stdout: ::core::option::Option<bool>,
3867 /// Stderr if true indicates that stderr is to be redirected for the attach call.
3868 /// Defaults to true.
3869 /// +optional
3870 #[prost(bool, optional, tag = "3")]
3871 pub stderr: ::core::option::Option<bool>,
3872 /// TTY if true indicates that a tty will be allocated for the attach call.
3873 /// This is passed through the container runtime so the tty
3874 /// is allocated on the worker node by the container runtime.
3875 /// Defaults to false.
3876 /// +optional
3877 #[prost(bool, optional, tag = "4")]
3878 pub tty: ::core::option::Option<bool>,
3879 /// The container in which to execute the command.
3880 /// Defaults to only container if there is only one container in the pod.
3881 /// +optional
3882 #[prost(string, optional, tag = "5")]
3883 pub container: ::core::option::Option<::prost::alloc::string::String>,
3884}
3885/// PodCondition contains details for the current condition of this pod.
3886#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
3887pub struct PodCondition {
3888 /// Type is the type of the condition.
3889 /// More info: <https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions>
3890 #[prost(string, optional, tag = "1")]
3891 pub r#type: ::core::option::Option<::prost::alloc::string::String>,
3892 /// If set, this represents the .metadata.generation that the pod condition was set based upon.
3893 /// This is an alpha field. Enable PodObservedGenerationTracking to be able to use this field.
3894 /// +featureGate=PodObservedGenerationTracking
3895 /// +optional
3896 #[prost(int64, optional, tag = "7")]
3897 pub observed_generation: ::core::option::Option<i64>,
3898 /// Status is the status of the condition.
3899 /// Can be True, False, Unknown.
3900 /// More info: <https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions>
3901 #[prost(string, optional, tag = "2")]
3902 pub status: ::core::option::Option<::prost::alloc::string::String>,
3903 /// Last time we probed the condition.
3904 /// +optional
3905 #[prost(message, optional, tag = "3")]
3906 pub last_probe_time: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::Time>,
3907 /// Last time the condition transitioned from one status to another.
3908 /// +optional
3909 #[prost(message, optional, tag = "4")]
3910 pub last_transition_time:
3911 ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::Time>,
3912 /// Unique, one-word, CamelCase reason for the condition's last transition.
3913 /// +optional
3914 #[prost(string, optional, tag = "5")]
3915 pub reason: ::core::option::Option<::prost::alloc::string::String>,
3916 /// Human-readable message indicating details about last transition.
3917 /// +optional
3918 #[prost(string, optional, tag = "6")]
3919 pub message: ::core::option::Option<::prost::alloc::string::String>,
3920}
3921/// PodDNSConfig defines the DNS parameters of a pod in addition to
3922/// those generated from DNSPolicy.
3923#[derive(Clone, PartialEq, ::prost::Message)]
3924pub struct PodDnsConfig {
3925 /// A list of DNS name server IP addresses.
3926 /// This will be appended to the base nameservers generated from DNSPolicy.
3927 /// Duplicated nameservers will be removed.
3928 /// +optional
3929 /// +listType=atomic
3930 #[prost(string, repeated, tag = "1")]
3931 pub nameservers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
3932 /// A list of DNS search domains for host-name lookup.
3933 /// This will be appended to the base search paths generated from DNSPolicy.
3934 /// Duplicated search paths will be removed.
3935 /// +optional
3936 /// +listType=atomic
3937 #[prost(string, repeated, tag = "2")]
3938 pub searches: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
3939 /// A list of DNS resolver options.
3940 /// This will be merged with the base options generated from DNSPolicy.
3941 /// Duplicated entries will be removed. Resolution options given in Options
3942 /// will override those that appear in the base DNSPolicy.
3943 /// +optional
3944 /// +listType=atomic
3945 #[prost(message, repeated, tag = "3")]
3946 pub options: ::prost::alloc::vec::Vec<PodDnsConfigOption>,
3947}
3948/// PodDNSConfigOption defines DNS resolver options of a pod.
3949#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
3950pub struct PodDnsConfigOption {
3951 /// Name is this DNS resolver option's name.
3952 /// Required.
3953 #[prost(string, optional, tag = "1")]
3954 pub name: ::core::option::Option<::prost::alloc::string::String>,
3955 /// Value is this DNS resolver option's value.
3956 /// +optional
3957 #[prost(string, optional, tag = "2")]
3958 pub value: ::core::option::Option<::prost::alloc::string::String>,
3959}
3960/// PodExecOptions is the query options to a Pod's remote exec call.
3961/// ---
3962/// TODO: This is largely identical to PodAttachOptions above, make sure they stay in sync and see about merging
3963/// and also when we cut V2, we should export a "StreamOptions" or somesuch that contains Stdin, Stdout, Stder and TTY
3964#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
3965pub struct PodExecOptions {
3966 /// Redirect the standard input stream of the pod for this call.
3967 /// Defaults to false.
3968 /// +optional
3969 #[prost(bool, optional, tag = "1")]
3970 pub stdin: ::core::option::Option<bool>,
3971 /// Redirect the standard output stream of the pod for this call.
3972 /// +optional
3973 #[prost(bool, optional, tag = "2")]
3974 pub stdout: ::core::option::Option<bool>,
3975 /// Redirect the standard error stream of the pod for this call.
3976 /// +optional
3977 #[prost(bool, optional, tag = "3")]
3978 pub stderr: ::core::option::Option<bool>,
3979 /// TTY if true indicates that a tty will be allocated for the exec call.
3980 /// Defaults to false.
3981 /// +optional
3982 #[prost(bool, optional, tag = "4")]
3983 pub tty: ::core::option::Option<bool>,
3984 /// Container in which to execute the command.
3985 /// Defaults to only container if there is only one container in the pod.
3986 /// +optional
3987 #[prost(string, optional, tag = "5")]
3988 pub container: ::core::option::Option<::prost::alloc::string::String>,
3989 /// Command is the remote command to execute. argv array. Not executed within a shell.
3990 /// +listType=atomic
3991 #[prost(string, repeated, tag = "6")]
3992 pub command: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
3993}
3994/// PodIP represents a single IP address allocated to the pod.
3995#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
3996pub struct PodIp {
3997 /// IP is the IP address assigned to the pod
3998 /// +required
3999 #[prost(string, optional, tag = "1")]
4000 pub ip: ::core::option::Option<::prost::alloc::string::String>,
4001}
4002/// PodList is a list of Pods.
4003#[derive(Clone, PartialEq, ::prost::Message)]
4004pub struct PodList {
4005 /// Standard list metadata.
4006 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds>
4007 /// +optional
4008 #[prost(message, optional, tag = "1")]
4009 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
4010 /// List of pods.
4011 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md>
4012 #[prost(message, repeated, tag = "2")]
4013 pub items: ::prost::alloc::vec::Vec<Pod>,
4014}
4015/// PodLogOptions is the query options for a Pod's logs REST call.
4016#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4017pub struct PodLogOptions {
4018 /// The container for which to stream logs. Defaults to only container if there is one container in the pod.
4019 /// +optional
4020 #[prost(string, optional, tag = "1")]
4021 pub container: ::core::option::Option<::prost::alloc::string::String>,
4022 /// Follow the log stream of the pod. Defaults to false.
4023 /// +optional
4024 #[prost(bool, optional, tag = "2")]
4025 pub follow: ::core::option::Option<bool>,
4026 /// Return previous terminated container logs. Defaults to false.
4027 /// +optional
4028 #[prost(bool, optional, tag = "3")]
4029 pub previous: ::core::option::Option<bool>,
4030 /// A relative time in seconds before the current time from which to show logs. If this value
4031 /// precedes the time a pod was started, only logs since the pod start will be returned.
4032 /// If this value is in the future, no logs will be returned.
4033 /// Only one of sinceSeconds or sinceTime may be specified.
4034 /// +optional
4035 #[prost(int64, optional, tag = "4")]
4036 pub since_seconds: ::core::option::Option<i64>,
4037 /// An RFC3339 timestamp from which to show logs. If this value
4038 /// precedes the time a pod was started, only logs since the pod start will be returned.
4039 /// If this value is in the future, no logs will be returned.
4040 /// Only one of sinceSeconds or sinceTime may be specified.
4041 /// +optional
4042 #[prost(message, optional, tag = "5")]
4043 pub since_time: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::Time>,
4044 /// If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line
4045 /// of log output. Defaults to false.
4046 /// +optional
4047 #[prost(bool, optional, tag = "6")]
4048 pub timestamps: ::core::option::Option<bool>,
4049 /// If set, the number of lines from the end of the logs to show. If not specified,
4050 /// logs are shown from the creation of the container or sinceSeconds or sinceTime.
4051 /// Note that when "TailLines" is specified, "Stream" can only be set to nil or "All".
4052 /// +optional
4053 #[prost(int64, optional, tag = "7")]
4054 pub tail_lines: ::core::option::Option<i64>,
4055 /// If set, the number of bytes to read from the server before terminating the
4056 /// log output. This may not display a complete final line of logging, and may return
4057 /// slightly more or slightly less than the specified limit.
4058 /// +optional
4059 #[prost(int64, optional, tag = "8")]
4060 pub limit_bytes: ::core::option::Option<i64>,
4061 /// insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the
4062 /// serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver
4063 /// and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real
4064 /// kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the
4065 /// connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept
4066 /// the actual log data coming from the real kubelet).
4067 /// +optional
4068 #[prost(bool, optional, tag = "9")]
4069 pub insecure_skip_tls_verify_backend: ::core::option::Option<bool>,
4070 /// Specify which container log stream to return to the client.
4071 /// Acceptable values are "All", "Stdout" and "Stderr". If not specified, "All" is used, and both stdout and stderr
4072 /// are returned interleaved.
4073 /// Note that when "TailLines" is specified, "Stream" can only be set to nil or "All".
4074 /// +featureGate=PodLogsQuerySplitStreams
4075 /// +optional
4076 #[prost(string, optional, tag = "10")]
4077 pub stream: ::core::option::Option<::prost::alloc::string::String>,
4078}
4079/// PodOS defines the OS parameters of a pod.
4080#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4081pub struct PodOs {
4082 /// Name is the name of the operating system. The currently supported values are linux and windows.
4083 /// Additional value may be defined in future and can be one of:
4084 /// <https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration>
4085 /// Clients should expect to handle additional values and treat unrecognized values in this field as os: null
4086 #[prost(string, optional, tag = "1")]
4087 pub name: ::core::option::Option<::prost::alloc::string::String>,
4088}
4089/// PodPortForwardOptions is the query options to a Pod's port forward call
4090/// when using WebSockets.
4091/// The `port` query parameter must specify the port or
4092/// ports (comma separated) to forward over.
4093/// Port forwarding over SPDY does not use these options. It requires the port
4094/// to be passed in the `port` header as part of request.
4095#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4096pub struct PodPortForwardOptions {
4097 /// List of ports to forward
4098 /// Required when using WebSockets
4099 /// +optional
4100 /// +listType=atomic
4101 #[prost(int32, repeated, packed = "false", tag = "1")]
4102 pub ports: ::prost::alloc::vec::Vec<i32>,
4103}
4104/// PodProxyOptions is the query options to a Pod's proxy call.
4105#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4106pub struct PodProxyOptions {
4107 /// Path is the URL path to use for the current proxy request to pod.
4108 /// +optional
4109 #[prost(string, optional, tag = "1")]
4110 pub path: ::core::option::Option<::prost::alloc::string::String>,
4111}
4112/// PodReadinessGate contains the reference to a pod condition
4113#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4114pub struct PodReadinessGate {
4115 /// ConditionType refers to a condition in the pod's condition list with matching type.
4116 #[prost(string, optional, tag = "1")]
4117 pub condition_type: ::core::option::Option<::prost::alloc::string::String>,
4118}
4119/// PodResourceClaim references exactly one ResourceClaim, either directly
4120/// or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim
4121/// for the pod.
4122///
4123/// It adds a name to it that uniquely identifies the ResourceClaim inside the Pod.
4124/// Containers that need access to the ResourceClaim reference it with this name.
4125#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4126pub struct PodResourceClaim {
4127 /// Name uniquely identifies this resource claim inside the pod.
4128 /// This must be a DNS_LABEL.
4129 #[prost(string, optional, tag = "1")]
4130 pub name: ::core::option::Option<::prost::alloc::string::String>,
4131 /// ResourceClaimName is the name of a ResourceClaim object in the same
4132 /// namespace as this pod.
4133 ///
4134 /// Exactly one of ResourceClaimName and ResourceClaimTemplateName must
4135 /// be set.
4136 #[prost(string, optional, tag = "3")]
4137 pub resource_claim_name: ::core::option::Option<::prost::alloc::string::String>,
4138 /// ResourceClaimTemplateName is the name of a ResourceClaimTemplate
4139 /// object in the same namespace as this pod.
4140 ///
4141 /// The template will be used to create a new ResourceClaim, which will
4142 /// be bound to this pod. When this pod is deleted, the ResourceClaim
4143 /// will also be deleted. The pod name and resource name, along with a
4144 /// generated component, will be used to form a unique name for the
4145 /// ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.
4146 ///
4147 /// This field is immutable and no changes will be made to the
4148 /// corresponding ResourceClaim by the control plane after creating the
4149 /// ResourceClaim.
4150 ///
4151 /// Exactly one of ResourceClaimName and ResourceClaimTemplateName must
4152 /// be set.
4153 #[prost(string, optional, tag = "4")]
4154 pub resource_claim_template_name: ::core::option::Option<::prost::alloc::string::String>,
4155}
4156/// PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim
4157/// which references a ResourceClaimTemplate. It stores the generated name for
4158/// the corresponding ResourceClaim.
4159#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4160pub struct PodResourceClaimStatus {
4161 /// Name uniquely identifies this resource claim inside the pod.
4162 /// This must match the name of an entry in pod.spec.resourceClaims,
4163 /// which implies that the string must be a DNS_LABEL.
4164 #[prost(string, optional, tag = "1")]
4165 pub name: ::core::option::Option<::prost::alloc::string::String>,
4166 /// ResourceClaimName is the name of the ResourceClaim that was
4167 /// generated for the Pod in the namespace of the Pod. If this is
4168 /// unset, then generating a ResourceClaim was not necessary. The
4169 /// pod.spec.resourceClaims entry can be ignored in this case.
4170 ///
4171 /// +optional
4172 #[prost(string, optional, tag = "2")]
4173 pub resource_claim_name: ::core::option::Option<::prost::alloc::string::String>,
4174}
4175/// PodSchedulingGate is associated to a Pod to guard its scheduling.
4176#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4177pub struct PodSchedulingGate {
4178 /// Name of the scheduling gate.
4179 /// Each scheduling gate must have a unique name field.
4180 #[prost(string, optional, tag = "1")]
4181 pub name: ::core::option::Option<::prost::alloc::string::String>,
4182}
4183/// PodSecurityContext holds pod-level security attributes and common container settings.
4184/// Some fields are also present in container.securityContext. Field values of
4185/// container.securityContext take precedence over field values of PodSecurityContext.
4186#[derive(Clone, PartialEq, ::prost::Message)]
4187pub struct PodSecurityContext {
4188 /// The SELinux context to be applied to all containers.
4189 /// If unspecified, the container runtime will allocate a random SELinux context for each
4190 /// container. May also be set in SecurityContext. If set in
4191 /// both SecurityContext and PodSecurityContext, the value specified in SecurityContext
4192 /// takes precedence for that container.
4193 /// Note that this field cannot be set when spec.os.name is windows.
4194 /// +optional
4195 #[prost(message, optional, tag = "1")]
4196 pub se_linux_options: ::core::option::Option<SeLinuxOptions>,
4197 /// The Windows specific settings applied to all containers.
4198 /// If unspecified, the options within a container's SecurityContext will be used.
4199 /// If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
4200 /// Note that this field cannot be set when spec.os.name is linux.
4201 /// +optional
4202 #[prost(message, optional, tag = "8")]
4203 pub windows_options: ::core::option::Option<WindowsSecurityContextOptions>,
4204 /// The UID to run the entrypoint of the container process.
4205 /// Defaults to user specified in image metadata if unspecified.
4206 /// May also be set in SecurityContext. If set in both SecurityContext and
4207 /// PodSecurityContext, the value specified in SecurityContext takes precedence
4208 /// for that container.
4209 /// Note that this field cannot be set when spec.os.name is windows.
4210 /// +optional
4211 #[prost(int64, optional, tag = "2")]
4212 pub run_as_user: ::core::option::Option<i64>,
4213 /// The GID to run the entrypoint of the container process.
4214 /// Uses runtime default if unset.
4215 /// May also be set in SecurityContext. If set in both SecurityContext and
4216 /// PodSecurityContext, the value specified in SecurityContext takes precedence
4217 /// for that container.
4218 /// Note that this field cannot be set when spec.os.name is windows.
4219 /// +optional
4220 #[prost(int64, optional, tag = "6")]
4221 pub run_as_group: ::core::option::Option<i64>,
4222 /// Indicates that the container must run as a non-root user.
4223 /// If true, the Kubelet will validate the image at runtime to ensure that it
4224 /// does not run as UID 0 (root) and fail to start the container if it does.
4225 /// If unset or false, no such validation will be performed.
4226 /// May also be set in SecurityContext. If set in both SecurityContext and
4227 /// PodSecurityContext, the value specified in SecurityContext takes precedence.
4228 /// +optional
4229 #[prost(bool, optional, tag = "3")]
4230 pub run_as_non_root: ::core::option::Option<bool>,
4231 /// A list of groups applied to the first process run in each container, in
4232 /// addition to the container's primary GID and fsGroup (if specified). If
4233 /// the SupplementalGroupsPolicy feature is enabled, the
4234 /// supplementalGroupsPolicy field determines whether these are in addition
4235 /// to or instead of any group memberships defined in the container image.
4236 /// If unspecified, no additional groups are added, though group memberships
4237 /// defined in the container image may still be used, depending on the
4238 /// supplementalGroupsPolicy field.
4239 /// Note that this field cannot be set when spec.os.name is windows.
4240 /// +optional
4241 /// +listType=atomic
4242 #[prost(int64, repeated, packed = "false", tag = "4")]
4243 pub supplemental_groups: ::prost::alloc::vec::Vec<i64>,
4244 /// Defines how supplemental groups of the first container processes are calculated.
4245 /// Valid values are "Merge" and "Strict". If not specified, "Merge" is used.
4246 /// (Alpha) Using the field requires the SupplementalGroupsPolicy feature gate to be enabled
4247 /// and the container runtime must implement support for this feature.
4248 /// Note that this field cannot be set when spec.os.name is windows.
4249 /// TODO: update the default value to "Merge" when spec.os.name is not windows in v1.34
4250 /// +featureGate=SupplementalGroupsPolicy
4251 /// +optional
4252 #[prost(string, optional, tag = "12")]
4253 pub supplemental_groups_policy: ::core::option::Option<::prost::alloc::string::String>,
4254 /// A special supplemental group that applies to all containers in a pod.
4255 /// Some volume types allow the Kubelet to change the ownership of that volume
4256 /// to be owned by the pod:
4257 ///
4258 /// 1. The owning GID will be the FSGroup
4259 /// 2. The setgid bit is set (new files created in the volume will be owned by FSGroup)
4260 /// 3. The permission bits are OR'd with rw-rw----
4261 ///
4262 /// If unset, the Kubelet will not modify the ownership and permissions of any volume.
4263 /// Note that this field cannot be set when spec.os.name is windows.
4264 /// +optional
4265 #[prost(int64, optional, tag = "5")]
4266 pub fs_group: ::core::option::Option<i64>,
4267 /// Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
4268 /// sysctls (by the container runtime) might fail to launch.
4269 /// Note that this field cannot be set when spec.os.name is windows.
4270 /// +optional
4271 /// +listType=atomic
4272 #[prost(message, repeated, tag = "7")]
4273 pub sysctls: ::prost::alloc::vec::Vec<Sysctl>,
4274 /// fsGroupChangePolicy defines behavior of changing ownership and permission of the volume
4275 /// before being exposed inside Pod. This field will only apply to
4276 /// volume types which support fsGroup based ownership(and permissions).
4277 /// It will have no effect on ephemeral volume types such as: secret, configmaps
4278 /// and emptydir.
4279 /// Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used.
4280 /// Note that this field cannot be set when spec.os.name is windows.
4281 /// +optional
4282 #[prost(string, optional, tag = "9")]
4283 pub fs_group_change_policy: ::core::option::Option<::prost::alloc::string::String>,
4284 /// The seccomp options to use by the containers in this pod.
4285 /// Note that this field cannot be set when spec.os.name is windows.
4286 /// +optional
4287 #[prost(message, optional, tag = "10")]
4288 pub seccomp_profile: ::core::option::Option<SeccompProfile>,
4289 /// appArmorProfile is the AppArmor options to use by the containers in this pod.
4290 /// Note that this field cannot be set when spec.os.name is windows.
4291 /// +optional
4292 #[prost(message, optional, tag = "11")]
4293 pub app_armor_profile: ::core::option::Option<AppArmorProfile>,
4294 /// seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod.
4295 /// It has no effect on nodes that do not support SELinux or to volumes does not support SELinux.
4296 /// Valid values are "MountOption" and "Recursive".
4297 ///
4298 /// "Recursive" means relabeling of all files on all Pod volumes by the container runtime.
4299 /// This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node.
4300 ///
4301 /// "MountOption" mounts all eligible Pod volumes with `-o context` mount option.
4302 /// This requires all Pods that share the same volume to use the same SELinux label.
4303 /// It is not possible to share the same volume among privileged and unprivileged Pods.
4304 /// Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes
4305 /// whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their
4306 /// CSIDriver instance. Other volumes are always re-labelled recursively.
4307 /// "MountOption" value is allowed only when SELinuxMount feature gate is enabled.
4308 ///
4309 /// If not specified and SELinuxMount feature gate is enabled, "MountOption" is used.
4310 /// If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes
4311 /// and "Recursive" for all other volumes.
4312 ///
4313 /// This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers.
4314 ///
4315 /// All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state.
4316 /// Note that this field cannot be set when spec.os.name is windows.
4317 /// +featureGate=SELinuxChangePolicy
4318 /// +optional
4319 #[prost(string, optional, tag = "13")]
4320 pub se_linux_change_policy: ::core::option::Option<::prost::alloc::string::String>,
4321}
4322/// Describes the class of pods that should avoid this node.
4323/// Exactly one field should be set.
4324#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4325pub struct PodSignature {
4326 /// Reference to controller whose pods should avoid this node.
4327 /// +optional
4328 #[prost(message, optional, tag = "1")]
4329 pub pod_controller:
4330 ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::OwnerReference>,
4331}
4332/// PodSpec is a description of a pod.
4333#[derive(Clone, PartialEq, ::prost::Message)]
4334pub struct PodSpec {
4335 /// List of volumes that can be mounted by containers belonging to the pod.
4336 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes>
4337 /// +optional
4338 /// +patchMergeKey=name
4339 /// +patchStrategy=merge,retainKeys
4340 /// +listType=map
4341 /// +listMapKey=name
4342 #[prost(message, repeated, tag = "1")]
4343 pub volumes: ::prost::alloc::vec::Vec<Volume>,
4344 /// List of initialization containers belonging to the pod.
4345 /// Init containers are executed in order prior to containers being started. If any
4346 /// init container fails, the pod is considered to have failed and is handled according
4347 /// to its restartPolicy. The name for an init container or normal container must be
4348 /// unique among all containers.
4349 /// Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
4350 /// The resourceRequirements of an init container are taken into account during scheduling
4351 /// by finding the highest request/limit for each resource type, and then using the max of
4352 /// that value or the sum of the normal containers. Limits are applied to init containers
4353 /// in a similar fashion.
4354 /// Init containers cannot currently be added or removed.
4355 /// Cannot be updated.
4356 /// More info: <https://kubernetes.io/docs/concepts/workloads/pods/init-containers/>
4357 /// +patchMergeKey=name
4358 /// +patchStrategy=merge
4359 /// +listType=map
4360 /// +listMapKey=name
4361 #[prost(message, repeated, tag = "20")]
4362 pub init_containers: ::prost::alloc::vec::Vec<Container>,
4363 /// List of containers belonging to the pod.
4364 /// Containers cannot currently be added or removed.
4365 /// There must be at least one container in a Pod.
4366 /// Cannot be updated.
4367 /// +patchMergeKey=name
4368 /// +patchStrategy=merge
4369 /// +listType=map
4370 /// +listMapKey=name
4371 #[prost(message, repeated, tag = "2")]
4372 pub containers: ::prost::alloc::vec::Vec<Container>,
4373 /// List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing
4374 /// pod to perform user-initiated actions such as debugging. This list cannot be specified when
4375 /// creating a pod, and it cannot be modified by updating the pod spec. In order to add an
4376 /// ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.
4377 /// +optional
4378 /// +patchMergeKey=name
4379 /// +patchStrategy=merge
4380 /// +listType=map
4381 /// +listMapKey=name
4382 #[prost(message, repeated, tag = "34")]
4383 pub ephemeral_containers: ::prost::alloc::vec::Vec<EphemeralContainer>,
4384 /// Restart policy for all containers within the pod.
4385 /// One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted.
4386 /// Default to Always.
4387 /// More info: <https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy>
4388 /// +optional
4389 #[prost(string, optional, tag = "3")]
4390 pub restart_policy: ::core::option::Option<::prost::alloc::string::String>,
4391 /// Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.
4392 /// Value must be non-negative integer. The value zero indicates stop immediately via
4393 /// the kill signal (no opportunity to shut down).
4394 /// If this value is nil, the default grace period will be used instead.
4395 /// The grace period is the duration in seconds after the processes running in the pod are sent
4396 /// a termination signal and the time when the processes are forcibly halted with a kill signal.
4397 /// Set this value longer than the expected cleanup time for your process.
4398 /// Defaults to 30 seconds.
4399 /// +optional
4400 #[prost(int64, optional, tag = "4")]
4401 pub termination_grace_period_seconds: ::core::option::Option<i64>,
4402 /// Optional duration in seconds the pod may be active on the node relative to
4403 /// StartTime before the system will actively try to mark it failed and kill associated containers.
4404 /// Value must be a positive integer.
4405 /// +optional
4406 #[prost(int64, optional, tag = "5")]
4407 pub active_deadline_seconds: ::core::option::Option<i64>,
4408 /// Set DNS policy for the pod.
4409 /// Defaults to "ClusterFirst".
4410 /// Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'.
4411 /// DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy.
4412 /// To have DNS options set along with hostNetwork, you have to specify DNS policy
4413 /// explicitly to 'ClusterFirstWithHostNet'.
4414 /// +optional
4415 #[prost(string, optional, tag = "6")]
4416 pub dns_policy: ::core::option::Option<::prost::alloc::string::String>,
4417 /// NodeSelector is a selector which must be true for the pod to fit on a node.
4418 /// Selector which must match a node's labels for the pod to be scheduled on that node.
4419 /// More info: <https://kubernetes.io/docs/concepts/configuration/assign-pod-node/>
4420 /// +optional
4421 /// +mapType=atomic
4422 #[prost(btree_map = "string, string", tag = "7")]
4423 pub node_selector:
4424 ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
4425 /// ServiceAccountName is the name of the ServiceAccount to use to run this pod.
4426 /// More info: <https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/>
4427 /// +optional
4428 #[prost(string, optional, tag = "8")]
4429 pub service_account_name: ::core::option::Option<::prost::alloc::string::String>,
4430 /// DeprecatedServiceAccount is a deprecated alias for ServiceAccountName.
4431 /// Deprecated: Use serviceAccountName instead.
4432 /// +k8s:conversion-gen=false
4433 /// +optional
4434 #[prost(string, optional, tag = "9")]
4435 pub service_account: ::core::option::Option<::prost::alloc::string::String>,
4436 /// AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.
4437 /// +optional
4438 #[prost(bool, optional, tag = "21")]
4439 pub automount_service_account_token: ::core::option::Option<bool>,
4440 /// NodeName indicates in which node this pod is scheduled.
4441 /// If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName.
4442 /// Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod.
4443 /// This field should not be used to express a desire for the pod to be scheduled on a specific node.
4444 /// <https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodename>
4445 /// +optional
4446 #[prost(string, optional, tag = "10")]
4447 pub node_name: ::core::option::Option<::prost::alloc::string::String>,
4448 /// Host networking requested for this pod. Use the host's network namespace.
4449 /// If this option is set, the ports that will be used must be specified.
4450 /// Default to false.
4451 /// +k8s:conversion-gen=false
4452 /// +optional
4453 #[prost(bool, optional, tag = "11")]
4454 pub host_network: ::core::option::Option<bool>,
4455 /// Use the host's pid namespace.
4456 /// Optional: Default to false.
4457 /// +k8s:conversion-gen=false
4458 /// +optional
4459 #[prost(bool, optional, tag = "12")]
4460 pub host_pid: ::core::option::Option<bool>,
4461 /// Use the host's ipc namespace.
4462 /// Optional: Default to false.
4463 /// +k8s:conversion-gen=false
4464 /// +optional
4465 #[prost(bool, optional, tag = "13")]
4466 pub host_ipc: ::core::option::Option<bool>,
4467 /// Share a single process namespace between all of the containers in a pod.
4468 /// When this is set containers will be able to view and signal processes from other containers
4469 /// in the same pod, and the first process in each container will not be assigned PID 1.
4470 /// HostPID and ShareProcessNamespace cannot both be set.
4471 /// Optional: Default to false.
4472 /// +k8s:conversion-gen=false
4473 /// +optional
4474 #[prost(bool, optional, tag = "27")]
4475 pub share_process_namespace: ::core::option::Option<bool>,
4476 /// SecurityContext holds pod-level security attributes and common container settings.
4477 /// Optional: Defaults to empty. See type description for default values of each field.
4478 /// +optional
4479 #[prost(message, optional, tag = "14")]
4480 pub security_context: ::core::option::Option<PodSecurityContext>,
4481 /// ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.
4482 /// If specified, these secrets will be passed to individual puller implementations for them to use.
4483 /// More info: <https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod>
4484 /// +optional
4485 /// +patchMergeKey=name
4486 /// +patchStrategy=merge
4487 /// +listType=map
4488 /// +listMapKey=name
4489 #[prost(message, repeated, tag = "15")]
4490 pub image_pull_secrets: ::prost::alloc::vec::Vec<LocalObjectReference>,
4491 /// Specifies the hostname of the Pod
4492 /// If not specified, the pod's hostname will be set to a system-defined value.
4493 /// +optional
4494 #[prost(string, optional, tag = "16")]
4495 pub hostname: ::core::option::Option<::prost::alloc::string::String>,
4496 /// If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>".
4497 /// If not specified, the pod will not have a domainname at all.
4498 /// +optional
4499 #[prost(string, optional, tag = "17")]
4500 pub subdomain: ::core::option::Option<::prost::alloc::string::String>,
4501 /// If specified, the pod's scheduling constraints
4502 /// +optional
4503 #[prost(message, optional, tag = "18")]
4504 pub affinity: ::core::option::Option<Affinity>,
4505 /// If specified, the pod will be dispatched by specified scheduler.
4506 /// If not specified, the pod will be dispatched by default scheduler.
4507 /// +optional
4508 #[prost(string, optional, tag = "19")]
4509 pub scheduler_name: ::core::option::Option<::prost::alloc::string::String>,
4510 /// If specified, the pod's tolerations.
4511 /// +optional
4512 /// +listType=atomic
4513 #[prost(message, repeated, tag = "22")]
4514 pub tolerations: ::prost::alloc::vec::Vec<Toleration>,
4515 /// HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts
4516 /// file if specified.
4517 /// +optional
4518 /// +patchMergeKey=ip
4519 /// +patchStrategy=merge
4520 /// +listType=map
4521 /// +listMapKey=ip
4522 #[prost(message, repeated, tag = "23")]
4523 pub host_aliases: ::prost::alloc::vec::Vec<HostAlias>,
4524 /// If specified, indicates the pod's priority. "system-node-critical" and
4525 /// "system-cluster-critical" are two special keywords which indicate the
4526 /// highest priorities with the former being the highest priority. Any other
4527 /// name must be defined by creating a PriorityClass object with that name.
4528 /// If not specified, the pod priority will be default or zero if there is no
4529 /// default.
4530 /// +optional
4531 #[prost(string, optional, tag = "24")]
4532 pub priority_class_name: ::core::option::Option<::prost::alloc::string::String>,
4533 /// The priority value. Various system components use this field to find the
4534 /// priority of the pod. When Priority Admission Controller is enabled, it
4535 /// prevents users from setting this field. The admission controller populates
4536 /// this field from PriorityClassName.
4537 /// The higher the value, the higher the priority.
4538 /// +optional
4539 #[prost(int32, optional, tag = "25")]
4540 pub priority: ::core::option::Option<i32>,
4541 /// Specifies the DNS parameters of a pod.
4542 /// Parameters specified here will be merged to the generated DNS
4543 /// configuration based on DNSPolicy.
4544 /// +optional
4545 #[prost(message, optional, tag = "26")]
4546 pub dns_config: ::core::option::Option<PodDnsConfig>,
4547 /// If specified, all readiness gates will be evaluated for pod readiness.
4548 /// A pod is ready when all its containers are ready AND
4549 /// all conditions specified in the readiness gates have status equal to "True"
4550 /// More info: <https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates>
4551 /// +optional
4552 /// +listType=atomic
4553 #[prost(message, repeated, tag = "28")]
4554 pub readiness_gates: ::prost::alloc::vec::Vec<PodReadinessGate>,
4555 /// RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used
4556 /// to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run.
4557 /// If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an
4558 /// empty definition that uses the default runtime handler.
4559 /// More info: <https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class>
4560 /// +optional
4561 #[prost(string, optional, tag = "29")]
4562 pub runtime_class_name: ::core::option::Option<::prost::alloc::string::String>,
4563 /// EnableServiceLinks indicates whether information about services should be injected into pod's
4564 /// environment variables, matching the syntax of Docker links.
4565 /// Optional: Defaults to true.
4566 /// +optional
4567 #[prost(bool, optional, tag = "30")]
4568 pub enable_service_links: ::core::option::Option<bool>,
4569 /// PreemptionPolicy is the Policy for preempting pods with lower priority.
4570 /// One of Never, PreemptLowerPriority.
4571 /// Defaults to PreemptLowerPriority if unset.
4572 /// +optional
4573 #[prost(string, optional, tag = "31")]
4574 pub preemption_policy: ::core::option::Option<::prost::alloc::string::String>,
4575 /// Overhead represents the resource overhead associated with running a pod for a given RuntimeClass.
4576 /// This field will be autopopulated at admission time by the RuntimeClass admission controller. If
4577 /// the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests.
4578 /// The RuntimeClass admission controller will reject Pod create requests which have the overhead already
4579 /// set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value
4580 /// defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero.
4581 /// More info: <https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md>
4582 /// +optional
4583 #[prost(btree_map = "string, message", tag = "32")]
4584 pub overhead: ::prost::alloc::collections::BTreeMap<
4585 ::prost::alloc::string::String,
4586 super::super::super::apimachinery::pkg::api::resource::Quantity,
4587 >,
4588 /// TopologySpreadConstraints describes how a group of pods ought to spread across topology
4589 /// domains. Scheduler will schedule pods in a way which abides by the constraints.
4590 /// All topologySpreadConstraints are ANDed.
4591 /// +optional
4592 /// +patchMergeKey=topologyKey
4593 /// +patchStrategy=merge
4594 /// +listType=map
4595 /// +listMapKey=topologyKey
4596 /// +listMapKey=whenUnsatisfiable
4597 #[prost(message, repeated, tag = "33")]
4598 pub topology_spread_constraints: ::prost::alloc::vec::Vec<TopologySpreadConstraint>,
4599 /// If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default).
4600 /// In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname).
4601 /// In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters to FQDN.
4602 /// If a pod does not have FQDN, this has no effect.
4603 /// Default to false.
4604 /// +optional
4605 #[prost(bool, optional, tag = "35")]
4606 pub set_hostname_as_fqdn: ::core::option::Option<bool>,
4607 /// Specifies the OS of the containers in the pod.
4608 /// Some pod and container fields are restricted if this is set.
4609 ///
4610 /// If the OS field is set to linux, the following fields must be unset:
4611 /// -securityContext.windowsOptions
4612 ///
4613 /// If the OS field is set to windows, following fields must be unset:
4614 /// - spec.hostPID
4615 /// - spec.hostIPC
4616 /// - spec.hostUsers
4617 /// - spec.securityContext.appArmorProfile
4618 /// - spec.securityContext.seLinuxOptions
4619 /// - spec.securityContext.seccompProfile
4620 /// - spec.securityContext.fsGroup
4621 /// - spec.securityContext.fsGroupChangePolicy
4622 /// - spec.securityContext.sysctls
4623 /// - spec.shareProcessNamespace
4624 /// - spec.securityContext.runAsUser
4625 /// - spec.securityContext.runAsGroup
4626 /// - spec.securityContext.supplementalGroups
4627 /// - spec.securityContext.supplementalGroupsPolicy
4628 /// - spec.containers\[*\].securityContext.appArmorProfile
4629 /// - spec.containers\[*\].securityContext.seLinuxOptions
4630 /// - spec.containers\[*\].securityContext.seccompProfile
4631 /// - spec.containers\[*\].securityContext.capabilities
4632 /// - spec.containers\[*\].securityContext.readOnlyRootFilesystem
4633 /// - spec.containers\[*\].securityContext.privileged
4634 /// - spec.containers\[*\].securityContext.allowPrivilegeEscalation
4635 /// - spec.containers\[*\].securityContext.procMount
4636 /// - spec.containers\[*\].securityContext.runAsUser
4637 /// - spec.containers\[*\].securityContext.runAsGroup
4638 /// +optional
4639 #[prost(message, optional, tag = "36")]
4640 pub os: ::core::option::Option<PodOs>,
4641 /// Use the host's user namespace.
4642 /// Optional: Default to true.
4643 /// If set to true or not present, the pod will be run in the host user namespace, useful
4644 /// for when the pod needs a feature only available to the host user namespace, such as
4645 /// loading a kernel module with CAP_SYS_MODULE.
4646 /// When set to false, a new userns is created for the pod. Setting false is useful for
4647 /// mitigating container breakout vulnerabilities even allowing users to run their
4648 /// containers as root without actually having root privileges on the host.
4649 /// This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.
4650 /// +k8s:conversion-gen=false
4651 /// +optional
4652 #[prost(bool, optional, tag = "37")]
4653 pub host_users: ::core::option::Option<bool>,
4654 /// SchedulingGates is an opaque list of values that if specified will block scheduling the pod.
4655 /// If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the
4656 /// scheduler will not attempt to schedule the pod.
4657 ///
4658 /// SchedulingGates can only be set at pod creation time, and be removed only afterwards.
4659 ///
4660 /// +patchMergeKey=name
4661 /// +patchStrategy=merge
4662 /// +listType=map
4663 /// +listMapKey=name
4664 /// +optional
4665 #[prost(message, repeated, tag = "38")]
4666 pub scheduling_gates: ::prost::alloc::vec::Vec<PodSchedulingGate>,
4667 /// ResourceClaims defines which ResourceClaims must be allocated
4668 /// and reserved before the Pod is allowed to start. The resources
4669 /// will be made available to those containers which consume them
4670 /// by name.
4671 ///
4672 /// This is an alpha field and requires enabling the
4673 /// DynamicResourceAllocation feature gate.
4674 ///
4675 /// This field is immutable.
4676 ///
4677 /// +patchMergeKey=name
4678 /// +patchStrategy=merge,retainKeys
4679 /// +listType=map
4680 /// +listMapKey=name
4681 /// +featureGate=DynamicResourceAllocation
4682 /// +optional
4683 #[prost(message, repeated, tag = "39")]
4684 pub resource_claims: ::prost::alloc::vec::Vec<PodResourceClaim>,
4685 /// Resources is the total amount of CPU and Memory resources required by all
4686 /// containers in the pod. It supports specifying Requests and Limits for
4687 /// "cpu" and "memory" resource names only. ResourceClaims are not supported.
4688 ///
4689 /// This field enables fine-grained control over resource allocation for the
4690 /// entire pod, allowing resource sharing among containers in a pod.
4691 /// TODO: For beta graduation, expand this comment with a detailed explanation.
4692 ///
4693 /// This is an alpha field and requires enabling the PodLevelResources feature
4694 /// gate.
4695 ///
4696 /// +featureGate=PodLevelResources
4697 /// +optional
4698 #[prost(message, optional, tag = "40")]
4699 pub resources: ::core::option::Option<ResourceRequirements>,
4700}
4701/// PodStatus represents information about the status of a pod. Status may trail the actual
4702/// state of a system, especially if the node that hosts the pod cannot contact the control
4703/// plane.
4704#[derive(Clone, PartialEq, ::prost::Message)]
4705pub struct PodStatus {
4706 /// If set, this represents the .metadata.generation that the pod status was set based upon.
4707 /// This is an alpha field. Enable PodObservedGenerationTracking to be able to use this field.
4708 /// +featureGate=PodObservedGenerationTracking
4709 /// +optional
4710 #[prost(int64, optional, tag = "17")]
4711 pub observed_generation: ::core::option::Option<i64>,
4712 /// The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle.
4713 /// The conditions array, the reason and message fields, and the individual container status
4714 /// arrays contain more detail about the pod's status.
4715 /// There are five possible phase values:
4716 ///
4717 /// Pending: The pod has been accepted by the Kubernetes system, but one or more of the
4718 /// container images has not been created. This includes time before being scheduled as
4719 /// well as time spent downloading images over the network, which could take a while.
4720 /// Running: The pod has been bound to a node, and all of the containers have been created.
4721 /// At least one container is still running, or is in the process of starting or restarting.
4722 /// Succeeded: All containers in the pod have terminated in success, and will not be restarted.
4723 /// Failed: All containers in the pod have terminated, and at least one container has
4724 /// terminated in failure. The container either exited with non-zero status or was terminated
4725 /// by the system.
4726 /// Unknown: For some reason the state of the pod could not be obtained, typically due to an
4727 /// error in communicating with the host of the pod.
4728 ///
4729 /// More info: <https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase>
4730 /// +optional
4731 #[prost(string, optional, tag = "1")]
4732 pub phase: ::core::option::Option<::prost::alloc::string::String>,
4733 /// Current service state of pod.
4734 /// More info: <https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions>
4735 /// +optional
4736 /// +patchMergeKey=type
4737 /// +patchStrategy=merge
4738 /// +listType=map
4739 /// +listMapKey=type
4740 #[prost(message, repeated, tag = "2")]
4741 pub conditions: ::prost::alloc::vec::Vec<PodCondition>,
4742 /// A human readable message indicating details about why the pod is in this condition.
4743 /// +optional
4744 #[prost(string, optional, tag = "3")]
4745 pub message: ::core::option::Option<::prost::alloc::string::String>,
4746 /// A brief CamelCase message indicating details about why the pod is in this state.
4747 /// e.g. 'Evicted'
4748 /// +optional
4749 #[prost(string, optional, tag = "4")]
4750 pub reason: ::core::option::Option<::prost::alloc::string::String>,
4751 /// nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be
4752 /// scheduled right away as preemption victims receive their graceful termination periods.
4753 /// This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide
4754 /// to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to
4755 /// give the resources on this node to a higher priority pod that is created after preemption.
4756 /// As a result, this field may be different than PodSpec.nodeName when the pod is
4757 /// scheduled.
4758 /// +optional
4759 #[prost(string, optional, tag = "11")]
4760 pub nominated_node_name: ::core::option::Option<::prost::alloc::string::String>,
4761 /// hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet.
4762 /// A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will
4763 /// not be updated even if there is a node is assigned to pod
4764 /// +optional
4765 #[prost(string, optional, tag = "5")]
4766 pub host_ip: ::core::option::Option<::prost::alloc::string::String>,
4767 /// hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must
4768 /// match the hostIP field. This list is empty if the pod has not started yet.
4769 /// A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will
4770 /// not be updated even if there is a node is assigned to this pod.
4771 /// +optional
4772 /// +patchStrategy=merge
4773 /// +patchMergeKey=ip
4774 /// +listType=atomic
4775 #[prost(message, repeated, tag = "16")]
4776 pub host_ips: ::prost::alloc::vec::Vec<HostIp>,
4777 /// podIP address allocated to the pod. Routable at least within the cluster.
4778 /// Empty if not yet allocated.
4779 /// +optional
4780 #[prost(string, optional, tag = "6")]
4781 pub pod_ip: ::core::option::Option<::prost::alloc::string::String>,
4782 /// podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must
4783 /// match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list
4784 /// is empty if no IPs have been allocated yet.
4785 /// +optional
4786 /// +patchStrategy=merge
4787 /// +patchMergeKey=ip
4788 /// +listType=map
4789 /// +listMapKey=ip
4790 #[prost(message, repeated, tag = "12")]
4791 pub pod_ips: ::prost::alloc::vec::Vec<PodIp>,
4792 /// RFC 3339 date and time at which the object was acknowledged by the Kubelet.
4793 /// This is before the Kubelet pulled the container image(s) for the pod.
4794 /// +optional
4795 #[prost(message, optional, tag = "7")]
4796 pub start_time: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::Time>,
4797 /// Statuses of init containers in this pod. The most recent successful non-restartable
4798 /// init container will have ready = true, the most recently started container will have
4799 /// startTime set.
4800 /// Each init container in the pod should have at most one status in this list,
4801 /// and all statuses should be for containers in the pod.
4802 /// However this is not enforced.
4803 /// If a status for a non-existent container is present in the list, or the list has duplicate names,
4804 /// the behavior of various Kubernetes components is not defined and those statuses might be
4805 /// ignored.
4806 /// More info: <https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-and-container-status>
4807 /// +listType=atomic
4808 #[prost(message, repeated, tag = "10")]
4809 pub init_container_statuses: ::prost::alloc::vec::Vec<ContainerStatus>,
4810 /// Statuses of containers in this pod.
4811 /// Each container in the pod should have at most one status in this list,
4812 /// and all statuses should be for containers in the pod.
4813 /// However this is not enforced.
4814 /// If a status for a non-existent container is present in the list, or the list has duplicate names,
4815 /// the behavior of various Kubernetes components is not defined and those statuses might be
4816 /// ignored.
4817 /// More info: <https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status>
4818 /// +optional
4819 /// +listType=atomic
4820 #[prost(message, repeated, tag = "8")]
4821 pub container_statuses: ::prost::alloc::vec::Vec<ContainerStatus>,
4822 /// The Quality of Service (QOS) classification assigned to the pod based on resource requirements
4823 /// See PodQOSClass type for available QOS classes
4824 /// More info: <https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes>
4825 /// +optional
4826 #[prost(string, optional, tag = "9")]
4827 pub qos_class: ::core::option::Option<::prost::alloc::string::String>,
4828 /// Statuses for any ephemeral containers that have run in this pod.
4829 /// Each ephemeral container in the pod should have at most one status in this list,
4830 /// and all statuses should be for containers in the pod.
4831 /// However this is not enforced.
4832 /// If a status for a non-existent container is present in the list, or the list has duplicate names,
4833 /// the behavior of various Kubernetes components is not defined and those statuses might be
4834 /// ignored.
4835 /// More info: <https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status>
4836 /// +optional
4837 /// +listType=atomic
4838 #[prost(message, repeated, tag = "13")]
4839 pub ephemeral_container_statuses: ::prost::alloc::vec::Vec<ContainerStatus>,
4840 /// Status of resources resize desired for pod's containers.
4841 /// It is empty if no resources resize is pending.
4842 /// Any changes to container resources will automatically set this to "Proposed"
4843 /// Deprecated: Resize status is moved to two pod conditions PodResizePending and PodResizeInProgress.
4844 /// PodResizePending will track states where the spec has been resized, but the Kubelet has not yet allocated the resources.
4845 /// PodResizeInProgress will track in-progress resizes, and should be present whenever allocated resources != acknowledged resources.
4846 /// +featureGate=InPlacePodVerticalScaling
4847 /// +optional
4848 #[prost(string, optional, tag = "14")]
4849 pub resize: ::core::option::Option<::prost::alloc::string::String>,
4850 /// Status of resource claims.
4851 /// +patchMergeKey=name
4852 /// +patchStrategy=merge,retainKeys
4853 /// +listType=map
4854 /// +listMapKey=name
4855 /// +featureGate=DynamicResourceAllocation
4856 /// +optional
4857 #[prost(message, repeated, tag = "15")]
4858 pub resource_claim_statuses: ::prost::alloc::vec::Vec<PodResourceClaimStatus>,
4859}
4860/// PodStatusResult is a wrapper for PodStatus returned by kubelet that can be encode/decoded
4861#[derive(Clone, PartialEq, ::prost::Message)]
4862pub struct PodStatusResult {
4863 /// Standard object's metadata.
4864 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
4865 /// +optional
4866 #[prost(message, optional, tag = "1")]
4867 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
4868 /// Most recently observed status of the pod.
4869 /// This data may not be up to date.
4870 /// Populated by the system.
4871 /// Read-only.
4872 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status>
4873 /// +optional
4874 #[prost(message, optional, tag = "2")]
4875 pub status: ::core::option::Option<PodStatus>,
4876}
4877/// PodTemplate describes a template for creating copies of a predefined pod.
4878#[derive(Clone, PartialEq, ::prost::Message)]
4879pub struct PodTemplate {
4880 /// Standard object's metadata.
4881 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
4882 /// +optional
4883 #[prost(message, optional, tag = "1")]
4884 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
4885 /// Template defines the pods that will be created from this pod template.
4886 /// <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status>
4887 /// +optional
4888 #[prost(message, optional, tag = "2")]
4889 pub template: ::core::option::Option<PodTemplateSpec>,
4890}
4891/// PodTemplateList is a list of PodTemplates.
4892#[derive(Clone, PartialEq, ::prost::Message)]
4893pub struct PodTemplateList {
4894 /// Standard list metadata.
4895 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds>
4896 /// +optional
4897 #[prost(message, optional, tag = "1")]
4898 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
4899 /// List of pod templates
4900 #[prost(message, repeated, tag = "2")]
4901 pub items: ::prost::alloc::vec::Vec<PodTemplate>,
4902}
4903/// PodTemplateSpec describes the data a pod should have when created from a template
4904#[derive(Clone, PartialEq, ::prost::Message)]
4905pub struct PodTemplateSpec {
4906 /// Standard object's metadata.
4907 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
4908 /// +optional
4909 #[prost(message, optional, tag = "1")]
4910 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
4911 /// Specification of the desired behavior of the pod.
4912 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status>
4913 /// +optional
4914 #[prost(message, optional, tag = "2")]
4915 pub spec: ::core::option::Option<PodSpec>,
4916}
4917/// PortStatus represents the error condition of a service port
4918#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4919pub struct PortStatus {
4920 /// Port is the port number of the service port of which status is recorded here
4921 #[prost(int32, optional, tag = "1")]
4922 pub port: ::core::option::Option<i32>,
4923 /// Protocol is the protocol of the service port of which status is recorded here
4924 /// The supported values are: "TCP", "UDP", "SCTP"
4925 #[prost(string, optional, tag = "2")]
4926 pub protocol: ::core::option::Option<::prost::alloc::string::String>,
4927 /// Error is to record the problem with the service port
4928 /// The format of the error shall comply with the following rules:
4929 /// - built-in error values shall be specified in this file and those shall use
4930 /// CamelCase names
4931 /// - cloud provider specific error values must have names that comply with the
4932 /// format foo.example.com/CamelCase.
4933 /// ---
4934 /// The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
4935 /// +optional
4936 /// +kubebuilder:validation:Required
4937 /// +kubebuilder:validation:Pattern=`^([a-z0-9](\[-a-z0-9\]*[a-z0-9])?(\.[a-z0-9](\[-a-z0-9\]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?\[A-Za-z0-9\])$`
4938 /// +kubebuilder:validation:MaxLength=316
4939 #[prost(string, optional, tag = "3")]
4940 pub error: ::core::option::Option<::prost::alloc::string::String>,
4941}
4942/// PortworxVolumeSource represents a Portworx volume resource.
4943#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4944pub struct PortworxVolumeSource {
4945 /// volumeID uniquely identifies a Portworx volume
4946 #[prost(string, optional, tag = "1")]
4947 pub volume_id: ::core::option::Option<::prost::alloc::string::String>,
4948 /// fSType represents the filesystem type to mount
4949 /// Must be a filesystem type supported by the host operating system.
4950 /// Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified.
4951 #[prost(string, optional, tag = "2")]
4952 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
4953 /// readOnly defaults to false (read/write). ReadOnly here will force
4954 /// the ReadOnly setting in VolumeMounts.
4955 /// +optional
4956 #[prost(bool, optional, tag = "3")]
4957 pub read_only: ::core::option::Option<bool>,
4958}
4959/// Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.
4960/// +k8s:openapi-gen=false
4961#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4962pub struct Preconditions {
4963 /// Specifies the target UID.
4964 /// +optional
4965 #[prost(string, optional, tag = "1")]
4966 pub uid: ::core::option::Option<::prost::alloc::string::String>,
4967}
4968/// Describes a class of pods that should avoid this node.
4969#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4970pub struct PreferAvoidPodsEntry {
4971 /// The class of pods.
4972 #[prost(message, optional, tag = "1")]
4973 pub pod_signature: ::core::option::Option<PodSignature>,
4974 /// Time at which this entry was added to the list.
4975 /// +optional
4976 #[prost(message, optional, tag = "2")]
4977 pub eviction_time: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::Time>,
4978 /// (brief) reason why this entry was added to the list.
4979 /// +optional
4980 #[prost(string, optional, tag = "3")]
4981 pub reason: ::core::option::Option<::prost::alloc::string::String>,
4982 /// Human readable message indicating why this entry was added to the list.
4983 /// +optional
4984 #[prost(string, optional, tag = "4")]
4985 pub message: ::core::option::Option<::prost::alloc::string::String>,
4986}
4987/// An empty preferred scheduling term matches all objects with implicit weight 0
4988/// (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).
4989#[derive(Clone, PartialEq, ::prost::Message)]
4990pub struct PreferredSchedulingTerm {
4991 /// Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.
4992 #[prost(int32, optional, tag = "1")]
4993 pub weight: ::core::option::Option<i32>,
4994 /// A node selector term, associated with the corresponding weight.
4995 #[prost(message, optional, tag = "2")]
4996 pub preference: ::core::option::Option<NodeSelectorTerm>,
4997}
4998/// Probe describes a health check to be performed against a container to determine whether it is
4999/// alive or ready to receive traffic.
5000#[derive(Clone, PartialEq, ::prost::Message)]
5001pub struct Probe {
5002 /// The action taken to determine the health of a container
5003 #[prost(message, optional, tag = "1")]
5004 pub handler: ::core::option::Option<ProbeHandler>,
5005 /// Number of seconds after the container has started before liveness probes are initiated.
5006 /// More info: <https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes>
5007 /// +optional
5008 #[prost(int32, optional, tag = "2")]
5009 pub initial_delay_seconds: ::core::option::Option<i32>,
5010 /// Number of seconds after which the probe times out.
5011 /// Defaults to 1 second. Minimum value is 1.
5012 /// More info: <https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes>
5013 /// +optional
5014 #[prost(int32, optional, tag = "3")]
5015 pub timeout_seconds: ::core::option::Option<i32>,
5016 /// How often (in seconds) to perform the probe.
5017 /// Default to 10 seconds. Minimum value is 1.
5018 /// +optional
5019 #[prost(int32, optional, tag = "4")]
5020 pub period_seconds: ::core::option::Option<i32>,
5021 /// Minimum consecutive successes for the probe to be considered successful after having failed.
5022 /// Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.
5023 /// +optional
5024 #[prost(int32, optional, tag = "5")]
5025 pub success_threshold: ::core::option::Option<i32>,
5026 /// Minimum consecutive failures for the probe to be considered failed after having succeeded.
5027 /// Defaults to 3. Minimum value is 1.
5028 /// +optional
5029 #[prost(int32, optional, tag = "6")]
5030 pub failure_threshold: ::core::option::Option<i32>,
5031 /// Optional duration in seconds the pod needs to terminate gracefully upon probe failure.
5032 /// The grace period is the duration in seconds after the processes running in the pod are sent
5033 /// a termination signal and the time when the processes are forcibly halted with a kill signal.
5034 /// Set this value longer than the expected cleanup time for your process.
5035 /// If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this
5036 /// value overrides the value provided by the pod spec.
5037 /// Value must be non-negative integer. The value zero indicates stop immediately via
5038 /// the kill signal (no opportunity to shut down).
5039 /// This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.
5040 /// Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.
5041 /// +optional
5042 #[prost(int64, optional, tag = "7")]
5043 pub termination_grace_period_seconds: ::core::option::Option<i64>,
5044}
5045/// ProbeHandler defines a specific action that should be taken in a probe.
5046/// One and only one of the fields must be specified.
5047#[derive(Clone, PartialEq, ::prost::Message)]
5048pub struct ProbeHandler {
5049 /// Exec specifies a command to execute in the container.
5050 /// +optional
5051 #[prost(message, optional, tag = "1")]
5052 pub exec: ::core::option::Option<ExecAction>,
5053 /// HTTPGet specifies an HTTP GET request to perform.
5054 /// +optional
5055 #[prost(message, optional, tag = "2")]
5056 pub http_get: ::core::option::Option<HttpGetAction>,
5057 /// TCPSocket specifies a connection to a TCP port.
5058 /// +optional
5059 #[prost(message, optional, tag = "3")]
5060 pub tcp_socket: ::core::option::Option<TcpSocketAction>,
5061 /// GRPC specifies a GRPC HealthCheckRequest.
5062 /// +optional
5063 #[prost(message, optional, tag = "4")]
5064 pub grpc: ::core::option::Option<GrpcAction>,
5065}
5066/// Represents a projected volume source
5067#[derive(Clone, PartialEq, ::prost::Message)]
5068pub struct ProjectedVolumeSource {
5069 /// sources is the list of volume projections. Each entry in this list
5070 /// handles one source.
5071 /// +optional
5072 /// +listType=atomic
5073 #[prost(message, repeated, tag = "1")]
5074 pub sources: ::prost::alloc::vec::Vec<VolumeProjection>,
5075 /// defaultMode are the mode bits used to set permissions on created files by default.
5076 /// Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
5077 /// YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
5078 /// Directories within the path are not affected by this setting.
5079 /// This might be in conflict with other options that affect the file
5080 /// mode, like fsGroup, and the result can be other mode bits set.
5081 /// +optional
5082 #[prost(int32, optional, tag = "2")]
5083 pub default_mode: ::core::option::Option<i32>,
5084}
5085/// Represents a Quobyte mount that lasts the lifetime of a pod.
5086/// Quobyte volumes do not support ownership management or SELinux relabeling.
5087#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5088pub struct QuobyteVolumeSource {
5089 /// registry represents a single or multiple Quobyte Registry services
5090 /// specified as a string as host:port pair (multiple entries are separated with commas)
5091 /// which acts as the central registry for volumes
5092 #[prost(string, optional, tag = "1")]
5093 pub registry: ::core::option::Option<::prost::alloc::string::String>,
5094 /// volume is a string that references an already created Quobyte volume by name.
5095 #[prost(string, optional, tag = "2")]
5096 pub volume: ::core::option::Option<::prost::alloc::string::String>,
5097 /// readOnly here will force the Quobyte volume to be mounted with read-only permissions.
5098 /// Defaults to false.
5099 /// +optional
5100 #[prost(bool, optional, tag = "3")]
5101 pub read_only: ::core::option::Option<bool>,
5102 /// user to map volume access to
5103 /// Defaults to serivceaccount user
5104 /// +optional
5105 #[prost(string, optional, tag = "4")]
5106 pub user: ::core::option::Option<::prost::alloc::string::String>,
5107 /// group to map volume access to
5108 /// Default is no group
5109 /// +optional
5110 #[prost(string, optional, tag = "5")]
5111 pub group: ::core::option::Option<::prost::alloc::string::String>,
5112 /// tenant owning the given Quobyte volume in the Backend
5113 /// Used with dynamically provisioned Quobyte volumes, value is set by the plugin
5114 /// +optional
5115 #[prost(string, optional, tag = "6")]
5116 pub tenant: ::core::option::Option<::prost::alloc::string::String>,
5117}
5118/// Represents a Rados Block Device mount that lasts the lifetime of a pod.
5119/// RBD volumes support ownership management and SELinux relabeling.
5120#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5121pub struct RbdPersistentVolumeSource {
5122 /// monitors is a collection of Ceph monitors.
5123 /// More info: <https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it>
5124 /// +listType=atomic
5125 #[prost(string, repeated, tag = "1")]
5126 pub monitors: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5127 /// image is the rados image name.
5128 /// More info: <https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it>
5129 #[prost(string, optional, tag = "2")]
5130 pub image: ::core::option::Option<::prost::alloc::string::String>,
5131 /// fsType is the filesystem type of the volume that you want to mount.
5132 /// Tip: Ensure that the filesystem type is supported by the host operating system.
5133 /// Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
5134 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#rbd>
5135 /// TODO: how do we prevent errors in the filesystem from compromising the machine
5136 /// +optional
5137 #[prost(string, optional, tag = "3")]
5138 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
5139 /// pool is the rados pool name.
5140 /// Default is rbd.
5141 /// More info: <https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it>
5142 /// +optional
5143 /// +default="rbd"
5144 #[prost(string, optional, tag = "4")]
5145 pub pool: ::core::option::Option<::prost::alloc::string::String>,
5146 /// user is the rados user name.
5147 /// Default is admin.
5148 /// More info: <https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it>
5149 /// +optional
5150 /// +default="admin"
5151 #[prost(string, optional, tag = "5")]
5152 pub user: ::core::option::Option<::prost::alloc::string::String>,
5153 /// keyring is the path to key ring for RBDUser.
5154 /// Default is /etc/ceph/keyring.
5155 /// More info: <https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it>
5156 /// +optional
5157 /// +default="/etc/ceph/keyring"
5158 #[prost(string, optional, tag = "6")]
5159 pub keyring: ::core::option::Option<::prost::alloc::string::String>,
5160 /// secretRef is name of the authentication secret for RBDUser. If provided
5161 /// overrides keyring.
5162 /// Default is nil.
5163 /// More info: <https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it>
5164 /// +optional
5165 #[prost(message, optional, tag = "7")]
5166 pub secret_ref: ::core::option::Option<SecretReference>,
5167 /// readOnly here will force the ReadOnly setting in VolumeMounts.
5168 /// Defaults to false.
5169 /// More info: <https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it>
5170 /// +optional
5171 #[prost(bool, optional, tag = "8")]
5172 pub read_only: ::core::option::Option<bool>,
5173}
5174/// Represents a Rados Block Device mount that lasts the lifetime of a pod.
5175/// RBD volumes support ownership management and SELinux relabeling.
5176#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5177pub struct RbdVolumeSource {
5178 /// monitors is a collection of Ceph monitors.
5179 /// More info: <https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it>
5180 /// +listType=atomic
5181 #[prost(string, repeated, tag = "1")]
5182 pub monitors: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5183 /// image is the rados image name.
5184 /// More info: <https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it>
5185 #[prost(string, optional, tag = "2")]
5186 pub image: ::core::option::Option<::prost::alloc::string::String>,
5187 /// fsType is the filesystem type of the volume that you want to mount.
5188 /// Tip: Ensure that the filesystem type is supported by the host operating system.
5189 /// Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
5190 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#rbd>
5191 /// TODO: how do we prevent errors in the filesystem from compromising the machine
5192 /// +optional
5193 #[prost(string, optional, tag = "3")]
5194 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
5195 /// pool is the rados pool name.
5196 /// Default is rbd.
5197 /// More info: <https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it>
5198 /// +optional
5199 /// +default="rbd"
5200 #[prost(string, optional, tag = "4")]
5201 pub pool: ::core::option::Option<::prost::alloc::string::String>,
5202 /// user is the rados user name.
5203 /// Default is admin.
5204 /// More info: <https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it>
5205 /// +optional
5206 /// +default="admin"
5207 #[prost(string, optional, tag = "5")]
5208 pub user: ::core::option::Option<::prost::alloc::string::String>,
5209 /// keyring is the path to key ring for RBDUser.
5210 /// Default is /etc/ceph/keyring.
5211 /// More info: <https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it>
5212 /// +optional
5213 /// +default="/etc/ceph/keyring"
5214 #[prost(string, optional, tag = "6")]
5215 pub keyring: ::core::option::Option<::prost::alloc::string::String>,
5216 /// secretRef is name of the authentication secret for RBDUser. If provided
5217 /// overrides keyring.
5218 /// Default is nil.
5219 /// More info: <https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it>
5220 /// +optional
5221 #[prost(message, optional, tag = "7")]
5222 pub secret_ref: ::core::option::Option<LocalObjectReference>,
5223 /// readOnly here will force the ReadOnly setting in VolumeMounts.
5224 /// Defaults to false.
5225 /// More info: <https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it>
5226 /// +optional
5227 #[prost(bool, optional, tag = "8")]
5228 pub read_only: ::core::option::Option<bool>,
5229}
5230/// RangeAllocation is not a public type.
5231#[derive(Clone, PartialEq, ::prost::Message)]
5232pub struct RangeAllocation {
5233 /// Standard object's metadata.
5234 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
5235 /// +optional
5236 #[prost(message, optional, tag = "1")]
5237 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
5238 /// Range is string that identifies the range represented by 'data'.
5239 #[prost(string, optional, tag = "2")]
5240 pub range: ::core::option::Option<::prost::alloc::string::String>,
5241 /// Data is a bit array containing all allocated addresses in the previous segment.
5242 #[prost(bytes = "vec", optional, tag = "3")]
5243 pub data: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
5244}
5245/// ReplicationController represents the configuration of a replication controller.
5246#[derive(Clone, PartialEq, ::prost::Message)]
5247pub struct ReplicationController {
5248 /// If the Labels of a ReplicationController are empty, they are defaulted to
5249 /// be the same as the Pod(s) that the replication controller manages.
5250 /// Standard object's metadata. More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
5251 /// +optional
5252 #[prost(message, optional, tag = "1")]
5253 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
5254 /// Spec defines the specification of the desired behavior of the replication controller.
5255 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status>
5256 /// +optional
5257 #[prost(message, optional, tag = "2")]
5258 pub spec: ::core::option::Option<ReplicationControllerSpec>,
5259 /// Status is the most recently observed status of the replication controller.
5260 /// This data may be out of date by some window of time.
5261 /// Populated by the system.
5262 /// Read-only.
5263 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status>
5264 /// +optional
5265 #[prost(message, optional, tag = "3")]
5266 pub status: ::core::option::Option<ReplicationControllerStatus>,
5267}
5268/// ReplicationControllerCondition describes the state of a replication controller at a certain point.
5269#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5270pub struct ReplicationControllerCondition {
5271 /// Type of replication controller condition.
5272 #[prost(string, optional, tag = "1")]
5273 pub r#type: ::core::option::Option<::prost::alloc::string::String>,
5274 /// Status of the condition, one of True, False, Unknown.
5275 #[prost(string, optional, tag = "2")]
5276 pub status: ::core::option::Option<::prost::alloc::string::String>,
5277 /// The last time the condition transitioned from one status to another.
5278 /// +optional
5279 #[prost(message, optional, tag = "3")]
5280 pub last_transition_time:
5281 ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::Time>,
5282 /// The reason for the condition's last transition.
5283 /// +optional
5284 #[prost(string, optional, tag = "4")]
5285 pub reason: ::core::option::Option<::prost::alloc::string::String>,
5286 /// A human readable message indicating details about the transition.
5287 /// +optional
5288 #[prost(string, optional, tag = "5")]
5289 pub message: ::core::option::Option<::prost::alloc::string::String>,
5290}
5291/// ReplicationControllerList is a collection of replication controllers.
5292#[derive(Clone, PartialEq, ::prost::Message)]
5293pub struct ReplicationControllerList {
5294 /// Standard list metadata.
5295 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds>
5296 /// +optional
5297 #[prost(message, optional, tag = "1")]
5298 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
5299 /// List of replication controllers.
5300 /// More info: <https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller>
5301 #[prost(message, repeated, tag = "2")]
5302 pub items: ::prost::alloc::vec::Vec<ReplicationController>,
5303}
5304/// ReplicationControllerSpec is the specification of a replication controller.
5305#[derive(Clone, PartialEq, ::prost::Message)]
5306pub struct ReplicationControllerSpec {
5307 /// Replicas is the number of desired replicas.
5308 /// This is a pointer to distinguish between explicit zero and unspecified.
5309 /// Defaults to 1.
5310 /// More info: <https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller>
5311 /// +optional
5312 /// +k8s:optional
5313 /// +default=1
5314 /// +k8s:minimum=0
5315 #[prost(int32, optional, tag = "1")]
5316 pub replicas: ::core::option::Option<i32>,
5317 /// Minimum number of seconds for which a newly created pod should be ready
5318 /// without any of its container crashing, for it to be considered available.
5319 /// Defaults to 0 (pod will be considered available as soon as it is ready)
5320 /// +optional
5321 /// +k8s:optional
5322 /// +default=0
5323 /// +k8s:minimum=0
5324 #[prost(int32, optional, tag = "4")]
5325 pub min_ready_seconds: ::core::option::Option<i32>,
5326 /// Selector is a label query over pods that should match the Replicas count.
5327 /// If Selector is empty, it is defaulted to the labels present on the Pod template.
5328 /// Label keys and values that must match in order to be controlled by this replication
5329 /// controller, if empty defaulted to labels on Pod template.
5330 /// More info: <https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors>
5331 /// +optional
5332 /// +mapType=atomic
5333 #[prost(btree_map = "string, string", tag = "2")]
5334 pub selector:
5335 ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
5336 /// Template is the object that describes the pod that will be created if
5337 /// insufficient replicas are detected. This takes precedence over a TemplateRef.
5338 /// The only allowed template.spec.restartPolicy value is "Always".
5339 /// More info: <https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template>
5340 /// +optional
5341 #[prost(message, optional, tag = "3")]
5342 pub template: ::core::option::Option<PodTemplateSpec>,
5343}
5344/// ReplicationControllerStatus represents the current status of a replication
5345/// controller.
5346#[derive(Clone, PartialEq, ::prost::Message)]
5347pub struct ReplicationControllerStatus {
5348 /// Replicas is the most recently observed number of replicas.
5349 /// More info: <https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller>
5350 #[prost(int32, optional, tag = "1")]
5351 pub replicas: ::core::option::Option<i32>,
5352 /// The number of pods that have labels matching the labels of the pod template of the replication controller.
5353 /// +optional
5354 #[prost(int32, optional, tag = "2")]
5355 pub fully_labeled_replicas: ::core::option::Option<i32>,
5356 /// The number of ready replicas for this replication controller.
5357 /// +optional
5358 #[prost(int32, optional, tag = "4")]
5359 pub ready_replicas: ::core::option::Option<i32>,
5360 /// The number of available replicas (ready for at least minReadySeconds) for this replication controller.
5361 /// +optional
5362 #[prost(int32, optional, tag = "5")]
5363 pub available_replicas: ::core::option::Option<i32>,
5364 /// ObservedGeneration reflects the generation of the most recently observed replication controller.
5365 /// +optional
5366 #[prost(int64, optional, tag = "3")]
5367 pub observed_generation: ::core::option::Option<i64>,
5368 /// Represents the latest available observations of a replication controller's current state.
5369 /// +optional
5370 /// +patchMergeKey=type
5371 /// +patchStrategy=merge
5372 /// +listType=map
5373 /// +listMapKey=type
5374 #[prost(message, repeated, tag = "6")]
5375 pub conditions: ::prost::alloc::vec::Vec<ReplicationControllerCondition>,
5376}
5377/// ResourceClaim references one entry in PodSpec.ResourceClaims.
5378#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5379pub struct ResourceClaim {
5380 /// Name must match the name of one entry in pod.spec.resourceClaims of
5381 /// the Pod where this field is used. It makes that resource available
5382 /// inside a container.
5383 #[prost(string, optional, tag = "1")]
5384 pub name: ::core::option::Option<::prost::alloc::string::String>,
5385 /// Request is the name chosen for a request in the referenced claim.
5386 /// If empty, everything from the claim is made available, otherwise
5387 /// only the result of this request.
5388 ///
5389 /// +optional
5390 #[prost(string, optional, tag = "2")]
5391 pub request: ::core::option::Option<::prost::alloc::string::String>,
5392}
5393/// ResourceFieldSelector represents container resources (cpu, memory) and their output format
5394/// +structType=atomic
5395#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5396pub struct ResourceFieldSelector {
5397 /// Container name: required for volumes, optional for env vars
5398 /// +optional
5399 #[prost(string, optional, tag = "1")]
5400 pub container_name: ::core::option::Option<::prost::alloc::string::String>,
5401 /// Required: resource to select
5402 #[prost(string, optional, tag = "2")]
5403 pub resource: ::core::option::Option<::prost::alloc::string::String>,
5404 /// Specifies the output format of the exposed resources, defaults to "1"
5405 /// +optional
5406 #[prost(message, optional, tag = "3")]
5407 pub divisor: ::core::option::Option<super::super::super::apimachinery::pkg::api::resource::Quantity>,
5408}
5409/// ResourceHealth represents the health of a resource. It has the latest device health information.
5410/// This is a part of KEP <https://kep.k8s.io/4680.>
5411#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5412pub struct ResourceHealth {
5413 /// ResourceID is the unique identifier of the resource. See the ResourceID type for more information.
5414 #[prost(string, optional, tag = "1")]
5415 pub resource_id: ::core::option::Option<::prost::alloc::string::String>,
5416 /// Health of the resource.
5417 /// can be one of:
5418 /// - Healthy: operates as normal
5419 /// - Unhealthy: reported unhealthy. We consider this a temporary health issue
5420 /// since we do not have a mechanism today to distinguish
5421 /// temporary and permanent issues.
5422 /// - Unknown: The status cannot be determined.
5423 /// For example, Device Plugin got unregistered and hasn't been re-registered since.
5424 ///
5425 /// In future we may want to introduce the PermanentlyUnhealthy Status.
5426 #[prost(string, optional, tag = "2")]
5427 pub health: ::core::option::Option<::prost::alloc::string::String>,
5428}
5429/// ResourceQuota sets aggregate quota restrictions enforced per namespace
5430#[derive(Clone, PartialEq, ::prost::Message)]
5431pub struct ResourceQuota {
5432 /// Standard object's metadata.
5433 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
5434 /// +optional
5435 #[prost(message, optional, tag = "1")]
5436 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
5437 /// Spec defines the desired quota.
5438 /// <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status>
5439 /// +optional
5440 #[prost(message, optional, tag = "2")]
5441 pub spec: ::core::option::Option<ResourceQuotaSpec>,
5442 /// Status defines the actual enforced quota and its current usage.
5443 /// <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status>
5444 /// +optional
5445 #[prost(message, optional, tag = "3")]
5446 pub status: ::core::option::Option<ResourceQuotaStatus>,
5447}
5448/// ResourceQuotaList is a list of ResourceQuota items.
5449#[derive(Clone, PartialEq, ::prost::Message)]
5450pub struct ResourceQuotaList {
5451 /// Standard list metadata.
5452 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds>
5453 /// +optional
5454 #[prost(message, optional, tag = "1")]
5455 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
5456 /// Items is a list of ResourceQuota objects.
5457 /// More info: <https://kubernetes.io/docs/concepts/policy/resource-quotas/>
5458 #[prost(message, repeated, tag = "2")]
5459 pub items: ::prost::alloc::vec::Vec<ResourceQuota>,
5460}
5461/// ResourceQuotaSpec defines the desired hard limits to enforce for Quota.
5462#[derive(Clone, PartialEq, ::prost::Message)]
5463pub struct ResourceQuotaSpec {
5464 /// hard is the set of desired hard limits for each named resource.
5465 /// More info: <https://kubernetes.io/docs/concepts/policy/resource-quotas/>
5466 /// +optional
5467 #[prost(btree_map = "string, message", tag = "1")]
5468 pub hard: ::prost::alloc::collections::BTreeMap<
5469 ::prost::alloc::string::String,
5470 super::super::super::apimachinery::pkg::api::resource::Quantity,
5471 >,
5472 /// A collection of filters that must match each object tracked by a quota.
5473 /// If not specified, the quota matches all objects.
5474 /// +optional
5475 /// +listType=atomic
5476 #[prost(string, repeated, tag = "2")]
5477 pub scopes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5478 /// scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota
5479 /// but expressed using ScopeSelectorOperator in combination with possible values.
5480 /// For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.
5481 /// +optional
5482 #[prost(message, optional, tag = "3")]
5483 pub scope_selector: ::core::option::Option<ScopeSelector>,
5484}
5485/// ResourceQuotaStatus defines the enforced hard limits and observed use.
5486#[derive(Clone, PartialEq, ::prost::Message)]
5487pub struct ResourceQuotaStatus {
5488 /// Hard is the set of enforced hard limits for each named resource.
5489 /// More info: <https://kubernetes.io/docs/concepts/policy/resource-quotas/>
5490 /// +optional
5491 #[prost(btree_map = "string, message", tag = "1")]
5492 pub hard: ::prost::alloc::collections::BTreeMap<
5493 ::prost::alloc::string::String,
5494 super::super::super::apimachinery::pkg::api::resource::Quantity,
5495 >,
5496 /// Used is the current observed total usage of the resource in the namespace.
5497 /// +optional
5498 #[prost(btree_map = "string, message", tag = "2")]
5499 pub used: ::prost::alloc::collections::BTreeMap<
5500 ::prost::alloc::string::String,
5501 super::super::super::apimachinery::pkg::api::resource::Quantity,
5502 >,
5503}
5504/// ResourceRequirements describes the compute resource requirements.
5505#[derive(Clone, PartialEq, ::prost::Message)]
5506pub struct ResourceRequirements {
5507 /// Limits describes the maximum amount of compute resources allowed.
5508 /// More info: <https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/>
5509 /// +optional
5510 #[prost(btree_map = "string, message", tag = "1")]
5511 pub limits: ::prost::alloc::collections::BTreeMap<
5512 ::prost::alloc::string::String,
5513 super::super::super::apimachinery::pkg::api::resource::Quantity,
5514 >,
5515 /// Requests describes the minimum amount of compute resources required.
5516 /// If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
5517 /// otherwise to an implementation-defined value. Requests cannot exceed Limits.
5518 /// More info: <https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/>
5519 /// +optional
5520 #[prost(btree_map = "string, message", tag = "2")]
5521 pub requests: ::prost::alloc::collections::BTreeMap<
5522 ::prost::alloc::string::String,
5523 super::super::super::apimachinery::pkg::api::resource::Quantity,
5524 >,
5525 /// Claims lists the names of resources, defined in spec.resourceClaims,
5526 /// that are used by this container.
5527 ///
5528 /// This is an alpha field and requires enabling the
5529 /// DynamicResourceAllocation feature gate.
5530 ///
5531 /// This field is immutable. It can only be set for containers.
5532 ///
5533 /// +listType=map
5534 /// +listMapKey=name
5535 /// +featureGate=DynamicResourceAllocation
5536 /// +optional
5537 #[prost(message, repeated, tag = "3")]
5538 pub claims: ::prost::alloc::vec::Vec<ResourceClaim>,
5539}
5540/// ResourceStatus represents the status of a single resource allocated to a Pod.
5541#[derive(Clone, PartialEq, ::prost::Message)]
5542pub struct ResourceStatus {
5543 /// 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.
5544 /// For DRA resources, the value must be "claim:<claim_name>/<request>".
5545 /// When this status is reported about a container, the "claim_name" and "request" must match one of the claims of this container.
5546 /// +required
5547 #[prost(string, optional, tag = "1")]
5548 pub name: ::core::option::Option<::prost::alloc::string::String>,
5549 /// List of unique resources health. Each element in the list contains an unique resource ID and its health.
5550 /// At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node.
5551 /// If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share.
5552 /// See ResourceID type definition for a specific format it has in various use cases.
5553 /// +listType=map
5554 /// +listMapKey=resourceID
5555 #[prost(message, repeated, tag = "2")]
5556 pub resources: ::prost::alloc::vec::Vec<ResourceHealth>,
5557}
5558/// SELinuxOptions are the labels to be applied to the container
5559#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5560pub struct SeLinuxOptions {
5561 /// User is a SELinux user label that applies to the container.
5562 /// +optional
5563 #[prost(string, optional, tag = "1")]
5564 pub user: ::core::option::Option<::prost::alloc::string::String>,
5565 /// Role is a SELinux role label that applies to the container.
5566 /// +optional
5567 #[prost(string, optional, tag = "2")]
5568 pub role: ::core::option::Option<::prost::alloc::string::String>,
5569 /// Type is a SELinux type label that applies to the container.
5570 /// +optional
5571 #[prost(string, optional, tag = "3")]
5572 pub r#type: ::core::option::Option<::prost::alloc::string::String>,
5573 /// Level is SELinux level label that applies to the container.
5574 /// +optional
5575 #[prost(string, optional, tag = "4")]
5576 pub level: ::core::option::Option<::prost::alloc::string::String>,
5577}
5578/// ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume
5579#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5580pub struct ScaleIoPersistentVolumeSource {
5581 /// gateway is the host address of the ScaleIO API Gateway.
5582 #[prost(string, optional, tag = "1")]
5583 pub gateway: ::core::option::Option<::prost::alloc::string::String>,
5584 /// system is the name of the storage system as configured in ScaleIO.
5585 #[prost(string, optional, tag = "2")]
5586 pub system: ::core::option::Option<::prost::alloc::string::String>,
5587 /// secretRef references to the secret for ScaleIO user and other
5588 /// sensitive information. If this is not provided, Login operation will fail.
5589 #[prost(message, optional, tag = "3")]
5590 pub secret_ref: ::core::option::Option<SecretReference>,
5591 /// sslEnabled is the flag to enable/disable SSL communication with Gateway, default false
5592 /// +optional
5593 #[prost(bool, optional, tag = "4")]
5594 pub ssl_enabled: ::core::option::Option<bool>,
5595 /// protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.
5596 /// +optional
5597 #[prost(string, optional, tag = "5")]
5598 pub protection_domain: ::core::option::Option<::prost::alloc::string::String>,
5599 /// storagePool is the ScaleIO Storage Pool associated with the protection domain.
5600 /// +optional
5601 #[prost(string, optional, tag = "6")]
5602 pub storage_pool: ::core::option::Option<::prost::alloc::string::String>,
5603 /// storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
5604 /// Default is ThinProvisioned.
5605 /// +optional
5606 /// +default="ThinProvisioned"
5607 #[prost(string, optional, tag = "7")]
5608 pub storage_mode: ::core::option::Option<::prost::alloc::string::String>,
5609 /// volumeName is the name of a volume already created in the ScaleIO system
5610 /// that is associated with this volume source.
5611 #[prost(string, optional, tag = "8")]
5612 pub volume_name: ::core::option::Option<::prost::alloc::string::String>,
5613 /// fsType is the filesystem type to mount.
5614 /// Must be a filesystem type supported by the host operating system.
5615 /// Ex. "ext4", "xfs", "ntfs".
5616 /// Default is "xfs"
5617 /// +optional
5618 /// +default="xfs"
5619 #[prost(string, optional, tag = "9")]
5620 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
5621 /// readOnly defaults to false (read/write). ReadOnly here will force
5622 /// the ReadOnly setting in VolumeMounts.
5623 /// +optional
5624 #[prost(bool, optional, tag = "10")]
5625 pub read_only: ::core::option::Option<bool>,
5626}
5627/// ScaleIOVolumeSource represents a persistent ScaleIO volume
5628#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5629pub struct ScaleIoVolumeSource {
5630 /// gateway is the host address of the ScaleIO API Gateway.
5631 #[prost(string, optional, tag = "1")]
5632 pub gateway: ::core::option::Option<::prost::alloc::string::String>,
5633 /// system is the name of the storage system as configured in ScaleIO.
5634 #[prost(string, optional, tag = "2")]
5635 pub system: ::core::option::Option<::prost::alloc::string::String>,
5636 /// secretRef references to the secret for ScaleIO user and other
5637 /// sensitive information. If this is not provided, Login operation will fail.
5638 #[prost(message, optional, tag = "3")]
5639 pub secret_ref: ::core::option::Option<LocalObjectReference>,
5640 /// sslEnabled Flag enable/disable SSL communication with Gateway, default false
5641 /// +optional
5642 #[prost(bool, optional, tag = "4")]
5643 pub ssl_enabled: ::core::option::Option<bool>,
5644 /// protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.
5645 /// +optional
5646 #[prost(string, optional, tag = "5")]
5647 pub protection_domain: ::core::option::Option<::prost::alloc::string::String>,
5648 /// storagePool is the ScaleIO Storage Pool associated with the protection domain.
5649 /// +optional
5650 #[prost(string, optional, tag = "6")]
5651 pub storage_pool: ::core::option::Option<::prost::alloc::string::String>,
5652 /// storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
5653 /// Default is ThinProvisioned.
5654 /// +optional
5655 /// +default="ThinProvisioned"
5656 #[prost(string, optional, tag = "7")]
5657 pub storage_mode: ::core::option::Option<::prost::alloc::string::String>,
5658 /// volumeName is the name of a volume already created in the ScaleIO system
5659 /// that is associated with this volume source.
5660 #[prost(string, optional, tag = "8")]
5661 pub volume_name: ::core::option::Option<::prost::alloc::string::String>,
5662 /// fsType is the filesystem type to mount.
5663 /// Must be a filesystem type supported by the host operating system.
5664 /// Ex. "ext4", "xfs", "ntfs".
5665 /// Default is "xfs".
5666 /// +optional
5667 /// +default="xfs"
5668 #[prost(string, optional, tag = "9")]
5669 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
5670 /// readOnly Defaults to false (read/write). ReadOnly here will force
5671 /// the ReadOnly setting in VolumeMounts.
5672 /// +optional
5673 #[prost(bool, optional, tag = "10")]
5674 pub read_only: ::core::option::Option<bool>,
5675}
5676/// A scope selector represents the AND of the selectors represented
5677/// by the scoped-resource selector requirements.
5678/// +structType=atomic
5679#[derive(Clone, PartialEq, ::prost::Message)]
5680pub struct ScopeSelector {
5681 /// A list of scope selector requirements by scope of the resources.
5682 /// +optional
5683 /// +listType=atomic
5684 #[prost(message, repeated, tag = "1")]
5685 pub match_expressions: ::prost::alloc::vec::Vec<ScopedResourceSelectorRequirement>,
5686}
5687/// A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator
5688/// that relates the scope name and values.
5689#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5690pub struct ScopedResourceSelectorRequirement {
5691 /// The name of the scope that the selector applies to.
5692 #[prost(string, optional, tag = "1")]
5693 pub scope_name: ::core::option::Option<::prost::alloc::string::String>,
5694 /// Represents a scope's relationship to a set of values.
5695 /// Valid operators are In, NotIn, Exists, DoesNotExist.
5696 #[prost(string, optional, tag = "2")]
5697 pub operator: ::core::option::Option<::prost::alloc::string::String>,
5698 /// An array of string values. If the operator is In or NotIn,
5699 /// the values array must be non-empty. If the operator is Exists or DoesNotExist,
5700 /// the values array must be empty.
5701 /// This array is replaced during a strategic merge patch.
5702 /// +optional
5703 /// +listType=atomic
5704 #[prost(string, repeated, tag = "3")]
5705 pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5706}
5707/// SeccompProfile defines a pod/container's seccomp profile settings.
5708/// Only one profile source may be set.
5709/// +union
5710#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5711pub struct SeccompProfile {
5712 /// type indicates which kind of seccomp profile will be applied.
5713 /// Valid options are:
5714 ///
5715 /// Localhost - a profile defined in a file on the node should be used.
5716 /// RuntimeDefault - the container runtime default profile should be used.
5717 /// Unconfined - no profile should be applied.
5718 /// +unionDiscriminator
5719 #[prost(string, optional, tag = "1")]
5720 pub r#type: ::core::option::Option<::prost::alloc::string::String>,
5721 /// localhostProfile indicates a profile defined in a file on the node should be used.
5722 /// The profile must be preconfigured on the node to work.
5723 /// Must be a descending path, relative to the kubelet's configured seccomp profile location.
5724 /// Must be set if type is "Localhost". Must NOT be set for any other type.
5725 /// +optional
5726 #[prost(string, optional, tag = "2")]
5727 pub localhost_profile: ::core::option::Option<::prost::alloc::string::String>,
5728}
5729/// Secret holds secret data of a certain type. The total bytes of the values in
5730/// the Data field must be less than MaxSecretSize bytes.
5731#[derive(Clone, PartialEq, ::prost::Message)]
5732pub struct Secret {
5733 /// Standard object's metadata.
5734 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
5735 /// +optional
5736 #[prost(message, optional, tag = "1")]
5737 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
5738 /// Immutable, if set to true, ensures that data stored in the Secret cannot
5739 /// be updated (only object metadata can be modified).
5740 /// If not set to true, the field can be modified at any time.
5741 /// Defaulted to nil.
5742 /// +optional
5743 #[prost(bool, optional, tag = "5")]
5744 pub immutable: ::core::option::Option<bool>,
5745 /// Data contains the secret data. Each key must consist of alphanumeric
5746 /// characters, '-', '_' or '.'. The serialized form of the secret data is a
5747 /// base64 encoded string, representing the arbitrary (possibly non-string)
5748 /// data value here. Described in <https://tools.ietf.org/html/rfc4648#section-4>
5749 /// +optional
5750 #[prost(btree_map = "string, bytes", tag = "2")]
5751 pub data:
5752 ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::vec::Vec<u8>>,
5753 /// stringData allows specifying non-binary secret data in string form.
5754 /// It is provided as a write-only input field for convenience.
5755 /// All keys and values are merged into the data field on write, overwriting any existing values.
5756 /// The stringData field is never output when reading from the API.
5757 /// +k8s:conversion-gen=false
5758 /// +optional
5759 #[prost(btree_map = "string, string", tag = "4")]
5760 pub string_data:
5761 ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
5762 /// Used to facilitate programmatic handling of secret data.
5763 /// More info: <https://kubernetes.io/docs/concepts/configuration/secret/#secret-types>
5764 /// +optional
5765 #[prost(string, optional, tag = "3")]
5766 pub r#type: ::core::option::Option<::prost::alloc::string::String>,
5767}
5768/// SecretEnvSource selects a Secret to populate the environment
5769/// variables with.
5770///
5771/// The contents of the target Secret's Data field will represent the
5772/// key-value pairs as environment variables.
5773#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5774pub struct SecretEnvSource {
5775 /// The Secret to select from.
5776 #[prost(message, optional, tag = "1")]
5777 pub local_object_reference: ::core::option::Option<LocalObjectReference>,
5778 /// Specify whether the Secret must be defined
5779 /// +optional
5780 #[prost(bool, optional, tag = "2")]
5781 pub optional: ::core::option::Option<bool>,
5782}
5783/// SecretKeySelector selects a key of a Secret.
5784/// +structType=atomic
5785#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5786pub struct SecretKeySelector {
5787 /// The name of the secret in the pod's namespace to select from.
5788 #[prost(message, optional, tag = "1")]
5789 pub local_object_reference: ::core::option::Option<LocalObjectReference>,
5790 /// The key of the secret to select from. Must be a valid secret key.
5791 #[prost(string, optional, tag = "2")]
5792 pub key: ::core::option::Option<::prost::alloc::string::String>,
5793 /// Specify whether the Secret or its key must be defined
5794 /// +optional
5795 #[prost(bool, optional, tag = "3")]
5796 pub optional: ::core::option::Option<bool>,
5797}
5798/// SecretList is a list of Secret.
5799#[derive(Clone, PartialEq, ::prost::Message)]
5800pub struct SecretList {
5801 /// Standard list metadata.
5802 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds>
5803 /// +optional
5804 #[prost(message, optional, tag = "1")]
5805 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
5806 /// Items is a list of secret objects.
5807 /// More info: <https://kubernetes.io/docs/concepts/configuration/secret>
5808 #[prost(message, repeated, tag = "2")]
5809 pub items: ::prost::alloc::vec::Vec<Secret>,
5810}
5811/// Adapts a secret into a projected volume.
5812///
5813/// The contents of the target Secret's Data field will be presented in a
5814/// projected volume as files using the keys in the Data field as the file names.
5815/// Note that this is identical to a secret volume source without the default
5816/// mode.
5817#[derive(Clone, PartialEq, ::prost::Message)]
5818pub struct SecretProjection {
5819 #[prost(message, optional, tag = "1")]
5820 pub local_object_reference: ::core::option::Option<LocalObjectReference>,
5821 /// items if unspecified, each key-value pair in the Data field of the referenced
5822 /// Secret will be projected into the volume as a file whose name is the
5823 /// key and content is the value. If specified, the listed keys will be
5824 /// projected into the specified paths, and unlisted keys will not be
5825 /// present. If a key is specified which is not present in the Secret,
5826 /// the volume setup will error unless it is marked optional. Paths must be
5827 /// relative and may not contain the '..' path or start with '..'.
5828 /// +optional
5829 /// +listType=atomic
5830 #[prost(message, repeated, tag = "2")]
5831 pub items: ::prost::alloc::vec::Vec<KeyToPath>,
5832 /// optional field specify whether the Secret or its key must be defined
5833 /// +optional
5834 #[prost(bool, optional, tag = "4")]
5835 pub optional: ::core::option::Option<bool>,
5836}
5837/// SecretReference represents a Secret Reference. It has enough information to retrieve secret
5838/// in any namespace
5839/// +structType=atomic
5840#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5841pub struct SecretReference {
5842 /// name is unique within a namespace to reference a secret resource.
5843 /// +optional
5844 #[prost(string, optional, tag = "1")]
5845 pub name: ::core::option::Option<::prost::alloc::string::String>,
5846 /// namespace defines the space within which the secret name must be unique.
5847 /// +optional
5848 #[prost(string, optional, tag = "2")]
5849 pub namespace: ::core::option::Option<::prost::alloc::string::String>,
5850}
5851/// Adapts a Secret into a volume.
5852///
5853/// The contents of the target Secret's Data field will be presented in a volume
5854/// as files using the keys in the Data field as the file names.
5855/// Secret volumes support ownership management and SELinux relabeling.
5856#[derive(Clone, PartialEq, ::prost::Message)]
5857pub struct SecretVolumeSource {
5858 /// secretName is the name of the secret in the pod's namespace to use.
5859 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#secret>
5860 /// +optional
5861 #[prost(string, optional, tag = "1")]
5862 pub secret_name: ::core::option::Option<::prost::alloc::string::String>,
5863 /// items If unspecified, each key-value pair in the Data field of the referenced
5864 /// Secret will be projected into the volume as a file whose name is the
5865 /// key and content is the value. If specified, the listed keys will be
5866 /// projected into the specified paths, and unlisted keys will not be
5867 /// present. If a key is specified which is not present in the Secret,
5868 /// the volume setup will error unless it is marked optional. Paths must be
5869 /// relative and may not contain the '..' path or start with '..'.
5870 /// +optional
5871 /// +listType=atomic
5872 #[prost(message, repeated, tag = "2")]
5873 pub items: ::prost::alloc::vec::Vec<KeyToPath>,
5874 /// defaultMode is Optional: mode bits used to set permissions on created files by default.
5875 /// Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
5876 /// YAML accepts both octal and decimal values, JSON requires decimal values
5877 /// for mode bits. Defaults to 0644.
5878 /// Directories within the path are not affected by this setting.
5879 /// This might be in conflict with other options that affect the file
5880 /// mode, like fsGroup, and the result can be other mode bits set.
5881 /// +optional
5882 #[prost(int32, optional, tag = "3")]
5883 pub default_mode: ::core::option::Option<i32>,
5884 /// optional field specify whether the Secret or its keys must be defined
5885 /// +optional
5886 #[prost(bool, optional, tag = "4")]
5887 pub optional: ::core::option::Option<bool>,
5888}
5889/// SecurityContext holds security configuration that will be applied to a container.
5890/// Some fields are present in both SecurityContext and PodSecurityContext. When both
5891/// are set, the values in SecurityContext take precedence.
5892#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5893pub struct SecurityContext {
5894 /// The capabilities to add/drop when running containers.
5895 /// Defaults to the default set of capabilities granted by the container runtime.
5896 /// Note that this field cannot be set when spec.os.name is windows.
5897 /// +optional
5898 #[prost(message, optional, tag = "1")]
5899 pub capabilities: ::core::option::Option<Capabilities>,
5900 /// Run container in privileged mode.
5901 /// Processes in privileged containers are essentially equivalent to root on the host.
5902 /// Defaults to false.
5903 /// Note that this field cannot be set when spec.os.name is windows.
5904 /// +optional
5905 #[prost(bool, optional, tag = "2")]
5906 pub privileged: ::core::option::Option<bool>,
5907 /// The SELinux context to be applied to the container.
5908 /// If unspecified, the container runtime will allocate a random SELinux context for each
5909 /// container. May also be set in PodSecurityContext. If set in both SecurityContext and
5910 /// PodSecurityContext, the value specified in SecurityContext takes precedence.
5911 /// Note that this field cannot be set when spec.os.name is windows.
5912 /// +optional
5913 #[prost(message, optional, tag = "3")]
5914 pub se_linux_options: ::core::option::Option<SeLinuxOptions>,
5915 /// The Windows specific settings applied to all containers.
5916 /// If unspecified, the options from the PodSecurityContext will be used.
5917 /// If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
5918 /// Note that this field cannot be set when spec.os.name is linux.
5919 /// +optional
5920 #[prost(message, optional, tag = "10")]
5921 pub windows_options: ::core::option::Option<WindowsSecurityContextOptions>,
5922 /// The UID to run the entrypoint of the container process.
5923 /// Defaults to user specified in image metadata if unspecified.
5924 /// May also be set in PodSecurityContext. If set in both SecurityContext and
5925 /// PodSecurityContext, the value specified in SecurityContext takes precedence.
5926 /// Note that this field cannot be set when spec.os.name is windows.
5927 /// +optional
5928 #[prost(int64, optional, tag = "4")]
5929 pub run_as_user: ::core::option::Option<i64>,
5930 /// The GID to run the entrypoint of the container process.
5931 /// Uses runtime default if unset.
5932 /// May also be set in PodSecurityContext. If set in both SecurityContext and
5933 /// PodSecurityContext, the value specified in SecurityContext takes precedence.
5934 /// Note that this field cannot be set when spec.os.name is windows.
5935 /// +optional
5936 #[prost(int64, optional, tag = "8")]
5937 pub run_as_group: ::core::option::Option<i64>,
5938 /// Indicates that the container must run as a non-root user.
5939 /// If true, the Kubelet will validate the image at runtime to ensure that it
5940 /// does not run as UID 0 (root) and fail to start the container if it does.
5941 /// If unset or false, no such validation will be performed.
5942 /// May also be set in PodSecurityContext. If set in both SecurityContext and
5943 /// PodSecurityContext, the value specified in SecurityContext takes precedence.
5944 /// +optional
5945 #[prost(bool, optional, tag = "5")]
5946 pub run_as_non_root: ::core::option::Option<bool>,
5947 /// Whether this container has a read-only root filesystem.
5948 /// Default is false.
5949 /// Note that this field cannot be set when spec.os.name is windows.
5950 /// +optional
5951 #[prost(bool, optional, tag = "6")]
5952 pub read_only_root_filesystem: ::core::option::Option<bool>,
5953 /// AllowPrivilegeEscalation controls whether a process can gain more
5954 /// privileges than its parent process. This bool directly controls if
5955 /// the no_new_privs flag will be set on the container process.
5956 /// AllowPrivilegeEscalation is true always when the container is:
5957 /// 1) run as Privileged
5958 /// 2) has CAP_SYS_ADMIN
5959 /// Note that this field cannot be set when spec.os.name is windows.
5960 /// +optional
5961 #[prost(bool, optional, tag = "7")]
5962 pub allow_privilege_escalation: ::core::option::Option<bool>,
5963 /// procMount denotes the type of proc mount to use for the containers.
5964 /// The default value is Default which uses the container runtime defaults for
5965 /// readonly paths and masked paths.
5966 /// This requires the ProcMountType feature flag to be enabled.
5967 /// Note that this field cannot be set when spec.os.name is windows.
5968 /// +optional
5969 #[prost(string, optional, tag = "9")]
5970 pub proc_mount: ::core::option::Option<::prost::alloc::string::String>,
5971 /// The seccomp options to use by this container. If seccomp options are
5972 /// provided at both the pod & container level, the container options
5973 /// override the pod options.
5974 /// Note that this field cannot be set when spec.os.name is windows.
5975 /// +optional
5976 #[prost(message, optional, tag = "11")]
5977 pub seccomp_profile: ::core::option::Option<SeccompProfile>,
5978 /// appArmorProfile is the AppArmor options to use by this container. If set, this profile
5979 /// overrides the pod's appArmorProfile.
5980 /// Note that this field cannot be set when spec.os.name is windows.
5981 /// +optional
5982 #[prost(message, optional, tag = "12")]
5983 pub app_armor_profile: ::core::option::Option<AppArmorProfile>,
5984}
5985/// SerializedReference is a reference to serialized object.
5986#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5987pub struct SerializedReference {
5988 /// The reference to an object in the system.
5989 /// +optional
5990 #[prost(message, optional, tag = "1")]
5991 pub reference: ::core::option::Option<ObjectReference>,
5992}
5993/// Service is a named abstraction of software service (for example, mysql) consisting of local port
5994/// (for example 3306) that the proxy listens on, and the selector that determines which pods
5995/// will answer requests sent through the proxy.
5996#[derive(Clone, PartialEq, ::prost::Message)]
5997pub struct Service {
5998 /// Standard object's metadata.
5999 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
6000 /// +optional
6001 #[prost(message, optional, tag = "1")]
6002 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
6003 /// Spec defines the behavior of a service.
6004 /// <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status>
6005 /// +optional
6006 #[prost(message, optional, tag = "2")]
6007 pub spec: ::core::option::Option<ServiceSpec>,
6008 /// Most recently observed status of the service.
6009 /// Populated by the system.
6010 /// Read-only.
6011 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status>
6012 /// +optional
6013 #[prost(message, optional, tag = "3")]
6014 pub status: ::core::option::Option<ServiceStatus>,
6015}
6016/// ServiceAccount binds together:
6017/// * a name, understood by users, and perhaps by peripheral systems, for an identity
6018/// * a principal that can be authenticated and authorized
6019/// * a set of secrets
6020#[derive(Clone, PartialEq, ::prost::Message)]
6021pub struct ServiceAccount {
6022 /// Standard object's metadata.
6023 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
6024 /// +optional
6025 #[prost(message, optional, tag = "1")]
6026 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
6027 /// Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use.
6028 /// Pods are only limited to this list if this service account has a "kubernetes.io/enforce-mountable-secrets" annotation set to "true".
6029 /// The "kubernetes.io/enforce-mountable-secrets" annotation is deprecated since v1.32.
6030 /// Prefer separate namespaces to isolate access to mounted secrets.
6031 /// This field should not be used to find auto-generated service account token secrets for use outside of pods.
6032 /// Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created.
6033 /// More info: <https://kubernetes.io/docs/concepts/configuration/secret>
6034 /// +optional
6035 /// +patchMergeKey=name
6036 /// +patchStrategy=merge
6037 /// +listType=map
6038 /// +listMapKey=name
6039 #[prost(message, repeated, tag = "2")]
6040 pub secrets: ::prost::alloc::vec::Vec<ObjectReference>,
6041 /// ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
6042 /// in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
6043 /// can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
6044 /// More info: <https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod>
6045 /// +optional
6046 /// +listType=atomic
6047 #[prost(message, repeated, tag = "3")]
6048 pub image_pull_secrets: ::prost::alloc::vec::Vec<LocalObjectReference>,
6049 /// AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted.
6050 /// Can be overridden at the pod level.
6051 /// +optional
6052 #[prost(bool, optional, tag = "4")]
6053 pub automount_service_account_token: ::core::option::Option<bool>,
6054}
6055/// ServiceAccountList is a list of ServiceAccount objects
6056#[derive(Clone, PartialEq, ::prost::Message)]
6057pub struct ServiceAccountList {
6058 /// Standard list metadata.
6059 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds>
6060 /// +optional
6061 #[prost(message, optional, tag = "1")]
6062 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
6063 /// List of ServiceAccounts.
6064 /// More info: <https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/>
6065 #[prost(message, repeated, tag = "2")]
6066 pub items: ::prost::alloc::vec::Vec<ServiceAccount>,
6067}
6068/// ServiceAccountTokenProjection represents a projected service account token
6069/// volume. This projection can be used to insert a service account token into
6070/// the pods runtime filesystem for use against APIs (Kubernetes API Server or
6071/// otherwise).
6072#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
6073pub struct ServiceAccountTokenProjection {
6074 /// audience is the intended audience of the token. A recipient of a token
6075 /// must identify itself with an identifier specified in the audience of the
6076 /// token, and otherwise should reject the token. The audience defaults to the
6077 /// identifier of the apiserver.
6078 /// +optional
6079 #[prost(string, optional, tag = "1")]
6080 pub audience: ::core::option::Option<::prost::alloc::string::String>,
6081 /// expirationSeconds is the requested duration of validity of the service
6082 /// account token. As the token approaches expiration, the kubelet volume
6083 /// plugin will proactively rotate the service account token. The kubelet will
6084 /// start trying to rotate the token if the token is older than 80 percent of
6085 /// its time to live or if the token is older than 24 hours.Defaults to 1 hour
6086 /// and must be at least 10 minutes.
6087 /// +optional
6088 #[prost(int64, optional, tag = "2")]
6089 pub expiration_seconds: ::core::option::Option<i64>,
6090 /// path is the path relative to the mount point of the file to project the
6091 /// token into.
6092 #[prost(string, optional, tag = "3")]
6093 pub path: ::core::option::Option<::prost::alloc::string::String>,
6094}
6095/// ServiceList holds a list of services.
6096#[derive(Clone, PartialEq, ::prost::Message)]
6097pub struct ServiceList {
6098 /// Standard list metadata.
6099 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds>
6100 /// +optional
6101 #[prost(message, optional, tag = "1")]
6102 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
6103 /// List of services
6104 #[prost(message, repeated, tag = "2")]
6105 pub items: ::prost::alloc::vec::Vec<Service>,
6106}
6107/// ServicePort contains information on service's port.
6108#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
6109pub struct ServicePort {
6110 /// The name of this port within the service. This must be a DNS_LABEL.
6111 /// All ports within a ServiceSpec must have unique names. When considering
6112 /// the endpoints for a Service, this must match the 'name' field in the
6113 /// EndpointPort.
6114 /// Optional if only one ServicePort is defined on this service.
6115 /// +optional
6116 #[prost(string, optional, tag = "1")]
6117 pub name: ::core::option::Option<::prost::alloc::string::String>,
6118 /// The IP protocol for this port. Supports "TCP", "UDP", and "SCTP".
6119 /// Default is TCP.
6120 /// +default="TCP"
6121 /// +optional
6122 #[prost(string, optional, tag = "2")]
6123 pub protocol: ::core::option::Option<::prost::alloc::string::String>,
6124 /// The application protocol for this port.
6125 /// This is used as a hint for implementations to offer richer behavior for protocols that they understand.
6126 /// This field follows standard Kubernetes label syntax.
6127 /// Valid values are either:
6128 ///
6129 /// * Un-prefixed protocol names - reserved for IANA standard service names (as per
6130 /// RFC-6335 and <https://www.iana.org/assignments/service-names>).
6131 ///
6132 /// * Kubernetes-defined prefixed names:
6133 /// * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in <https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior->
6134 /// * 'kubernetes.io/ws' - WebSocket over cleartext as described in <https://www.rfc-editor.org/rfc/rfc6455>
6135 /// * 'kubernetes.io/wss' - WebSocket over TLS as described in <https://www.rfc-editor.org/rfc/rfc6455>
6136 ///
6137 /// * Other protocols should use implementation-defined prefixed names such as
6138 /// mycompany.com/my-custom-protocol.
6139 /// +optional
6140 #[prost(string, optional, tag = "6")]
6141 pub app_protocol: ::core::option::Option<::prost::alloc::string::String>,
6142 /// The port that will be exposed by this service.
6143 #[prost(int32, optional, tag = "3")]
6144 pub port: ::core::option::Option<i32>,
6145 /// Number or name of the port to access on the pods targeted by the service.
6146 /// Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
6147 /// If this is a string, it will be looked up as a named port in the
6148 /// target Pod's container ports. If this is not specified, the value
6149 /// of the 'port' field is used (an identity map).
6150 /// This field is ignored for services with clusterIP=None, and should be
6151 /// omitted or set equal to the 'port' field.
6152 /// More info: <https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service>
6153 /// +optional
6154 #[prost(message, optional, tag = "4")]
6155 pub target_port:
6156 ::core::option::Option<super::super::super::apimachinery::pkg::util::intstr::IntOrString>,
6157 /// The port on each node on which this service is exposed when type is
6158 /// NodePort or LoadBalancer. Usually assigned by the system. If a value is
6159 /// specified, in-range, and not in use it will be used, otherwise the
6160 /// operation will fail. If not specified, a port will be allocated if this
6161 /// Service requires one. If this field is specified when creating a
6162 /// Service which does not need it, creation will fail. This field will be
6163 /// wiped when updating a Service to no longer need it (e.g. changing type
6164 /// from NodePort to ClusterIP).
6165 /// More info: <https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport>
6166 /// +optional
6167 #[prost(int32, optional, tag = "5")]
6168 pub node_port: ::core::option::Option<i32>,
6169}
6170/// ServiceProxyOptions is the query options to a Service's proxy call.
6171#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
6172pub struct ServiceProxyOptions {
6173 /// Path is the part of URLs that include service endpoints, suffixes,
6174 /// and parameters to use for the current proxy request to service.
6175 /// For example, the whole request URL is
6176 /// <http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy.>
6177 /// Path is _search?q=user:kimchy.
6178 /// +optional
6179 #[prost(string, optional, tag = "1")]
6180 pub path: ::core::option::Option<::prost::alloc::string::String>,
6181}
6182/// ServiceSpec describes the attributes that a user creates on a service.
6183#[derive(Clone, PartialEq, ::prost::Message)]
6184pub struct ServiceSpec {
6185 /// The list of ports that are exposed by this service.
6186 /// More info: <https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies>
6187 /// +patchMergeKey=port
6188 /// +patchStrategy=merge
6189 /// +listType=map
6190 /// +listMapKey=port
6191 /// +listMapKey=protocol
6192 #[prost(message, repeated, tag = "1")]
6193 pub ports: ::prost::alloc::vec::Vec<ServicePort>,
6194 /// Route service traffic to pods with label keys and values matching this
6195 /// selector. If empty or not present, the service is assumed to have an
6196 /// external process managing its endpoints, which Kubernetes will not
6197 /// modify. Only applies to types ClusterIP, NodePort, and LoadBalancer.
6198 /// Ignored if type is ExternalName.
6199 /// More info: <https://kubernetes.io/docs/concepts/services-networking/service/>
6200 /// +optional
6201 /// +mapType=atomic
6202 #[prost(btree_map = "string, string", tag = "2")]
6203 pub selector:
6204 ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
6205 /// clusterIP is the IP address of the service and is usually assigned
6206 /// randomly. If an address is specified manually, is in-range (as per
6207 /// system configuration), and is not in use, it will be allocated to the
6208 /// service; otherwise creation of the service will fail. This field may not
6209 /// be changed through updates unless the type field is also being changed
6210 /// to ExternalName (which requires this field to be blank) or the type
6211 /// field is being changed from ExternalName (in which case this field may
6212 /// optionally be specified, as describe above). Valid values are "None",
6213 /// empty string (""), or a valid IP address. Setting this to "None" makes a
6214 /// "headless service" (no virtual IP), which is useful when direct endpoint
6215 /// connections are preferred and proxying is not required. Only applies to
6216 /// types ClusterIP, NodePort, and LoadBalancer. If this field is specified
6217 /// when creating a Service of type ExternalName, creation will fail. This
6218 /// field will be wiped when updating a Service to type ExternalName.
6219 /// More info: <https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies>
6220 /// +optional
6221 #[prost(string, optional, tag = "3")]
6222 pub cluster_ip: ::core::option::Option<::prost::alloc::string::String>,
6223 /// ClusterIPs is a list of IP addresses assigned to this service, and are
6224 /// usually assigned randomly. If an address is specified manually, is
6225 /// in-range (as per system configuration), and is not in use, it will be
6226 /// allocated to the service; otherwise creation of the service will fail.
6227 /// This field may not be changed through updates unless the type field is
6228 /// also being changed to ExternalName (which requires this field to be
6229 /// empty) or the type field is being changed from ExternalName (in which
6230 /// case this field may optionally be specified, as describe above). Valid
6231 /// values are "None", empty string (""), or a valid IP address. Setting
6232 /// this to "None" makes a "headless service" (no virtual IP), which is
6233 /// useful when direct endpoint connections are preferred and proxying is
6234 /// not required. Only applies to types ClusterIP, NodePort, and
6235 /// LoadBalancer. If this field is specified when creating a Service of type
6236 /// ExternalName, creation will fail. This field will be wiped when updating
6237 /// a Service to type ExternalName. If this field is not specified, it will
6238 /// be initialized from the clusterIP field. If this field is specified,
6239 /// clients must ensure that clusterIPs\[0\] and clusterIP have the same
6240 /// value.
6241 ///
6242 /// This field may hold a maximum of two entries (dual-stack IPs, in either order).
6243 /// These IPs must correspond to the values of the ipFamilies field. Both
6244 /// clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.
6245 /// More info: <https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies>
6246 /// +listType=atomic
6247 /// +optional
6248 #[prost(string, repeated, tag = "18")]
6249 pub cluster_ips: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6250 /// type determines how the Service is exposed. Defaults to ClusterIP. Valid
6251 /// options are ExternalName, ClusterIP, NodePort, and LoadBalancer.
6252 /// "ClusterIP" allocates a cluster-internal IP address for load-balancing
6253 /// to endpoints. Endpoints are determined by the selector or if that is not
6254 /// specified, by manual construction of an Endpoints object or
6255 /// EndpointSlice objects. If clusterIP is "None", no virtual IP is
6256 /// allocated and the endpoints are published as a set of endpoints rather
6257 /// than a virtual IP.
6258 /// "NodePort" builds on ClusterIP and allocates a port on every node which
6259 /// routes to the same endpoints as the clusterIP.
6260 /// "LoadBalancer" builds on NodePort and creates an external load-balancer
6261 /// (if supported in the current cloud) which routes to the same endpoints
6262 /// as the clusterIP.
6263 /// "ExternalName" aliases this service to the specified externalName.
6264 /// Several other fields do not apply to ExternalName services.
6265 /// More info: <https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types>
6266 /// +optional
6267 #[prost(string, optional, tag = "4")]
6268 pub r#type: ::core::option::Option<::prost::alloc::string::String>,
6269 /// externalIPs is a list of IP addresses for which nodes in the cluster
6270 /// will also accept traffic for this service. These IPs are not managed by
6271 /// Kubernetes. The user is responsible for ensuring that traffic arrives
6272 /// at a node with this IP. A common example is external load-balancers
6273 /// that are not part of the Kubernetes system.
6274 /// +optional
6275 /// +listType=atomic
6276 #[prost(string, repeated, tag = "5")]
6277 pub external_ips: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6278 /// Supports "ClientIP" and "None". Used to maintain session affinity.
6279 /// Enable client IP based session affinity.
6280 /// Must be ClientIP or None.
6281 /// Defaults to None.
6282 /// More info: <https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies>
6283 /// +optional
6284 #[prost(string, optional, tag = "7")]
6285 pub session_affinity: ::core::option::Option<::prost::alloc::string::String>,
6286 /// Only applies to Service Type: LoadBalancer.
6287 /// This feature depends on whether the underlying cloud-provider supports specifying
6288 /// the loadBalancerIP when a load balancer is created.
6289 /// This field will be ignored if the cloud-provider does not support the feature.
6290 /// Deprecated: This field was under-specified and its meaning varies across implementations.
6291 /// Using it is non-portable and it may not support dual-stack.
6292 /// Users are encouraged to use implementation-specific annotations when available.
6293 /// +optional
6294 #[prost(string, optional, tag = "8")]
6295 pub load_balancer_ip: ::core::option::Option<::prost::alloc::string::String>,
6296 /// If specified and supported by the platform, this will restrict traffic through the cloud-provider
6297 /// load-balancer will be restricted to the specified client IPs. This field will be ignored if the
6298 /// cloud-provider does not support the feature."
6299 /// More info: <https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/>
6300 /// +optional
6301 /// +listType=atomic
6302 #[prost(string, repeated, tag = "9")]
6303 pub load_balancer_source_ranges: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6304 /// externalName is the external reference that discovery mechanisms will
6305 /// return as an alias for this service (e.g. a DNS CNAME record). No
6306 /// proxying will be involved. Must be a lowercase RFC-1123 hostname
6307 /// (<https://tools.ietf.org/html/rfc1123>) and requires `type` to be "ExternalName".
6308 /// +optional
6309 #[prost(string, optional, tag = "10")]
6310 pub external_name: ::core::option::Option<::prost::alloc::string::String>,
6311 /// externalTrafficPolicy describes how nodes distribute service traffic they
6312 /// receive on one of the Service's "externally-facing" addresses (NodePorts,
6313 /// ExternalIPs, and LoadBalancer IPs). If set to "Local", the proxy will configure
6314 /// the service in a way that assumes that external load balancers will take care
6315 /// of balancing the service traffic between nodes, and so each node will deliver
6316 /// traffic only to the node-local endpoints of the service, without masquerading
6317 /// the client source IP. (Traffic mistakenly sent to a node with no endpoints will
6318 /// be dropped.) The default value, "Cluster", uses the standard behavior of
6319 /// routing to all endpoints evenly (possibly modified by topology and other
6320 /// features). Note that traffic sent to an External IP or LoadBalancer IP from
6321 /// within the cluster will always get "Cluster" semantics, but clients sending to
6322 /// a NodePort from within the cluster may need to take traffic policy into account
6323 /// when picking a node.
6324 /// +optional
6325 #[prost(string, optional, tag = "11")]
6326 pub external_traffic_policy: ::core::option::Option<::prost::alloc::string::String>,
6327 /// healthCheckNodePort specifies the healthcheck nodePort for the service.
6328 /// This only applies when type is set to LoadBalancer and
6329 /// externalTrafficPolicy is set to Local. If a value is specified, is
6330 /// in-range, and is not in use, it will be used. If not specified, a value
6331 /// will be automatically allocated. External systems (e.g. load-balancers)
6332 /// can use this port to determine if a given node holds endpoints for this
6333 /// service or not. If this field is specified when creating a Service
6334 /// which does not need it, creation will fail. This field will be wiped
6335 /// when updating a Service to no longer need it (e.g. changing type).
6336 /// This field cannot be updated once set.
6337 /// +optional
6338 #[prost(int32, optional, tag = "12")]
6339 pub health_check_node_port: ::core::option::Option<i32>,
6340 /// publishNotReadyAddresses indicates that any agent which deals with endpoints for this
6341 /// Service should disregard any indications of ready/not-ready.
6342 /// The primary use case for setting this field is for a StatefulSet's Headless Service to
6343 /// propagate SRV DNS records for its Pods for the purpose of peer discovery.
6344 /// The Kubernetes controllers that generate Endpoints and EndpointSlice resources for
6345 /// Services interpret this to mean that all endpoints are considered "ready" even if the
6346 /// Pods themselves are not. Agents which consume only Kubernetes generated endpoints
6347 /// through the Endpoints or EndpointSlice resources can safely assume this behavior.
6348 /// +optional
6349 #[prost(bool, optional, tag = "13")]
6350 pub publish_not_ready_addresses: ::core::option::Option<bool>,
6351 /// sessionAffinityConfig contains the configurations of session affinity.
6352 /// +optional
6353 #[prost(message, optional, tag = "14")]
6354 pub session_affinity_config: ::core::option::Option<SessionAffinityConfig>,
6355 /// IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this
6356 /// service. This field is usually assigned automatically based on cluster
6357 /// configuration and the ipFamilyPolicy field. If this field is specified
6358 /// manually, the requested family is available in the cluster,
6359 /// and ipFamilyPolicy allows it, it will be used; otherwise creation of
6360 /// the service will fail. This field is conditionally mutable: it allows
6361 /// for adding or removing a secondary IP family, but it does not allow
6362 /// changing the primary IP family of the Service. Valid values are "IPv4"
6363 /// and "IPv6". This field only applies to Services of types ClusterIP,
6364 /// NodePort, and LoadBalancer, and does apply to "headless" services.
6365 /// This field will be wiped when updating a Service to type ExternalName.
6366 ///
6367 /// This field may hold a maximum of two entries (dual-stack families, in
6368 /// either order). These families must correspond to the values of the
6369 /// clusterIPs field, if specified. Both clusterIPs and ipFamilies are
6370 /// governed by the ipFamilyPolicy field.
6371 /// +listType=atomic
6372 /// +optional
6373 #[prost(string, repeated, tag = "19")]
6374 pub ip_families: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6375 /// IPFamilyPolicy represents the dual-stack-ness requested or required by
6376 /// this Service. If there is no value provided, then this field will be set
6377 /// to SingleStack. Services can be "SingleStack" (a single IP family),
6378 /// "PreferDualStack" (two IP families on dual-stack configured clusters or
6379 /// a single IP family on single-stack clusters), or "RequireDualStack"
6380 /// (two IP families on dual-stack configured clusters, otherwise fail). The
6381 /// ipFamilies and clusterIPs fields depend on the value of this field. This
6382 /// field will be wiped when updating a service to type ExternalName.
6383 /// +optional
6384 #[prost(string, optional, tag = "17")]
6385 pub ip_family_policy: ::core::option::Option<::prost::alloc::string::String>,
6386 /// allocateLoadBalancerNodePorts defines if NodePorts will be automatically
6387 /// allocated for services with type LoadBalancer. Default is "true". It
6388 /// may be set to "false" if the cluster load-balancer does not rely on
6389 /// NodePorts. If the caller requests specific NodePorts (by specifying a
6390 /// value), those requests will be respected, regardless of this field.
6391 /// This field may only be set for services with type LoadBalancer and will
6392 /// be cleared if the type is changed to any other type.
6393 /// +optional
6394 #[prost(bool, optional, tag = "20")]
6395 pub allocate_load_balancer_node_ports: ::core::option::Option<bool>,
6396 /// loadBalancerClass is the class of the load balancer implementation this Service belongs to.
6397 /// If specified, the value of this field must be a label-style identifier, with an optional prefix,
6398 /// e.g. "internal-vip" or "example.com/internal-vip". Unprefixed names are reserved for end-users.
6399 /// This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load
6400 /// balancer implementation is used, today this is typically done through the cloud provider integration,
6401 /// but should apply for any default implementation. If set, it is assumed that a load balancer
6402 /// implementation is watching for Services with a matching class. Any default load balancer
6403 /// implementation (e.g. cloud providers) should ignore Services that set this field.
6404 /// This field can only be set when creating or updating a Service to type 'LoadBalancer'.
6405 /// Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.
6406 /// +optional
6407 #[prost(string, optional, tag = "21")]
6408 pub load_balancer_class: ::core::option::Option<::prost::alloc::string::String>,
6409 /// InternalTrafficPolicy describes how nodes distribute service traffic they
6410 /// receive on the ClusterIP. If set to "Local", the proxy will assume that pods
6411 /// only want to talk to endpoints of the service on the same node as the pod,
6412 /// dropping the traffic if there are no local endpoints. The default value,
6413 /// "Cluster", uses the standard behavior of routing to all endpoints evenly
6414 /// (possibly modified by topology and other features).
6415 /// +optional
6416 #[prost(string, optional, tag = "22")]
6417 pub internal_traffic_policy: ::core::option::Option<::prost::alloc::string::String>,
6418 /// TrafficDistribution offers a way to express preferences for how traffic
6419 /// is distributed to Service endpoints. Implementations can use this field
6420 /// as a hint, but are not required to guarantee strict adherence. If the
6421 /// field is not set, the implementation will apply its default routing
6422 /// strategy. If set to "PreferClose", implementations should prioritize
6423 /// endpoints that are in the same zone.
6424 /// +featureGate=ServiceTrafficDistribution
6425 /// +optional
6426 #[prost(string, optional, tag = "23")]
6427 pub traffic_distribution: ::core::option::Option<::prost::alloc::string::String>,
6428}
6429/// ServiceStatus represents the current status of a service.
6430#[derive(Clone, PartialEq, ::prost::Message)]
6431pub struct ServiceStatus {
6432 /// LoadBalancer contains the current status of the load-balancer,
6433 /// if one is present.
6434 /// +optional
6435 #[prost(message, optional, tag = "1")]
6436 pub load_balancer: ::core::option::Option<LoadBalancerStatus>,
6437 /// Current service state
6438 /// +optional
6439 /// +patchMergeKey=type
6440 /// +patchStrategy=merge
6441 /// +listType=map
6442 /// +listMapKey=type
6443 #[prost(message, repeated, tag = "2")]
6444 pub conditions:
6445 ::prost::alloc::vec::Vec<super::super::super::apimachinery::pkg::apis::meta::v1::Condition>,
6446}
6447/// SessionAffinityConfig represents the configurations of session affinity.
6448#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
6449pub struct SessionAffinityConfig {
6450 /// clientIP contains the configurations of Client IP based session affinity.
6451 /// +optional
6452 #[prost(message, optional, tag = "1")]
6453 pub client_ip: ::core::option::Option<ClientIpConfig>,
6454}
6455/// SleepAction describes a "sleep" action.
6456#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
6457pub struct SleepAction {
6458 /// Seconds is the number of seconds to sleep.
6459 #[prost(int64, optional, tag = "1")]
6460 pub seconds: ::core::option::Option<i64>,
6461}
6462/// Represents a StorageOS persistent volume resource.
6463#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
6464pub struct StorageOsPersistentVolumeSource {
6465 /// volumeName is the human-readable name of the StorageOS volume. Volume
6466 /// names are only unique within a namespace.
6467 #[prost(string, optional, tag = "1")]
6468 pub volume_name: ::core::option::Option<::prost::alloc::string::String>,
6469 /// volumeNamespace specifies the scope of the volume within StorageOS. If no
6470 /// namespace is specified then the Pod's namespace will be used. This allows the
6471 /// Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
6472 /// Set VolumeName to any name to override the default behaviour.
6473 /// Set to "default" if you are not using namespaces within StorageOS.
6474 /// Namespaces that do not pre-exist within StorageOS will be created.
6475 /// +optional
6476 #[prost(string, optional, tag = "2")]
6477 pub volume_namespace: ::core::option::Option<::prost::alloc::string::String>,
6478 /// fsType is the filesystem type to mount.
6479 /// Must be a filesystem type supported by the host operating system.
6480 /// Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
6481 /// +optional
6482 #[prost(string, optional, tag = "3")]
6483 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
6484 /// readOnly defaults to false (read/write). ReadOnly here will force
6485 /// the ReadOnly setting in VolumeMounts.
6486 /// +optional
6487 #[prost(bool, optional, tag = "4")]
6488 pub read_only: ::core::option::Option<bool>,
6489 /// secretRef specifies the secret to use for obtaining the StorageOS API
6490 /// credentials. If not specified, default values will be attempted.
6491 /// +optional
6492 #[prost(message, optional, tag = "5")]
6493 pub secret_ref: ::core::option::Option<ObjectReference>,
6494}
6495/// Represents a StorageOS persistent volume resource.
6496#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
6497pub struct StorageOsVolumeSource {
6498 /// volumeName is the human-readable name of the StorageOS volume. Volume
6499 /// names are only unique within a namespace.
6500 #[prost(string, optional, tag = "1")]
6501 pub volume_name: ::core::option::Option<::prost::alloc::string::String>,
6502 /// volumeNamespace specifies the scope of the volume within StorageOS. If no
6503 /// namespace is specified then the Pod's namespace will be used. This allows the
6504 /// Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
6505 /// Set VolumeName to any name to override the default behaviour.
6506 /// Set to "default" if you are not using namespaces within StorageOS.
6507 /// Namespaces that do not pre-exist within StorageOS will be created.
6508 /// +optional
6509 #[prost(string, optional, tag = "2")]
6510 pub volume_namespace: ::core::option::Option<::prost::alloc::string::String>,
6511 /// fsType is the filesystem type to mount.
6512 /// Must be a filesystem type supported by the host operating system.
6513 /// Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
6514 /// +optional
6515 #[prost(string, optional, tag = "3")]
6516 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
6517 /// readOnly defaults to false (read/write). ReadOnly here will force
6518 /// the ReadOnly setting in VolumeMounts.
6519 /// +optional
6520 #[prost(bool, optional, tag = "4")]
6521 pub read_only: ::core::option::Option<bool>,
6522 /// secretRef specifies the secret to use for obtaining the StorageOS API
6523 /// credentials. If not specified, default values will be attempted.
6524 /// +optional
6525 #[prost(message, optional, tag = "5")]
6526 pub secret_ref: ::core::option::Option<LocalObjectReference>,
6527}
6528/// Sysctl defines a kernel parameter to be set
6529#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
6530pub struct Sysctl {
6531 /// Name of a property to set
6532 #[prost(string, optional, tag = "1")]
6533 pub name: ::core::option::Option<::prost::alloc::string::String>,
6534 /// Value of a property to set
6535 #[prost(string, optional, tag = "2")]
6536 pub value: ::core::option::Option<::prost::alloc::string::String>,
6537}
6538/// TCPSocketAction describes an action based on opening a socket
6539#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
6540pub struct TcpSocketAction {
6541 /// Number or name of the port to access on the container.
6542 /// Number must be in the range 1 to 65535.
6543 /// Name must be an IANA_SVC_NAME.
6544 #[prost(message, optional, tag = "1")]
6545 pub port: ::core::option::Option<super::super::super::apimachinery::pkg::util::intstr::IntOrString>,
6546 /// Optional: Host name to connect to, defaults to the pod IP.
6547 /// +optional
6548 #[prost(string, optional, tag = "2")]
6549 pub host: ::core::option::Option<::prost::alloc::string::String>,
6550}
6551/// The node this Taint is attached to has the "effect" on
6552/// any pod that does not tolerate the Taint.
6553#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
6554pub struct Taint {
6555 /// Required. The taint key to be applied to a node.
6556 #[prost(string, optional, tag = "1")]
6557 pub key: ::core::option::Option<::prost::alloc::string::String>,
6558 /// The taint value corresponding to the taint key.
6559 /// +optional
6560 #[prost(string, optional, tag = "2")]
6561 pub value: ::core::option::Option<::prost::alloc::string::String>,
6562 /// Required. The effect of the taint on pods
6563 /// that do not tolerate the taint.
6564 /// Valid effects are NoSchedule, PreferNoSchedule and NoExecute.
6565 #[prost(string, optional, tag = "3")]
6566 pub effect: ::core::option::Option<::prost::alloc::string::String>,
6567 /// TimeAdded represents the time at which the taint was added.
6568 /// It is only written for NoExecute taints.
6569 /// +optional
6570 #[prost(message, optional, tag = "4")]
6571 pub time_added: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::Time>,
6572}
6573/// The pod this Toleration is attached to tolerates any taint that matches
6574/// the triple <key,value,effect> using the matching operator <operator>.
6575#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
6576pub struct Toleration {
6577 /// Key is the taint key that the toleration applies to. Empty means match all taint keys.
6578 /// If the key is empty, operator must be Exists; this combination means to match all values and all keys.
6579 /// +optional
6580 #[prost(string, optional, tag = "1")]
6581 pub key: ::core::option::Option<::prost::alloc::string::String>,
6582 /// Operator represents a key's relationship to the value.
6583 /// Valid operators are Exists and Equal. Defaults to Equal.
6584 /// Exists is equivalent to wildcard for value, so that a pod can
6585 /// tolerate all taints of a particular category.
6586 /// +optional
6587 #[prost(string, optional, tag = "2")]
6588 pub operator: ::core::option::Option<::prost::alloc::string::String>,
6589 /// Value is the taint value the toleration matches to.
6590 /// If the operator is Exists, the value should be empty, otherwise just a regular string.
6591 /// +optional
6592 #[prost(string, optional, tag = "3")]
6593 pub value: ::core::option::Option<::prost::alloc::string::String>,
6594 /// Effect indicates the taint effect to match. Empty means match all taint effects.
6595 /// When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
6596 /// +optional
6597 #[prost(string, optional, tag = "4")]
6598 pub effect: ::core::option::Option<::prost::alloc::string::String>,
6599 /// TolerationSeconds represents the period of time the toleration (which must be
6600 /// of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
6601 /// it is not set, which means tolerate the taint forever (do not evict). Zero and
6602 /// negative values will be treated as 0 (evict immediately) by the system.
6603 /// +optional
6604 #[prost(int64, optional, tag = "5")]
6605 pub toleration_seconds: ::core::option::Option<i64>,
6606}
6607/// A topology selector requirement is a selector that matches given label.
6608/// This is an alpha feature and may change in the future.
6609#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
6610pub struct TopologySelectorLabelRequirement {
6611 /// The label key that the selector applies to.
6612 #[prost(string, optional, tag = "1")]
6613 pub key: ::core::option::Option<::prost::alloc::string::String>,
6614 /// An array of string values. One value must match the label to be selected.
6615 /// Each entry in Values is ORed.
6616 /// +listType=atomic
6617 #[prost(string, repeated, tag = "2")]
6618 pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6619}
6620/// A topology selector term represents the result of label queries.
6621/// A null or empty topology selector term matches no objects.
6622/// The requirements of them are ANDed.
6623/// It provides a subset of functionality as NodeSelectorTerm.
6624/// This is an alpha feature and may change in the future.
6625/// +structType=atomic
6626#[derive(Clone, PartialEq, ::prost::Message)]
6627pub struct TopologySelectorTerm {
6628 /// A list of topology selector requirements by labels.
6629 /// +optional
6630 /// +listType=atomic
6631 #[prost(message, repeated, tag = "1")]
6632 pub match_label_expressions: ::prost::alloc::vec::Vec<TopologySelectorLabelRequirement>,
6633}
6634/// TopologySpreadConstraint specifies how to spread matching pods among the given topology.
6635#[derive(Clone, PartialEq, ::prost::Message)]
6636pub struct TopologySpreadConstraint {
6637 /// MaxSkew describes the degree to which pods may be unevenly distributed.
6638 /// When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference
6639 /// between the number of matching pods in the target topology and the global minimum.
6640 /// The global minimum is the minimum number of matching pods in an eligible domain
6641 /// or zero if the number of eligible domains is less than MinDomains.
6642 /// For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same
6643 /// labelSelector spread as 2/2/1:
6644 /// In this case, the global minimum is 1.
6645 /// +-------+-------+-------+
6646 /// | zone1 | zone2 | zone3 |
6647 /// +-------+-------+-------+
6648 /// | P P | P P | P |
6649 /// +-------+-------+-------+
6650 /// - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2;
6651 /// scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2)
6652 /// violate MaxSkew(1).
6653 /// - if MaxSkew is 2, incoming pod can be scheduled onto any zone.
6654 /// When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence
6655 /// to topologies that satisfy it.
6656 /// It's a required field. Default value is 1 and 0 is not allowed.
6657 #[prost(int32, optional, tag = "1")]
6658 pub max_skew: ::core::option::Option<i32>,
6659 /// TopologyKey is the key of node labels. Nodes that have a label with this key
6660 /// and identical values are considered to be in the same topology.
6661 /// We consider each <key, value> as a "bucket", and try to put balanced number
6662 /// of pods into each bucket.
6663 /// We define a domain as a particular instance of a topology.
6664 /// Also, we define an eligible domain as a domain whose nodes meet the requirements of
6665 /// nodeAffinityPolicy and nodeTaintsPolicy.
6666 /// e.g. If TopologyKey is "kubernetes.io/hostname", each Node is a domain of that topology.
6667 /// And, if TopologyKey is "topology.kubernetes.io/zone", each zone is a domain of that topology.
6668 /// It's a required field.
6669 #[prost(string, optional, tag = "2")]
6670 pub topology_key: ::core::option::Option<::prost::alloc::string::String>,
6671 /// WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy
6672 /// the spread constraint.
6673 /// - DoNotSchedule (default) tells the scheduler not to schedule it.
6674 /// - ScheduleAnyway tells the scheduler to schedule the pod in any location,
6675 /// but giving higher precedence to topologies that would help reduce the
6676 /// skew.
6677 /// A constraint is considered "Unsatisfiable" for an incoming pod
6678 /// if and only if every possible node assignment for that pod would violate
6679 /// "MaxSkew" on some topology.
6680 /// For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same
6681 /// labelSelector spread as 3/1/1:
6682 /// +-------+-------+-------+
6683 /// | zone1 | zone2 | zone3 |
6684 /// +-------+-------+-------+
6685 /// | P P P | P | P |
6686 /// +-------+-------+-------+
6687 /// If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled
6688 /// to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies
6689 /// MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler
6690 /// won't make it *more* imbalanced.
6691 /// It's a required field.
6692 #[prost(string, optional, tag = "3")]
6693 pub when_unsatisfiable: ::core::option::Option<::prost::alloc::string::String>,
6694 /// LabelSelector is used to find matching pods.
6695 /// Pods that match this label selector are counted to determine the number of pods
6696 /// in their corresponding topology domain.
6697 /// +optional
6698 #[prost(message, optional, tag = "4")]
6699 pub label_selector:
6700 ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::LabelSelector>,
6701 /// MinDomains indicates a minimum number of eligible domains.
6702 /// When the number of eligible domains with matching topology keys is less than minDomains,
6703 /// Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed.
6704 /// And when the number of eligible domains with matching topology keys equals or greater than minDomains,
6705 /// this value has no effect on scheduling.
6706 /// As a result, when the number of eligible domains is less than minDomains,
6707 /// scheduler won't schedule more than maxSkew Pods to those domains.
6708 /// If value is nil, the constraint behaves as if MinDomains is equal to 1.
6709 /// Valid values are integers greater than 0.
6710 /// When value is not nil, WhenUnsatisfiable must be DoNotSchedule.
6711 ///
6712 /// For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same
6713 /// labelSelector spread as 2/2/2:
6714 /// +-------+-------+-------+
6715 /// | zone1 | zone2 | zone3 |
6716 /// +-------+-------+-------+
6717 /// | P P | P P | P P |
6718 /// +-------+-------+-------+
6719 /// The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0.
6720 /// In this situation, new pod with the same labelSelector cannot be scheduled,
6721 /// because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones,
6722 /// it will violate MaxSkew.
6723 /// +optional
6724 #[prost(int32, optional, tag = "5")]
6725 pub min_domains: ::core::option::Option<i32>,
6726 /// NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector
6727 /// when calculating pod topology spread skew. Options are:
6728 /// - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations.
6729 /// - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.
6730 ///
6731 /// If this value is nil, the behavior is equivalent to the Honor policy.
6732 /// +optional
6733 #[prost(string, optional, tag = "6")]
6734 pub node_affinity_policy: ::core::option::Option<::prost::alloc::string::String>,
6735 /// NodeTaintsPolicy indicates how we will treat node taints when calculating
6736 /// pod topology spread skew. Options are:
6737 /// - Honor: nodes without taints, along with tainted nodes for which the incoming pod
6738 /// has a toleration, are included.
6739 /// - Ignore: node taints are ignored. All nodes are included.
6740 ///
6741 /// If this value is nil, the behavior is equivalent to the Ignore policy.
6742 /// +optional
6743 #[prost(string, optional, tag = "7")]
6744 pub node_taints_policy: ::core::option::Option<::prost::alloc::string::String>,
6745 /// MatchLabelKeys is a set of pod label keys to select the pods over which
6746 /// spreading will be calculated. The keys are used to lookup values from the
6747 /// incoming pod labels, those key-value labels are ANDed with labelSelector
6748 /// to select the group of existing pods over which spreading will be calculated
6749 /// for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector.
6750 /// MatchLabelKeys cannot be set when LabelSelector isn't set.
6751 /// Keys that don't exist in the incoming pod labels will
6752 /// be ignored. A null or empty list means only match against labelSelector.
6753 ///
6754 /// This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).
6755 /// +listType=atomic
6756 /// +optional
6757 #[prost(string, repeated, tag = "8")]
6758 pub match_label_keys: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6759}
6760/// TypedLocalObjectReference contains enough information to let you locate the
6761/// typed referenced object inside the same namespace.
6762/// ---
6763/// New uses of this type are discouraged because of difficulty describing its usage when embedded in APIs.
6764/// 1. Invalid usage help. It is impossible to add specific help for individual usage. In most embedded usages, there are particular
6765/// restrictions like, "must refer only to types A and B" or "UID not honored" or "name must be restricted".
6766/// Those cannot be well described when embedded.
6767/// 2. Inconsistent validation. Because the usages are different, the validation rules are different by usage, which makes it hard for users to predict what will happen.
6768/// 3. The fields are both imprecise and overly precise. Kind is not a precise mapping to a URL. This can produce ambiguity
6769/// during interpretation and require a REST mapping. In most cases, the dependency is on the group,resource tuple
6770/// and the version of the actual struct is irrelevant.
6771/// 4. We cannot easily change it. Because this type is embedded in many locations, updates to this type
6772/// will affect numerous schemas. Don't make new APIs embed an underspecified API type they do not control.
6773///
6774/// Instead of using this type, create a locally provided and used type that is well-focused on your reference.
6775/// For example, ServiceReferences for admission registration: <https://github.com/kubernetes/api/blob/release-1.17/admissionregistration/v1/types.go#L533> .
6776/// +structType=atomic
6777#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
6778pub struct TypedLocalObjectReference {
6779 /// APIGroup is the group for the resource being referenced.
6780 /// If APIGroup is not specified, the specified Kind must be in the core API group.
6781 /// For any other third-party types, APIGroup is required.
6782 /// +optional
6783 #[prost(string, optional, tag = "1")]
6784 pub api_group: ::core::option::Option<::prost::alloc::string::String>,
6785 /// Kind is the type of resource being referenced
6786 #[prost(string, optional, tag = "2")]
6787 pub kind: ::core::option::Option<::prost::alloc::string::String>,
6788 /// Name is the name of resource being referenced
6789 #[prost(string, optional, tag = "3")]
6790 pub name: ::core::option::Option<::prost::alloc::string::String>,
6791}
6792/// TypedObjectReference contains enough information to let you locate the typed referenced object
6793#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
6794pub struct TypedObjectReference {
6795 /// APIGroup is the group for the resource being referenced.
6796 /// If APIGroup is not specified, the specified Kind must be in the core API group.
6797 /// For any other third-party types, APIGroup is required.
6798 /// +optional
6799 #[prost(string, optional, tag = "1")]
6800 pub api_group: ::core::option::Option<::prost::alloc::string::String>,
6801 /// Kind is the type of resource being referenced
6802 #[prost(string, optional, tag = "2")]
6803 pub kind: ::core::option::Option<::prost::alloc::string::String>,
6804 /// Name is the name of resource being referenced
6805 #[prost(string, optional, tag = "3")]
6806 pub name: ::core::option::Option<::prost::alloc::string::String>,
6807 /// Namespace is the namespace of resource being referenced
6808 /// Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details.
6809 /// (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
6810 /// +featureGate=CrossNamespaceVolumeDataSource
6811 /// +optional
6812 #[prost(string, optional, tag = "4")]
6813 pub namespace: ::core::option::Option<::prost::alloc::string::String>,
6814}
6815/// Volume represents a named volume in a pod that may be accessed by any container in the pod.
6816#[derive(Clone, PartialEq, ::prost::Message)]
6817pub struct Volume {
6818 /// name of the volume.
6819 /// Must be a DNS_LABEL and unique within the pod.
6820 /// More info: <https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names>
6821 #[prost(string, optional, tag = "1")]
6822 pub name: ::core::option::Option<::prost::alloc::string::String>,
6823 /// volumeSource represents the location and type of the mounted volume.
6824 /// If not specified, the Volume is implied to be an EmptyDir.
6825 /// This implied behavior is deprecated and will be removed in a future version.
6826 #[prost(message, optional, tag = "2")]
6827 pub volume_source: ::core::option::Option<VolumeSource>,
6828}
6829/// volumeDevice describes a mapping of a raw block device within a container.
6830#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
6831pub struct VolumeDevice {
6832 /// name must match the name of a persistentVolumeClaim in the pod
6833 #[prost(string, optional, tag = "1")]
6834 pub name: ::core::option::Option<::prost::alloc::string::String>,
6835 /// devicePath is the path inside of the container that the device will be mapped to.
6836 #[prost(string, optional, tag = "2")]
6837 pub device_path: ::core::option::Option<::prost::alloc::string::String>,
6838}
6839/// VolumeMount describes a mounting of a Volume within a container.
6840#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
6841pub struct VolumeMount {
6842 /// This must match the Name of a Volume.
6843 #[prost(string, optional, tag = "1")]
6844 pub name: ::core::option::Option<::prost::alloc::string::String>,
6845 /// Mounted read-only if true, read-write otherwise (false or unspecified).
6846 /// Defaults to false.
6847 /// +optional
6848 #[prost(bool, optional, tag = "2")]
6849 pub read_only: ::core::option::Option<bool>,
6850 /// RecursiveReadOnly specifies whether read-only mounts should be handled
6851 /// recursively.
6852 ///
6853 /// If ReadOnly is false, this field has no meaning and must be unspecified.
6854 ///
6855 /// If ReadOnly is true, and this field is set to Disabled, the mount is not made
6856 /// recursively read-only. If this field is set to IfPossible, the mount is made
6857 /// recursively read-only, if it is supported by the container runtime. If this
6858 /// field is set to Enabled, the mount is made recursively read-only if it is
6859 /// supported by the container runtime, otherwise the pod will not be started and
6860 /// an error will be generated to indicate the reason.
6861 ///
6862 /// If this field is set to IfPossible or Enabled, MountPropagation must be set to
6863 /// None (or be unspecified, which defaults to None).
6864 ///
6865 /// If this field is not specified, it is treated as an equivalent of Disabled.
6866 ///
6867 /// +featureGate=RecursiveReadOnlyMounts
6868 /// +optional
6869 #[prost(string, optional, tag = "7")]
6870 pub recursive_read_only: ::core::option::Option<::prost::alloc::string::String>,
6871 /// Path within the container at which the volume should be mounted. Must
6872 /// not contain ':'.
6873 #[prost(string, optional, tag = "3")]
6874 pub mount_path: ::core::option::Option<::prost::alloc::string::String>,
6875 /// Path within the volume from which the container's volume should be mounted.
6876 /// Defaults to "" (volume's root).
6877 /// +optional
6878 #[prost(string, optional, tag = "4")]
6879 pub sub_path: ::core::option::Option<::prost::alloc::string::String>,
6880 /// mountPropagation determines how mounts are propagated from the host
6881 /// to container and the other way around.
6882 /// When not set, MountPropagationNone is used.
6883 /// This field is beta in 1.10.
6884 /// When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified
6885 /// (which defaults to None).
6886 /// +optional
6887 #[prost(string, optional, tag = "5")]
6888 pub mount_propagation: ::core::option::Option<::prost::alloc::string::String>,
6889 /// Expanded path within the volume from which the container's volume should be mounted.
6890 /// Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.
6891 /// Defaults to "" (volume's root).
6892 /// SubPathExpr and SubPath are mutually exclusive.
6893 /// +optional
6894 #[prost(string, optional, tag = "6")]
6895 pub sub_path_expr: ::core::option::Option<::prost::alloc::string::String>,
6896}
6897/// VolumeMountStatus shows status of volume mounts.
6898#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
6899pub struct VolumeMountStatus {
6900 /// Name corresponds to the name of the original VolumeMount.
6901 #[prost(string, optional, tag = "1")]
6902 pub name: ::core::option::Option<::prost::alloc::string::String>,
6903 /// MountPath corresponds to the original VolumeMount.
6904 #[prost(string, optional, tag = "2")]
6905 pub mount_path: ::core::option::Option<::prost::alloc::string::String>,
6906 /// ReadOnly corresponds to the original VolumeMount.
6907 /// +optional
6908 #[prost(bool, optional, tag = "3")]
6909 pub read_only: ::core::option::Option<bool>,
6910 /// RecursiveReadOnly must be set to Disabled, Enabled, or unspecified (for non-readonly mounts).
6911 /// An IfPossible value in the original VolumeMount must be translated to Disabled or Enabled,
6912 /// depending on the mount result.
6913 /// +featureGate=RecursiveReadOnlyMounts
6914 /// +optional
6915 #[prost(string, optional, tag = "4")]
6916 pub recursive_read_only: ::core::option::Option<::prost::alloc::string::String>,
6917}
6918/// VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from.
6919#[derive(Clone, PartialEq, ::prost::Message)]
6920pub struct VolumeNodeAffinity {
6921 /// required specifies hard node constraints that must be met.
6922 #[prost(message, optional, tag = "1")]
6923 pub required: ::core::option::Option<NodeSelector>,
6924}
6925/// Projection that may be projected along with other supported volume types.
6926/// Exactly one of these fields must be set.
6927#[derive(Clone, PartialEq, ::prost::Message)]
6928pub struct VolumeProjection {
6929 /// secret information about the secret data to project
6930 /// +optional
6931 #[prost(message, optional, tag = "1")]
6932 pub secret: ::core::option::Option<SecretProjection>,
6933 /// downwardAPI information about the downwardAPI data to project
6934 /// +optional
6935 #[prost(message, optional, tag = "2")]
6936 pub downward_api: ::core::option::Option<DownwardAPIProjection>,
6937 /// configMap information about the configMap data to project
6938 /// +optional
6939 #[prost(message, optional, tag = "3")]
6940 pub config_map: ::core::option::Option<ConfigMapProjection>,
6941 /// serviceAccountToken is information about the serviceAccountToken data to project
6942 /// +optional
6943 #[prost(message, optional, tag = "4")]
6944 pub service_account_token: ::core::option::Option<ServiceAccountTokenProjection>,
6945 /// ClusterTrustBundle allows a pod to access the `.spec.trustBundle` field
6946 /// of ClusterTrustBundle objects in an auto-updating file.
6947 ///
6948 /// Alpha, gated by the ClusterTrustBundleProjection feature gate.
6949 ///
6950 /// ClusterTrustBundle objects can either be selected by name, or by the
6951 /// combination of signer name and a label selector.
6952 ///
6953 /// Kubelet performs aggressive normalization of the PEM contents written
6954 /// into the pod filesystem. Esoteric PEM features such as inter-block
6955 /// comments and block headers are stripped. Certificates are deduplicated.
6956 /// The ordering of certificates within the file is arbitrary, and Kubelet
6957 /// may change the order over time.
6958 ///
6959 /// +featureGate=ClusterTrustBundleProjection
6960 /// +optional
6961 #[prost(message, optional, tag = "5")]
6962 pub cluster_trust_bundle: ::core::option::Option<ClusterTrustBundleProjection>,
6963}
6964/// VolumeResourceRequirements describes the storage resource requirements for a volume.
6965#[derive(Clone, PartialEq, ::prost::Message)]
6966pub struct VolumeResourceRequirements {
6967 /// Limits describes the maximum amount of compute resources allowed.
6968 /// More info: <https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/>
6969 /// +optional
6970 #[prost(btree_map = "string, message", tag = "1")]
6971 pub limits: ::prost::alloc::collections::BTreeMap<
6972 ::prost::alloc::string::String,
6973 super::super::super::apimachinery::pkg::api::resource::Quantity,
6974 >,
6975 /// Requests describes the minimum amount of compute resources required.
6976 /// If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
6977 /// otherwise to an implementation-defined value. Requests cannot exceed Limits.
6978 /// More info: <https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/>
6979 /// +optional
6980 #[prost(btree_map = "string, message", tag = "2")]
6981 pub requests: ::prost::alloc::collections::BTreeMap<
6982 ::prost::alloc::string::String,
6983 super::super::super::apimachinery::pkg::api::resource::Quantity,
6984 >,
6985}
6986/// Represents the source of a volume to mount.
6987/// Only one of its members may be specified.
6988#[derive(Clone, PartialEq, ::prost::Message)]
6989pub struct VolumeSource {
6990 /// hostPath represents a pre-existing file or directory on the host
6991 /// machine that is directly exposed to the container. This is generally
6992 /// used for system agents or other privileged things that are allowed
6993 /// to see the host machine. Most containers will NOT need this.
6994 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#hostpath>
6995 /// ---
6996 /// TODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not
6997 /// mount host directories as read/write.
6998 /// +optional
6999 #[prost(message, optional, tag = "1")]
7000 pub host_path: ::core::option::Option<HostPathVolumeSource>,
7001 /// emptyDir represents a temporary directory that shares a pod's lifetime.
7002 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#emptydir>
7003 /// +optional
7004 #[prost(message, optional, tag = "2")]
7005 pub empty_dir: ::core::option::Option<EmptyDirVolumeSource>,
7006 /// gcePersistentDisk represents a GCE Disk resource that is attached to a
7007 /// kubelet's host machine and then exposed to the pod.
7008 /// Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree
7009 /// gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver.
7010 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk>
7011 /// +optional
7012 #[prost(message, optional, tag = "3")]
7013 pub gce_persistent_disk: ::core::option::Option<GcePersistentDiskVolumeSource>,
7014 /// awsElasticBlockStore represents an AWS Disk resource that is attached to a
7015 /// kubelet's host machine and then exposed to the pod.
7016 /// Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree
7017 /// awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver.
7018 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore>
7019 /// +optional
7020 #[prost(message, optional, tag = "4")]
7021 pub aws_elastic_block_store: ::core::option::Option<AwsElasticBlockStoreVolumeSource>,
7022 /// gitRepo represents a git repository at a particular revision.
7023 /// Deprecated: GitRepo is deprecated. To provision a container with a git repo, mount an
7024 /// EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir
7025 /// into the Pod's container.
7026 /// +optional
7027 #[prost(message, optional, tag = "5")]
7028 pub git_repo: ::core::option::Option<GitRepoVolumeSource>,
7029 /// secret represents a secret that should populate this volume.
7030 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#secret>
7031 /// +optional
7032 #[prost(message, optional, tag = "6")]
7033 pub secret: ::core::option::Option<SecretVolumeSource>,
7034 /// nfs represents an NFS mount on the host that shares a pod's lifetime
7035 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#nfs>
7036 /// +optional
7037 #[prost(message, optional, tag = "7")]
7038 pub nfs: ::core::option::Option<NfsVolumeSource>,
7039 /// iscsi represents an ISCSI Disk resource that is attached to a
7040 /// kubelet's host machine and then exposed to the pod.
7041 /// More info: <https://examples.k8s.io/volumes/iscsi/README.md>
7042 /// +optional
7043 #[prost(message, optional, tag = "8")]
7044 pub iscsi: ::core::option::Option<IscsiVolumeSource>,
7045 /// glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime.
7046 /// Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported.
7047 /// More info: <https://examples.k8s.io/volumes/glusterfs/README.md>
7048 /// +optional
7049 #[prost(message, optional, tag = "9")]
7050 pub glusterfs: ::core::option::Option<GlusterfsVolumeSource>,
7051 /// persistentVolumeClaimVolumeSource represents a reference to a
7052 /// PersistentVolumeClaim in the same namespace.
7053 /// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims>
7054 /// +optional
7055 #[prost(message, optional, tag = "10")]
7056 pub persistent_volume_claim: ::core::option::Option<PersistentVolumeClaimVolumeSource>,
7057 /// rbd represents a Rados Block Device mount on the host that shares a pod's lifetime.
7058 /// Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported.
7059 /// More info: <https://examples.k8s.io/volumes/rbd/README.md>
7060 /// +optional
7061 #[prost(message, optional, tag = "11")]
7062 pub rbd: ::core::option::Option<RbdVolumeSource>,
7063 /// flexVolume represents a generic volume resource that is
7064 /// provisioned/attached using an exec based plugin.
7065 /// Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead.
7066 /// +optional
7067 #[prost(message, optional, tag = "12")]
7068 pub flex_volume: ::core::option::Option<FlexVolumeSource>,
7069 /// cinder represents a cinder volume attached and mounted on kubelets host machine.
7070 /// Deprecated: Cinder is deprecated. All operations for the in-tree cinder type
7071 /// are redirected to the cinder.csi.openstack.org CSI driver.
7072 /// More info: <https://examples.k8s.io/mysql-cinder-pd/README.md>
7073 /// +optional
7074 #[prost(message, optional, tag = "13")]
7075 pub cinder: ::core::option::Option<CinderVolumeSource>,
7076 /// cephFS represents a Ceph FS mount on the host that shares a pod's lifetime.
7077 /// Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported.
7078 /// +optional
7079 #[prost(message, optional, tag = "14")]
7080 pub cephfs: ::core::option::Option<CephFsVolumeSource>,
7081 /// flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running.
7082 /// Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported.
7083 /// +optional
7084 #[prost(message, optional, tag = "15")]
7085 pub flocker: ::core::option::Option<FlockerVolumeSource>,
7086 /// downwardAPI represents downward API about the pod that should populate this volume
7087 /// +optional
7088 #[prost(message, optional, tag = "16")]
7089 pub downward_api: ::core::option::Option<DownwardAPIVolumeSource>,
7090 /// fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
7091 /// +optional
7092 #[prost(message, optional, tag = "17")]
7093 pub fc: ::core::option::Option<FcVolumeSource>,
7094 /// azureFile represents an Azure File Service mount on the host and bind mount to the pod.
7095 /// Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type
7096 /// are redirected to the file.csi.azure.com CSI driver.
7097 /// +optional
7098 #[prost(message, optional, tag = "18")]
7099 pub azure_file: ::core::option::Option<AzureFileVolumeSource>,
7100 /// configMap represents a configMap that should populate this volume
7101 /// +optional
7102 #[prost(message, optional, tag = "19")]
7103 pub config_map: ::core::option::Option<ConfigMapVolumeSource>,
7104 /// vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine.
7105 /// Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type
7106 /// are redirected to the csi.vsphere.vmware.com CSI driver.
7107 /// +optional
7108 #[prost(message, optional, tag = "20")]
7109 pub vsphere_volume: ::core::option::Option<VsphereVirtualDiskVolumeSource>,
7110 /// quobyte represents a Quobyte mount on the host that shares a pod's lifetime.
7111 /// Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported.
7112 /// +optional
7113 #[prost(message, optional, tag = "21")]
7114 pub quobyte: ::core::option::Option<QuobyteVolumeSource>,
7115 /// azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
7116 /// Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type
7117 /// are redirected to the disk.csi.azure.com CSI driver.
7118 /// +optional
7119 #[prost(message, optional, tag = "22")]
7120 pub azure_disk: ::core::option::Option<AzureDiskVolumeSource>,
7121 /// photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine.
7122 /// Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported.
7123 #[prost(message, optional, tag = "23")]
7124 pub photon_persistent_disk: ::core::option::Option<PhotonPersistentDiskVolumeSource>,
7125 /// projected items for all in one resources secrets, configmaps, and downward API
7126 #[prost(message, optional, tag = "26")]
7127 pub projected: ::core::option::Option<ProjectedVolumeSource>,
7128 /// portworxVolume represents a portworx volume attached and mounted on kubelets host machine.
7129 /// Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type
7130 /// are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate
7131 /// is on.
7132 /// +optional
7133 #[prost(message, optional, tag = "24")]
7134 pub portworx_volume: ::core::option::Option<PortworxVolumeSource>,
7135 /// scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
7136 /// Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported.
7137 /// +optional
7138 #[prost(message, optional, tag = "25")]
7139 pub scale_io: ::core::option::Option<ScaleIoVolumeSource>,
7140 /// storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.
7141 /// Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported.
7142 /// +optional
7143 #[prost(message, optional, tag = "27")]
7144 pub storageos: ::core::option::Option<StorageOsVolumeSource>,
7145 /// csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers.
7146 /// +optional
7147 #[prost(message, optional, tag = "28")]
7148 pub csi: ::core::option::Option<CSIVolumeSource>,
7149 /// ephemeral represents a volume that is handled by a cluster storage driver.
7150 /// The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts,
7151 /// and deleted when the pod is removed.
7152 ///
7153 /// Use this if:
7154 /// a) the volume is only needed while the pod runs,
7155 /// b) features of normal volumes like restoring from snapshot or capacity
7156 /// tracking are needed,
7157 /// c) the storage driver is specified through a storage class, and
7158 /// d) the storage driver supports dynamic volume provisioning through
7159 /// a PersistentVolumeClaim (see EphemeralVolumeSource for more
7160 /// information on the connection between this volume type
7161 /// and PersistentVolumeClaim).
7162 ///
7163 /// Use PersistentVolumeClaim or one of the vendor-specific
7164 /// APIs for volumes that persist for longer than the lifecycle
7165 /// of an individual pod.
7166 ///
7167 /// Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to
7168 /// be used that way - see the documentation of the driver for
7169 /// more information.
7170 ///
7171 /// A pod can use both types of ephemeral volumes and
7172 /// persistent volumes at the same time.
7173 ///
7174 /// +optional
7175 #[prost(message, optional, tag = "29")]
7176 pub ephemeral: ::core::option::Option<EphemeralVolumeSource>,
7177 /// image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine.
7178 /// The volume is resolved at pod startup depending on which PullPolicy value is provided:
7179 ///
7180 /// - Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails.
7181 /// - Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present.
7182 /// - IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.
7183 ///
7184 /// The volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation.
7185 /// A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message.
7186 /// The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field.
7187 /// The OCI object gets mounted in a single directory (spec.containers\[*\].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images.
7188 /// The volume will be mounted read-only (ro) and non-executable files (noexec).
7189 /// Sub path mounts for containers are not supported (spec.containers\[*\].volumeMounts.subpath) before 1.33.
7190 /// The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type.
7191 /// +featureGate=ImageVolume
7192 /// +optional
7193 #[prost(message, optional, tag = "30")]
7194 pub image: ::core::option::Option<ImageVolumeSource>,
7195}
7196/// Represents a vSphere volume resource.
7197#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
7198pub struct VsphereVirtualDiskVolumeSource {
7199 /// volumePath is the path that identifies vSphere volume vmdk
7200 #[prost(string, optional, tag = "1")]
7201 pub volume_path: ::core::option::Option<::prost::alloc::string::String>,
7202 /// fsType is filesystem type to mount.
7203 /// Must be a filesystem type supported by the host operating system.
7204 /// Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
7205 /// +optional
7206 #[prost(string, optional, tag = "2")]
7207 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
7208 /// storagePolicyName is the storage Policy Based Management (SPBM) profile name.
7209 /// +optional
7210 #[prost(string, optional, tag = "3")]
7211 pub storage_policy_name: ::core::option::Option<::prost::alloc::string::String>,
7212 /// storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
7213 /// +optional
7214 #[prost(string, optional, tag = "4")]
7215 pub storage_policy_id: ::core::option::Option<::prost::alloc::string::String>,
7216}
7217/// The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)
7218#[derive(Clone, PartialEq, ::prost::Message)]
7219pub struct WeightedPodAffinityTerm {
7220 /// weight associated with matching the corresponding podAffinityTerm,
7221 /// in the range 1-100.
7222 #[prost(int32, optional, tag = "1")]
7223 pub weight: ::core::option::Option<i32>,
7224 /// Required. A pod affinity term, associated with the corresponding weight.
7225 #[prost(message, optional, tag = "2")]
7226 pub pod_affinity_term: ::core::option::Option<PodAffinityTerm>,
7227}
7228/// WindowsSecurityContextOptions contain Windows-specific options and credentials.
7229#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
7230pub struct WindowsSecurityContextOptions {
7231 /// GMSACredentialSpecName is the name of the GMSA credential spec to use.
7232 /// +optional
7233 #[prost(string, optional, tag = "1")]
7234 pub gmsa_credential_spec_name: ::core::option::Option<::prost::alloc::string::String>,
7235 /// GMSACredentialSpec is where the GMSA admission webhook
7236 /// (<https://github.com/kubernetes-sigs/windows-gmsa>) inlines the contents of the
7237 /// GMSA credential spec named by the GMSACredentialSpecName field.
7238 /// +optional
7239 #[prost(string, optional, tag = "2")]
7240 pub gmsa_credential_spec: ::core::option::Option<::prost::alloc::string::String>,
7241 /// The UserName in Windows to run the entrypoint of the container process.
7242 /// Defaults to the user specified in image metadata if unspecified.
7243 /// May also be set in PodSecurityContext. If set in both SecurityContext and
7244 /// PodSecurityContext, the value specified in SecurityContext takes precedence.
7245 /// +optional
7246 #[prost(string, optional, tag = "3")]
7247 pub run_as_user_name: ::core::option::Option<::prost::alloc::string::String>,
7248 /// HostProcess determines if a container should be run as a 'Host Process' container.
7249 /// All of a Pod's containers must have the same effective HostProcess value
7250 /// (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).
7251 /// In addition, if HostProcess is true then HostNetwork must also be set to true.
7252 /// +optional
7253 #[prost(bool, optional, tag = "4")]
7254 pub host_process: ::core::option::Option<bool>,
7255}
7256
7257impl crate::Resource for Binding {
7258 const API_VERSION: &'static str = "v1";
7259 const GROUP: &'static str = "";
7260 const VERSION: &'static str = "v1";
7261 const KIND: &'static str = "Binding";
7262 const URL_PATH_SEGMENT: &'static str = "bindings";
7263 type Scope = crate::NamespaceResourceScope;
7264}
7265impl crate::Metadata for Binding {
7266 type Ty = crate::apimachinery::pkg::apis::meta::v1::ObjectMeta;
7267 fn metadata(&self) -> Option<&<Self as crate::Metadata>::Ty> {
7268 self.metadata.as_ref()
7269 }
7270 fn metadata_mut(&mut self) -> Option<&mut <Self as crate::Metadata>::Ty> {
7271 self.metadata.as_mut()
7272 }
7273}
7274
7275impl crate::Resource for ComponentStatus {
7276 const API_VERSION: &'static str = "v1";
7277 const GROUP: &'static str = "";
7278 const VERSION: &'static str = "v1";
7279 const KIND: &'static str = "ComponentStatus";
7280 const URL_PATH_SEGMENT: &'static str = "componentstatuses";
7281 type Scope = crate::ClusterResourceScope;
7282}
7283impl crate::Metadata for ComponentStatus {
7284 type Ty = crate::apimachinery::pkg::apis::meta::v1::ObjectMeta;
7285 fn metadata(&self) -> Option<&<Self as crate::Metadata>::Ty> {
7286 self.metadata.as_ref()
7287 }
7288 fn metadata_mut(&mut self) -> Option<&mut <Self as crate::Metadata>::Ty> {
7289 self.metadata.as_mut()
7290 }
7291}
7292
7293impl crate::Resource for ConfigMap {
7294 const API_VERSION: &'static str = "v1";
7295 const GROUP: &'static str = "";
7296 const VERSION: &'static str = "v1";
7297 const KIND: &'static str = "ConfigMap";
7298 const URL_PATH_SEGMENT: &'static str = "configmaps";
7299 type Scope = crate::NamespaceResourceScope;
7300}
7301impl crate::Metadata for ConfigMap {
7302 type Ty = crate::apimachinery::pkg::apis::meta::v1::ObjectMeta;
7303 fn metadata(&self) -> Option<&<Self as crate::Metadata>::Ty> {
7304 self.metadata.as_ref()
7305 }
7306 fn metadata_mut(&mut self) -> Option<&mut <Self as crate::Metadata>::Ty> {
7307 self.metadata.as_mut()
7308 }
7309}
7310
7311impl crate::Resource for Endpoints {
7312 const API_VERSION: &'static str = "v1";
7313 const GROUP: &'static str = "";
7314 const VERSION: &'static str = "v1";
7315 const KIND: &'static str = "Endpoints";
7316 const URL_PATH_SEGMENT: &'static str = "endpoints";
7317 type Scope = crate::NamespaceResourceScope;
7318}
7319impl crate::Metadata for Endpoints {
7320 type Ty = crate::apimachinery::pkg::apis::meta::v1::ObjectMeta;
7321 fn metadata(&self) -> Option<&<Self as crate::Metadata>::Ty> {
7322 self.metadata.as_ref()
7323 }
7324 fn metadata_mut(&mut self) -> Option<&mut <Self as crate::Metadata>::Ty> {
7325 self.metadata.as_mut()
7326 }
7327}
7328
7329impl crate::Resource for Event {
7330 const API_VERSION: &'static str = "v1";
7331 const GROUP: &'static str = "";
7332 const VERSION: &'static str = "v1";
7333 const KIND: &'static str = "Event";
7334 const URL_PATH_SEGMENT: &'static str = "events";
7335 type Scope = crate::NamespaceResourceScope;
7336}
7337impl crate::Metadata for Event {
7338 type Ty = crate::apimachinery::pkg::apis::meta::v1::ObjectMeta;
7339 fn metadata(&self) -> Option<&<Self as crate::Metadata>::Ty> {
7340 self.metadata.as_ref()
7341 }
7342 fn metadata_mut(&mut self) -> Option<&mut <Self as crate::Metadata>::Ty> {
7343 self.metadata.as_mut()
7344 }
7345}
7346
7347impl crate::Resource for LimitRange {
7348 const API_VERSION: &'static str = "v1";
7349 const GROUP: &'static str = "";
7350 const VERSION: &'static str = "v1";
7351 const KIND: &'static str = "LimitRange";
7352 const URL_PATH_SEGMENT: &'static str = "limitranges";
7353 type Scope = crate::NamespaceResourceScope;
7354}
7355impl crate::Metadata for LimitRange {
7356 type Ty = crate::apimachinery::pkg::apis::meta::v1::ObjectMeta;
7357 fn metadata(&self) -> Option<&<Self as crate::Metadata>::Ty> {
7358 self.metadata.as_ref()
7359 }
7360 fn metadata_mut(&mut self) -> Option<&mut <Self as crate::Metadata>::Ty> {
7361 self.metadata.as_mut()
7362 }
7363}
7364impl crate::HasSpec for LimitRange {
7365 type Spec = crate::api::core::v1::LimitRangeSpec;
7366 fn spec(&self) -> Option<&<Self as crate::HasSpec>::Spec> {
7367 self.spec.as_ref()
7368 }
7369 fn spec_mut(&mut self) -> Option<&mut <Self as crate::HasSpec>::Spec> {
7370 self.spec.as_mut()
7371 }
7372}
7373
7374impl crate::Resource for Namespace {
7375 const API_VERSION: &'static str = "v1";
7376 const GROUP: &'static str = "";
7377 const VERSION: &'static str = "v1";
7378 const KIND: &'static str = "Namespace";
7379 const URL_PATH_SEGMENT: &'static str = "namespaces";
7380 type Scope = crate::ClusterResourceScope;
7381}
7382impl crate::Metadata for Namespace {
7383 type Ty = crate::apimachinery::pkg::apis::meta::v1::ObjectMeta;
7384 fn metadata(&self) -> Option<&<Self as crate::Metadata>::Ty> {
7385 self.metadata.as_ref()
7386 }
7387 fn metadata_mut(&mut self) -> Option<&mut <Self as crate::Metadata>::Ty> {
7388 self.metadata.as_mut()
7389 }
7390}
7391impl crate::HasSpec for Namespace {
7392 type Spec = crate::api::core::v1::NamespaceSpec;
7393 fn spec(&self) -> Option<&<Self as crate::HasSpec>::Spec> {
7394 self.spec.as_ref()
7395 }
7396 fn spec_mut(&mut self) -> Option<&mut <Self as crate::HasSpec>::Spec> {
7397 self.spec.as_mut()
7398 }
7399}
7400impl crate::HasStatus for Namespace {
7401 type Status = crate::api::core::v1::NamespaceStatus;
7402 fn status(&self) -> Option<&<Self as crate::HasStatus>::Status> {
7403 self.status.as_ref()
7404 }
7405 fn status_mut(&mut self) -> Option<&mut <Self as crate::HasStatus>::Status> {
7406 self.status.as_mut()
7407 }
7408}
7409impl crate::HasConditions for Namespace {
7410 type Condition = crate::api::core::v1::NamespaceCondition;
7411 fn conditions(&self) -> Option<&[<Self as crate::HasConditions>::Condition]> {
7412 self.status.as_ref().map(|s| s.conditions.as_slice())
7413 }
7414 fn conditions_mut(&mut self) -> Option<&mut Vec<<Self as crate::HasConditions>::Condition>> {
7415 self.status.as_mut().and_then(|s| Some(s.conditions.as_mut()))
7416 }
7417}
7418
7419impl crate::Resource for Node {
7420 const API_VERSION: &'static str = "v1";
7421 const GROUP: &'static str = "";
7422 const VERSION: &'static str = "v1";
7423 const KIND: &'static str = "Node";
7424 const URL_PATH_SEGMENT: &'static str = "nodes";
7425 type Scope = crate::ClusterResourceScope;
7426}
7427impl crate::Metadata for Node {
7428 type Ty = crate::apimachinery::pkg::apis::meta::v1::ObjectMeta;
7429 fn metadata(&self) -> Option<&<Self as crate::Metadata>::Ty> {
7430 self.metadata.as_ref()
7431 }
7432 fn metadata_mut(&mut self) -> Option<&mut <Self as crate::Metadata>::Ty> {
7433 self.metadata.as_mut()
7434 }
7435}
7436impl crate::HasSpec for Node {
7437 type Spec = crate::api::core::v1::NodeSpec;
7438 fn spec(&self) -> Option<&<Self as crate::HasSpec>::Spec> {
7439 self.spec.as_ref()
7440 }
7441 fn spec_mut(&mut self) -> Option<&mut <Self as crate::HasSpec>::Spec> {
7442 self.spec.as_mut()
7443 }
7444}
7445impl crate::HasStatus for Node {
7446 type Status = crate::api::core::v1::NodeStatus;
7447 fn status(&self) -> Option<&<Self as crate::HasStatus>::Status> {
7448 self.status.as_ref()
7449 }
7450 fn status_mut(&mut self) -> Option<&mut <Self as crate::HasStatus>::Status> {
7451 self.status.as_mut()
7452 }
7453}
7454impl crate::HasConditions for Node {
7455 type Condition = crate::api::core::v1::NodeCondition;
7456 fn conditions(&self) -> Option<&[<Self as crate::HasConditions>::Condition]> {
7457 self.status.as_ref().map(|s| s.conditions.as_slice())
7458 }
7459 fn conditions_mut(&mut self) -> Option<&mut Vec<<Self as crate::HasConditions>::Condition>> {
7460 self.status.as_mut().and_then(|s| Some(s.conditions.as_mut()))
7461 }
7462}
7463
7464impl crate::Resource for PersistentVolume {
7465 const API_VERSION: &'static str = "v1";
7466 const GROUP: &'static str = "";
7467 const VERSION: &'static str = "v1";
7468 const KIND: &'static str = "PersistentVolume";
7469 const URL_PATH_SEGMENT: &'static str = "persistentvolumes";
7470 type Scope = crate::ClusterResourceScope;
7471}
7472impl crate::Metadata for PersistentVolume {
7473 type Ty = crate::apimachinery::pkg::apis::meta::v1::ObjectMeta;
7474 fn metadata(&self) -> Option<&<Self as crate::Metadata>::Ty> {
7475 self.metadata.as_ref()
7476 }
7477 fn metadata_mut(&mut self) -> Option<&mut <Self as crate::Metadata>::Ty> {
7478 self.metadata.as_mut()
7479 }
7480}
7481impl crate::HasSpec for PersistentVolume {
7482 type Spec = crate::api::core::v1::PersistentVolumeSpec;
7483 fn spec(&self) -> Option<&<Self as crate::HasSpec>::Spec> {
7484 self.spec.as_ref()
7485 }
7486 fn spec_mut(&mut self) -> Option<&mut <Self as crate::HasSpec>::Spec> {
7487 self.spec.as_mut()
7488 }
7489}
7490impl crate::HasStatus for PersistentVolume {
7491 type Status = crate::api::core::v1::PersistentVolumeStatus;
7492 fn status(&self) -> Option<&<Self as crate::HasStatus>::Status> {
7493 self.status.as_ref()
7494 }
7495 fn status_mut(&mut self) -> Option<&mut <Self as crate::HasStatus>::Status> {
7496 self.status.as_mut()
7497 }
7498}
7499
7500impl crate::Resource for PersistentVolumeClaim {
7501 const API_VERSION: &'static str = "v1";
7502 const GROUP: &'static str = "";
7503 const VERSION: &'static str = "v1";
7504 const KIND: &'static str = "PersistentVolumeClaim";
7505 const URL_PATH_SEGMENT: &'static str = "persistentvolumeclaims";
7506 type Scope = crate::NamespaceResourceScope;
7507}
7508impl crate::Metadata for PersistentVolumeClaim {
7509 type Ty = crate::apimachinery::pkg::apis::meta::v1::ObjectMeta;
7510 fn metadata(&self) -> Option<&<Self as crate::Metadata>::Ty> {
7511 self.metadata.as_ref()
7512 }
7513 fn metadata_mut(&mut self) -> Option<&mut <Self as crate::Metadata>::Ty> {
7514 self.metadata.as_mut()
7515 }
7516}
7517impl crate::HasSpec for PersistentVolumeClaim {
7518 type Spec = crate::api::core::v1::PersistentVolumeClaimSpec;
7519 fn spec(&self) -> Option<&<Self as crate::HasSpec>::Spec> {
7520 self.spec.as_ref()
7521 }
7522 fn spec_mut(&mut self) -> Option<&mut <Self as crate::HasSpec>::Spec> {
7523 self.spec.as_mut()
7524 }
7525}
7526impl crate::HasStatus for PersistentVolumeClaim {
7527 type Status = crate::api::core::v1::PersistentVolumeClaimStatus;
7528 fn status(&self) -> Option<&<Self as crate::HasStatus>::Status> {
7529 self.status.as_ref()
7530 }
7531 fn status_mut(&mut self) -> Option<&mut <Self as crate::HasStatus>::Status> {
7532 self.status.as_mut()
7533 }
7534}
7535impl crate::HasConditions for PersistentVolumeClaim {
7536 type Condition = crate::api::core::v1::PersistentVolumeClaimCondition;
7537 fn conditions(&self) -> Option<&[<Self as crate::HasConditions>::Condition]> {
7538 self.status.as_ref().map(|s| s.conditions.as_slice())
7539 }
7540 fn conditions_mut(&mut self) -> Option<&mut Vec<<Self as crate::HasConditions>::Condition>> {
7541 self.status.as_mut().and_then(|s| Some(s.conditions.as_mut()))
7542 }
7543}
7544
7545impl crate::Resource for Pod {
7546 const API_VERSION: &'static str = "v1";
7547 const GROUP: &'static str = "";
7548 const VERSION: &'static str = "v1";
7549 const KIND: &'static str = "Pod";
7550 const URL_PATH_SEGMENT: &'static str = "pods";
7551 type Scope = crate::NamespaceResourceScope;
7552}
7553impl crate::Metadata for Pod {
7554 type Ty = crate::apimachinery::pkg::apis::meta::v1::ObjectMeta;
7555 fn metadata(&self) -> Option<&<Self as crate::Metadata>::Ty> {
7556 self.metadata.as_ref()
7557 }
7558 fn metadata_mut(&mut self) -> Option<&mut <Self as crate::Metadata>::Ty> {
7559 self.metadata.as_mut()
7560 }
7561}
7562impl crate::HasSpec for Pod {
7563 type Spec = crate::api::core::v1::PodSpec;
7564 fn spec(&self) -> Option<&<Self as crate::HasSpec>::Spec> {
7565 self.spec.as_ref()
7566 }
7567 fn spec_mut(&mut self) -> Option<&mut <Self as crate::HasSpec>::Spec> {
7568 self.spec.as_mut()
7569 }
7570}
7571impl crate::HasStatus for Pod {
7572 type Status = crate::api::core::v1::PodStatus;
7573 fn status(&self) -> Option<&<Self as crate::HasStatus>::Status> {
7574 self.status.as_ref()
7575 }
7576 fn status_mut(&mut self) -> Option<&mut <Self as crate::HasStatus>::Status> {
7577 self.status.as_mut()
7578 }
7579}
7580impl crate::HasConditions for Pod {
7581 type Condition = crate::api::core::v1::PodCondition;
7582 fn conditions(&self) -> Option<&[<Self as crate::HasConditions>::Condition]> {
7583 self.status.as_ref().map(|s| s.conditions.as_slice())
7584 }
7585 fn conditions_mut(&mut self) -> Option<&mut Vec<<Self as crate::HasConditions>::Condition>> {
7586 self.status.as_mut().and_then(|s| Some(s.conditions.as_mut()))
7587 }
7588}
7589
7590impl crate::Resource for PodTemplate {
7591 const API_VERSION: &'static str = "v1";
7592 const GROUP: &'static str = "";
7593 const VERSION: &'static str = "v1";
7594 const KIND: &'static str = "PodTemplate";
7595 const URL_PATH_SEGMENT: &'static str = "podtemplates";
7596 type Scope = crate::NamespaceResourceScope;
7597}
7598impl crate::Metadata for PodTemplate {
7599 type Ty = crate::apimachinery::pkg::apis::meta::v1::ObjectMeta;
7600 fn metadata(&self) -> Option<&<Self as crate::Metadata>::Ty> {
7601 self.metadata.as_ref()
7602 }
7603 fn metadata_mut(&mut self) -> Option<&mut <Self as crate::Metadata>::Ty> {
7604 self.metadata.as_mut()
7605 }
7606}
7607
7608impl crate::Resource for ReplicationController {
7609 const API_VERSION: &'static str = "v1";
7610 const GROUP: &'static str = "";
7611 const VERSION: &'static str = "v1";
7612 const KIND: &'static str = "ReplicationController";
7613 const URL_PATH_SEGMENT: &'static str = "replicationcontrollers";
7614 type Scope = crate::NamespaceResourceScope;
7615}
7616impl crate::Metadata for ReplicationController {
7617 type Ty = crate::apimachinery::pkg::apis::meta::v1::ObjectMeta;
7618 fn metadata(&self) -> Option<&<Self as crate::Metadata>::Ty> {
7619 self.metadata.as_ref()
7620 }
7621 fn metadata_mut(&mut self) -> Option<&mut <Self as crate::Metadata>::Ty> {
7622 self.metadata.as_mut()
7623 }
7624}
7625impl crate::HasSpec for ReplicationController {
7626 type Spec = crate::api::core::v1::ReplicationControllerSpec;
7627 fn spec(&self) -> Option<&<Self as crate::HasSpec>::Spec> {
7628 self.spec.as_ref()
7629 }
7630 fn spec_mut(&mut self) -> Option<&mut <Self as crate::HasSpec>::Spec> {
7631 self.spec.as_mut()
7632 }
7633}
7634impl crate::HasStatus for ReplicationController {
7635 type Status = crate::api::core::v1::ReplicationControllerStatus;
7636 fn status(&self) -> Option<&<Self as crate::HasStatus>::Status> {
7637 self.status.as_ref()
7638 }
7639 fn status_mut(&mut self) -> Option<&mut <Self as crate::HasStatus>::Status> {
7640 self.status.as_mut()
7641 }
7642}
7643impl crate::HasConditions for ReplicationController {
7644 type Condition = crate::api::core::v1::ReplicationControllerCondition;
7645 fn conditions(&self) -> Option<&[<Self as crate::HasConditions>::Condition]> {
7646 self.status.as_ref().map(|s| s.conditions.as_slice())
7647 }
7648 fn conditions_mut(&mut self) -> Option<&mut Vec<<Self as crate::HasConditions>::Condition>> {
7649 self.status.as_mut().and_then(|s| Some(s.conditions.as_mut()))
7650 }
7651}
7652
7653impl crate::Resource for ResourceQuota {
7654 const API_VERSION: &'static str = "v1";
7655 const GROUP: &'static str = "";
7656 const VERSION: &'static str = "v1";
7657 const KIND: &'static str = "ResourceQuota";
7658 const URL_PATH_SEGMENT: &'static str = "resourcequotas";
7659 type Scope = crate::NamespaceResourceScope;
7660}
7661impl crate::Metadata for ResourceQuota {
7662 type Ty = crate::apimachinery::pkg::apis::meta::v1::ObjectMeta;
7663 fn metadata(&self) -> Option<&<Self as crate::Metadata>::Ty> {
7664 self.metadata.as_ref()
7665 }
7666 fn metadata_mut(&mut self) -> Option<&mut <Self as crate::Metadata>::Ty> {
7667 self.metadata.as_mut()
7668 }
7669}
7670impl crate::HasSpec for ResourceQuota {
7671 type Spec = crate::api::core::v1::ResourceQuotaSpec;
7672 fn spec(&self) -> Option<&<Self as crate::HasSpec>::Spec> {
7673 self.spec.as_ref()
7674 }
7675 fn spec_mut(&mut self) -> Option<&mut <Self as crate::HasSpec>::Spec> {
7676 self.spec.as_mut()
7677 }
7678}
7679impl crate::HasStatus for ResourceQuota {
7680 type Status = crate::api::core::v1::ResourceQuotaStatus;
7681 fn status(&self) -> Option<&<Self as crate::HasStatus>::Status> {
7682 self.status.as_ref()
7683 }
7684 fn status_mut(&mut self) -> Option<&mut <Self as crate::HasStatus>::Status> {
7685 self.status.as_mut()
7686 }
7687}
7688
7689impl crate::Resource for Secret {
7690 const API_VERSION: &'static str = "v1";
7691 const GROUP: &'static str = "";
7692 const VERSION: &'static str = "v1";
7693 const KIND: &'static str = "Secret";
7694 const URL_PATH_SEGMENT: &'static str = "secrets";
7695 type Scope = crate::NamespaceResourceScope;
7696}
7697impl crate::Metadata for Secret {
7698 type Ty = crate::apimachinery::pkg::apis::meta::v1::ObjectMeta;
7699 fn metadata(&self) -> Option<&<Self as crate::Metadata>::Ty> {
7700 self.metadata.as_ref()
7701 }
7702 fn metadata_mut(&mut self) -> Option<&mut <Self as crate::Metadata>::Ty> {
7703 self.metadata.as_mut()
7704 }
7705}
7706
7707impl crate::Resource for Service {
7708 const API_VERSION: &'static str = "v1";
7709 const GROUP: &'static str = "";
7710 const VERSION: &'static str = "v1";
7711 const KIND: &'static str = "Service";
7712 const URL_PATH_SEGMENT: &'static str = "services";
7713 type Scope = crate::NamespaceResourceScope;
7714}
7715impl crate::Metadata for Service {
7716 type Ty = crate::apimachinery::pkg::apis::meta::v1::ObjectMeta;
7717 fn metadata(&self) -> Option<&<Self as crate::Metadata>::Ty> {
7718 self.metadata.as_ref()
7719 }
7720 fn metadata_mut(&mut self) -> Option<&mut <Self as crate::Metadata>::Ty> {
7721 self.metadata.as_mut()
7722 }
7723}
7724impl crate::HasSpec for Service {
7725 type Spec = crate::api::core::v1::ServiceSpec;
7726 fn spec(&self) -> Option<&<Self as crate::HasSpec>::Spec> {
7727 self.spec.as_ref()
7728 }
7729 fn spec_mut(&mut self) -> Option<&mut <Self as crate::HasSpec>::Spec> {
7730 self.spec.as_mut()
7731 }
7732}
7733impl crate::HasStatus for Service {
7734 type Status = crate::api::core::v1::ServiceStatus;
7735 fn status(&self) -> Option<&<Self as crate::HasStatus>::Status> {
7736 self.status.as_ref()
7737 }
7738 fn status_mut(&mut self) -> Option<&mut <Self as crate::HasStatus>::Status> {
7739 self.status.as_mut()
7740 }
7741}
7742impl crate::HasConditions for Service {
7743 type Condition = crate::apimachinery::pkg::apis::meta::v1::Condition;
7744 fn conditions(&self) -> Option<&[<Self as crate::HasConditions>::Condition]> {
7745 self.status.as_ref().map(|s| s.conditions.as_slice())
7746 }
7747 fn conditions_mut(&mut self) -> Option<&mut Vec<<Self as crate::HasConditions>::Condition>> {
7748 self.status.as_mut().and_then(|s| Some(s.conditions.as_mut()))
7749 }
7750}
7751
7752impl crate::Resource for ServiceAccount {
7753 const API_VERSION: &'static str = "v1";
7754 const GROUP: &'static str = "";
7755 const VERSION: &'static str = "v1";
7756 const KIND: &'static str = "ServiceAccount";
7757 const URL_PATH_SEGMENT: &'static str = "serviceaccounts";
7758 type Scope = crate::NamespaceResourceScope;
7759}
7760impl crate::Metadata for ServiceAccount {
7761 type Ty = crate::apimachinery::pkg::apis::meta::v1::ObjectMeta;
7762 fn metadata(&self) -> Option<&<Self as crate::Metadata>::Ty> {
7763 self.metadata.as_ref()
7764 }
7765 fn metadata_mut(&mut self) -> Option<&mut <Self as crate::Metadata>::Ty> {
7766 self.metadata.as_mut()
7767 }
7768}