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 may consist of any printable ASCII characters except '='.
744 /// 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 /// This field cannot be set on ephemeral containers.
769 /// +featureGate=InPlacePodVerticalScaling
770 /// +optional
771 /// +listType=atomic
772 #[prost(message, repeated, tag = "23")]
773 pub resize_policy: ::prost::alloc::vec::Vec<ContainerResizePolicy>,
774 /// RestartPolicy defines the restart behavior of individual containers in a pod.
775 /// This overrides the pod-level restart policy. When this field is not specified,
776 /// the restart behavior is defined by the Pod's restart policy and the container type.
777 /// Additionally, setting the RestartPolicy as "Always" for the init container will
778 /// have the following effect:
779 /// this init container will be continually restarted on
780 /// exit until all regular containers have terminated. Once all regular
781 /// containers have completed, all init containers with restartPolicy "Always"
782 /// will be shut down. This lifecycle differs from normal init containers and
783 /// is often referred to as a "sidecar" container. Although this init
784 /// container still starts in the init container sequence, it does not wait
785 /// for the container to complete before proceeding to the next init
786 /// container. Instead, the next init container starts immediately after this
787 /// init container is started, or after any startupProbe has successfully
788 /// completed.
789 /// +optional
790 #[prost(string, optional, tag = "24")]
791 pub restart_policy: ::core::option::Option<::prost::alloc::string::String>,
792 /// Represents a list of rules to be checked to determine if the
793 /// container should be restarted on exit. The rules are evaluated in
794 /// order. Once a rule matches a container exit condition, the remaining
795 /// rules are ignored. If no rule matches the container exit condition,
796 /// the Container-level restart policy determines the whether the container
797 /// is restarted or not. Constraints on the rules:
798 /// - At most 20 rules are allowed.
799 /// - Rules can have the same action.
800 /// - Identical rules are not forbidden in validations.
801 /// When rules are specified, container MUST set RestartPolicy explicitly
802 /// even it if matches the Pod's RestartPolicy.
803 /// +featureGate=ContainerRestartRules
804 /// +optional
805 /// +listType=atomic
806 #[prost(message, repeated, tag = "25")]
807 pub restart_policy_rules: ::prost::alloc::vec::Vec<ContainerRestartRule>,
808 /// Pod volumes to mount into the container's filesystem.
809 /// Cannot be updated.
810 /// +optional
811 /// +patchMergeKey=mountPath
812 /// +patchStrategy=merge
813 /// +listType=map
814 /// +listMapKey=mountPath
815 #[prost(message, repeated, tag = "9")]
816 pub volume_mounts: ::prost::alloc::vec::Vec<VolumeMount>,
817 /// volumeDevices is the list of block devices to be used by the container.
818 /// +patchMergeKey=devicePath
819 /// +patchStrategy=merge
820 /// +listType=map
821 /// +listMapKey=devicePath
822 /// +optional
823 #[prost(message, repeated, tag = "21")]
824 pub volume_devices: ::prost::alloc::vec::Vec<VolumeDevice>,
825 /// Periodic probe of container liveness.
826 /// Container will be restarted if the probe fails.
827 /// Cannot be updated.
828 /// More info: <https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes>
829 /// +optional
830 #[prost(message, optional, tag = "10")]
831 pub liveness_probe: ::core::option::Option<Probe>,
832 /// Periodic probe of container service readiness.
833 /// Container will be removed from service endpoints if the probe fails.
834 /// Cannot be updated.
835 /// More info: <https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes>
836 /// +optional
837 #[prost(message, optional, tag = "11")]
838 pub readiness_probe: ::core::option::Option<Probe>,
839 /// StartupProbe indicates that the Pod has successfully initialized.
840 /// If specified, no other probes are executed until this completes successfully.
841 /// If this probe fails, the Pod will be restarted, just as if the livenessProbe failed.
842 /// This can be used to provide different probe parameters at the beginning of a Pod's lifecycle,
843 /// when it might take a long time to load data or warm a cache, than during steady-state operation.
844 /// This cannot be updated.
845 /// More info: <https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes>
846 /// +optional
847 #[prost(message, optional, tag = "22")]
848 pub startup_probe: ::core::option::Option<Probe>,
849 /// Actions that the management system should take in response to container lifecycle events.
850 /// Cannot be updated.
851 /// +optional
852 #[prost(message, optional, tag = "12")]
853 pub lifecycle: ::core::option::Option<Lifecycle>,
854 /// Optional: Path at which the file to which the container's termination message
855 /// will be written is mounted into the container's filesystem.
856 /// Message written is intended to be brief final status, such as an assertion failure message.
857 /// Will be truncated by the node if greater than 4096 bytes. The total message length across
858 /// all containers will be limited to 12kb.
859 /// Defaults to /dev/termination-log.
860 /// Cannot be updated.
861 /// +optional
862 #[prost(string, optional, tag = "13")]
863 pub termination_message_path: ::core::option::Option<::prost::alloc::string::String>,
864 /// Indicate how the termination message should be populated. File will use the contents of
865 /// terminationMessagePath to populate the container status message on both success and failure.
866 /// FallbackToLogsOnError will use the last chunk of container log output if the termination
867 /// message file is empty and the container exited with an error.
868 /// The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
869 /// Defaults to File.
870 /// Cannot be updated.
871 /// +optional
872 #[prost(string, optional, tag = "20")]
873 pub termination_message_policy: ::core::option::Option<::prost::alloc::string::String>,
874 /// Image pull policy.
875 /// One of Always, Never, IfNotPresent.
876 /// Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
877 /// Cannot be updated.
878 /// More info: <https://kubernetes.io/docs/concepts/containers/images#updating-images>
879 /// +optional
880 #[prost(string, optional, tag = "14")]
881 pub image_pull_policy: ::core::option::Option<::prost::alloc::string::String>,
882 /// SecurityContext defines the security options the container should be run with.
883 /// If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
884 /// More info: <https://kubernetes.io/docs/tasks/configure-pod-container/security-context/>
885 /// +optional
886 #[prost(message, optional, tag = "15")]
887 pub security_context: ::core::option::Option<SecurityContext>,
888 /// Whether this container should allocate a buffer for stdin in the container runtime. If this
889 /// is not set, reads from stdin in the container will always result in EOF.
890 /// Default is false.
891 /// +optional
892 #[prost(bool, optional, tag = "16")]
893 pub stdin: ::core::option::Option<bool>,
894 /// Whether the container runtime should close the stdin channel after it has been opened by
895 /// a single attach. When stdin is true the stdin stream will remain open across multiple attach
896 /// sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
897 /// first client attaches to stdin, and then remains open and accepts data until the client disconnects,
898 /// at which time stdin is closed and remains closed until the container is restarted. If this
899 /// flag is false, a container processes that reads from stdin will never receive an EOF.
900 /// Default is false
901 /// +optional
902 #[prost(bool, optional, tag = "17")]
903 pub stdin_once: ::core::option::Option<bool>,
904 /// Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
905 /// Default is false.
906 /// +optional
907 #[prost(bool, optional, tag = "18")]
908 pub tty: ::core::option::Option<bool>,
909}
910/// ContainerExtendedResourceRequest has the mapping of container name,
911/// extended resource name to the device request name.
912#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
913pub struct ContainerExtendedResourceRequest {
914 /// The name of the container requesting resources.
915 #[prost(string, optional, tag = "1")]
916 pub container_name: ::core::option::Option<::prost::alloc::string::String>,
917 /// The name of the extended resource in that container which gets backed by DRA.
918 #[prost(string, optional, tag = "2")]
919 pub resource_name: ::core::option::Option<::prost::alloc::string::String>,
920 /// The name of the request in the special ResourceClaim which corresponds to the extended resource.
921 #[prost(string, optional, tag = "3")]
922 pub request_name: ::core::option::Option<::prost::alloc::string::String>,
923}
924/// Describe a container image
925#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
926pub struct ContainerImage {
927 /// Names by which this image is known.
928 /// e.g. \["kubernetes.example/hyperkube:v1.0.7", "cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7"\]
929 /// +optional
930 /// +listType=atomic
931 #[prost(string, repeated, tag = "1")]
932 pub names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
933 /// The size of the image in bytes.
934 /// +optional
935 #[prost(int64, optional, tag = "2")]
936 pub size_bytes: ::core::option::Option<i64>,
937}
938/// ContainerPort represents a network port in a single container.
939#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
940pub struct ContainerPort {
941 /// If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
942 /// named port in a pod must have a unique name. Name for the port that can be
943 /// referred to by services.
944 /// +optional
945 #[prost(string, optional, tag = "1")]
946 pub name: ::core::option::Option<::prost::alloc::string::String>,
947 /// Number of port to expose on the host.
948 /// If specified, this must be a valid port number, 0 < x < 65536.
949 /// If HostNetwork is specified, this must match ContainerPort.
950 /// Most containers do not need this.
951 /// +optional
952 #[prost(int32, optional, tag = "2")]
953 pub host_port: ::core::option::Option<i32>,
954 /// Number of port to expose on the pod's IP address.
955 /// This must be a valid port number, 0 < x < 65536.
956 #[prost(int32, optional, tag = "3")]
957 pub container_port: ::core::option::Option<i32>,
958 /// Protocol for port. Must be UDP, TCP, or SCTP.
959 /// Defaults to "TCP".
960 /// +optional
961 /// +default="TCP"
962 #[prost(string, optional, tag = "4")]
963 pub protocol: ::core::option::Option<::prost::alloc::string::String>,
964 /// What host IP to bind the external port to.
965 /// +optional
966 #[prost(string, optional, tag = "5")]
967 pub host_ip: ::core::option::Option<::prost::alloc::string::String>,
968}
969/// ContainerResizePolicy represents resource resize policy for the container.
970#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
971pub struct ContainerResizePolicy {
972 /// Name of the resource to which this resource resize policy applies.
973 /// Supported values: cpu, memory.
974 #[prost(string, optional, tag = "1")]
975 pub resource_name: ::core::option::Option<::prost::alloc::string::String>,
976 /// Restart policy to apply when specified resource is resized.
977 /// If not specified, it defaults to NotRequired.
978 #[prost(string, optional, tag = "2")]
979 pub restart_policy: ::core::option::Option<::prost::alloc::string::String>,
980}
981/// ContainerRestartRule describes how a container exit is handled.
982#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
983pub struct ContainerRestartRule {
984 /// Specifies the action taken on a container exit if the requirements
985 /// are satisfied. The only possible value is "Restart" to restart the
986 /// container.
987 /// +required
988 #[prost(string, optional, tag = "1")]
989 pub action: ::core::option::Option<::prost::alloc::string::String>,
990 /// Represents the exit codes to check on container exits.
991 /// +optional
992 /// +oneOf=when
993 #[prost(message, optional, tag = "2")]
994 pub exit_codes: ::core::option::Option<ContainerRestartRuleOnExitCodes>,
995}
996/// ContainerRestartRuleOnExitCodes describes the condition
997/// for handling an exited container based on its exit codes.
998#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
999pub struct ContainerRestartRuleOnExitCodes {
1000 /// Represents the relationship between the container exit code(s) and the
1001 /// specified values. Possible values are:
1002 /// - In: the requirement is satisfied if the container exit code is in the
1003 /// set of specified values.
1004 /// - NotIn: the requirement is satisfied if the container exit code is
1005 /// not in the set of specified values.
1006 /// +required
1007 #[prost(string, optional, tag = "1")]
1008 pub operator: ::core::option::Option<::prost::alloc::string::String>,
1009 /// Specifies the set of values to check for container exit codes.
1010 /// At most 255 elements are allowed.
1011 /// +optional
1012 /// +listType=set
1013 #[prost(int32, repeated, packed = "false", tag = "2")]
1014 pub values: ::prost::alloc::vec::Vec<i32>,
1015}
1016/// ContainerState holds a possible state of container.
1017/// Only one of its members may be specified.
1018/// If none of them is specified, the default one is ContainerStateWaiting.
1019#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1020pub struct ContainerState {
1021 /// Details about a waiting container
1022 /// +optional
1023 #[prost(message, optional, tag = "1")]
1024 pub waiting: ::core::option::Option<ContainerStateWaiting>,
1025 /// Details about a running container
1026 /// +optional
1027 #[prost(message, optional, tag = "2")]
1028 pub running: ::core::option::Option<ContainerStateRunning>,
1029 /// Details about a terminated container
1030 /// +optional
1031 #[prost(message, optional, tag = "3")]
1032 pub terminated: ::core::option::Option<ContainerStateTerminated>,
1033}
1034/// ContainerStateRunning is a running state of a container.
1035#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
1036pub struct ContainerStateRunning {
1037 /// Time at which the container was last (re-)started
1038 /// +optional
1039 #[prost(message, optional, tag = "1")]
1040 pub started_at: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::Time>,
1041}
1042/// ContainerStateTerminated is a terminated state of a container.
1043#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1044pub struct ContainerStateTerminated {
1045 /// Exit status from the last termination of the container
1046 #[prost(int32, optional, tag = "1")]
1047 pub exit_code: ::core::option::Option<i32>,
1048 /// Signal from the last termination of the container
1049 /// +optional
1050 #[prost(int32, optional, tag = "2")]
1051 pub signal: ::core::option::Option<i32>,
1052 /// (brief) reason from the last termination of the container
1053 /// +optional
1054 #[prost(string, optional, tag = "3")]
1055 pub reason: ::core::option::Option<::prost::alloc::string::String>,
1056 /// Message regarding the last termination of the container
1057 /// +optional
1058 #[prost(string, optional, tag = "4")]
1059 pub message: ::core::option::Option<::prost::alloc::string::String>,
1060 /// Time at which previous execution of the container started
1061 /// +optional
1062 #[prost(message, optional, tag = "5")]
1063 pub started_at: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::Time>,
1064 /// Time at which the container last terminated
1065 /// +optional
1066 #[prost(message, optional, tag = "6")]
1067 pub finished_at: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::Time>,
1068 /// Container's ID in the format '<type>://<container_id>'
1069 /// +optional
1070 #[prost(string, optional, tag = "7")]
1071 pub container_id: ::core::option::Option<::prost::alloc::string::String>,
1072}
1073/// ContainerStateWaiting is a waiting state of a container.
1074#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1075pub struct ContainerStateWaiting {
1076 /// (brief) reason the container is not yet running.
1077 /// +optional
1078 #[prost(string, optional, tag = "1")]
1079 pub reason: ::core::option::Option<::prost::alloc::string::String>,
1080 /// Message regarding why the container is not yet running.
1081 /// +optional
1082 #[prost(string, optional, tag = "2")]
1083 pub message: ::core::option::Option<::prost::alloc::string::String>,
1084}
1085/// ContainerStatus contains details for the current status of this container.
1086#[derive(Clone, PartialEq, ::prost::Message)]
1087pub struct ContainerStatus {
1088 /// Name is a DNS_LABEL representing the unique name of the container.
1089 /// Each container in a pod must have a unique name across all container types.
1090 /// Cannot be updated.
1091 #[prost(string, optional, tag = "1")]
1092 pub name: ::core::option::Option<::prost::alloc::string::String>,
1093 /// State holds details about the container's current condition.
1094 /// +optional
1095 #[prost(message, optional, tag = "2")]
1096 pub state: ::core::option::Option<ContainerState>,
1097 /// LastTerminationState holds the last termination state of the container to
1098 /// help debug container crashes and restarts. This field is not
1099 /// populated if the container is still running and RestartCount is 0.
1100 /// +optional
1101 #[prost(message, optional, tag = "3")]
1102 pub last_state: ::core::option::Option<ContainerState>,
1103 /// Ready specifies whether the container is currently passing its readiness check.
1104 /// The value will change as readiness probes keep executing. If no readiness
1105 /// probes are specified, this field defaults to true once the container is
1106 /// fully started (see Started field).
1107 ///
1108 /// The value is typically used to determine whether a container is ready to
1109 /// accept traffic.
1110 #[prost(bool, optional, tag = "4")]
1111 pub ready: ::core::option::Option<bool>,
1112 /// RestartCount holds the number of times the container has been restarted.
1113 /// Kubelet makes an effort to always increment the value, but there
1114 /// are cases when the state may be lost due to node restarts and then the value
1115 /// may be reset to 0. The value is never negative.
1116 #[prost(int32, optional, tag = "5")]
1117 pub restart_count: ::core::option::Option<i32>,
1118 /// Image is the name of container image that the container is running.
1119 /// The container image may not match the image used in the PodSpec,
1120 /// as it may have been resolved by the runtime.
1121 /// More info: <https://kubernetes.io/docs/concepts/containers/images.>
1122 #[prost(string, optional, tag = "6")]
1123 pub image: ::core::option::Option<::prost::alloc::string::String>,
1124 /// ImageID is the image ID of the container's image. The image ID may not
1125 /// match the image ID of the image used in the PodSpec, as it may have been
1126 /// resolved by the runtime.
1127 #[prost(string, optional, tag = "7")]
1128 pub image_id: ::core::option::Option<::prost::alloc::string::String>,
1129 /// ContainerID is the ID of the container in the format '<type>://<container_id>'.
1130 /// Where type is a container runtime identifier, returned from Version call of CRI API
1131 /// (for example "containerd").
1132 /// +optional
1133 #[prost(string, optional, tag = "8")]
1134 pub container_id: ::core::option::Option<::prost::alloc::string::String>,
1135 /// Started indicates whether the container has finished its postStart lifecycle hook
1136 /// and passed its startup probe.
1137 /// Initialized as false, becomes true after startupProbe is considered
1138 /// successful. Resets to false when the container is restarted, or if kubelet
1139 /// loses state temporarily. In both cases, startup probes will run again.
1140 /// Is always true when no startupProbe is defined and container is running and
1141 /// has passed the postStart lifecycle hook. The null value must be treated the
1142 /// same as false.
1143 /// +optional
1144 #[prost(bool, optional, tag = "9")]
1145 pub started: ::core::option::Option<bool>,
1146 /// AllocatedResources represents the compute resources allocated for this container by the
1147 /// node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission
1148 /// and after successfully admitting desired pod resize.
1149 /// +featureGate=InPlacePodVerticalScalingAllocatedStatus
1150 /// +optional
1151 #[prost(btree_map = "string, message", tag = "10")]
1152 pub allocated_resources: ::prost::alloc::collections::BTreeMap<
1153 ::prost::alloc::string::String,
1154 super::super::super::apimachinery::pkg::api::resource::Quantity,
1155 >,
1156 /// Resources represents the compute resource requests and limits that have been successfully
1157 /// enacted on the running container after it has been started or has been successfully resized.
1158 /// +featureGate=InPlacePodVerticalScaling
1159 /// +optional
1160 #[prost(message, optional, tag = "11")]
1161 pub resources: ::core::option::Option<ResourceRequirements>,
1162 /// Status of volume mounts.
1163 /// +optional
1164 /// +patchMergeKey=mountPath
1165 /// +patchStrategy=merge
1166 /// +listType=map
1167 /// +listMapKey=mountPath
1168 #[prost(message, repeated, tag = "12")]
1169 pub volume_mounts: ::prost::alloc::vec::Vec<VolumeMountStatus>,
1170 /// User represents user identity information initially attached to the first process of the container
1171 /// +featureGate=SupplementalGroupsPolicy
1172 /// +optional
1173 #[prost(message, optional, tag = "13")]
1174 pub user: ::core::option::Option<ContainerUser>,
1175 /// AllocatedResourcesStatus represents the status of various resources
1176 /// allocated for this Pod.
1177 /// +featureGate=ResourceHealthStatus
1178 /// +optional
1179 /// +patchMergeKey=name
1180 /// +patchStrategy=merge
1181 /// +listType=map
1182 /// +listMapKey=name
1183 #[prost(message, repeated, tag = "14")]
1184 pub allocated_resources_status: ::prost::alloc::vec::Vec<ResourceStatus>,
1185 /// StopSignal reports the effective stop signal for this container
1186 /// +featureGate=ContainerStopSignals
1187 /// +optional
1188 #[prost(string, optional, tag = "15")]
1189 pub stop_signal: ::core::option::Option<::prost::alloc::string::String>,
1190}
1191/// ContainerUser represents user identity information
1192#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1193pub struct ContainerUser {
1194 /// Linux holds user identity information initially attached to the first process of the containers in Linux.
1195 /// Note that the actual running identity can be changed if the process has enough privilege to do so.
1196 /// +optional
1197 #[prost(message, optional, tag = "1")]
1198 pub linux: ::core::option::Option<LinuxContainerUser>,
1199}
1200/// DaemonEndpoint contains information about a single Daemon endpoint.
1201#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
1202pub struct DaemonEndpoint {
1203 /// Port number of the given endpoint.
1204 #[prost(int32, optional, tag = "1")]
1205 pub port: ::core::option::Option<i32>,
1206}
1207/// Represents downward API info for projecting into a projected volume.
1208/// Note that this is identical to a downwardAPI volume source without the default
1209/// mode.
1210#[derive(Clone, PartialEq, ::prost::Message)]
1211pub struct DownwardAPIProjection {
1212 /// Items is a list of DownwardAPIVolume file
1213 /// +optional
1214 /// +listType=atomic
1215 #[prost(message, repeated, tag = "1")]
1216 pub items: ::prost::alloc::vec::Vec<DownwardAPIVolumeFile>,
1217}
1218/// DownwardAPIVolumeFile represents information to create the file containing the pod field
1219#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1220pub struct DownwardAPIVolumeFile {
1221 /// 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 '..'
1222 #[prost(string, optional, tag = "1")]
1223 pub path: ::core::option::Option<::prost::alloc::string::String>,
1224 /// Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported.
1225 /// +optional
1226 #[prost(message, optional, tag = "2")]
1227 pub field_ref: ::core::option::Option<ObjectFieldSelector>,
1228 /// Selects a resource of the container: only resources limits and requests
1229 /// (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.
1230 /// +optional
1231 #[prost(message, optional, tag = "3")]
1232 pub resource_field_ref: ::core::option::Option<ResourceFieldSelector>,
1233 /// Optional: mode bits used to set permissions on this file, must be an octal value
1234 /// between 0000 and 0777 or a decimal value between 0 and 511.
1235 /// YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
1236 /// If not specified, the volume defaultMode will be used.
1237 /// This might be in conflict with other options that affect the file
1238 /// mode, like fsGroup, and the result can be other mode bits set.
1239 /// +optional
1240 #[prost(int32, optional, tag = "4")]
1241 pub mode: ::core::option::Option<i32>,
1242}
1243/// DownwardAPIVolumeSource represents a volume containing downward API info.
1244/// Downward API volumes support ownership management and SELinux relabeling.
1245#[derive(Clone, PartialEq, ::prost::Message)]
1246pub struct DownwardAPIVolumeSource {
1247 /// Items is a list of downward API volume file
1248 /// +optional
1249 /// +listType=atomic
1250 #[prost(message, repeated, tag = "1")]
1251 pub items: ::prost::alloc::vec::Vec<DownwardAPIVolumeFile>,
1252 /// Optional: mode bits to use on created files by default. Must be a
1253 /// Optional: mode bits used to set permissions on created files by default.
1254 /// Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
1255 /// YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
1256 /// Defaults to 0644.
1257 /// Directories within the path are not affected by this setting.
1258 /// This might be in conflict with other options that affect the file
1259 /// mode, like fsGroup, and the result can be other mode bits set.
1260 /// +optional
1261 #[prost(int32, optional, tag = "2")]
1262 pub default_mode: ::core::option::Option<i32>,
1263}
1264/// Represents an empty directory for a pod.
1265/// Empty directory volumes support ownership management and SELinux relabeling.
1266#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1267pub struct EmptyDirVolumeSource {
1268 /// medium represents what type of storage medium should back this directory.
1269 /// The default is "" which means to use the node's default medium.
1270 /// Must be an empty string (default) or Memory.
1271 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#emptydir>
1272 /// +optional
1273 #[prost(string, optional, tag = "1")]
1274 pub medium: ::core::option::Option<::prost::alloc::string::String>,
1275 /// sizeLimit is the total amount of local storage required for this EmptyDir volume.
1276 /// The size limit is also applicable for memory medium.
1277 /// The maximum usage on memory medium EmptyDir would be the minimum value between
1278 /// the SizeLimit specified here and the sum of memory limits of all containers in a pod.
1279 /// The default is nil which means that the limit is undefined.
1280 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#emptydir>
1281 /// +optional
1282 #[prost(message, optional, tag = "2")]
1283 pub size_limit: ::core::option::Option<super::super::super::apimachinery::pkg::api::resource::Quantity>,
1284}
1285/// EndpointAddress is a tuple that describes single IP address.
1286/// Deprecated: This API is deprecated in v1.33+.
1287/// +structType=atomic
1288#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1289pub struct EndpointAddress {
1290 /// The IP of this endpoint.
1291 /// May not be loopback (127.0.0.0/8 or ::1), link-local (169.254.0.0/16 or fe80::/10),
1292 /// or link-local multicast (224.0.0.0/24 or ff02::/16).
1293 #[prost(string, optional, tag = "1")]
1294 pub ip: ::core::option::Option<::prost::alloc::string::String>,
1295 /// The Hostname of this endpoint
1296 /// +optional
1297 #[prost(string, optional, tag = "3")]
1298 pub hostname: ::core::option::Option<::prost::alloc::string::String>,
1299 /// Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.
1300 /// +optional
1301 #[prost(string, optional, tag = "4")]
1302 pub node_name: ::core::option::Option<::prost::alloc::string::String>,
1303 /// Reference to object providing the endpoint.
1304 /// +optional
1305 #[prost(message, optional, tag = "2")]
1306 pub target_ref: ::core::option::Option<ObjectReference>,
1307}
1308/// EndpointPort is a tuple that describes a single port.
1309/// Deprecated: This API is deprecated in v1.33+.
1310/// +structType=atomic
1311#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1312pub struct EndpointPort {
1313 /// The name of this port. This must match the 'name' field in the
1314 /// corresponding ServicePort.
1315 /// Must be a DNS_LABEL.
1316 /// Optional only if one port is defined.
1317 /// +optional
1318 #[prost(string, optional, tag = "1")]
1319 pub name: ::core::option::Option<::prost::alloc::string::String>,
1320 /// The port number of the endpoint.
1321 #[prost(int32, optional, tag = "2")]
1322 pub port: ::core::option::Option<i32>,
1323 /// The IP protocol for this port.
1324 /// Must be UDP, TCP, or SCTP.
1325 /// Default is TCP.
1326 /// +optional
1327 #[prost(string, optional, tag = "3")]
1328 pub protocol: ::core::option::Option<::prost::alloc::string::String>,
1329 /// The application protocol for this port.
1330 /// This is used as a hint for implementations to offer richer behavior for protocols that they understand.
1331 /// This field follows standard Kubernetes label syntax.
1332 /// Valid values are either:
1333 ///
1334 /// * Un-prefixed protocol names - reserved for IANA standard service names (as per
1335 /// RFC-6335 and <https://www.iana.org/assignments/service-names>).
1336 ///
1337 /// * Kubernetes-defined prefixed names:
1338 /// * '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->
1339 /// * 'kubernetes.io/ws' - WebSocket over cleartext as described in <https://www.rfc-editor.org/rfc/rfc6455>
1340 /// * 'kubernetes.io/wss' - WebSocket over TLS as described in <https://www.rfc-editor.org/rfc/rfc6455>
1341 ///
1342 /// * Other protocols should use implementation-defined prefixed names such as
1343 /// mycompany.com/my-custom-protocol.
1344 /// +optional
1345 #[prost(string, optional, tag = "4")]
1346 pub app_protocol: ::core::option::Option<::prost::alloc::string::String>,
1347}
1348/// EndpointSubset is a group of addresses with a common set of ports. The
1349/// expanded set of endpoints is the Cartesian product of Addresses x Ports.
1350/// For example, given:
1351///
1352/// {
1353/// Addresses: \[{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}\],
1354/// Ports: \[{"name": "a", "port": 8675}, {"name": "b", "port": 309}\]
1355/// }
1356///
1357/// The resulting set of endpoints can be viewed as:
1358///
1359/// a: \[ 10.10.1.1:8675, 10.10.2.2:8675 \],
1360/// b: \[ 10.10.1.1:309, 10.10.2.2:309 \]
1361///
1362/// Deprecated: This API is deprecated in v1.33+.
1363#[derive(Clone, PartialEq, ::prost::Message)]
1364pub struct EndpointSubset {
1365 /// IP addresses which offer the related ports that are marked as ready. These endpoints
1366 /// should be considered safe for load balancers and clients to utilize.
1367 /// +optional
1368 /// +listType=atomic
1369 #[prost(message, repeated, tag = "1")]
1370 pub addresses: ::prost::alloc::vec::Vec<EndpointAddress>,
1371 /// IP addresses which offer the related ports but are not currently marked as ready
1372 /// because they have not yet finished starting, have recently failed a readiness check,
1373 /// or have recently failed a liveness check.
1374 /// +optional
1375 /// +listType=atomic
1376 #[prost(message, repeated, tag = "2")]
1377 pub not_ready_addresses: ::prost::alloc::vec::Vec<EndpointAddress>,
1378 /// Port numbers available on the related IP addresses.
1379 /// +optional
1380 /// +listType=atomic
1381 #[prost(message, repeated, tag = "3")]
1382 pub ports: ::prost::alloc::vec::Vec<EndpointPort>,
1383}
1384/// Endpoints is a collection of endpoints that implement the actual service. Example:
1385///
1386/// Name: "mysvc",
1387/// Subsets: [
1388/// {
1389/// Addresses: \[{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}\],
1390/// Ports: \[{"name": "a", "port": 8675}, {"name": "b", "port": 309}\]
1391/// },
1392/// {
1393/// Addresses: \[{"ip": "10.10.3.3"}\],
1394/// Ports: \[{"name": "a", "port": 93}, {"name": "b", "port": 76}\]
1395/// },
1396/// ]
1397///
1398/// Endpoints is a legacy API and does not contain information about all Service features.
1399/// Use discoveryv1.EndpointSlice for complete information about Service endpoints.
1400///
1401/// Deprecated: This API is deprecated in v1.33+. Use discoveryv1.EndpointSlice.
1402#[derive(Clone, PartialEq, ::prost::Message)]
1403pub struct Endpoints {
1404 /// Standard object's metadata.
1405 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
1406 /// +optional
1407 #[prost(message, optional, tag = "1")]
1408 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
1409 /// The set of all endpoints is the union of all subsets. Addresses are placed into
1410 /// subsets according to the IPs they share. A single address with multiple ports,
1411 /// some of which are ready and some of which are not (because they come from
1412 /// different containers) will result in the address being displayed in different
1413 /// subsets for the different ports. No address will appear in both Addresses and
1414 /// NotReadyAddresses in the same subset.
1415 /// Sets of addresses and ports that comprise a service.
1416 /// +optional
1417 /// +listType=atomic
1418 #[prost(message, repeated, tag = "2")]
1419 pub subsets: ::prost::alloc::vec::Vec<EndpointSubset>,
1420}
1421/// EndpointsList is a list of endpoints.
1422/// Deprecated: This API is deprecated in v1.33+.
1423#[derive(Clone, PartialEq, ::prost::Message)]
1424pub struct EndpointsList {
1425 /// Standard list metadata.
1426 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds>
1427 /// +optional
1428 #[prost(message, optional, tag = "1")]
1429 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
1430 /// List of endpoints.
1431 #[prost(message, repeated, tag = "2")]
1432 pub items: ::prost::alloc::vec::Vec<Endpoints>,
1433}
1434/// EnvFromSource represents the source of a set of ConfigMaps or Secrets
1435#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1436pub struct EnvFromSource {
1437 /// Optional text to prepend to the name of each environment variable.
1438 /// May consist of any printable ASCII characters except '='.
1439 /// +optional
1440 #[prost(string, optional, tag = "1")]
1441 pub prefix: ::core::option::Option<::prost::alloc::string::String>,
1442 /// The ConfigMap to select from
1443 /// +optional
1444 #[prost(message, optional, tag = "2")]
1445 pub config_map_ref: ::core::option::Option<ConfigMapEnvSource>,
1446 /// The Secret to select from
1447 /// +optional
1448 #[prost(message, optional, tag = "3")]
1449 pub secret_ref: ::core::option::Option<SecretEnvSource>,
1450}
1451/// EnvVar represents an environment variable present in a Container.
1452#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1453pub struct EnvVar {
1454 /// Name of the environment variable.
1455 /// May consist of any printable ASCII characters except '='.
1456 #[prost(string, optional, tag = "1")]
1457 pub name: ::core::option::Option<::prost::alloc::string::String>,
1458 /// Variable references $(VAR_NAME) are expanded
1459 /// using the previously defined environment variables in the container and
1460 /// any service environment variables. If a variable cannot be resolved,
1461 /// the reference in the input string will be unchanged. Double $$ are reduced
1462 /// to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.
1463 /// "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".
1464 /// Escaped references will never be expanded, regardless of whether the variable
1465 /// exists or not.
1466 /// Defaults to "".
1467 /// +optional
1468 #[prost(string, optional, tag = "2")]
1469 pub value: ::core::option::Option<::prost::alloc::string::String>,
1470 /// Source for the environment variable's value. Cannot be used if value is not empty.
1471 /// +optional
1472 #[prost(message, optional, tag = "3")]
1473 pub value_from: ::core::option::Option<EnvVarSource>,
1474}
1475/// EnvVarSource represents a source for the value of an EnvVar.
1476#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1477pub struct EnvVarSource {
1478 /// Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels\['<KEY>'\]`, `metadata.annotations\['<KEY>'\]`,
1479 /// spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
1480 /// +optional
1481 #[prost(message, optional, tag = "1")]
1482 pub field_ref: ::core::option::Option<ObjectFieldSelector>,
1483 /// Selects a resource of the container: only resources limits and requests
1484 /// (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
1485 /// +optional
1486 #[prost(message, optional, tag = "2")]
1487 pub resource_field_ref: ::core::option::Option<ResourceFieldSelector>,
1488 /// Selects a key of a ConfigMap.
1489 /// +optional
1490 #[prost(message, optional, tag = "3")]
1491 pub config_map_key_ref: ::core::option::Option<ConfigMapKeySelector>,
1492 /// Selects a key of a secret in the pod's namespace
1493 /// +optional
1494 #[prost(message, optional, tag = "4")]
1495 pub secret_key_ref: ::core::option::Option<SecretKeySelector>,
1496 /// FileKeyRef selects a key of the env file.
1497 /// Requires the EnvFiles feature gate to be enabled.
1498 ///
1499 /// +featureGate=EnvFiles
1500 /// +optional
1501 #[prost(message, optional, tag = "5")]
1502 pub file_key_ref: ::core::option::Option<FileKeySelector>,
1503}
1504/// An EphemeralContainer is a temporary container that you may add to an existing Pod for
1505/// user-initiated activities such as debugging. Ephemeral containers have no resource or
1506/// scheduling guarantees, and they will not be restarted when they exit or when a Pod is
1507/// removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the
1508/// Pod to exceed its resource allocation.
1509///
1510/// To add an ephemeral container, use the ephemeralcontainers subresource of an existing
1511/// Pod. Ephemeral containers may not be removed or restarted.
1512#[derive(Clone, PartialEq, ::prost::Message)]
1513pub struct EphemeralContainer {
1514 /// Ephemeral containers have all of the fields of Container, plus additional fields
1515 /// specific to ephemeral containers. Fields in common with Container are in the
1516 /// following inlined struct so than an EphemeralContainer may easily be converted
1517 /// to a Container.
1518 #[prost(message, optional, tag = "1")]
1519 pub ephemeral_container_common: ::core::option::Option<EphemeralContainerCommon>,
1520 /// If set, the name of the container from PodSpec that this ephemeral container targets.
1521 /// The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container.
1522 /// If not set then the ephemeral container uses the namespaces configured in the Pod spec.
1523 ///
1524 /// The container runtime must implement support for this feature. If the runtime does not
1525 /// support namespace targeting then the result of setting this field is undefined.
1526 /// +optional
1527 #[prost(string, optional, tag = "2")]
1528 pub target_container_name: ::core::option::Option<::prost::alloc::string::String>,
1529}
1530/// EphemeralContainerCommon is a copy of all fields in Container to be inlined in
1531/// EphemeralContainer. This separate type allows easy conversion from EphemeralContainer
1532/// to Container and allows separate documentation for the fields of EphemeralContainer.
1533/// When a new field is added to Container it must be added here as well.
1534#[derive(Clone, PartialEq, ::prost::Message)]
1535pub struct EphemeralContainerCommon {
1536 /// Name of the ephemeral container specified as a DNS_LABEL.
1537 /// This name must be unique among all containers, init containers and ephemeral containers.
1538 #[prost(string, optional, tag = "1")]
1539 pub name: ::core::option::Option<::prost::alloc::string::String>,
1540 /// Container image name.
1541 /// More info: <https://kubernetes.io/docs/concepts/containers/images>
1542 #[prost(string, optional, tag = "2")]
1543 pub image: ::core::option::Option<::prost::alloc::string::String>,
1544 /// Entrypoint array. Not executed within a shell.
1545 /// The image's ENTRYPOINT is used if this is not provided.
1546 /// Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
1547 /// cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
1548 /// to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
1549 /// produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
1550 /// of whether the variable exists or not. Cannot be updated.
1551 /// More info: <https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell>
1552 /// +optional
1553 /// +listType=atomic
1554 #[prost(string, repeated, tag = "3")]
1555 pub command: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1556 /// Arguments to the entrypoint.
1557 /// The image's CMD is used if this is not provided.
1558 /// Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
1559 /// cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
1560 /// to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
1561 /// produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
1562 /// of whether the variable exists or not. Cannot be updated.
1563 /// More info: <https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell>
1564 /// +optional
1565 /// +listType=atomic
1566 #[prost(string, repeated, tag = "4")]
1567 pub args: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1568 /// Container's working directory.
1569 /// If not specified, the container runtime's default will be used, which
1570 /// might be configured in the container image.
1571 /// Cannot be updated.
1572 /// +optional
1573 #[prost(string, optional, tag = "5")]
1574 pub working_dir: ::core::option::Option<::prost::alloc::string::String>,
1575 /// Ports are not allowed for ephemeral containers.
1576 /// +optional
1577 /// +patchMergeKey=containerPort
1578 /// +patchStrategy=merge
1579 /// +listType=map
1580 /// +listMapKey=containerPort
1581 /// +listMapKey=protocol
1582 #[prost(message, repeated, tag = "6")]
1583 pub ports: ::prost::alloc::vec::Vec<ContainerPort>,
1584 /// List of sources to populate environment variables in the container.
1585 /// The keys defined within a source may consist of any printable ASCII characters except '='.
1586 /// When a key exists in multiple
1587 /// sources, the value associated with the last source will take precedence.
1588 /// Values defined by an Env with a duplicate key will take precedence.
1589 /// Cannot be updated.
1590 /// +optional
1591 /// +listType=atomic
1592 #[prost(message, repeated, tag = "19")]
1593 pub env_from: ::prost::alloc::vec::Vec<EnvFromSource>,
1594 /// List of environment variables to set in the container.
1595 /// Cannot be updated.
1596 /// +optional
1597 /// +patchMergeKey=name
1598 /// +patchStrategy=merge
1599 /// +listType=map
1600 /// +listMapKey=name
1601 #[prost(message, repeated, tag = "7")]
1602 pub env: ::prost::alloc::vec::Vec<EnvVar>,
1603 /// Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources
1604 /// already allocated to the pod.
1605 /// +optional
1606 #[prost(message, optional, tag = "8")]
1607 pub resources: ::core::option::Option<ResourceRequirements>,
1608 /// Resources resize policy for the container.
1609 /// +featureGate=InPlacePodVerticalScaling
1610 /// +optional
1611 /// +listType=atomic
1612 #[prost(message, repeated, tag = "23")]
1613 pub resize_policy: ::prost::alloc::vec::Vec<ContainerResizePolicy>,
1614 /// Restart policy for the container to manage the restart behavior of each
1615 /// container within a pod.
1616 /// You cannot set this field on ephemeral containers.
1617 /// +optional
1618 #[prost(string, optional, tag = "24")]
1619 pub restart_policy: ::core::option::Option<::prost::alloc::string::String>,
1620 /// Represents a list of rules to be checked to determine if the
1621 /// container should be restarted on exit. You cannot set this field on
1622 /// ephemeral containers.
1623 /// +featureGate=ContainerRestartRules
1624 /// +optional
1625 /// +listType=atomic
1626 #[prost(message, repeated, tag = "25")]
1627 pub restart_policy_rules: ::prost::alloc::vec::Vec<ContainerRestartRule>,
1628 /// Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.
1629 /// Cannot be updated.
1630 /// +optional
1631 /// +patchMergeKey=mountPath
1632 /// +patchStrategy=merge
1633 /// +listType=map
1634 /// +listMapKey=mountPath
1635 #[prost(message, repeated, tag = "9")]
1636 pub volume_mounts: ::prost::alloc::vec::Vec<VolumeMount>,
1637 /// volumeDevices is the list of block devices to be used by the container.
1638 /// +patchMergeKey=devicePath
1639 /// +patchStrategy=merge
1640 /// +listType=map
1641 /// +listMapKey=devicePath
1642 /// +optional
1643 #[prost(message, repeated, tag = "21")]
1644 pub volume_devices: ::prost::alloc::vec::Vec<VolumeDevice>,
1645 /// Probes are not allowed for ephemeral containers.
1646 /// +optional
1647 #[prost(message, optional, tag = "10")]
1648 pub liveness_probe: ::core::option::Option<Probe>,
1649 /// Probes are not allowed for ephemeral containers.
1650 /// +optional
1651 #[prost(message, optional, tag = "11")]
1652 pub readiness_probe: ::core::option::Option<Probe>,
1653 /// Probes are not allowed for ephemeral containers.
1654 /// +optional
1655 #[prost(message, optional, tag = "22")]
1656 pub startup_probe: ::core::option::Option<Probe>,
1657 /// Lifecycle is not allowed for ephemeral containers.
1658 /// +optional
1659 #[prost(message, optional, tag = "12")]
1660 pub lifecycle: ::core::option::Option<Lifecycle>,
1661 /// Optional: Path at which the file to which the container's termination message
1662 /// will be written is mounted into the container's filesystem.
1663 /// Message written is intended to be brief final status, such as an assertion failure message.
1664 /// Will be truncated by the node if greater than 4096 bytes. The total message length across
1665 /// all containers will be limited to 12kb.
1666 /// Defaults to /dev/termination-log.
1667 /// Cannot be updated.
1668 /// +optional
1669 #[prost(string, optional, tag = "13")]
1670 pub termination_message_path: ::core::option::Option<::prost::alloc::string::String>,
1671 /// Indicate how the termination message should be populated. File will use the contents of
1672 /// terminationMessagePath to populate the container status message on both success and failure.
1673 /// FallbackToLogsOnError will use the last chunk of container log output if the termination
1674 /// message file is empty and the container exited with an error.
1675 /// The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
1676 /// Defaults to File.
1677 /// Cannot be updated.
1678 /// +optional
1679 #[prost(string, optional, tag = "20")]
1680 pub termination_message_policy: ::core::option::Option<::prost::alloc::string::String>,
1681 /// Image pull policy.
1682 /// One of Always, Never, IfNotPresent.
1683 /// Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
1684 /// Cannot be updated.
1685 /// More info: <https://kubernetes.io/docs/concepts/containers/images#updating-images>
1686 /// +optional
1687 #[prost(string, optional, tag = "14")]
1688 pub image_pull_policy: ::core::option::Option<::prost::alloc::string::String>,
1689 /// Optional: SecurityContext defines the security options the ephemeral container should be run with.
1690 /// If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
1691 /// +optional
1692 #[prost(message, optional, tag = "15")]
1693 pub security_context: ::core::option::Option<SecurityContext>,
1694 /// Whether this container should allocate a buffer for stdin in the container runtime. If this
1695 /// is not set, reads from stdin in the container will always result in EOF.
1696 /// Default is false.
1697 /// +optional
1698 #[prost(bool, optional, tag = "16")]
1699 pub stdin: ::core::option::Option<bool>,
1700 /// Whether the container runtime should close the stdin channel after it has been opened by
1701 /// a single attach. When stdin is true the stdin stream will remain open across multiple attach
1702 /// sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
1703 /// first client attaches to stdin, and then remains open and accepts data until the client disconnects,
1704 /// at which time stdin is closed and remains closed until the container is restarted. If this
1705 /// flag is false, a container processes that reads from stdin will never receive an EOF.
1706 /// Default is false
1707 /// +optional
1708 #[prost(bool, optional, tag = "17")]
1709 pub stdin_once: ::core::option::Option<bool>,
1710 /// Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
1711 /// Default is false.
1712 /// +optional
1713 #[prost(bool, optional, tag = "18")]
1714 pub tty: ::core::option::Option<bool>,
1715}
1716/// Represents an ephemeral volume that is handled by a normal storage driver.
1717#[derive(Clone, PartialEq, ::prost::Message)]
1718pub struct EphemeralVolumeSource {
1719 /// Will be used to create a stand-alone PVC to provision the volume.
1720 /// The pod in which this EphemeralVolumeSource is embedded will be the
1721 /// owner of the PVC, i.e. the PVC will be deleted together with the
1722 /// pod. The name of the PVC will be `<pod name>-<volume name>` where
1723 /// `<volume name>` is the name from the `PodSpec.Volumes` array
1724 /// entry. Pod validation will reject the pod if the concatenated name
1725 /// is not valid for a PVC (for example, too long).
1726 ///
1727 /// An existing PVC with that name that is not owned by the pod
1728 /// will *not* be used for the pod to avoid using an unrelated
1729 /// volume by mistake. Starting the pod is then blocked until
1730 /// the unrelated PVC is removed. If such a pre-created PVC is
1731 /// meant to be used by the pod, the PVC has to updated with an
1732 /// owner reference to the pod once the pod exists. Normally
1733 /// this should not be necessary, but it may be useful when
1734 /// manually reconstructing a broken cluster.
1735 ///
1736 /// This field is read-only and no changes will be made by Kubernetes
1737 /// to the PVC after it has been created.
1738 ///
1739 /// Required, must not be nil.
1740 #[prost(message, optional, tag = "1")]
1741 pub volume_claim_template: ::core::option::Option<PersistentVolumeClaimTemplate>,
1742}
1743/// Event is a report of an event somewhere in the cluster. Events
1744/// have a limited retention time and triggers and messages may evolve
1745/// with time. Event consumers should not rely on the timing of an event
1746/// with a given Reason reflecting a consistent underlying trigger, or the
1747/// continued existence of events with that Reason. Events should be
1748/// treated as informative, best-effort, supplemental data.
1749#[derive(Clone, PartialEq, ::prost::Message)]
1750pub struct Event {
1751 /// Standard object's metadata.
1752 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
1753 #[prost(message, optional, tag = "1")]
1754 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
1755 /// The object that this event is about.
1756 #[prost(message, optional, tag = "2")]
1757 pub involved_object: ::core::option::Option<ObjectReference>,
1758 /// This should be a short, machine understandable string that gives the reason
1759 /// for the transition into the object's current status.
1760 /// TODO: provide exact specification for format.
1761 /// +optional
1762 #[prost(string, optional, tag = "3")]
1763 pub reason: ::core::option::Option<::prost::alloc::string::String>,
1764 /// A human-readable description of the status of this operation.
1765 /// TODO: decide on maximum length.
1766 /// +optional
1767 #[prost(string, optional, tag = "4")]
1768 pub message: ::core::option::Option<::prost::alloc::string::String>,
1769 /// The component reporting this event. Should be a short machine understandable string.
1770 /// +optional
1771 #[prost(message, optional, tag = "5")]
1772 pub source: ::core::option::Option<EventSource>,
1773 /// The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)
1774 /// +optional
1775 #[prost(message, optional, tag = "6")]
1776 pub first_timestamp: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::Time>,
1777 /// The time at which the most recent occurrence of this event was recorded.
1778 /// +optional
1779 #[prost(message, optional, tag = "7")]
1780 pub last_timestamp: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::Time>,
1781 /// The number of times this event has occurred.
1782 /// +optional
1783 #[prost(int32, optional, tag = "8")]
1784 pub count: ::core::option::Option<i32>,
1785 /// Type of this event (Normal, Warning), new types could be added in the future
1786 /// +optional
1787 #[prost(string, optional, tag = "9")]
1788 pub r#type: ::core::option::Option<::prost::alloc::string::String>,
1789 /// Time when this Event was first observed.
1790 /// +optional
1791 #[prost(message, optional, tag = "10")]
1792 pub event_time: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::MicroTime>,
1793 /// Data about the Event series this event represents or nil if it's a singleton Event.
1794 /// +optional
1795 #[prost(message, optional, tag = "11")]
1796 pub series: ::core::option::Option<EventSeries>,
1797 /// What action was taken/failed regarding to the Regarding object.
1798 /// +optional
1799 #[prost(string, optional, tag = "12")]
1800 pub action: ::core::option::Option<::prost::alloc::string::String>,
1801 /// Optional secondary object for more complex actions.
1802 /// +optional
1803 #[prost(message, optional, tag = "13")]
1804 pub related: ::core::option::Option<ObjectReference>,
1805 /// Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
1806 /// +optional
1807 #[prost(string, optional, tag = "14")]
1808 pub reporting_component: ::core::option::Option<::prost::alloc::string::String>,
1809 /// ID of the controller instance, e.g. `kubelet-xyzf`.
1810 /// +optional
1811 #[prost(string, optional, tag = "15")]
1812 pub reporting_instance: ::core::option::Option<::prost::alloc::string::String>,
1813}
1814/// EventList is a list of events.
1815#[derive(Clone, PartialEq, ::prost::Message)]
1816pub struct EventList {
1817 /// Standard list metadata.
1818 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds>
1819 /// +optional
1820 #[prost(message, optional, tag = "1")]
1821 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
1822 /// List of events
1823 #[prost(message, repeated, tag = "2")]
1824 pub items: ::prost::alloc::vec::Vec<Event>,
1825}
1826/// EventSeries contain information on series of events, i.e. thing that was/is happening
1827/// continuously for some time.
1828#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
1829pub struct EventSeries {
1830 /// Number of occurrences in this series up to the last heartbeat time
1831 #[prost(int32, optional, tag = "1")]
1832 pub count: ::core::option::Option<i32>,
1833 /// Time of the last occurrence observed
1834 #[prost(message, optional, tag = "2")]
1835 pub last_observed_time:
1836 ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::MicroTime>,
1837}
1838/// EventSource contains information for an event.
1839#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1840pub struct EventSource {
1841 /// Component from which the event is generated.
1842 /// +optional
1843 #[prost(string, optional, tag = "1")]
1844 pub component: ::core::option::Option<::prost::alloc::string::String>,
1845 /// Node name on which the event is generated.
1846 /// +optional
1847 #[prost(string, optional, tag = "2")]
1848 pub host: ::core::option::Option<::prost::alloc::string::String>,
1849}
1850/// ExecAction describes a "run in container" action.
1851#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1852pub struct ExecAction {
1853 /// Command is the command line to execute inside the container, the working directory for the
1854 /// command is root ('/') in the container's filesystem. The command is simply exec'd, it is
1855 /// not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use
1856 /// a shell, you need to explicitly call out to that shell.
1857 /// Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
1858 /// +optional
1859 /// +listType=atomic
1860 #[prost(string, repeated, tag = "1")]
1861 pub command: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1862}
1863/// Represents a Fibre Channel volume.
1864/// Fibre Channel volumes can only be mounted as read/write once.
1865/// Fibre Channel volumes support ownership management and SELinux relabeling.
1866#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1867pub struct FcVolumeSource {
1868 /// targetWWNs is Optional: FC target worldwide names (WWNs)
1869 /// +optional
1870 /// +listType=atomic
1871 #[prost(string, repeated, tag = "1")]
1872 pub target_ww_ns: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1873 /// lun is Optional: FC target lun number
1874 /// +optional
1875 #[prost(int32, optional, tag = "2")]
1876 pub lun: ::core::option::Option<i32>,
1877 /// fsType is the filesystem type to mount.
1878 /// Must be a filesystem type supported by the host operating system.
1879 /// Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
1880 /// TODO: how do we prevent errors in the filesystem from compromising the machine
1881 /// +optional
1882 #[prost(string, optional, tag = "3")]
1883 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
1884 /// readOnly is Optional: Defaults to false (read/write). ReadOnly here will force
1885 /// the ReadOnly setting in VolumeMounts.
1886 /// +optional
1887 #[prost(bool, optional, tag = "4")]
1888 pub read_only: ::core::option::Option<bool>,
1889 /// wwids Optional: FC volume world wide identifiers (wwids)
1890 /// Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
1891 /// +optional
1892 /// +listType=atomic
1893 #[prost(string, repeated, tag = "5")]
1894 pub wwids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1895}
1896/// FileKeySelector selects a key of the env file.
1897/// +structType=atomic
1898#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1899pub struct FileKeySelector {
1900 /// The name of the volume mount containing the env file.
1901 /// +required
1902 #[prost(string, optional, tag = "1")]
1903 pub volume_name: ::core::option::Option<::prost::alloc::string::String>,
1904 /// The path within the volume from which to select the file.
1905 /// Must be relative and may not contain the '..' path or start with '..'.
1906 /// +required
1907 #[prost(string, optional, tag = "2")]
1908 pub path: ::core::option::Option<::prost::alloc::string::String>,
1909 /// The key within the env file. An invalid key will prevent the pod from starting.
1910 /// The keys defined within a source may consist of any printable ASCII characters except '='.
1911 /// During Alpha stage of the EnvFiles feature gate, the key size is limited to 128 characters.
1912 /// +required
1913 #[prost(string, optional, tag = "3")]
1914 pub key: ::core::option::Option<::prost::alloc::string::String>,
1915 /// Specify whether the file or its key must be defined. If the file or key
1916 /// does not exist, then the env var is not published.
1917 /// If optional is set to true and the specified key does not exist,
1918 /// the environment variable will not be set in the Pod's containers.
1919 ///
1920 /// If optional is set to false and the specified key does not exist,
1921 /// an error will be returned during Pod creation.
1922 /// +optional
1923 /// +default=false
1924 #[prost(bool, optional, tag = "4")]
1925 pub optional: ::core::option::Option<bool>,
1926}
1927/// FlexPersistentVolumeSource represents a generic persistent volume resource that is
1928/// provisioned/attached using an exec based plugin.
1929#[derive(Clone, PartialEq, ::prost::Message)]
1930pub struct FlexPersistentVolumeSource {
1931 /// driver is the name of the driver to use for this volume.
1932 #[prost(string, optional, tag = "1")]
1933 pub driver: ::core::option::Option<::prost::alloc::string::String>,
1934 /// fsType is the Filesystem type to mount.
1935 /// Must be a filesystem type supported by the host operating system.
1936 /// Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
1937 /// +optional
1938 #[prost(string, optional, tag = "2")]
1939 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
1940 /// secretRef is Optional: SecretRef is reference to the secret object containing
1941 /// sensitive information to pass to the plugin scripts. This may be
1942 /// empty if no secret object is specified. If the secret object
1943 /// contains more than one secret, all secrets are passed to the plugin
1944 /// scripts.
1945 /// +optional
1946 #[prost(message, optional, tag = "3")]
1947 pub secret_ref: ::core::option::Option<SecretReference>,
1948 /// readOnly is Optional: defaults to false (read/write). ReadOnly here will force
1949 /// the ReadOnly setting in VolumeMounts.
1950 /// +optional
1951 #[prost(bool, optional, tag = "4")]
1952 pub read_only: ::core::option::Option<bool>,
1953 /// options is Optional: this field holds extra command options if any.
1954 /// +optional
1955 #[prost(btree_map = "string, string", tag = "5")]
1956 pub options:
1957 ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
1958}
1959/// FlexVolume represents a generic volume resource that is
1960/// provisioned/attached using an exec based plugin.
1961#[derive(Clone, PartialEq, ::prost::Message)]
1962pub struct FlexVolumeSource {
1963 /// driver is the name of the driver to use for this volume.
1964 #[prost(string, optional, tag = "1")]
1965 pub driver: ::core::option::Option<::prost::alloc::string::String>,
1966 /// fsType is the filesystem type to mount.
1967 /// Must be a filesystem type supported by the host operating system.
1968 /// Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
1969 /// +optional
1970 #[prost(string, optional, tag = "2")]
1971 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
1972 /// secretRef is Optional: secretRef is reference to the secret object containing
1973 /// sensitive information to pass to the plugin scripts. This may be
1974 /// empty if no secret object is specified. If the secret object
1975 /// contains more than one secret, all secrets are passed to the plugin
1976 /// scripts.
1977 /// +optional
1978 #[prost(message, optional, tag = "3")]
1979 pub secret_ref: ::core::option::Option<LocalObjectReference>,
1980 /// readOnly is Optional: defaults to false (read/write). ReadOnly here will force
1981 /// the ReadOnly setting in VolumeMounts.
1982 /// +optional
1983 #[prost(bool, optional, tag = "4")]
1984 pub read_only: ::core::option::Option<bool>,
1985 /// options is Optional: this field holds extra command options if any.
1986 /// +optional
1987 #[prost(btree_map = "string, string", tag = "5")]
1988 pub options:
1989 ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
1990}
1991/// Represents a Flocker volume mounted by the Flocker agent.
1992/// One and only one of datasetName and datasetUUID should be set.
1993/// Flocker volumes do not support ownership management or SELinux relabeling.
1994#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1995pub struct FlockerVolumeSource {
1996 /// datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker
1997 /// should be considered as deprecated
1998 /// +optional
1999 #[prost(string, optional, tag = "1")]
2000 pub dataset_name: ::core::option::Option<::prost::alloc::string::String>,
2001 /// datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset
2002 /// +optional
2003 #[prost(string, optional, tag = "2")]
2004 pub dataset_uuid: ::core::option::Option<::prost::alloc::string::String>,
2005}
2006/// Represents a Persistent Disk resource in Google Compute Engine.
2007///
2008/// A GCE PD must exist before mounting to a container. The disk must
2009/// also be in the same GCE project and zone as the kubelet. A GCE PD
2010/// can only be mounted as read/write once or read-only many times. GCE
2011/// PDs support ownership management and SELinux relabeling.
2012#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2013pub struct GcePersistentDiskVolumeSource {
2014 /// pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE.
2015 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk>
2016 #[prost(string, optional, tag = "1")]
2017 pub pd_name: ::core::option::Option<::prost::alloc::string::String>,
2018 /// fsType is filesystem type of the volume that you want to mount.
2019 /// Tip: Ensure that the filesystem type is supported by the host operating system.
2020 /// Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
2021 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk>
2022 /// TODO: how do we prevent errors in the filesystem from compromising the machine
2023 /// +optional
2024 #[prost(string, optional, tag = "2")]
2025 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
2026 /// partition is the partition in the volume that you want to mount.
2027 /// If omitted, the default is to mount by volume name.
2028 /// Examples: For volume /dev/sda1, you specify the partition as "1".
2029 /// Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
2030 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk>
2031 /// +optional
2032 #[prost(int32, optional, tag = "3")]
2033 pub partition: ::core::option::Option<i32>,
2034 /// readOnly here will force the ReadOnly setting in VolumeMounts.
2035 /// Defaults to false.
2036 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk>
2037 /// +optional
2038 #[prost(bool, optional, tag = "4")]
2039 pub read_only: ::core::option::Option<bool>,
2040}
2041/// GRPCAction specifies an action involving a GRPC service.
2042#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2043pub struct GrpcAction {
2044 /// Port number of the gRPC service. Number must be in the range 1 to 65535.
2045 #[prost(int32, optional, tag = "1")]
2046 pub port: ::core::option::Option<i32>,
2047 /// Service is the name of the service to place in the gRPC HealthCheckRequest
2048 /// (see <https://github.com/grpc/grpc/blob/master/doc/health-checking.md>).
2049 ///
2050 /// If this is not specified, the default behavior is defined by gRPC.
2051 /// +optional
2052 /// +default=""
2053 #[prost(string, optional, tag = "2")]
2054 pub service: ::core::option::Option<::prost::alloc::string::String>,
2055}
2056/// Represents a volume that is populated with the contents of a git repository.
2057/// Git repo volumes do not support ownership management.
2058/// Git repo volumes support SELinux relabeling.
2059///
2060/// DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an
2061/// EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir
2062/// into the Pod's container.
2063#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2064pub struct GitRepoVolumeSource {
2065 /// repository is the URL
2066 #[prost(string, optional, tag = "1")]
2067 pub repository: ::core::option::Option<::prost::alloc::string::String>,
2068 /// revision is the commit hash for the specified revision.
2069 /// +optional
2070 #[prost(string, optional, tag = "2")]
2071 pub revision: ::core::option::Option<::prost::alloc::string::String>,
2072 /// directory is the target directory name.
2073 /// Must not contain or start with '..'. If '.' is supplied, the volume directory will be the
2074 /// git repository. Otherwise, if specified, the volume will contain the git repository in
2075 /// the subdirectory with the given name.
2076 /// +optional
2077 #[prost(string, optional, tag = "3")]
2078 pub directory: ::core::option::Option<::prost::alloc::string::String>,
2079}
2080/// Represents a Glusterfs mount that lasts the lifetime of a pod.
2081/// Glusterfs volumes do not support ownership management or SELinux relabeling.
2082#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2083pub struct GlusterfsPersistentVolumeSource {
2084 /// endpoints is the endpoint name that details Glusterfs topology.
2085 /// More info: <https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod>
2086 #[prost(string, optional, tag = "1")]
2087 pub endpoints: ::core::option::Option<::prost::alloc::string::String>,
2088 /// path is the Glusterfs volume path.
2089 /// More info: <https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod>
2090 #[prost(string, optional, tag = "2")]
2091 pub path: ::core::option::Option<::prost::alloc::string::String>,
2092 /// readOnly here will force the Glusterfs volume to be mounted with read-only permissions.
2093 /// Defaults to false.
2094 /// More info: <https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod>
2095 /// +optional
2096 #[prost(bool, optional, tag = "3")]
2097 pub read_only: ::core::option::Option<bool>,
2098 /// endpointsNamespace is the namespace that contains Glusterfs endpoint.
2099 /// If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC.
2100 /// More info: <https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod>
2101 /// +optional
2102 #[prost(string, optional, tag = "4")]
2103 pub endpoints_namespace: ::core::option::Option<::prost::alloc::string::String>,
2104}
2105/// Represents a Glusterfs mount that lasts the lifetime of a pod.
2106/// Glusterfs volumes do not support ownership management or SELinux relabeling.
2107#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2108pub struct GlusterfsVolumeSource {
2109 /// endpoints is the endpoint name that details Glusterfs topology.
2110 #[prost(string, optional, tag = "1")]
2111 pub endpoints: ::core::option::Option<::prost::alloc::string::String>,
2112 /// path is the Glusterfs volume path.
2113 /// More info: <https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod>
2114 #[prost(string, optional, tag = "2")]
2115 pub path: ::core::option::Option<::prost::alloc::string::String>,
2116 /// readOnly here will force the Glusterfs volume to be mounted with read-only permissions.
2117 /// Defaults to false.
2118 /// More info: <https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod>
2119 /// +optional
2120 #[prost(bool, optional, tag = "3")]
2121 pub read_only: ::core::option::Option<bool>,
2122}
2123/// HTTPGetAction describes an action based on HTTP Get requests.
2124#[derive(Clone, PartialEq, ::prost::Message)]
2125pub struct HttpGetAction {
2126 /// Path to access on the HTTP server.
2127 /// +optional
2128 #[prost(string, optional, tag = "1")]
2129 pub path: ::core::option::Option<::prost::alloc::string::String>,
2130 /// Name or number of the port to access on the container.
2131 /// Number must be in the range 1 to 65535.
2132 /// Name must be an IANA_SVC_NAME.
2133 #[prost(message, optional, tag = "2")]
2134 pub port: ::core::option::Option<super::super::super::apimachinery::pkg::util::intstr::IntOrString>,
2135 /// Host name to connect to, defaults to the pod IP. You probably want to set
2136 /// "Host" in httpHeaders instead.
2137 /// +optional
2138 #[prost(string, optional, tag = "3")]
2139 pub host: ::core::option::Option<::prost::alloc::string::String>,
2140 /// Scheme to use for connecting to the host.
2141 /// Defaults to HTTP.
2142 /// +optional
2143 #[prost(string, optional, tag = "4")]
2144 pub scheme: ::core::option::Option<::prost::alloc::string::String>,
2145 /// Custom headers to set in the request. HTTP allows repeated headers.
2146 /// +optional
2147 /// +listType=atomic
2148 #[prost(message, repeated, tag = "5")]
2149 pub http_headers: ::prost::alloc::vec::Vec<HttpHeader>,
2150}
2151/// HTTPHeader describes a custom header to be used in HTTP probes
2152#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2153pub struct HttpHeader {
2154 /// The header field name.
2155 /// This will be canonicalized upon output, so case-variant names will be understood as the same header.
2156 #[prost(string, optional, tag = "1")]
2157 pub name: ::core::option::Option<::prost::alloc::string::String>,
2158 /// The header field value
2159 #[prost(string, optional, tag = "2")]
2160 pub value: ::core::option::Option<::prost::alloc::string::String>,
2161}
2162/// HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the
2163/// pod's hosts file.
2164#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2165pub struct HostAlias {
2166 /// IP address of the host file entry.
2167 /// +required
2168 #[prost(string, optional, tag = "1")]
2169 pub ip: ::core::option::Option<::prost::alloc::string::String>,
2170 /// Hostnames for the above IP address.
2171 /// +listType=atomic
2172 #[prost(string, repeated, tag = "2")]
2173 pub hostnames: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2174}
2175/// HostIP represents a single IP address allocated to the host.
2176#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2177pub struct HostIp {
2178 /// IP is the IP address assigned to the host
2179 /// +required
2180 #[prost(string, optional, tag = "1")]
2181 pub ip: ::core::option::Option<::prost::alloc::string::String>,
2182}
2183/// Represents a host path mapped into a pod.
2184/// Host path volumes do not support ownership management or SELinux relabeling.
2185#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2186pub struct HostPathVolumeSource {
2187 /// path of the directory on the host.
2188 /// If the path is a symlink, it will follow the link to the real path.
2189 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#hostpath>
2190 #[prost(string, optional, tag = "1")]
2191 pub path: ::core::option::Option<::prost::alloc::string::String>,
2192 /// type for HostPath Volume
2193 /// Defaults to ""
2194 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#hostpath>
2195 /// +optional
2196 #[prost(string, optional, tag = "2")]
2197 pub r#type: ::core::option::Option<::prost::alloc::string::String>,
2198}
2199/// ISCSIPersistentVolumeSource represents an ISCSI disk.
2200/// ISCSI volumes can only be mounted as read/write once.
2201/// ISCSI volumes support ownership management and SELinux relabeling.
2202#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2203pub struct IscsiPersistentVolumeSource {
2204 /// targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
2205 /// is other than default (typically TCP ports 860 and 3260).
2206 #[prost(string, optional, tag = "1")]
2207 pub target_portal: ::core::option::Option<::prost::alloc::string::String>,
2208 /// iqn is Target iSCSI Qualified Name.
2209 #[prost(string, optional, tag = "2")]
2210 pub iqn: ::core::option::Option<::prost::alloc::string::String>,
2211 /// lun is iSCSI Target Lun number.
2212 #[prost(int32, optional, tag = "3")]
2213 pub lun: ::core::option::Option<i32>,
2214 /// iscsiInterface is the interface Name that uses an iSCSI transport.
2215 /// Defaults to 'default' (tcp).
2216 /// +optional
2217 /// +default="default"
2218 #[prost(string, optional, tag = "4")]
2219 pub iscsi_interface: ::core::option::Option<::prost::alloc::string::String>,
2220 /// fsType is the filesystem type of the volume that you want to mount.
2221 /// Tip: Ensure that the filesystem type is supported by the host operating system.
2222 /// Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
2223 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#iscsi>
2224 /// TODO: how do we prevent errors in the filesystem from compromising the machine
2225 /// +optional
2226 #[prost(string, optional, tag = "5")]
2227 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
2228 /// readOnly here will force the ReadOnly setting in VolumeMounts.
2229 /// Defaults to false.
2230 /// +optional
2231 #[prost(bool, optional, tag = "6")]
2232 pub read_only: ::core::option::Option<bool>,
2233 /// portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port
2234 /// is other than default (typically TCP ports 860 and 3260).
2235 /// +optional
2236 /// +listType=atomic
2237 #[prost(string, repeated, tag = "7")]
2238 pub portals: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2239 /// chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication
2240 /// +optional
2241 #[prost(bool, optional, tag = "8")]
2242 pub chap_auth_discovery: ::core::option::Option<bool>,
2243 /// chapAuthSession defines whether support iSCSI Session CHAP authentication
2244 /// +optional
2245 #[prost(bool, optional, tag = "11")]
2246 pub chap_auth_session: ::core::option::Option<bool>,
2247 /// secretRef is the CHAP Secret for iSCSI target and initiator authentication
2248 /// +optional
2249 #[prost(message, optional, tag = "10")]
2250 pub secret_ref: ::core::option::Option<SecretReference>,
2251 /// initiatorName is the custom iSCSI Initiator Name.
2252 /// If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
2253 /// <target portal>:<volume name> will be created for the connection.
2254 /// +optional
2255 #[prost(string, optional, tag = "12")]
2256 pub initiator_name: ::core::option::Option<::prost::alloc::string::String>,
2257}
2258/// Represents an ISCSI disk.
2259/// ISCSI volumes can only be mounted as read/write once.
2260/// ISCSI volumes support ownership management and SELinux relabeling.
2261#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2262pub struct IscsiVolumeSource {
2263 /// targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
2264 /// is other than default (typically TCP ports 860 and 3260).
2265 #[prost(string, optional, tag = "1")]
2266 pub target_portal: ::core::option::Option<::prost::alloc::string::String>,
2267 /// iqn is the target iSCSI Qualified Name.
2268 #[prost(string, optional, tag = "2")]
2269 pub iqn: ::core::option::Option<::prost::alloc::string::String>,
2270 /// lun represents iSCSI Target Lun number.
2271 #[prost(int32, optional, tag = "3")]
2272 pub lun: ::core::option::Option<i32>,
2273 /// iscsiInterface is the interface Name that uses an iSCSI transport.
2274 /// Defaults to 'default' (tcp).
2275 /// +optional
2276 /// +default="default"
2277 #[prost(string, optional, tag = "4")]
2278 pub iscsi_interface: ::core::option::Option<::prost::alloc::string::String>,
2279 /// fsType is the filesystem type of the volume that you want to mount.
2280 /// Tip: Ensure that the filesystem type is supported by the host operating system.
2281 /// Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
2282 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#iscsi>
2283 /// TODO: how do we prevent errors in the filesystem from compromising the machine
2284 /// +optional
2285 #[prost(string, optional, tag = "5")]
2286 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
2287 /// readOnly here will force the ReadOnly setting in VolumeMounts.
2288 /// Defaults to false.
2289 /// +optional
2290 #[prost(bool, optional, tag = "6")]
2291 pub read_only: ::core::option::Option<bool>,
2292 /// portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port
2293 /// is other than default (typically TCP ports 860 and 3260).
2294 /// +optional
2295 /// +listType=atomic
2296 #[prost(string, repeated, tag = "7")]
2297 pub portals: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2298 /// chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication
2299 /// +optional
2300 #[prost(bool, optional, tag = "8")]
2301 pub chap_auth_discovery: ::core::option::Option<bool>,
2302 /// chapAuthSession defines whether support iSCSI Session CHAP authentication
2303 /// +optional
2304 #[prost(bool, optional, tag = "11")]
2305 pub chap_auth_session: ::core::option::Option<bool>,
2306 /// secretRef is the CHAP Secret for iSCSI target and initiator authentication
2307 /// +optional
2308 #[prost(message, optional, tag = "10")]
2309 pub secret_ref: ::core::option::Option<LocalObjectReference>,
2310 /// initiatorName is the custom iSCSI Initiator Name.
2311 /// If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
2312 /// <target portal>:<volume name> will be created for the connection.
2313 /// +optional
2314 #[prost(string, optional, tag = "12")]
2315 pub initiator_name: ::core::option::Option<::prost::alloc::string::String>,
2316}
2317/// ImageVolumeSource represents a image volume resource.
2318#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2319pub struct ImageVolumeSource {
2320 /// Required: Image or artifact reference to be used.
2321 /// Behaves in the same way as pod.spec.containers\[*\].image.
2322 /// 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.
2323 /// More info: <https://kubernetes.io/docs/concepts/containers/images>
2324 /// This field is optional to allow higher level config management to default or override
2325 /// container images in workload controllers like Deployments and StatefulSets.
2326 /// +optional
2327 #[prost(string, optional, tag = "1")]
2328 pub reference: ::core::option::Option<::prost::alloc::string::String>,
2329 /// Policy for pulling OCI objects. Possible values are:
2330 /// Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails.
2331 /// 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.
2332 /// 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.
2333 /// Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
2334 /// +optional
2335 #[prost(string, optional, tag = "2")]
2336 pub pull_policy: ::core::option::Option<::prost::alloc::string::String>,
2337}
2338/// Maps a string key to a path within a volume.
2339#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2340pub struct KeyToPath {
2341 /// key is the key to project.
2342 #[prost(string, optional, tag = "1")]
2343 pub key: ::core::option::Option<::prost::alloc::string::String>,
2344 /// path is the relative path of the file to map the key to.
2345 /// May not be an absolute path.
2346 /// May not contain the path element '..'.
2347 /// May not start with the string '..'.
2348 #[prost(string, optional, tag = "2")]
2349 pub path: ::core::option::Option<::prost::alloc::string::String>,
2350 /// mode is Optional: mode bits used to set permissions on this file.
2351 /// Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
2352 /// YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
2353 /// If not specified, the volume defaultMode will be used.
2354 /// This might be in conflict with other options that affect the file
2355 /// mode, like fsGroup, and the result can be other mode bits set.
2356 /// +optional
2357 #[prost(int32, optional, tag = "3")]
2358 pub mode: ::core::option::Option<i32>,
2359}
2360/// Lifecycle describes actions that the management system should take in response to container lifecycle
2361/// events. For the PostStart and PreStop lifecycle handlers, management of the container blocks
2362/// until the action is complete, unless the container process fails, in which case the handler is aborted.
2363#[derive(Clone, PartialEq, ::prost::Message)]
2364pub struct Lifecycle {
2365 /// PostStart is called immediately after a container is created. If the handler fails,
2366 /// the container is terminated and restarted according to its restart policy.
2367 /// Other management of the container blocks until the hook completes.
2368 /// More info: <https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks>
2369 /// +optional
2370 #[prost(message, optional, tag = "1")]
2371 pub post_start: ::core::option::Option<LifecycleHandler>,
2372 /// PreStop is called immediately before a container is terminated due to an
2373 /// API request or management event such as liveness/startup probe failure,
2374 /// preemption, resource contention, etc. The handler is not called if the
2375 /// container crashes or exits. The Pod's termination grace period countdown begins before the
2376 /// PreStop hook is executed. Regardless of the outcome of the handler, the
2377 /// container will eventually terminate within the Pod's termination grace
2378 /// period (unless delayed by finalizers). Other management of the container blocks until the hook completes
2379 /// or until the termination grace period is reached.
2380 /// More info: <https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks>
2381 /// +optional
2382 #[prost(message, optional, tag = "2")]
2383 pub pre_stop: ::core::option::Option<LifecycleHandler>,
2384 /// StopSignal defines which signal will be sent to a container when it is being stopped.
2385 /// If not specified, the default is defined by the container runtime in use.
2386 /// StopSignal can only be set for Pods with a non-empty .spec.os.name
2387 /// +optional
2388 #[prost(string, optional, tag = "3")]
2389 pub stop_signal: ::core::option::Option<::prost::alloc::string::String>,
2390}
2391/// LifecycleHandler defines a specific action that should be taken in a lifecycle
2392/// hook. One and only one of the fields, except TCPSocket must be specified.
2393#[derive(Clone, PartialEq, ::prost::Message)]
2394pub struct LifecycleHandler {
2395 /// Exec specifies a command to execute in the container.
2396 /// +optional
2397 #[prost(message, optional, tag = "1")]
2398 pub exec: ::core::option::Option<ExecAction>,
2399 /// HTTPGet specifies an HTTP GET request to perform.
2400 /// +optional
2401 #[prost(message, optional, tag = "2")]
2402 pub http_get: ::core::option::Option<HttpGetAction>,
2403 /// Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept
2404 /// for backward compatibility. There is no validation of this field and
2405 /// lifecycle hooks will fail at runtime when it is specified.
2406 /// +optional
2407 #[prost(message, optional, tag = "3")]
2408 pub tcp_socket: ::core::option::Option<TcpSocketAction>,
2409 /// Sleep represents a duration that the container should sleep.
2410 /// +optional
2411 #[prost(message, optional, tag = "4")]
2412 pub sleep: ::core::option::Option<SleepAction>,
2413}
2414/// LimitRange sets resource usage limits for each kind of resource in a Namespace.
2415#[derive(Clone, PartialEq, ::prost::Message)]
2416pub struct LimitRange {
2417 /// Standard object's metadata.
2418 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
2419 /// +optional
2420 #[prost(message, optional, tag = "1")]
2421 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
2422 /// Spec defines the limits enforced.
2423 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status>
2424 /// +optional
2425 #[prost(message, optional, tag = "2")]
2426 pub spec: ::core::option::Option<LimitRangeSpec>,
2427}
2428/// LimitRangeItem defines a min/max usage limit for any resource that matches on kind.
2429#[derive(Clone, PartialEq, ::prost::Message)]
2430pub struct LimitRangeItem {
2431 /// Type of resource that this limit applies to.
2432 #[prost(string, optional, tag = "1")]
2433 pub r#type: ::core::option::Option<::prost::alloc::string::String>,
2434 /// Max usage constraints on this kind by resource name.
2435 /// +optional
2436 #[prost(btree_map = "string, message", tag = "2")]
2437 pub max: ::prost::alloc::collections::BTreeMap<
2438 ::prost::alloc::string::String,
2439 super::super::super::apimachinery::pkg::api::resource::Quantity,
2440 >,
2441 /// Min usage constraints on this kind by resource name.
2442 /// +optional
2443 #[prost(btree_map = "string, message", tag = "3")]
2444 pub min: ::prost::alloc::collections::BTreeMap<
2445 ::prost::alloc::string::String,
2446 super::super::super::apimachinery::pkg::api::resource::Quantity,
2447 >,
2448 /// Default resource requirement limit value by resource name if resource limit is omitted.
2449 /// +optional
2450 #[prost(btree_map = "string, message", tag = "4")]
2451 pub default: ::prost::alloc::collections::BTreeMap<
2452 ::prost::alloc::string::String,
2453 super::super::super::apimachinery::pkg::api::resource::Quantity,
2454 >,
2455 /// DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.
2456 /// +optional
2457 #[prost(btree_map = "string, message", tag = "5")]
2458 pub default_request: ::prost::alloc::collections::BTreeMap<
2459 ::prost::alloc::string::String,
2460 super::super::super::apimachinery::pkg::api::resource::Quantity,
2461 >,
2462 /// 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.
2463 /// +optional
2464 #[prost(btree_map = "string, message", tag = "6")]
2465 pub max_limit_request_ratio: ::prost::alloc::collections::BTreeMap<
2466 ::prost::alloc::string::String,
2467 super::super::super::apimachinery::pkg::api::resource::Quantity,
2468 >,
2469}
2470/// LimitRangeList is a list of LimitRange items.
2471#[derive(Clone, PartialEq, ::prost::Message)]
2472pub struct LimitRangeList {
2473 /// Standard list metadata.
2474 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds>
2475 /// +optional
2476 #[prost(message, optional, tag = "1")]
2477 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
2478 /// Items is a list of LimitRange objects.
2479 /// More info: <https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/>
2480 #[prost(message, repeated, tag = "2")]
2481 pub items: ::prost::alloc::vec::Vec<LimitRange>,
2482}
2483/// LimitRangeSpec defines a min/max usage limit for resources that match on kind.
2484#[derive(Clone, PartialEq, ::prost::Message)]
2485pub struct LimitRangeSpec {
2486 /// Limits is the list of LimitRangeItem objects that are enforced.
2487 /// +listType=atomic
2488 #[prost(message, repeated, tag = "1")]
2489 pub limits: ::prost::alloc::vec::Vec<LimitRangeItem>,
2490}
2491/// LinuxContainerUser represents user identity information in Linux containers
2492#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2493pub struct LinuxContainerUser {
2494 /// UID is the primary uid initially attached to the first process in the container
2495 #[prost(int64, optional, tag = "1")]
2496 pub uid: ::core::option::Option<i64>,
2497 /// GID is the primary gid initially attached to the first process in the container
2498 #[prost(int64, optional, tag = "2")]
2499 pub gid: ::core::option::Option<i64>,
2500 /// SupplementalGroups are the supplemental groups initially attached to the first process in the container
2501 /// +optional
2502 /// +listType=atomic
2503 #[prost(int64, repeated, packed = "false", tag = "3")]
2504 pub supplemental_groups: ::prost::alloc::vec::Vec<i64>,
2505}
2506/// List holds a list of objects, which may not be known by the server.
2507#[derive(Clone, PartialEq, ::prost::Message)]
2508pub struct List {
2509 /// Standard list metadata.
2510 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds>
2511 /// +optional
2512 #[prost(message, optional, tag = "1")]
2513 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
2514 /// List of objects
2515 #[prost(message, repeated, tag = "2")]
2516 pub items: ::prost::alloc::vec::Vec<super::super::super::apimachinery::pkg::runtime::RawExtension>,
2517}
2518/// LoadBalancerIngress represents the status of a load-balancer ingress point:
2519/// traffic intended for the service should be sent to an ingress point.
2520#[derive(Clone, PartialEq, ::prost::Message)]
2521pub struct LoadBalancerIngress {
2522 /// IP is set for load-balancer ingress points that are IP based
2523 /// (typically GCE or OpenStack load-balancers)
2524 /// +optional
2525 #[prost(string, optional, tag = "1")]
2526 pub ip: ::core::option::Option<::prost::alloc::string::String>,
2527 /// Hostname is set for load-balancer ingress points that are DNS based
2528 /// (typically AWS load-balancers)
2529 /// +optional
2530 #[prost(string, optional, tag = "2")]
2531 pub hostname: ::core::option::Option<::prost::alloc::string::String>,
2532 /// IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified.
2533 /// Setting this to "VIP" indicates that traffic is delivered to the node with
2534 /// the destination set to the load-balancer's IP and port.
2535 /// Setting this to "Proxy" indicates that traffic is delivered to the node or pod with
2536 /// the destination set to the node's IP and node port or the pod's IP and port.
2537 /// Service implementations may use this information to adjust traffic routing.
2538 /// +optional
2539 #[prost(string, optional, tag = "3")]
2540 pub ip_mode: ::core::option::Option<::prost::alloc::string::String>,
2541 /// Ports is a list of records of service ports
2542 /// If used, every port defined in the service should have an entry in it
2543 /// +listType=atomic
2544 /// +optional
2545 #[prost(message, repeated, tag = "4")]
2546 pub ports: ::prost::alloc::vec::Vec<PortStatus>,
2547}
2548/// LoadBalancerStatus represents the status of a load-balancer.
2549#[derive(Clone, PartialEq, ::prost::Message)]
2550pub struct LoadBalancerStatus {
2551 /// Ingress is a list containing ingress points for the load-balancer.
2552 /// Traffic intended for the service should be sent to these ingress points.
2553 /// +optional
2554 /// +listType=atomic
2555 #[prost(message, repeated, tag = "1")]
2556 pub ingress: ::prost::alloc::vec::Vec<LoadBalancerIngress>,
2557}
2558/// LocalObjectReference contains enough information to let you locate the
2559/// referenced object inside the same namespace.
2560/// ---
2561/// New uses of this type are discouraged because of difficulty describing its usage when embedded in APIs.
2562/// 1. Invalid usage help. It is impossible to add specific help for individual usage. In most embedded usages, there are particular
2563/// restrictions like, "must refer only to types A and B" or "UID not honored" or "name must be restricted".
2564/// Those cannot be well described when embedded.
2565/// 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.
2566/// 3. We cannot easily change it. Because this type is embedded in many locations, updates to this type
2567/// will affect numerous schemas. Don't make new APIs embed an underspecified API type they do not control.
2568///
2569/// Instead of using this type, create a locally provided and used type that is well-focused on your reference.
2570/// For example, ServiceReferences for admission registration: <https://github.com/kubernetes/api/blob/release-1.17/admissionregistration/v1/types.go#L533> .
2571/// +structType=atomic
2572#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2573pub struct LocalObjectReference {
2574 /// Name of the referent.
2575 /// This field is effectively required, but due to backwards compatibility is
2576 /// allowed to be empty. Instances of this type with an empty value here are
2577 /// almost certainly wrong.
2578 /// More info: <https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names>
2579 /// +optional
2580 /// +default=""
2581 /// +kubebuilder:default=""
2582 /// TODO: Drop `kubebuilder:default` when controller-gen doesn't need it <https://github.com/kubernetes-sigs/kubebuilder/issues/3896.>
2583 #[prost(string, optional, tag = "1")]
2584 pub name: ::core::option::Option<::prost::alloc::string::String>,
2585}
2586/// Local represents directly-attached storage with node affinity
2587#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2588pub struct LocalVolumeSource {
2589 /// path of the full path to the volume on the node.
2590 /// It can be either a directory or block device (disk, partition, ...).
2591 #[prost(string, optional, tag = "1")]
2592 pub path: ::core::option::Option<::prost::alloc::string::String>,
2593 /// fsType is the filesystem type to mount.
2594 /// It applies only when the Path is a block device.
2595 /// Must be a filesystem type supported by the host operating system.
2596 /// Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a filesystem if unspecified.
2597 /// +optional
2598 #[prost(string, optional, tag = "2")]
2599 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
2600}
2601/// ModifyVolumeStatus represents the status object of ControllerModifyVolume operation
2602#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2603pub struct ModifyVolumeStatus {
2604 /// targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled
2605 #[prost(string, optional, tag = "1")]
2606 pub target_volume_attributes_class_name: ::core::option::Option<::prost::alloc::string::String>,
2607 /// status is the status of the ControllerModifyVolume operation. It can be in any of following states:
2608 /// - Pending
2609 /// Pending indicates that the PersistentVolumeClaim cannot be modified due to unmet requirements, such as
2610 /// the specified VolumeAttributesClass not existing.
2611 /// - InProgress
2612 /// InProgress indicates that the volume is being modified.
2613 /// - Infeasible
2614 /// Infeasible indicates that the request has been rejected as invalid by the CSI driver. To
2615 /// resolve the error, a valid VolumeAttributesClass needs to be specified.
2616 /// Note: New statuses can be added in the future. Consumers should check for unknown statuses and fail appropriately.
2617 #[prost(string, optional, tag = "2")]
2618 pub status: ::core::option::Option<::prost::alloc::string::String>,
2619}
2620/// Represents an NFS mount that lasts the lifetime of a pod.
2621/// NFS volumes do not support ownership management or SELinux relabeling.
2622#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2623pub struct NfsVolumeSource {
2624 /// server is the hostname or IP address of the NFS server.
2625 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#nfs>
2626 #[prost(string, optional, tag = "1")]
2627 pub server: ::core::option::Option<::prost::alloc::string::String>,
2628 /// path that is exported by the NFS server.
2629 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#nfs>
2630 #[prost(string, optional, tag = "2")]
2631 pub path: ::core::option::Option<::prost::alloc::string::String>,
2632 /// readOnly here will force the NFS export to be mounted with read-only permissions.
2633 /// Defaults to false.
2634 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#nfs>
2635 /// +optional
2636 #[prost(bool, optional, tag = "3")]
2637 pub read_only: ::core::option::Option<bool>,
2638}
2639/// Namespace provides a scope for Names.
2640/// Use of multiple namespaces is optional.
2641#[derive(Clone, PartialEq, ::prost::Message)]
2642pub struct Namespace {
2643 /// Standard object's metadata.
2644 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
2645 /// +optional
2646 #[prost(message, optional, tag = "1")]
2647 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
2648 /// Spec defines the behavior of the Namespace.
2649 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status>
2650 /// +optional
2651 #[prost(message, optional, tag = "2")]
2652 pub spec: ::core::option::Option<NamespaceSpec>,
2653 /// Status describes the current status of a Namespace.
2654 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status>
2655 /// +optional
2656 #[prost(message, optional, tag = "3")]
2657 pub status: ::core::option::Option<NamespaceStatus>,
2658}
2659/// NamespaceCondition contains details about state of namespace.
2660#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2661pub struct NamespaceCondition {
2662 /// Type of namespace controller condition.
2663 #[prost(string, optional, tag = "1")]
2664 pub r#type: ::core::option::Option<::prost::alloc::string::String>,
2665 /// Status of the condition, one of True, False, Unknown.
2666 #[prost(string, optional, tag = "2")]
2667 pub status: ::core::option::Option<::prost::alloc::string::String>,
2668 /// Last time the condition transitioned from one status to another.
2669 /// +optional
2670 #[prost(message, optional, tag = "4")]
2671 pub last_transition_time:
2672 ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::Time>,
2673 /// Unique, one-word, CamelCase reason for the condition's last transition.
2674 /// +optional
2675 #[prost(string, optional, tag = "5")]
2676 pub reason: ::core::option::Option<::prost::alloc::string::String>,
2677 /// Human-readable message indicating details about last transition.
2678 /// +optional
2679 #[prost(string, optional, tag = "6")]
2680 pub message: ::core::option::Option<::prost::alloc::string::String>,
2681}
2682/// NamespaceList is a list of Namespaces.
2683#[derive(Clone, PartialEq, ::prost::Message)]
2684pub struct NamespaceList {
2685 /// Standard list metadata.
2686 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds>
2687 /// +optional
2688 #[prost(message, optional, tag = "1")]
2689 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
2690 /// Items is the list of Namespace objects in the list.
2691 /// More info: <https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/>
2692 #[prost(message, repeated, tag = "2")]
2693 pub items: ::prost::alloc::vec::Vec<Namespace>,
2694}
2695/// NamespaceSpec describes the attributes on a Namespace.
2696#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2697pub struct NamespaceSpec {
2698 /// Finalizers is an opaque list of values that must be empty to permanently remove object from storage.
2699 /// More info: <https://kubernetes.io/docs/tasks/administer-cluster/namespaces/>
2700 /// +optional
2701 /// +listType=atomic
2702 #[prost(string, repeated, tag = "1")]
2703 pub finalizers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2704}
2705/// NamespaceStatus is information about the current status of a Namespace.
2706#[derive(Clone, PartialEq, ::prost::Message)]
2707pub struct NamespaceStatus {
2708 /// Phase is the current lifecycle phase of the namespace.
2709 /// More info: <https://kubernetes.io/docs/tasks/administer-cluster/namespaces/>
2710 /// +optional
2711 #[prost(string, optional, tag = "1")]
2712 pub phase: ::core::option::Option<::prost::alloc::string::String>,
2713 /// Represents the latest available observations of a namespace's current state.
2714 /// +optional
2715 /// +patchMergeKey=type
2716 /// +patchStrategy=merge
2717 /// +listType=map
2718 /// +listMapKey=type
2719 #[prost(message, repeated, tag = "2")]
2720 pub conditions: ::prost::alloc::vec::Vec<NamespaceCondition>,
2721}
2722/// Node is a worker node in Kubernetes.
2723/// Each node will have a unique identifier in the cache (i.e. in etcd).
2724#[derive(Clone, PartialEq, ::prost::Message)]
2725pub struct Node {
2726 /// Standard object's metadata.
2727 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
2728 /// +optional
2729 #[prost(message, optional, tag = "1")]
2730 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
2731 /// Spec defines the behavior of a node.
2732 /// <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status>
2733 /// +optional
2734 #[prost(message, optional, tag = "2")]
2735 pub spec: ::core::option::Option<NodeSpec>,
2736 /// Most recently observed status of the node.
2737 /// Populated by the system.
2738 /// Read-only.
2739 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status>
2740 /// +optional
2741 #[prost(message, optional, tag = "3")]
2742 pub status: ::core::option::Option<NodeStatus>,
2743}
2744/// NodeAddress contains information for the node's address.
2745#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2746pub struct NodeAddress {
2747 /// Node address type, one of Hostname, ExternalIP or InternalIP.
2748 #[prost(string, optional, tag = "1")]
2749 pub r#type: ::core::option::Option<::prost::alloc::string::String>,
2750 /// The node address.
2751 #[prost(string, optional, tag = "2")]
2752 pub address: ::core::option::Option<::prost::alloc::string::String>,
2753}
2754/// Node affinity is a group of node affinity scheduling rules.
2755#[derive(Clone, PartialEq, ::prost::Message)]
2756pub struct NodeAffinity {
2757 /// If the affinity requirements specified by this field are not met at
2758 /// scheduling time, the pod will not be scheduled onto the node.
2759 /// If the affinity requirements specified by this field cease to be met
2760 /// at some point during pod execution (e.g. due to an update), the system
2761 /// may or may not try to eventually evict the pod from its node.
2762 /// +optional
2763 #[prost(message, optional, tag = "1")]
2764 pub required_during_scheduling_ignored_during_execution: ::core::option::Option<NodeSelector>,
2765 /// The scheduler will prefer to schedule pods to nodes that satisfy
2766 /// the affinity expressions specified by this field, but it may choose
2767 /// a node that violates one or more of the expressions. The node that is
2768 /// most preferred is the one with the greatest sum of weights, i.e.
2769 /// for each node that meets all of the scheduling requirements (resource
2770 /// request, requiredDuringScheduling affinity expressions, etc.),
2771 /// compute a sum by iterating through the elements of this field and adding
2772 /// "weight" to the sum if the node matches the corresponding matchExpressions; the
2773 /// node(s) with the highest sum are the most preferred.
2774 /// +optional
2775 /// +listType=atomic
2776 #[prost(message, repeated, tag = "2")]
2777 pub preferred_during_scheduling_ignored_during_execution:
2778 ::prost::alloc::vec::Vec<PreferredSchedulingTerm>,
2779}
2780/// NodeCondition contains condition information for a node.
2781#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2782pub struct NodeCondition {
2783 /// Type of node condition.
2784 #[prost(string, optional, tag = "1")]
2785 pub r#type: ::core::option::Option<::prost::alloc::string::String>,
2786 /// Status of the condition, one of True, False, Unknown.
2787 #[prost(string, optional, tag = "2")]
2788 pub status: ::core::option::Option<::prost::alloc::string::String>,
2789 /// Last time we got an update on a given condition.
2790 /// +optional
2791 #[prost(message, optional, tag = "3")]
2792 pub last_heartbeat_time:
2793 ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::Time>,
2794 /// Last time the condition transit from one status to another.
2795 /// +optional
2796 #[prost(message, optional, tag = "4")]
2797 pub last_transition_time:
2798 ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::Time>,
2799 /// (brief) reason for the condition's last transition.
2800 /// +optional
2801 #[prost(string, optional, tag = "5")]
2802 pub reason: ::core::option::Option<::prost::alloc::string::String>,
2803 /// Human readable message indicating details about last transition.
2804 /// +optional
2805 #[prost(string, optional, tag = "6")]
2806 pub message: ::core::option::Option<::prost::alloc::string::String>,
2807}
2808/// NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil.
2809/// This API is deprecated since 1.22
2810#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2811pub struct NodeConfigSource {
2812 /// ConfigMap is a reference to a Node's ConfigMap
2813 #[prost(message, optional, tag = "2")]
2814 pub config_map: ::core::option::Option<ConfigMapNodeConfigSource>,
2815}
2816/// NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.
2817#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2818pub struct NodeConfigStatus {
2819 /// Assigned reports the checkpointed config the node will try to use.
2820 /// When Node.Spec.ConfigSource is updated, the node checkpoints the associated
2821 /// config payload to local disk, along with a record indicating intended
2822 /// config. The node refers to this record to choose its config checkpoint, and
2823 /// reports this record in Assigned. Assigned only updates in the status after
2824 /// the record has been checkpointed to disk. When the Kubelet is restarted,
2825 /// it tries to make the Assigned config the Active config by loading and
2826 /// validating the checkpointed payload identified by Assigned.
2827 /// +optional
2828 #[prost(message, optional, tag = "1")]
2829 pub assigned: ::core::option::Option<NodeConfigSource>,
2830 /// Active reports the checkpointed config the node is actively using.
2831 /// Active will represent either the current version of the Assigned config,
2832 /// or the current LastKnownGood config, depending on whether attempting to use the
2833 /// Assigned config results in an error.
2834 /// +optional
2835 #[prost(message, optional, tag = "2")]
2836 pub active: ::core::option::Option<NodeConfigSource>,
2837 /// LastKnownGood reports the checkpointed config the node will fall back to
2838 /// when it encounters an error attempting to use the Assigned config.
2839 /// The Assigned config becomes the LastKnownGood config when the node determines
2840 /// that the Assigned config is stable and correct.
2841 /// This is currently implemented as a 10-minute soak period starting when the local
2842 /// record of Assigned config is updated. If the Assigned config is Active at the end
2843 /// of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is
2844 /// reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil,
2845 /// because the local default config is always assumed good.
2846 /// You should not make assumptions about the node's method of determining config stability
2847 /// and correctness, as this may change or become configurable in the future.
2848 /// +optional
2849 #[prost(message, optional, tag = "3")]
2850 pub last_known_good: ::core::option::Option<NodeConfigSource>,
2851 /// Error describes any problems reconciling the Spec.ConfigSource to the Active config.
2852 /// Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned
2853 /// record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting
2854 /// to load or validate the Assigned config, etc.
2855 /// Errors may occur at different points while syncing config. Earlier errors (e.g. download or
2856 /// checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across
2857 /// Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in
2858 /// a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error
2859 /// by fixing the config assigned in Spec.ConfigSource.
2860 /// You can find additional information for debugging by searching the error message in the Kubelet log.
2861 /// Error is a human-readable description of the error state; machines can check whether or not Error
2862 /// is empty, but should not rely on the stability of the Error text across Kubelet versions.
2863 /// +optional
2864 #[prost(string, optional, tag = "4")]
2865 pub error: ::core::option::Option<::prost::alloc::string::String>,
2866}
2867/// NodeDaemonEndpoints lists ports opened by daemons running on the Node.
2868#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
2869pub struct NodeDaemonEndpoints {
2870 /// Endpoint on which Kubelet is listening.
2871 /// +optional
2872 #[prost(message, optional, tag = "1")]
2873 pub kubelet_endpoint: ::core::option::Option<DaemonEndpoint>,
2874}
2875/// NodeFeatures describes the set of features implemented by the CRI implementation.
2876/// The features contained in the NodeFeatures should depend only on the cri implementation
2877/// independent of runtime handlers.
2878#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
2879pub struct NodeFeatures {
2880 /// SupplementalGroupsPolicy is set to true if the runtime supports SupplementalGroupsPolicy and ContainerUser.
2881 /// +optional
2882 #[prost(bool, optional, tag = "1")]
2883 pub supplemental_groups_policy: ::core::option::Option<bool>,
2884}
2885/// NodeList is the whole list of all Nodes which have been registered with master.
2886#[derive(Clone, PartialEq, ::prost::Message)]
2887pub struct NodeList {
2888 /// Standard list metadata.
2889 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds>
2890 /// +optional
2891 #[prost(message, optional, tag = "1")]
2892 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
2893 /// List of nodes
2894 #[prost(message, repeated, tag = "2")]
2895 pub items: ::prost::alloc::vec::Vec<Node>,
2896}
2897/// NodeProxyOptions is the query options to a Node's proxy call.
2898#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2899pub struct NodeProxyOptions {
2900 /// Path is the URL path to use for the current proxy request to node.
2901 /// +optional
2902 #[prost(string, optional, tag = "1")]
2903 pub path: ::core::option::Option<::prost::alloc::string::String>,
2904}
2905/// NodeRuntimeHandler is a set of runtime handler information.
2906#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2907pub struct NodeRuntimeHandler {
2908 /// Runtime handler name.
2909 /// Empty for the default runtime handler.
2910 /// +optional
2911 #[prost(string, optional, tag = "1")]
2912 pub name: ::core::option::Option<::prost::alloc::string::String>,
2913 /// Supported features.
2914 /// +optional
2915 #[prost(message, optional, tag = "2")]
2916 pub features: ::core::option::Option<NodeRuntimeHandlerFeatures>,
2917}
2918/// NodeRuntimeHandlerFeatures is a set of features implemented by the runtime handler.
2919#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
2920pub struct NodeRuntimeHandlerFeatures {
2921 /// RecursiveReadOnlyMounts is set to true if the runtime handler supports RecursiveReadOnlyMounts.
2922 /// +optional
2923 #[prost(bool, optional, tag = "1")]
2924 pub recursive_read_only_mounts: ::core::option::Option<bool>,
2925 /// UserNamespaces is set to true if the runtime handler supports UserNamespaces, including for volumes.
2926 /// +featureGate=UserNamespacesSupport
2927 /// +optional
2928 #[prost(bool, optional, tag = "2")]
2929 pub user_namespaces: ::core::option::Option<bool>,
2930}
2931/// A node selector represents the union of the results of one or more label queries
2932/// over a set of nodes; that is, it represents the OR of the selectors represented
2933/// by the node selector terms.
2934/// +structType=atomic
2935#[derive(Clone, PartialEq, ::prost::Message)]
2936pub struct NodeSelector {
2937 /// Required. A list of node selector terms. The terms are ORed.
2938 /// +listType=atomic
2939 #[prost(message, repeated, tag = "1")]
2940 pub node_selector_terms: ::prost::alloc::vec::Vec<NodeSelectorTerm>,
2941}
2942/// A node selector requirement is a selector that contains values, a key, and an operator
2943/// that relates the key and values.
2944#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2945pub struct NodeSelectorRequirement {
2946 /// The label key that the selector applies to.
2947 #[prost(string, optional, tag = "1")]
2948 pub key: ::core::option::Option<::prost::alloc::string::String>,
2949 /// Represents a key's relationship to a set of values.
2950 /// Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
2951 #[prost(string, optional, tag = "2")]
2952 pub operator: ::core::option::Option<::prost::alloc::string::String>,
2953 /// An array of string values. If the operator is In or NotIn,
2954 /// the values array must be non-empty. If the operator is Exists or DoesNotExist,
2955 /// the values array must be empty. If the operator is Gt or Lt, the values
2956 /// array must have a single element, which will be interpreted as an integer.
2957 /// This array is replaced during a strategic merge patch.
2958 /// +optional
2959 /// +listType=atomic
2960 #[prost(string, repeated, tag = "3")]
2961 pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2962}
2963/// A null or empty node selector term matches no objects. The requirements of
2964/// them are ANDed.
2965/// The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.
2966/// +structType=atomic
2967#[derive(Clone, PartialEq, ::prost::Message)]
2968pub struct NodeSelectorTerm {
2969 /// A list of node selector requirements by node's labels.
2970 /// +optional
2971 /// +listType=atomic
2972 #[prost(message, repeated, tag = "1")]
2973 pub match_expressions: ::prost::alloc::vec::Vec<NodeSelectorRequirement>,
2974 /// A list of node selector requirements by node's fields.
2975 /// +optional
2976 /// +listType=atomic
2977 #[prost(message, repeated, tag = "2")]
2978 pub match_fields: ::prost::alloc::vec::Vec<NodeSelectorRequirement>,
2979}
2980/// NodeSpec describes the attributes that a node is created with.
2981#[derive(Clone, PartialEq, ::prost::Message)]
2982pub struct NodeSpec {
2983 /// PodCIDR represents the pod IP range assigned to the node.
2984 /// +optional
2985 #[prost(string, optional, tag = "1")]
2986 pub pod_cidr: ::core::option::Option<::prost::alloc::string::String>,
2987 /// podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this
2988 /// field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for
2989 /// each of IPv4 and IPv6.
2990 /// +optional
2991 /// +patchStrategy=merge
2992 /// +listType=set
2993 #[prost(string, repeated, tag = "7")]
2994 pub pod_cid_rs: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2995 /// ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>
2996 /// +optional
2997 #[prost(string, optional, tag = "3")]
2998 pub provider_id: ::core::option::Option<::prost::alloc::string::String>,
2999 /// Unschedulable controls node schedulability of new pods. By default, node is schedulable.
3000 /// More info: <https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration>
3001 /// +optional
3002 #[prost(bool, optional, tag = "4")]
3003 pub unschedulable: ::core::option::Option<bool>,
3004 /// If specified, the node's taints.
3005 /// +optional
3006 /// +listType=atomic
3007 #[prost(message, repeated, tag = "5")]
3008 pub taints: ::prost::alloc::vec::Vec<Taint>,
3009 /// Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed.
3010 /// +optional
3011 #[prost(message, optional, tag = "6")]
3012 pub config_source: ::core::option::Option<NodeConfigSource>,
3013 /// Deprecated. Not all kubelets will set this field. Remove field after 1.13.
3014 /// see: <https://issues.k8s.io/61966>
3015 /// +optional
3016 #[prost(string, optional, tag = "2")]
3017 pub external_id: ::core::option::Option<::prost::alloc::string::String>,
3018}
3019/// NodeStatus is information about the current status of a node.
3020#[derive(Clone, PartialEq, ::prost::Message)]
3021pub struct NodeStatus {
3022 /// Capacity represents the total resources of a node.
3023 /// More info: <https://kubernetes.io/docs/reference/node/node-status/#capacity>
3024 /// +optional
3025 #[prost(btree_map = "string, message", tag = "1")]
3026 pub capacity: ::prost::alloc::collections::BTreeMap<
3027 ::prost::alloc::string::String,
3028 super::super::super::apimachinery::pkg::api::resource::Quantity,
3029 >,
3030 /// Allocatable represents the resources of a node that are available for scheduling.
3031 /// Defaults to Capacity.
3032 /// +optional
3033 #[prost(btree_map = "string, message", tag = "2")]
3034 pub allocatable: ::prost::alloc::collections::BTreeMap<
3035 ::prost::alloc::string::String,
3036 super::super::super::apimachinery::pkg::api::resource::Quantity,
3037 >,
3038 /// NodePhase is the recently observed lifecycle phase of the node.
3039 /// More info: <https://kubernetes.io/docs/concepts/nodes/node/#phase>
3040 /// The field is never populated, and now is deprecated.
3041 /// +optional
3042 #[prost(string, optional, tag = "3")]
3043 pub phase: ::core::option::Option<::prost::alloc::string::String>,
3044 /// Conditions is an array of current observed node conditions.
3045 /// More info: <https://kubernetes.io/docs/reference/node/node-status/#condition>
3046 /// +optional
3047 /// +patchMergeKey=type
3048 /// +patchStrategy=merge
3049 /// +listType=map
3050 /// +listMapKey=type
3051 #[prost(message, repeated, tag = "4")]
3052 pub conditions: ::prost::alloc::vec::Vec<NodeCondition>,
3053 /// List of addresses reachable to the node.
3054 /// Queried from cloud provider, if available.
3055 /// More info: <https://kubernetes.io/docs/reference/node/node-status/#addresses>
3056 /// Note: This field is declared as mergeable, but the merge key is not sufficiently
3057 /// unique, which can cause data corruption when it is merged. Callers should instead
3058 /// use a full-replacement patch. See <https://pr.k8s.io/79391> for an example.
3059 /// Consumers should assume that addresses can change during the
3060 /// lifetime of a Node. However, there are some exceptions where this may not
3061 /// be possible, such as Pods that inherit a Node's address in its own status or
3062 /// consumers of the downward API (status.hostIP).
3063 /// +optional
3064 /// +patchMergeKey=type
3065 /// +patchStrategy=merge
3066 /// +listType=map
3067 /// +listMapKey=type
3068 #[prost(message, repeated, tag = "5")]
3069 pub addresses: ::prost::alloc::vec::Vec<NodeAddress>,
3070 /// Endpoints of daemons running on the Node.
3071 /// +optional
3072 #[prost(message, optional, tag = "6")]
3073 pub daemon_endpoints: ::core::option::Option<NodeDaemonEndpoints>,
3074 /// Set of ids/uuids to uniquely identify the node.
3075 /// More info: <https://kubernetes.io/docs/reference/node/node-status/#info>
3076 /// +optional
3077 #[prost(message, optional, tag = "7")]
3078 pub node_info: ::core::option::Option<NodeSystemInfo>,
3079 /// List of container images on this node
3080 /// +optional
3081 /// +listType=atomic
3082 #[prost(message, repeated, tag = "8")]
3083 pub images: ::prost::alloc::vec::Vec<ContainerImage>,
3084 /// List of attachable volumes in use (mounted) by the node.
3085 /// +optional
3086 /// +listType=atomic
3087 #[prost(string, repeated, tag = "9")]
3088 pub volumes_in_use: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
3089 /// List of volumes that are attached to the node.
3090 /// +optional
3091 /// +listType=atomic
3092 #[prost(message, repeated, tag = "10")]
3093 pub volumes_attached: ::prost::alloc::vec::Vec<AttachedVolume>,
3094 /// Status of the config assigned to the node via the dynamic Kubelet config feature.
3095 /// +optional
3096 #[prost(message, optional, tag = "11")]
3097 pub config: ::core::option::Option<NodeConfigStatus>,
3098 /// The available runtime handlers.
3099 /// +featureGate=UserNamespacesSupport
3100 /// +optional
3101 /// +listType=atomic
3102 #[prost(message, repeated, tag = "12")]
3103 pub runtime_handlers: ::prost::alloc::vec::Vec<NodeRuntimeHandler>,
3104 /// Features describes the set of features implemented by the CRI implementation.
3105 /// +featureGate=SupplementalGroupsPolicy
3106 /// +optional
3107 #[prost(message, optional, tag = "13")]
3108 pub features: ::core::option::Option<NodeFeatures>,
3109 /// DeclaredFeatures represents the features related to feature gates that are declared by the node.
3110 /// +featureGate=NodeDeclaredFeatures
3111 /// +optional
3112 /// +listType=atomic
3113 #[prost(string, repeated, tag = "14")]
3114 pub declared_features: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
3115}
3116/// NodeSwapStatus represents swap memory information.
3117#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
3118pub struct NodeSwapStatus {
3119 /// Total amount of swap memory in bytes.
3120 /// +optional
3121 #[prost(int64, optional, tag = "1")]
3122 pub capacity: ::core::option::Option<i64>,
3123}
3124/// NodeSystemInfo is a set of ids/uuids to uniquely identify the node.
3125#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
3126pub struct NodeSystemInfo {
3127 /// MachineID reported by the node. For unique machine identification
3128 /// in the cluster this field is preferred. Learn more from man(5)
3129 /// machine-id: <http://man7.org/linux/man-pages/man5/machine-id.5.html>
3130 #[prost(string, optional, tag = "1")]
3131 pub machine_id: ::core::option::Option<::prost::alloc::string::String>,
3132 /// SystemUUID reported by the node. For unique machine identification
3133 /// MachineID is preferred. This field is specific to Red Hat hosts
3134 /// <https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid>
3135 #[prost(string, optional, tag = "2")]
3136 pub system_uuid: ::core::option::Option<::prost::alloc::string::String>,
3137 /// Boot ID reported by the node.
3138 #[prost(string, optional, tag = "3")]
3139 pub boot_id: ::core::option::Option<::prost::alloc::string::String>,
3140 /// Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).
3141 #[prost(string, optional, tag = "4")]
3142 pub kernel_version: ::core::option::Option<::prost::alloc::string::String>,
3143 /// OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).
3144 #[prost(string, optional, tag = "5")]
3145 pub os_image: ::core::option::Option<::prost::alloc::string::String>,
3146 /// ContainerRuntime Version reported by the node through runtime remote API (e.g. containerd://1.4.2).
3147 #[prost(string, optional, tag = "6")]
3148 pub container_runtime_version: ::core::option::Option<::prost::alloc::string::String>,
3149 /// Kubelet Version reported by the node.
3150 #[prost(string, optional, tag = "7")]
3151 pub kubelet_version: ::core::option::Option<::prost::alloc::string::String>,
3152 /// Deprecated: KubeProxy Version reported by the node.
3153 #[prost(string, optional, tag = "8")]
3154 pub kube_proxy_version: ::core::option::Option<::prost::alloc::string::String>,
3155 /// The Operating System reported by the node
3156 #[prost(string, optional, tag = "9")]
3157 pub operating_system: ::core::option::Option<::prost::alloc::string::String>,
3158 /// The Architecture reported by the node
3159 #[prost(string, optional, tag = "10")]
3160 pub architecture: ::core::option::Option<::prost::alloc::string::String>,
3161 /// Swap Info reported by the node.
3162 #[prost(message, optional, tag = "11")]
3163 pub swap: ::core::option::Option<NodeSwapStatus>,
3164}
3165/// ObjectFieldSelector selects an APIVersioned field of an object.
3166/// +structType=atomic
3167#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
3168pub struct ObjectFieldSelector {
3169 /// Version of the schema the FieldPath is written in terms of, defaults to "v1".
3170 /// +optional
3171 #[prost(string, optional, tag = "1")]
3172 pub api_version: ::core::option::Option<::prost::alloc::string::String>,
3173 /// Path of the field to select in the specified API version.
3174 #[prost(string, optional, tag = "2")]
3175 pub field_path: ::core::option::Option<::prost::alloc::string::String>,
3176}
3177/// ObjectReference contains enough information to let you inspect or modify the referred object.
3178/// ---
3179/// New uses of this type are discouraged because of difficulty describing its usage when embedded in APIs.
3180/// 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.
3181/// 2. Invalid usage help. It is impossible to add specific help for individual usage. In most embedded usages, there are particular
3182/// restrictions like, "must refer only to types A and B" or "UID not honored" or "name must be restricted".
3183/// Those cannot be well described when embedded.
3184/// 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.
3185/// 4. The fields are both imprecise and overly precise. Kind is not a precise mapping to a URL. This can produce ambiguity
3186/// during interpretation and require a REST mapping. In most cases, the dependency is on the group,resource tuple
3187/// and the version of the actual struct is irrelevant.
3188/// 5. We cannot easily change it. Because this type is embedded in many locations, updates to this type
3189/// will affect numerous schemas. Don't make new APIs embed an underspecified API type they do not control.
3190///
3191/// Instead of using this type, create a locally provided and used type that is well-focused on your reference.
3192/// For example, ServiceReferences for admission registration: <https://github.com/kubernetes/api/blob/release-1.17/admissionregistration/v1/types.go#L533> .
3193/// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
3194/// +structType=atomic
3195#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
3196pub struct ObjectReference {
3197 /// Kind of the referent.
3198 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds>
3199 /// +optional
3200 #[prost(string, optional, tag = "1")]
3201 pub kind: ::core::option::Option<::prost::alloc::string::String>,
3202 /// Namespace of the referent.
3203 /// More info: <https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/>
3204 /// +optional
3205 #[prost(string, optional, tag = "2")]
3206 pub namespace: ::core::option::Option<::prost::alloc::string::String>,
3207 /// Name of the referent.
3208 /// More info: <https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names>
3209 /// +optional
3210 #[prost(string, optional, tag = "3")]
3211 pub name: ::core::option::Option<::prost::alloc::string::String>,
3212 /// UID of the referent.
3213 /// More info: <https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids>
3214 /// +optional
3215 #[prost(string, optional, tag = "4")]
3216 pub uid: ::core::option::Option<::prost::alloc::string::String>,
3217 /// API version of the referent.
3218 /// +optional
3219 #[prost(string, optional, tag = "5")]
3220 pub api_version: ::core::option::Option<::prost::alloc::string::String>,
3221 /// Specific resourceVersion to which this reference is made, if any.
3222 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency>
3223 /// +optional
3224 #[prost(string, optional, tag = "6")]
3225 pub resource_version: ::core::option::Option<::prost::alloc::string::String>,
3226 /// If referring to a piece of an object instead of an entire object, this string
3227 /// should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers\[2\].
3228 /// For example, if the object reference is to a container within a pod, this would take on a value like:
3229 /// "spec.containers{name}" (where "name" refers to the name of the container that triggered
3230 /// the event) or if no container name is specified "spec.containers\[2\]" (container with
3231 /// index 2 in this pod). This syntax is chosen only to have some well-defined way of
3232 /// referencing a part of an object.
3233 /// TODO: this design is not final and this field is subject to change in the future.
3234 /// +optional
3235 #[prost(string, optional, tag = "7")]
3236 pub field_path: ::core::option::Option<::prost::alloc::string::String>,
3237}
3238/// PersistentVolume (PV) is a storage resource provisioned by an administrator.
3239/// It is analogous to a node.
3240/// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes>
3241#[derive(Clone, PartialEq, ::prost::Message)]
3242pub struct PersistentVolume {
3243 /// Standard object's metadata.
3244 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
3245 /// +optional
3246 #[prost(message, optional, tag = "1")]
3247 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
3248 /// spec defines a specification of a persistent volume owned by the cluster.
3249 /// Provisioned by an administrator.
3250 /// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes>
3251 /// +optional
3252 #[prost(message, optional, tag = "2")]
3253 pub spec: ::core::option::Option<PersistentVolumeSpec>,
3254 /// status represents the current information/status for the persistent volume.
3255 /// Populated by the system.
3256 /// Read-only.
3257 /// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes>
3258 /// +optional
3259 #[prost(message, optional, tag = "3")]
3260 pub status: ::core::option::Option<PersistentVolumeStatus>,
3261}
3262/// PersistentVolumeClaim is a user's request for and claim to a persistent volume
3263#[derive(Clone, PartialEq, ::prost::Message)]
3264pub struct PersistentVolumeClaim {
3265 /// Standard object's metadata.
3266 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
3267 /// +optional
3268 #[prost(message, optional, tag = "1")]
3269 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
3270 /// spec defines the desired characteristics of a volume requested by a pod author.
3271 /// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims>
3272 /// +optional
3273 #[prost(message, optional, tag = "2")]
3274 pub spec: ::core::option::Option<PersistentVolumeClaimSpec>,
3275 /// status represents the current information/status of a persistent volume claim.
3276 /// Read-only.
3277 /// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims>
3278 /// +optional
3279 #[prost(message, optional, tag = "3")]
3280 pub status: ::core::option::Option<PersistentVolumeClaimStatus>,
3281}
3282/// PersistentVolumeClaimCondition contains details about state of pvc
3283#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
3284pub struct PersistentVolumeClaimCondition {
3285 /// Type is the type of the condition.
3286 /// 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>
3287 #[prost(string, optional, tag = "1")]
3288 pub r#type: ::core::option::Option<::prost::alloc::string::String>,
3289 /// Status is the status of the condition.
3290 /// Can be True, False, Unknown.
3291 /// 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
3292 #[prost(string, optional, tag = "2")]
3293 pub status: ::core::option::Option<::prost::alloc::string::String>,
3294 /// lastProbeTime is the time we probed the condition.
3295 /// +optional
3296 #[prost(message, optional, tag = "3")]
3297 pub last_probe_time: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::Time>,
3298 /// lastTransitionTime is the time the condition transitioned from one status to another.
3299 /// +optional
3300 #[prost(message, optional, tag = "4")]
3301 pub last_transition_time:
3302 ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::Time>,
3303 /// reason is a unique, this should be a short, machine understandable string that gives the reason
3304 /// for condition's last transition. If it reports "Resizing" that means the underlying
3305 /// persistent volume is being resized.
3306 /// +optional
3307 #[prost(string, optional, tag = "5")]
3308 pub reason: ::core::option::Option<::prost::alloc::string::String>,
3309 /// message is the human-readable message indicating details about last transition.
3310 /// +optional
3311 #[prost(string, optional, tag = "6")]
3312 pub message: ::core::option::Option<::prost::alloc::string::String>,
3313}
3314/// PersistentVolumeClaimList is a list of PersistentVolumeClaim items.
3315#[derive(Clone, PartialEq, ::prost::Message)]
3316pub struct PersistentVolumeClaimList {
3317 /// Standard list metadata.
3318 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds>
3319 /// +optional
3320 #[prost(message, optional, tag = "1")]
3321 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
3322 /// items is a list of persistent volume claims.
3323 /// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims>
3324 #[prost(message, repeated, tag = "2")]
3325 pub items: ::prost::alloc::vec::Vec<PersistentVolumeClaim>,
3326}
3327/// PersistentVolumeClaimSpec describes the common attributes of storage devices
3328/// and allows a Source for provider-specific attributes
3329#[derive(Clone, PartialEq, ::prost::Message)]
3330pub struct PersistentVolumeClaimSpec {
3331 /// accessModes contains the desired access modes the volume should have.
3332 /// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1>
3333 /// +optional
3334 /// +listType=atomic
3335 #[prost(string, repeated, tag = "1")]
3336 pub access_modes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
3337 /// selector is a label query over volumes to consider for binding.
3338 /// +optional
3339 #[prost(message, optional, tag = "4")]
3340 pub selector:
3341 ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::LabelSelector>,
3342 /// resources represents the minimum resources the volume should have.
3343 /// Users are allowed to specify resource requirements
3344 /// that are lower than previous value but must still be higher than capacity recorded in the
3345 /// status field of the claim.
3346 /// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources>
3347 /// +optional
3348 #[prost(message, optional, tag = "2")]
3349 pub resources: ::core::option::Option<VolumeResourceRequirements>,
3350 /// volumeName is the binding reference to the PersistentVolume backing this claim.
3351 /// +optional
3352 #[prost(string, optional, tag = "3")]
3353 pub volume_name: ::core::option::Option<::prost::alloc::string::String>,
3354 /// storageClassName is the name of the StorageClass required by the claim.
3355 /// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1>
3356 /// +optional
3357 #[prost(string, optional, tag = "5")]
3358 pub storage_class_name: ::core::option::Option<::prost::alloc::string::String>,
3359 /// volumeMode defines what type of volume is required by the claim.
3360 /// Value of Filesystem is implied when not included in claim spec.
3361 /// +optional
3362 #[prost(string, optional, tag = "6")]
3363 pub volume_mode: ::core::option::Option<::prost::alloc::string::String>,
3364 /// dataSource field can be used to specify either:
3365 /// * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)
3366 /// * An existing PVC (PersistentVolumeClaim)
3367 /// If the provisioner or an external controller can support the specified data source,
3368 /// it will create a new volume based on the contents of the specified data source.
3369 /// When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef,
3370 /// and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified.
3371 /// If the namespace is specified, then dataSourceRef will not be copied to dataSource.
3372 /// +optional
3373 #[prost(message, optional, tag = "7")]
3374 pub data_source: ::core::option::Option<TypedLocalObjectReference>,
3375 /// dataSourceRef specifies the object from which to populate the volume with data, if a non-empty
3376 /// volume is desired. This may be any object from a non-empty API group (non
3377 /// core object) or a PersistentVolumeClaim object.
3378 /// When this field is specified, volume binding will only succeed if the type of
3379 /// the specified object matches some installed volume populator or dynamic
3380 /// provisioner.
3381 /// This field will replace the functionality of the dataSource field and as such
3382 /// if both fields are non-empty, they must have the same value. For backwards
3383 /// compatibility, when namespace isn't specified in dataSourceRef,
3384 /// both fields (dataSource and dataSourceRef) will be set to the same
3385 /// value automatically if one of them is empty and the other is non-empty.
3386 /// When namespace is specified in dataSourceRef,
3387 /// dataSource isn't set to the same value and must be empty.
3388 /// There are three important differences between dataSource and dataSourceRef:
3389 /// * While dataSource only allows two specific types of objects, dataSourceRef
3390 /// allows any non-core object, as well as PersistentVolumeClaim objects.
3391 /// * While dataSource ignores disallowed values (dropping them), dataSourceRef
3392 /// preserves all values, and generates an error if a disallowed value is
3393 /// specified.
3394 /// * While dataSource only allows local objects, dataSourceRef allows objects
3395 /// in any namespaces.
3396 /// (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.
3397 /// (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
3398 /// +optional
3399 #[prost(message, optional, tag = "8")]
3400 pub data_source_ref: ::core::option::Option<TypedObjectReference>,
3401 /// volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim.
3402 /// If specified, the CSI driver will create or update the volume with the attributes defined
3403 /// in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName,
3404 /// it can be changed after the claim is created. An empty string or nil value indicates that no
3405 /// VolumeAttributesClass will be applied to the claim. If the claim enters an Infeasible error state,
3406 /// this field can be reset to its previous value (including nil) to cancel the modification.
3407 /// If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be
3408 /// set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource
3409 /// exists.
3410 /// More info: <https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/>
3411 /// +featureGate=VolumeAttributesClass
3412 /// +optional
3413 #[prost(string, optional, tag = "9")]
3414 pub volume_attributes_class_name: ::core::option::Option<::prost::alloc::string::String>,
3415}
3416/// PersistentVolumeClaimStatus is the current status of a persistent volume claim.
3417#[derive(Clone, PartialEq, ::prost::Message)]
3418pub struct PersistentVolumeClaimStatus {
3419 /// phase represents the current phase of PersistentVolumeClaim.
3420 /// +optional
3421 #[prost(string, optional, tag = "1")]
3422 pub phase: ::core::option::Option<::prost::alloc::string::String>,
3423 /// accessModes contains the actual access modes the volume backing the PVC has.
3424 /// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1>
3425 /// +optional
3426 /// +listType=atomic
3427 #[prost(string, repeated, tag = "2")]
3428 pub access_modes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
3429 /// capacity represents the actual resources of the underlying volume.
3430 /// +optional
3431 #[prost(btree_map = "string, message", tag = "3")]
3432 pub capacity: ::prost::alloc::collections::BTreeMap<
3433 ::prost::alloc::string::String,
3434 super::super::super::apimachinery::pkg::api::resource::Quantity,
3435 >,
3436 /// conditions is the current Condition of persistent volume claim. If underlying persistent volume is being
3437 /// resized then the Condition will be set to 'Resizing'.
3438 /// +optional
3439 /// +patchMergeKey=type
3440 /// +patchStrategy=merge
3441 /// +listType=map
3442 /// +listMapKey=type
3443 #[prost(message, repeated, tag = "4")]
3444 pub conditions: ::prost::alloc::vec::Vec<PersistentVolumeClaimCondition>,
3445 /// allocatedResources tracks the resources allocated to a PVC including its capacity.
3446 /// Key names follow standard Kubernetes label syntax. Valid values are either:
3447 /// * Un-prefixed keys:
3448 /// - storage - the capacity of the volume.
3449 /// * Custom resources must use implementation-defined prefixed names such as "example.com/my-custom-resource"
3450 /// Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered
3451 /// reserved and hence may not be used.
3452 ///
3453 /// Capacity reported here may be larger than the actual capacity when a volume expansion operation
3454 /// is requested.
3455 /// For storage quota, the larger value from allocatedResources and PVC.spec.resources is used.
3456 /// If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation.
3457 /// If a volume expansion capacity request is lowered, allocatedResources is only
3458 /// lowered if there are no expansion operations in progress and if the actual volume capacity
3459 /// is equal or lower than the requested capacity.
3460 ///
3461 /// A controller that receives PVC update with previously unknown resourceName
3462 /// should ignore the update for the purpose it was designed. For example - a controller that
3463 /// only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid
3464 /// resources associated with PVC.
3465 /// +optional
3466 #[prost(btree_map = "string, message", tag = "5")]
3467 pub allocated_resources: ::prost::alloc::collections::BTreeMap<
3468 ::prost::alloc::string::String,
3469 super::super::super::apimachinery::pkg::api::resource::Quantity,
3470 >,
3471 /// allocatedResourceStatuses stores status of resource being resized for the given PVC.
3472 /// Key names follow standard Kubernetes label syntax. Valid values are either:
3473 /// * Un-prefixed keys:
3474 /// - storage - the capacity of the volume.
3475 /// * Custom resources must use implementation-defined prefixed names such as "example.com/my-custom-resource"
3476 /// Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered
3477 /// reserved and hence may not be used.
3478 ///
3479 /// ClaimResourceStatus can be in any of following states:
3480 /// - ControllerResizeInProgress:
3481 /// State set when resize controller starts resizing the volume in control-plane.
3482 /// - ControllerResizeFailed:
3483 /// State set when resize has failed in resize controller with a terminal error.
3484 /// - NodeResizePending:
3485 /// State set when resize controller has finished resizing the volume but further resizing of
3486 /// volume is needed on the node.
3487 /// - NodeResizeInProgress:
3488 /// State set when kubelet starts resizing the volume.
3489 /// - NodeResizeFailed:
3490 /// State set when resizing has failed in kubelet with a terminal error. Transient errors don't set
3491 /// NodeResizeFailed.
3492 /// For example: if expanding a PVC for more capacity - this field can be one of the following states:
3493 /// - pvc.status.allocatedResourceStatus\['storage'\] = "ControllerResizeInProgress"
3494 /// - pvc.status.allocatedResourceStatus\['storage'\] = "ControllerResizeFailed"
3495 /// - pvc.status.allocatedResourceStatus\['storage'\] = "NodeResizePending"
3496 /// - pvc.status.allocatedResourceStatus\['storage'\] = "NodeResizeInProgress"
3497 /// - pvc.status.allocatedResourceStatus\['storage'\] = "NodeResizeFailed"
3498 /// When this field is not set, it means that no resize operation is in progress for the given PVC.
3499 ///
3500 /// A controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus
3501 /// should ignore the update for the purpose it was designed. For example - a controller that
3502 /// only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid
3503 /// resources associated with PVC.
3504 /// +mapType=granular
3505 /// +optional
3506 #[prost(btree_map = "string, string", tag = "7")]
3507 pub allocated_resource_statuses:
3508 ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
3509 /// currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using.
3510 /// When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim
3511 /// +featureGate=VolumeAttributesClass
3512 /// +optional
3513 #[prost(string, optional, tag = "8")]
3514 pub current_volume_attributes_class_name: ::core::option::Option<::prost::alloc::string::String>,
3515 /// ModifyVolumeStatus represents the status object of ControllerModifyVolume operation.
3516 /// When this is unset, there is no ModifyVolume operation being attempted.
3517 /// +featureGate=VolumeAttributesClass
3518 /// +optional
3519 #[prost(message, optional, tag = "9")]
3520 pub modify_volume_status: ::core::option::Option<ModifyVolumeStatus>,
3521}
3522/// PersistentVolumeClaimTemplate is used to produce
3523/// PersistentVolumeClaim objects as part of an EphemeralVolumeSource.
3524#[derive(Clone, PartialEq, ::prost::Message)]
3525pub struct PersistentVolumeClaimTemplate {
3526 /// May contain labels and annotations that will be copied into the PVC
3527 /// when creating it. No other fields are allowed and will be rejected during
3528 /// validation.
3529 ///
3530 /// +optional
3531 #[prost(message, optional, tag = "1")]
3532 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
3533 /// The specification for the PersistentVolumeClaim. The entire content is
3534 /// copied unchanged into the PVC that gets created from this
3535 /// template. The same fields as in a PersistentVolumeClaim
3536 /// are also valid here.
3537 #[prost(message, optional, tag = "2")]
3538 pub spec: ::core::option::Option<PersistentVolumeClaimSpec>,
3539}
3540/// PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace.
3541/// This volume finds the bound PV and mounts that volume for the pod. A
3542/// PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another
3543/// type of volume that is owned by someone else (the system).
3544#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
3545pub struct PersistentVolumeClaimVolumeSource {
3546 /// claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.
3547 /// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims>
3548 #[prost(string, optional, tag = "1")]
3549 pub claim_name: ::core::option::Option<::prost::alloc::string::String>,
3550 /// readOnly Will force the ReadOnly setting in VolumeMounts.
3551 /// Default false.
3552 /// +optional
3553 #[prost(bool, optional, tag = "2")]
3554 pub read_only: ::core::option::Option<bool>,
3555}
3556/// PersistentVolumeList is a list of PersistentVolume items.
3557#[derive(Clone, PartialEq, ::prost::Message)]
3558pub struct PersistentVolumeList {
3559 /// Standard list metadata.
3560 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds>
3561 /// +optional
3562 #[prost(message, optional, tag = "1")]
3563 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
3564 /// items is a list of persistent volumes.
3565 /// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes>
3566 #[prost(message, repeated, tag = "2")]
3567 pub items: ::prost::alloc::vec::Vec<PersistentVolume>,
3568}
3569/// PersistentVolumeSource is similar to VolumeSource but meant for the
3570/// administrator who creates PVs. Exactly one of its members must be set.
3571#[derive(Clone, PartialEq, ::prost::Message)]
3572pub struct PersistentVolumeSource {
3573 /// gcePersistentDisk represents a GCE Disk resource that is attached to a
3574 /// kubelet's host machine and then exposed to the pod. Provisioned by an admin.
3575 /// Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree
3576 /// gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver.
3577 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk>
3578 /// +optional
3579 #[prost(message, optional, tag = "1")]
3580 pub gce_persistent_disk: ::core::option::Option<GcePersistentDiskVolumeSource>,
3581 /// awsElasticBlockStore represents an AWS Disk resource that is attached to a
3582 /// kubelet's host machine and then exposed to the pod.
3583 /// Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree
3584 /// awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver.
3585 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore>
3586 /// +optional
3587 #[prost(message, optional, tag = "2")]
3588 pub aws_elastic_block_store: ::core::option::Option<AwsElasticBlockStoreVolumeSource>,
3589 /// hostPath represents a directory on the host.
3590 /// Provisioned by a developer or tester.
3591 /// This is useful for single-node development and testing only!
3592 /// On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster.
3593 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#hostpath>
3594 /// +optional
3595 #[prost(message, optional, tag = "3")]
3596 pub host_path: ::core::option::Option<HostPathVolumeSource>,
3597 /// glusterfs represents a Glusterfs volume that is attached to a host and
3598 /// exposed to the pod. Provisioned by an admin.
3599 /// Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported.
3600 /// More info: <https://examples.k8s.io/volumes/glusterfs/README.md>
3601 /// +optional
3602 #[prost(message, optional, tag = "4")]
3603 pub glusterfs: ::core::option::Option<GlusterfsPersistentVolumeSource>,
3604 /// nfs represents an NFS mount on the host. Provisioned by an admin.
3605 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#nfs>
3606 /// +optional
3607 #[prost(message, optional, tag = "5")]
3608 pub nfs: ::core::option::Option<NfsVolumeSource>,
3609 /// rbd represents a Rados Block Device mount on the host that shares a pod's lifetime.
3610 /// Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported.
3611 /// More info: <https://examples.k8s.io/volumes/rbd/README.md>
3612 /// +optional
3613 #[prost(message, optional, tag = "6")]
3614 pub rbd: ::core::option::Option<RbdPersistentVolumeSource>,
3615 /// iscsi represents an ISCSI Disk resource that is attached to a
3616 /// kubelet's host machine and then exposed to the pod. Provisioned by an admin.
3617 /// +optional
3618 #[prost(message, optional, tag = "7")]
3619 pub iscsi: ::core::option::Option<IscsiPersistentVolumeSource>,
3620 /// cinder represents a cinder volume attached and mounted on kubelets host machine.
3621 /// Deprecated: Cinder is deprecated. All operations for the in-tree cinder type
3622 /// are redirected to the cinder.csi.openstack.org CSI driver.
3623 /// More info: <https://examples.k8s.io/mysql-cinder-pd/README.md>
3624 /// +optional
3625 #[prost(message, optional, tag = "8")]
3626 pub cinder: ::core::option::Option<CinderPersistentVolumeSource>,
3627 /// cephFS represents a Ceph FS mount on the host that shares a pod's lifetime.
3628 /// Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported.
3629 /// +optional
3630 #[prost(message, optional, tag = "9")]
3631 pub cephfs: ::core::option::Option<CephFsPersistentVolumeSource>,
3632 /// fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
3633 /// +optional
3634 #[prost(message, optional, tag = "10")]
3635 pub fc: ::core::option::Option<FcVolumeSource>,
3636 /// 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.
3637 /// Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported.
3638 /// +optional
3639 #[prost(message, optional, tag = "11")]
3640 pub flocker: ::core::option::Option<FlockerVolumeSource>,
3641 /// flexVolume represents a generic volume resource that is
3642 /// provisioned/attached using an exec based plugin.
3643 /// Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead.
3644 /// +optional
3645 #[prost(message, optional, tag = "12")]
3646 pub flex_volume: ::core::option::Option<FlexPersistentVolumeSource>,
3647 /// azureFile represents an Azure File Service mount on the host and bind mount to the pod.
3648 /// Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type
3649 /// are redirected to the file.csi.azure.com CSI driver.
3650 /// +optional
3651 #[prost(message, optional, tag = "13")]
3652 pub azure_file: ::core::option::Option<AzureFilePersistentVolumeSource>,
3653 /// vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine.
3654 /// Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type
3655 /// are redirected to the csi.vsphere.vmware.com CSI driver.
3656 /// +optional
3657 #[prost(message, optional, tag = "14")]
3658 pub vsphere_volume: ::core::option::Option<VsphereVirtualDiskVolumeSource>,
3659 /// quobyte represents a Quobyte mount on the host that shares a pod's lifetime.
3660 /// Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported.
3661 /// +optional
3662 #[prost(message, optional, tag = "15")]
3663 pub quobyte: ::core::option::Option<QuobyteVolumeSource>,
3664 /// azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
3665 /// Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type
3666 /// are redirected to the disk.csi.azure.com CSI driver.
3667 /// +optional
3668 #[prost(message, optional, tag = "16")]
3669 pub azure_disk: ::core::option::Option<AzureDiskVolumeSource>,
3670 /// photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine.
3671 /// Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported.
3672 #[prost(message, optional, tag = "17")]
3673 pub photon_persistent_disk: ::core::option::Option<PhotonPersistentDiskVolumeSource>,
3674 /// portworxVolume represents a portworx volume attached and mounted on kubelets host machine.
3675 /// Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type
3676 /// are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate
3677 /// is on.
3678 /// +optional
3679 #[prost(message, optional, tag = "18")]
3680 pub portworx_volume: ::core::option::Option<PortworxVolumeSource>,
3681 /// scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
3682 /// Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported.
3683 /// +optional
3684 #[prost(message, optional, tag = "19")]
3685 pub scale_io: ::core::option::Option<ScaleIoPersistentVolumeSource>,
3686 /// local represents directly-attached storage with node affinity
3687 /// +optional
3688 #[prost(message, optional, tag = "20")]
3689 pub local: ::core::option::Option<LocalVolumeSource>,
3690 /// storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod.
3691 /// Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported.
3692 /// More info: <https://examples.k8s.io/volumes/storageos/README.md>
3693 /// +optional
3694 #[prost(message, optional, tag = "21")]
3695 pub storageos: ::core::option::Option<StorageOsPersistentVolumeSource>,
3696 /// csi represents storage that is handled by an external CSI driver.
3697 /// +optional
3698 #[prost(message, optional, tag = "22")]
3699 pub csi: ::core::option::Option<CSIPersistentVolumeSource>,
3700}
3701/// PersistentVolumeSpec is the specification of a persistent volume.
3702#[derive(Clone, PartialEq, ::prost::Message)]
3703pub struct PersistentVolumeSpec {
3704 /// capacity is the description of the persistent volume's resources and capacity.
3705 /// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity>
3706 /// +optional
3707 #[prost(btree_map = "string, message", tag = "1")]
3708 pub capacity: ::prost::alloc::collections::BTreeMap<
3709 ::prost::alloc::string::String,
3710 super::super::super::apimachinery::pkg::api::resource::Quantity,
3711 >,
3712 /// persistentVolumeSource is the actual volume backing the persistent volume.
3713 #[prost(message, optional, tag = "2")]
3714 pub persistent_volume_source: ::core::option::Option<PersistentVolumeSource>,
3715 /// accessModes contains all ways the volume can be mounted.
3716 /// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes>
3717 /// +optional
3718 /// +listType=atomic
3719 #[prost(string, repeated, tag = "3")]
3720 pub access_modes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
3721 /// claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
3722 /// Expected to be non-nil when bound.
3723 /// claim.VolumeName is the authoritative bind between PV and PVC.
3724 /// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding>
3725 /// +optional
3726 /// +structType=granular
3727 #[prost(message, optional, tag = "4")]
3728 pub claim_ref: ::core::option::Option<ObjectReference>,
3729 /// persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim.
3730 /// Valid options are Retain (default for manually created PersistentVolumes), Delete (default
3731 /// for dynamically provisioned PersistentVolumes), and Recycle (deprecated).
3732 /// Recycle must be supported by the volume plugin underlying this PersistentVolume.
3733 /// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming>
3734 /// +optional
3735 #[prost(string, optional, tag = "5")]
3736 pub persistent_volume_reclaim_policy: ::core::option::Option<::prost::alloc::string::String>,
3737 /// storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value
3738 /// means that this volume does not belong to any StorageClass.
3739 /// +optional
3740 #[prost(string, optional, tag = "6")]
3741 pub storage_class_name: ::core::option::Option<::prost::alloc::string::String>,
3742 /// mountOptions is the list of mount options, e.g. \["ro", "soft"\]. Not validated - mount will
3743 /// simply fail if one is invalid.
3744 /// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options>
3745 /// +optional
3746 /// +listType=atomic
3747 #[prost(string, repeated, tag = "7")]
3748 pub mount_options: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
3749 /// volumeMode defines if a volume is intended to be used with a formatted filesystem
3750 /// or to remain in raw block state. Value of Filesystem is implied when not included in spec.
3751 /// +optional
3752 #[prost(string, optional, tag = "8")]
3753 pub volume_mode: ::core::option::Option<::prost::alloc::string::String>,
3754 /// nodeAffinity defines constraints that limit what nodes this volume can be accessed from.
3755 /// This field influences the scheduling of pods that use this volume.
3756 /// This field is mutable if MutablePVNodeAffinity feature gate is enabled.
3757 /// +optional
3758 #[prost(message, optional, tag = "9")]
3759 pub node_affinity: ::core::option::Option<VolumeNodeAffinity>,
3760 /// Name of VolumeAttributesClass to which this persistent volume belongs. Empty value
3761 /// is not allowed. When this field is not set, it indicates that this volume does not belong to any
3762 /// VolumeAttributesClass. This field is mutable and can be changed by the CSI driver
3763 /// after a volume has been updated successfully to a new class.
3764 /// For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound
3765 /// PersistentVolumeClaims during the binding process.
3766 /// +featureGate=VolumeAttributesClass
3767 /// +optional
3768 #[prost(string, optional, tag = "10")]
3769 pub volume_attributes_class_name: ::core::option::Option<::prost::alloc::string::String>,
3770}
3771/// PersistentVolumeStatus is the current status of a persistent volume.
3772#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
3773pub struct PersistentVolumeStatus {
3774 /// phase indicates if a volume is available, bound to a claim, or released by a claim.
3775 /// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase>
3776 /// +optional
3777 #[prost(string, optional, tag = "1")]
3778 pub phase: ::core::option::Option<::prost::alloc::string::String>,
3779 /// message is a human-readable message indicating details about why the volume is in this state.
3780 /// +optional
3781 #[prost(string, optional, tag = "2")]
3782 pub message: ::core::option::Option<::prost::alloc::string::String>,
3783 /// reason is a brief CamelCase string that describes any failure and is meant
3784 /// for machine parsing and tidy display in the CLI.
3785 /// +optional
3786 #[prost(string, optional, tag = "3")]
3787 pub reason: ::core::option::Option<::prost::alloc::string::String>,
3788 /// lastPhaseTransitionTime is the time the phase transitioned from one to another
3789 /// and automatically resets to current time everytime a volume phase transitions.
3790 /// +optional
3791 #[prost(message, optional, tag = "4")]
3792 pub last_phase_transition_time:
3793 ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::Time>,
3794}
3795/// Represents a Photon Controller persistent disk resource.
3796#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
3797pub struct PhotonPersistentDiskVolumeSource {
3798 /// pdID is the ID that identifies Photon Controller persistent disk
3799 #[prost(string, optional, tag = "1")]
3800 pub pd_id: ::core::option::Option<::prost::alloc::string::String>,
3801 /// fsType is the filesystem type to mount.
3802 /// Must be a filesystem type supported by the host operating system.
3803 /// Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
3804 #[prost(string, optional, tag = "2")]
3805 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
3806}
3807/// Pod is a collection of containers that can run on a host. This resource is created
3808/// by clients and scheduled onto hosts.
3809#[derive(Clone, PartialEq, ::prost::Message)]
3810pub struct Pod {
3811 /// Standard object's metadata.
3812 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
3813 /// +optional
3814 #[prost(message, optional, tag = "1")]
3815 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
3816 /// Specification of the desired behavior of the pod.
3817 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status>
3818 /// +optional
3819 #[prost(message, optional, tag = "2")]
3820 pub spec: ::core::option::Option<PodSpec>,
3821 /// Most recently observed status of the pod.
3822 /// This data may not be up to date.
3823 /// Populated by the system.
3824 /// Read-only.
3825 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status>
3826 /// +optional
3827 #[prost(message, optional, tag = "3")]
3828 pub status: ::core::option::Option<PodStatus>,
3829}
3830/// Pod affinity is a group of inter pod affinity scheduling rules.
3831#[derive(Clone, PartialEq, ::prost::Message)]
3832pub struct PodAffinity {
3833 /// If the affinity requirements specified by this field are not met at
3834 /// scheduling time, the pod will not be scheduled onto the node.
3835 /// If the affinity requirements specified by this field cease to be met
3836 /// at some point during pod execution (e.g. due to a pod label update), the
3837 /// system may or may not try to eventually evict the pod from its node.
3838 /// When there are multiple elements, the lists of nodes corresponding to each
3839 /// podAffinityTerm are intersected, i.e. all terms must be satisfied.
3840 /// +optional
3841 /// +listType=atomic
3842 #[prost(message, repeated, tag = "1")]
3843 pub required_during_scheduling_ignored_during_execution: ::prost::alloc::vec::Vec<PodAffinityTerm>,
3844 /// The scheduler will prefer to schedule pods to nodes that satisfy
3845 /// the affinity expressions specified by this field, but it may choose
3846 /// a node that violates one or more of the expressions. The node that is
3847 /// most preferred is the one with the greatest sum of weights, i.e.
3848 /// for each node that meets all of the scheduling requirements (resource
3849 /// request, requiredDuringScheduling affinity expressions, etc.),
3850 /// compute a sum by iterating through the elements of this field and adding
3851 /// "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
3852 /// node(s) with the highest sum are the most preferred.
3853 /// +optional
3854 /// +listType=atomic
3855 #[prost(message, repeated, tag = "2")]
3856 pub preferred_during_scheduling_ignored_during_execution:
3857 ::prost::alloc::vec::Vec<WeightedPodAffinityTerm>,
3858}
3859/// Defines a set of pods (namely those matching the labelSelector
3860/// relative to the given namespace(s)) that this pod should be
3861/// co-located (affinity) or not co-located (anti-affinity) with,
3862/// where co-located is defined as running on a node whose value of
3863/// the label with key <topologyKey> matches that of any node on which
3864/// a pod of the set of pods is running
3865#[derive(Clone, PartialEq, ::prost::Message)]
3866pub struct PodAffinityTerm {
3867 /// A label query over a set of resources, in this case pods.
3868 /// If it's null, this PodAffinityTerm matches with no Pods.
3869 /// +optional
3870 #[prost(message, optional, tag = "1")]
3871 pub label_selector:
3872 ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::LabelSelector>,
3873 /// namespaces specifies a static list of namespace names that the term applies to.
3874 /// The term is applied to the union of the namespaces listed in this field
3875 /// and the ones selected by namespaceSelector.
3876 /// null or empty namespaces list and null namespaceSelector means "this pod's namespace".
3877 /// +optional
3878 /// +listType=atomic
3879 #[prost(string, repeated, tag = "2")]
3880 pub namespaces: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
3881 /// This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
3882 /// the labelSelector in the specified namespaces, where co-located is defined as running on a node
3883 /// whose value of the label with key topologyKey matches that of any node on which any of the
3884 /// selected pods is running.
3885 /// Empty topologyKey is not allowed.
3886 #[prost(string, optional, tag = "3")]
3887 pub topology_key: ::core::option::Option<::prost::alloc::string::String>,
3888 /// A label query over the set of namespaces that the term applies to.
3889 /// The term is applied to the union of the namespaces selected by this field
3890 /// and the ones listed in the namespaces field.
3891 /// null selector and null or empty namespaces list means "this pod's namespace".
3892 /// An empty selector ({}) matches all namespaces.
3893 /// +optional
3894 #[prost(message, optional, tag = "4")]
3895 pub namespace_selector:
3896 ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::LabelSelector>,
3897 /// MatchLabelKeys is a set of pod label keys to select which pods will
3898 /// be taken into consideration. The keys are used to lookup values from the
3899 /// incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`
3900 /// to select the group of existing pods which pods will be taken into consideration
3901 /// for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
3902 /// pod labels will be ignored. The default value is empty.
3903 /// The same key is forbidden to exist in both matchLabelKeys and labelSelector.
3904 /// Also, matchLabelKeys cannot be set when labelSelector isn't set.
3905 ///
3906 /// +listType=atomic
3907 /// +optional
3908 #[prost(string, repeated, tag = "5")]
3909 pub match_label_keys: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
3910 /// MismatchLabelKeys is a set of pod label keys to select which pods will
3911 /// be taken into consideration. The keys are used to lookup values from the
3912 /// incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`
3913 /// to select the group of existing pods which pods will be taken into consideration
3914 /// for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
3915 /// pod labels will be ignored. The default value is empty.
3916 /// The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.
3917 /// Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
3918 ///
3919 /// +listType=atomic
3920 /// +optional
3921 #[prost(string, repeated, tag = "6")]
3922 pub mismatch_label_keys: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
3923}
3924/// Pod anti affinity is a group of inter pod anti affinity scheduling rules.
3925#[derive(Clone, PartialEq, ::prost::Message)]
3926pub struct PodAntiAffinity {
3927 /// If the anti-affinity requirements specified by this field are not met at
3928 /// scheduling time, the pod will not be scheduled onto the node.
3929 /// If the anti-affinity requirements specified by this field cease to be met
3930 /// at some point during pod execution (e.g. due to a pod label update), the
3931 /// system may or may not try to eventually evict the pod from its node.
3932 /// When there are multiple elements, the lists of nodes corresponding to each
3933 /// podAffinityTerm are intersected, i.e. all terms must be satisfied.
3934 /// +optional
3935 /// +listType=atomic
3936 #[prost(message, repeated, tag = "1")]
3937 pub required_during_scheduling_ignored_during_execution: ::prost::alloc::vec::Vec<PodAffinityTerm>,
3938 /// The scheduler will prefer to schedule pods to nodes that satisfy
3939 /// the anti-affinity expressions specified by this field, but it may choose
3940 /// a node that violates one or more of the expressions. The node that is
3941 /// most preferred is the one with the greatest sum of weights, i.e.
3942 /// for each node that meets all of the scheduling requirements (resource
3943 /// request, requiredDuringScheduling anti-affinity expressions, etc.),
3944 /// compute a sum by iterating through the elements of this field and subtracting
3945 /// "weight" from the sum if the node has pods which matches the corresponding podAffinityTerm; the
3946 /// node(s) with the highest sum are the most preferred.
3947 /// +optional
3948 /// +listType=atomic
3949 #[prost(message, repeated, tag = "2")]
3950 pub preferred_during_scheduling_ignored_during_execution:
3951 ::prost::alloc::vec::Vec<WeightedPodAffinityTerm>,
3952}
3953/// PodAttachOptions is the query options to a Pod's remote attach call.
3954/// ---
3955/// TODO: merge w/ PodExecOptions below for stdin, stdout, etc
3956/// and also when we cut V2, we should export a "StreamOptions" or somesuch that contains Stdin, Stdout, Stder and TTY
3957#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
3958pub struct PodAttachOptions {
3959 /// Stdin if true, redirects the standard input stream of the pod for this call.
3960 /// Defaults to false.
3961 /// +optional
3962 #[prost(bool, optional, tag = "1")]
3963 pub stdin: ::core::option::Option<bool>,
3964 /// Stdout if true indicates that stdout is to be redirected for the attach call.
3965 /// Defaults to true.
3966 /// +optional
3967 #[prost(bool, optional, tag = "2")]
3968 pub stdout: ::core::option::Option<bool>,
3969 /// Stderr if true indicates that stderr is to be redirected for the attach call.
3970 /// Defaults to true.
3971 /// +optional
3972 #[prost(bool, optional, tag = "3")]
3973 pub stderr: ::core::option::Option<bool>,
3974 /// TTY if true indicates that a tty will be allocated for the attach call.
3975 /// This is passed through the container runtime so the tty
3976 /// is allocated on the worker node by the container runtime.
3977 /// Defaults to false.
3978 /// +optional
3979 #[prost(bool, optional, tag = "4")]
3980 pub tty: ::core::option::Option<bool>,
3981 /// The container in which to execute the command.
3982 /// Defaults to only container if there is only one container in the pod.
3983 /// +optional
3984 #[prost(string, optional, tag = "5")]
3985 pub container: ::core::option::Option<::prost::alloc::string::String>,
3986}
3987/// PodCertificateProjection provides a private key and X.509 certificate in the
3988/// pod filesystem.
3989#[derive(Clone, PartialEq, ::prost::Message)]
3990pub struct PodCertificateProjection {
3991 /// Kubelet's generated CSRs will be addressed to this signer.
3992 ///
3993 /// +required
3994 #[prost(string, optional, tag = "1")]
3995 pub signer_name: ::core::option::Option<::prost::alloc::string::String>,
3996 /// The type of keypair Kubelet will generate for the pod.
3997 ///
3998 /// Valid values are "RSA3072", "RSA4096", "ECDSAP256", "ECDSAP384",
3999 /// "ECDSAP521", and "ED25519".
4000 ///
4001 /// +required
4002 #[prost(string, optional, tag = "2")]
4003 pub key_type: ::core::option::Option<::prost::alloc::string::String>,
4004 /// maxExpirationSeconds is the maximum lifetime permitted for the
4005 /// certificate.
4006 ///
4007 /// Kubelet copies this value verbatim into the PodCertificateRequests it
4008 /// generates for this projection.
4009 ///
4010 /// If omitted, kube-apiserver will set it to 86400(24 hours). kube-apiserver
4011 /// will reject values shorter than 3600 (1 hour). The maximum allowable
4012 /// value is 7862400 (91 days).
4013 ///
4014 /// The signer implementation is then free to issue a certificate with any
4015 /// lifetime *shorter* than MaxExpirationSeconds, but no shorter than 3600
4016 /// seconds (1 hour). This constraint is enforced by kube-apiserver.
4017 /// `kubernetes.io` signers will never issue certificates with a lifetime
4018 /// longer than 24 hours.
4019 ///
4020 /// +optional
4021 #[prost(int32, optional, tag = "3")]
4022 pub max_expiration_seconds: ::core::option::Option<i32>,
4023 /// Write the credential bundle at this path in the projected volume.
4024 ///
4025 /// The credential bundle is a single file that contains multiple PEM blocks.
4026 /// The first PEM block is a PRIVATE KEY block, containing a PKCS#8 private
4027 /// key.
4028 ///
4029 /// The remaining blocks are CERTIFICATE blocks, containing the issued
4030 /// certificate chain from the signer (leaf and any intermediates).
4031 ///
4032 /// Using credentialBundlePath lets your Pod's application code make a single
4033 /// atomic read that retrieves a consistent key and certificate chain. If you
4034 /// project them to separate files, your application code will need to
4035 /// additionally check that the leaf certificate was issued to the key.
4036 ///
4037 /// +optional
4038 #[prost(string, optional, tag = "4")]
4039 pub credential_bundle_path: ::core::option::Option<::prost::alloc::string::String>,
4040 /// Write the key at this path in the projected volume.
4041 ///
4042 /// Most applications should use credentialBundlePath. When using keyPath
4043 /// and certificateChainPath, your application needs to check that the key
4044 /// and leaf certificate are consistent, because it is possible to read the
4045 /// files mid-rotation.
4046 ///
4047 /// +optional
4048 #[prost(string, optional, tag = "5")]
4049 pub key_path: ::core::option::Option<::prost::alloc::string::String>,
4050 /// Write the certificate chain at this path in the projected volume.
4051 ///
4052 /// Most applications should use credentialBundlePath. When using keyPath
4053 /// and certificateChainPath, your application needs to check that the key
4054 /// and leaf certificate are consistent, because it is possible to read the
4055 /// files mid-rotation.
4056 ///
4057 /// +optional
4058 #[prost(string, optional, tag = "6")]
4059 pub certificate_chain_path: ::core::option::Option<::prost::alloc::string::String>,
4060 /// userAnnotations allow pod authors to pass additional information to
4061 /// the signer implementation. Kubernetes does not restrict or validate this
4062 /// metadata in any way.
4063 ///
4064 /// These values are copied verbatim into the `spec.unverifiedUserAnnotations` field of
4065 /// the PodCertificateRequest objects that Kubelet creates.
4066 ///
4067 /// Entries are subject to the same validation as object metadata annotations,
4068 /// with the addition that all keys must be domain-prefixed. No restrictions
4069 /// are placed on values, except an overall size limitation on the entire field.
4070 ///
4071 /// Signers should document the keys and values they support. Signers should
4072 /// deny requests that contain keys they do not recognize.
4073 #[prost(btree_map = "string, string", tag = "7")]
4074 pub user_annotations:
4075 ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
4076}
4077/// PodCondition contains details for the current condition of this pod.
4078#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4079pub struct PodCondition {
4080 /// Type is the type of the condition.
4081 /// More info: <https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions>
4082 #[prost(string, optional, tag = "1")]
4083 pub r#type: ::core::option::Option<::prost::alloc::string::String>,
4084 /// If set, this represents the .metadata.generation that the pod condition was set based upon.
4085 /// The PodObservedGenerationTracking feature gate must be enabled to use this field.
4086 /// +featureGate=PodObservedGenerationTracking
4087 /// +optional
4088 #[prost(int64, optional, tag = "7")]
4089 pub observed_generation: ::core::option::Option<i64>,
4090 /// Status is the status of the condition.
4091 /// Can be True, False, Unknown.
4092 /// More info: <https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions>
4093 #[prost(string, optional, tag = "2")]
4094 pub status: ::core::option::Option<::prost::alloc::string::String>,
4095 /// Last time we probed the condition.
4096 /// +optional
4097 #[prost(message, optional, tag = "3")]
4098 pub last_probe_time: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::Time>,
4099 /// Last time the condition transitioned from one status to another.
4100 /// +optional
4101 #[prost(message, optional, tag = "4")]
4102 pub last_transition_time:
4103 ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::Time>,
4104 /// Unique, one-word, CamelCase reason for the condition's last transition.
4105 /// +optional
4106 #[prost(string, optional, tag = "5")]
4107 pub reason: ::core::option::Option<::prost::alloc::string::String>,
4108 /// Human-readable message indicating details about last transition.
4109 /// +optional
4110 #[prost(string, optional, tag = "6")]
4111 pub message: ::core::option::Option<::prost::alloc::string::String>,
4112}
4113/// PodDNSConfig defines the DNS parameters of a pod in addition to
4114/// those generated from DNSPolicy.
4115#[derive(Clone, PartialEq, ::prost::Message)]
4116pub struct PodDnsConfig {
4117 /// A list of DNS name server IP addresses.
4118 /// This will be appended to the base nameservers generated from DNSPolicy.
4119 /// Duplicated nameservers will be removed.
4120 /// +optional
4121 /// +listType=atomic
4122 #[prost(string, repeated, tag = "1")]
4123 pub nameservers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
4124 /// A list of DNS search domains for host-name lookup.
4125 /// This will be appended to the base search paths generated from DNSPolicy.
4126 /// Duplicated search paths will be removed.
4127 /// +optional
4128 /// +listType=atomic
4129 #[prost(string, repeated, tag = "2")]
4130 pub searches: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
4131 /// A list of DNS resolver options.
4132 /// This will be merged with the base options generated from DNSPolicy.
4133 /// Duplicated entries will be removed. Resolution options given in Options
4134 /// will override those that appear in the base DNSPolicy.
4135 /// +optional
4136 /// +listType=atomic
4137 #[prost(message, repeated, tag = "3")]
4138 pub options: ::prost::alloc::vec::Vec<PodDnsConfigOption>,
4139}
4140/// PodDNSConfigOption defines DNS resolver options of a pod.
4141#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4142pub struct PodDnsConfigOption {
4143 /// Name is this DNS resolver option's name.
4144 /// Required.
4145 #[prost(string, optional, tag = "1")]
4146 pub name: ::core::option::Option<::prost::alloc::string::String>,
4147 /// Value is this DNS resolver option's value.
4148 /// +optional
4149 #[prost(string, optional, tag = "2")]
4150 pub value: ::core::option::Option<::prost::alloc::string::String>,
4151}
4152/// PodExecOptions is the query options to a Pod's remote exec call.
4153/// ---
4154/// TODO: This is largely identical to PodAttachOptions above, make sure they stay in sync and see about merging
4155/// and also when we cut V2, we should export a "StreamOptions" or somesuch that contains Stdin, Stdout, Stder and TTY
4156#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4157pub struct PodExecOptions {
4158 /// Redirect the standard input stream of the pod for this call.
4159 /// Defaults to false.
4160 /// +optional
4161 #[prost(bool, optional, tag = "1")]
4162 pub stdin: ::core::option::Option<bool>,
4163 /// Redirect the standard output stream of the pod for this call.
4164 /// +optional
4165 #[prost(bool, optional, tag = "2")]
4166 pub stdout: ::core::option::Option<bool>,
4167 /// Redirect the standard error stream of the pod for this call.
4168 /// +optional
4169 #[prost(bool, optional, tag = "3")]
4170 pub stderr: ::core::option::Option<bool>,
4171 /// TTY if true indicates that a tty will be allocated for the exec call.
4172 /// Defaults to false.
4173 /// +optional
4174 #[prost(bool, optional, tag = "4")]
4175 pub tty: ::core::option::Option<bool>,
4176 /// Container in which to execute the command.
4177 /// Defaults to only container if there is only one container in the pod.
4178 /// +optional
4179 #[prost(string, optional, tag = "5")]
4180 pub container: ::core::option::Option<::prost::alloc::string::String>,
4181 /// Command is the remote command to execute. argv array. Not executed within a shell.
4182 /// +listType=atomic
4183 #[prost(string, repeated, tag = "6")]
4184 pub command: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
4185}
4186/// PodExtendedResourceClaimStatus is stored in the PodStatus for the extended
4187/// resource requests backed by DRA. It stores the generated name for
4188/// the corresponding special ResourceClaim created by the scheduler.
4189#[derive(Clone, PartialEq, ::prost::Message)]
4190pub struct PodExtendedResourceClaimStatus {
4191 /// RequestMappings identifies the mapping of <container, extended resource backed by DRA> to device request
4192 /// in the generated ResourceClaim.
4193 /// +listType=atomic
4194 #[prost(message, repeated, tag = "1")]
4195 pub request_mappings: ::prost::alloc::vec::Vec<ContainerExtendedResourceRequest>,
4196 /// ResourceClaimName is the name of the ResourceClaim that was
4197 /// generated for the Pod in the namespace of the Pod.
4198 #[prost(string, optional, tag = "2")]
4199 pub resource_claim_name: ::core::option::Option<::prost::alloc::string::String>,
4200}
4201/// PodIP represents a single IP address allocated to the pod.
4202#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4203pub struct PodIp {
4204 /// IP is the IP address assigned to the pod
4205 /// +required
4206 #[prost(string, optional, tag = "1")]
4207 pub ip: ::core::option::Option<::prost::alloc::string::String>,
4208}
4209/// PodList is a list of Pods.
4210#[derive(Clone, PartialEq, ::prost::Message)]
4211pub struct PodList {
4212 /// Standard list metadata.
4213 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds>
4214 /// +optional
4215 #[prost(message, optional, tag = "1")]
4216 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
4217 /// List of pods.
4218 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md>
4219 #[prost(message, repeated, tag = "2")]
4220 pub items: ::prost::alloc::vec::Vec<Pod>,
4221}
4222/// PodLogOptions is the query options for a Pod's logs REST call.
4223#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4224pub struct PodLogOptions {
4225 /// The container for which to stream logs. Defaults to only container if there is one container in the pod.
4226 /// +optional
4227 #[prost(string, optional, tag = "1")]
4228 pub container: ::core::option::Option<::prost::alloc::string::String>,
4229 /// Follow the log stream of the pod. Defaults to false.
4230 /// +optional
4231 #[prost(bool, optional, tag = "2")]
4232 pub follow: ::core::option::Option<bool>,
4233 /// Return previous terminated container logs. Defaults to false.
4234 /// +optional
4235 #[prost(bool, optional, tag = "3")]
4236 pub previous: ::core::option::Option<bool>,
4237 /// A relative time in seconds before the current time from which to show logs. If this value
4238 /// precedes the time a pod was started, only logs since the pod start will be returned.
4239 /// If this value is in the future, no logs will be returned.
4240 /// Only one of sinceSeconds or sinceTime may be specified.
4241 /// +optional
4242 #[prost(int64, optional, tag = "4")]
4243 pub since_seconds: ::core::option::Option<i64>,
4244 /// An RFC3339 timestamp from which to show logs. If this value
4245 /// precedes the time a pod was started, only logs since the pod start will be returned.
4246 /// If this value is in the future, no logs will be returned.
4247 /// Only one of sinceSeconds or sinceTime may be specified.
4248 /// +optional
4249 #[prost(message, optional, tag = "5")]
4250 pub since_time: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::Time>,
4251 /// If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line
4252 /// of log output. Defaults to false.
4253 /// +optional
4254 #[prost(bool, optional, tag = "6")]
4255 pub timestamps: ::core::option::Option<bool>,
4256 /// If set, the number of lines from the end of the logs to show. If not specified,
4257 /// logs are shown from the creation of the container or sinceSeconds or sinceTime.
4258 /// Note that when "TailLines" is specified, "Stream" can only be set to nil or "All".
4259 /// +optional
4260 #[prost(int64, optional, tag = "7")]
4261 pub tail_lines: ::core::option::Option<i64>,
4262 /// If set, the number of bytes to read from the server before terminating the
4263 /// log output. This may not display a complete final line of logging, and may return
4264 /// slightly more or slightly less than the specified limit.
4265 /// +optional
4266 #[prost(int64, optional, tag = "8")]
4267 pub limit_bytes: ::core::option::Option<i64>,
4268 /// insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the
4269 /// serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver
4270 /// and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real
4271 /// kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the
4272 /// connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept
4273 /// the actual log data coming from the real kubelet).
4274 /// +optional
4275 #[prost(bool, optional, tag = "9")]
4276 pub insecure_skip_tls_verify_backend: ::core::option::Option<bool>,
4277 /// Specify which container log stream to return to the client.
4278 /// Acceptable values are "All", "Stdout" and "Stderr". If not specified, "All" is used, and both stdout and stderr
4279 /// are returned interleaved.
4280 /// Note that when "TailLines" is specified, "Stream" can only be set to nil or "All".
4281 /// +featureGate=PodLogsQuerySplitStreams
4282 /// +optional
4283 #[prost(string, optional, tag = "10")]
4284 pub stream: ::core::option::Option<::prost::alloc::string::String>,
4285}
4286/// PodOS defines the OS parameters of a pod.
4287#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4288pub struct PodOs {
4289 /// Name is the name of the operating system. The currently supported values are linux and windows.
4290 /// Additional value may be defined in future and can be one of:
4291 /// <https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration>
4292 /// Clients should expect to handle additional values and treat unrecognized values in this field as os: null
4293 #[prost(string, optional, tag = "1")]
4294 pub name: ::core::option::Option<::prost::alloc::string::String>,
4295}
4296/// PodPortForwardOptions is the query options to a Pod's port forward call
4297/// when using WebSockets.
4298/// The `port` query parameter must specify the port or
4299/// ports (comma separated) to forward over.
4300/// Port forwarding over SPDY does not use these options. It requires the port
4301/// to be passed in the `port` header as part of request.
4302#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4303pub struct PodPortForwardOptions {
4304 /// List of ports to forward
4305 /// Required when using WebSockets
4306 /// +optional
4307 /// +listType=atomic
4308 #[prost(int32, repeated, packed = "false", tag = "1")]
4309 pub ports: ::prost::alloc::vec::Vec<i32>,
4310}
4311/// PodProxyOptions is the query options to a Pod's proxy call.
4312#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4313pub struct PodProxyOptions {
4314 /// Path is the URL path to use for the current proxy request to pod.
4315 /// +optional
4316 #[prost(string, optional, tag = "1")]
4317 pub path: ::core::option::Option<::prost::alloc::string::String>,
4318}
4319/// PodReadinessGate contains the reference to a pod condition
4320#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4321pub struct PodReadinessGate {
4322 /// ConditionType refers to a condition in the pod's condition list with matching type.
4323 #[prost(string, optional, tag = "1")]
4324 pub condition_type: ::core::option::Option<::prost::alloc::string::String>,
4325}
4326/// PodResourceClaim references exactly one ResourceClaim, either directly
4327/// or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim
4328/// for the pod.
4329///
4330/// It adds a name to it that uniquely identifies the ResourceClaim inside the Pod.
4331/// Containers that need access to the ResourceClaim reference it with this name.
4332#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4333pub struct PodResourceClaim {
4334 /// Name uniquely identifies this resource claim inside the pod.
4335 /// This must be a DNS_LABEL.
4336 #[prost(string, optional, tag = "1")]
4337 pub name: ::core::option::Option<::prost::alloc::string::String>,
4338 /// ResourceClaimName is the name of a ResourceClaim object in the same
4339 /// namespace as this pod.
4340 ///
4341 /// Exactly one of ResourceClaimName and ResourceClaimTemplateName must
4342 /// be set.
4343 #[prost(string, optional, tag = "3")]
4344 pub resource_claim_name: ::core::option::Option<::prost::alloc::string::String>,
4345 /// ResourceClaimTemplateName is the name of a ResourceClaimTemplate
4346 /// object in the same namespace as this pod.
4347 ///
4348 /// The template will be used to create a new ResourceClaim, which will
4349 /// be bound to this pod. When this pod is deleted, the ResourceClaim
4350 /// will also be deleted. The pod name and resource name, along with a
4351 /// generated component, will be used to form a unique name for the
4352 /// ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.
4353 ///
4354 /// This field is immutable and no changes will be made to the
4355 /// corresponding ResourceClaim by the control plane after creating the
4356 /// ResourceClaim.
4357 ///
4358 /// Exactly one of ResourceClaimName and ResourceClaimTemplateName must
4359 /// be set.
4360 #[prost(string, optional, tag = "4")]
4361 pub resource_claim_template_name: ::core::option::Option<::prost::alloc::string::String>,
4362}
4363/// PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim
4364/// which references a ResourceClaimTemplate. It stores the generated name for
4365/// the corresponding ResourceClaim.
4366#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4367pub struct PodResourceClaimStatus {
4368 /// Name uniquely identifies this resource claim inside the pod.
4369 /// This must match the name of an entry in pod.spec.resourceClaims,
4370 /// which implies that the string must be a DNS_LABEL.
4371 #[prost(string, optional, tag = "1")]
4372 pub name: ::core::option::Option<::prost::alloc::string::String>,
4373 /// ResourceClaimName is the name of the ResourceClaim that was
4374 /// generated for the Pod in the namespace of the Pod. If this is
4375 /// unset, then generating a ResourceClaim was not necessary. The
4376 /// pod.spec.resourceClaims entry can be ignored in this case.
4377 ///
4378 /// +optional
4379 #[prost(string, optional, tag = "2")]
4380 pub resource_claim_name: ::core::option::Option<::prost::alloc::string::String>,
4381}
4382/// PodSchedulingGate is associated to a Pod to guard its scheduling.
4383#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4384pub struct PodSchedulingGate {
4385 /// Name of the scheduling gate.
4386 /// Each scheduling gate must have a unique name field.
4387 #[prost(string, optional, tag = "1")]
4388 pub name: ::core::option::Option<::prost::alloc::string::String>,
4389}
4390/// PodSecurityContext holds pod-level security attributes and common container settings.
4391/// Some fields are also present in container.securityContext. Field values of
4392/// container.securityContext take precedence over field values of PodSecurityContext.
4393#[derive(Clone, PartialEq, ::prost::Message)]
4394pub struct PodSecurityContext {
4395 /// The SELinux context to be applied to all containers.
4396 /// If unspecified, the container runtime will allocate a random SELinux context for each
4397 /// container. May also be set in SecurityContext. If set in
4398 /// both SecurityContext and PodSecurityContext, the value specified in SecurityContext
4399 /// takes precedence for that container.
4400 /// Note that this field cannot be set when spec.os.name is windows.
4401 /// +optional
4402 #[prost(message, optional, tag = "1")]
4403 pub se_linux_options: ::core::option::Option<SeLinuxOptions>,
4404 /// The Windows specific settings applied to all containers.
4405 /// If unspecified, the options within a container's SecurityContext will be used.
4406 /// If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
4407 /// Note that this field cannot be set when spec.os.name is linux.
4408 /// +optional
4409 #[prost(message, optional, tag = "8")]
4410 pub windows_options: ::core::option::Option<WindowsSecurityContextOptions>,
4411 /// The UID to run the entrypoint of the container process.
4412 /// Defaults to user specified in image metadata if unspecified.
4413 /// May also be set in SecurityContext. If set in both SecurityContext and
4414 /// PodSecurityContext, the value specified in SecurityContext takes precedence
4415 /// for that container.
4416 /// Note that this field cannot be set when spec.os.name is windows.
4417 /// +optional
4418 #[prost(int64, optional, tag = "2")]
4419 pub run_as_user: ::core::option::Option<i64>,
4420 /// The GID to run the entrypoint of the container process.
4421 /// Uses runtime default if unset.
4422 /// May also be set in SecurityContext. If set in both SecurityContext and
4423 /// PodSecurityContext, the value specified in SecurityContext takes precedence
4424 /// for that container.
4425 /// Note that this field cannot be set when spec.os.name is windows.
4426 /// +optional
4427 #[prost(int64, optional, tag = "6")]
4428 pub run_as_group: ::core::option::Option<i64>,
4429 /// Indicates that the container must run as a non-root user.
4430 /// If true, the Kubelet will validate the image at runtime to ensure that it
4431 /// does not run as UID 0 (root) and fail to start the container if it does.
4432 /// If unset or false, no such validation will be performed.
4433 /// May also be set in SecurityContext. If set in both SecurityContext and
4434 /// PodSecurityContext, the value specified in SecurityContext takes precedence.
4435 /// +optional
4436 #[prost(bool, optional, tag = "3")]
4437 pub run_as_non_root: ::core::option::Option<bool>,
4438 /// A list of groups applied to the first process run in each container, in
4439 /// addition to the container's primary GID and fsGroup (if specified). If
4440 /// the SupplementalGroupsPolicy feature is enabled, the
4441 /// supplementalGroupsPolicy field determines whether these are in addition
4442 /// to or instead of any group memberships defined in the container image.
4443 /// If unspecified, no additional groups are added, though group memberships
4444 /// defined in the container image may still be used, depending on the
4445 /// supplementalGroupsPolicy field.
4446 /// Note that this field cannot be set when spec.os.name is windows.
4447 /// +optional
4448 /// +listType=atomic
4449 #[prost(int64, repeated, packed = "false", tag = "4")]
4450 pub supplemental_groups: ::prost::alloc::vec::Vec<i64>,
4451 /// Defines how supplemental groups of the first container processes are calculated.
4452 /// Valid values are "Merge" and "Strict". If not specified, "Merge" is used.
4453 /// (Alpha) Using the field requires the SupplementalGroupsPolicy feature gate to be enabled
4454 /// and the container runtime must implement support for this feature.
4455 /// Note that this field cannot be set when spec.os.name is windows.
4456 /// TODO: update the default value to "Merge" when spec.os.name is not windows in v1.34
4457 /// +featureGate=SupplementalGroupsPolicy
4458 /// +optional
4459 #[prost(string, optional, tag = "12")]
4460 pub supplemental_groups_policy: ::core::option::Option<::prost::alloc::string::String>,
4461 /// A special supplemental group that applies to all containers in a pod.
4462 /// Some volume types allow the Kubelet to change the ownership of that volume
4463 /// to be owned by the pod:
4464 ///
4465 /// 1. The owning GID will be the FSGroup
4466 /// 2. The setgid bit is set (new files created in the volume will be owned by FSGroup)
4467 /// 3. The permission bits are OR'd with rw-rw----
4468 ///
4469 /// If unset, the Kubelet will not modify the ownership and permissions of any volume.
4470 /// Note that this field cannot be set when spec.os.name is windows.
4471 /// +optional
4472 #[prost(int64, optional, tag = "5")]
4473 pub fs_group: ::core::option::Option<i64>,
4474 /// Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
4475 /// sysctls (by the container runtime) might fail to launch.
4476 /// Note that this field cannot be set when spec.os.name is windows.
4477 /// +optional
4478 /// +listType=atomic
4479 #[prost(message, repeated, tag = "7")]
4480 pub sysctls: ::prost::alloc::vec::Vec<Sysctl>,
4481 /// fsGroupChangePolicy defines behavior of changing ownership and permission of the volume
4482 /// before being exposed inside Pod. This field will only apply to
4483 /// volume types which support fsGroup based ownership(and permissions).
4484 /// It will have no effect on ephemeral volume types such as: secret, configmaps
4485 /// and emptydir.
4486 /// Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used.
4487 /// Note that this field cannot be set when spec.os.name is windows.
4488 /// +optional
4489 #[prost(string, optional, tag = "9")]
4490 pub fs_group_change_policy: ::core::option::Option<::prost::alloc::string::String>,
4491 /// The seccomp options to use by the containers in this pod.
4492 /// Note that this field cannot be set when spec.os.name is windows.
4493 /// +optional
4494 #[prost(message, optional, tag = "10")]
4495 pub seccomp_profile: ::core::option::Option<SeccompProfile>,
4496 /// appArmorProfile is the AppArmor options to use by the containers in this pod.
4497 /// Note that this field cannot be set when spec.os.name is windows.
4498 /// +optional
4499 #[prost(message, optional, tag = "11")]
4500 pub app_armor_profile: ::core::option::Option<AppArmorProfile>,
4501 /// seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod.
4502 /// It has no effect on nodes that do not support SELinux or to volumes does not support SELinux.
4503 /// Valid values are "MountOption" and "Recursive".
4504 ///
4505 /// "Recursive" means relabeling of all files on all Pod volumes by the container runtime.
4506 /// This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node.
4507 ///
4508 /// "MountOption" mounts all eligible Pod volumes with `-o context` mount option.
4509 /// This requires all Pods that share the same volume to use the same SELinux label.
4510 /// It is not possible to share the same volume among privileged and unprivileged Pods.
4511 /// Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes
4512 /// whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their
4513 /// CSIDriver instance. Other volumes are always re-labelled recursively.
4514 /// "MountOption" value is allowed only when SELinuxMount feature gate is enabled.
4515 ///
4516 /// If not specified and SELinuxMount feature gate is enabled, "MountOption" is used.
4517 /// If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes
4518 /// and "Recursive" for all other volumes.
4519 ///
4520 /// This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers.
4521 ///
4522 /// All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state.
4523 /// Note that this field cannot be set when spec.os.name is windows.
4524 /// +featureGate=SELinuxChangePolicy
4525 /// +optional
4526 #[prost(string, optional, tag = "13")]
4527 pub se_linux_change_policy: ::core::option::Option<::prost::alloc::string::String>,
4528}
4529/// Describes the class of pods that should avoid this node.
4530/// Exactly one field should be set.
4531#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4532pub struct PodSignature {
4533 /// Reference to controller whose pods should avoid this node.
4534 /// +optional
4535 #[prost(message, optional, tag = "1")]
4536 pub pod_controller:
4537 ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::OwnerReference>,
4538}
4539/// PodSpec is a description of a pod.
4540#[derive(Clone, PartialEq, ::prost::Message)]
4541pub struct PodSpec {
4542 /// List of volumes that can be mounted by containers belonging to the pod.
4543 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes>
4544 /// +optional
4545 /// +patchMergeKey=name
4546 /// +patchStrategy=merge,retainKeys
4547 /// +listType=map
4548 /// +listMapKey=name
4549 #[prost(message, repeated, tag = "1")]
4550 pub volumes: ::prost::alloc::vec::Vec<Volume>,
4551 /// List of initialization containers belonging to the pod.
4552 /// Init containers are executed in order prior to containers being started. If any
4553 /// init container fails, the pod is considered to have failed and is handled according
4554 /// to its restartPolicy. The name for an init container or normal container must be
4555 /// unique among all containers.
4556 /// Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
4557 /// The resourceRequirements of an init container are taken into account during scheduling
4558 /// by finding the highest request/limit for each resource type, and then using the max of
4559 /// that value or the sum of the normal containers. Limits are applied to init containers
4560 /// in a similar fashion.
4561 /// Init containers cannot currently be added or removed.
4562 /// Cannot be updated.
4563 /// More info: <https://kubernetes.io/docs/concepts/workloads/pods/init-containers/>
4564 /// +patchMergeKey=name
4565 /// +patchStrategy=merge
4566 /// +listType=map
4567 /// +listMapKey=name
4568 #[prost(message, repeated, tag = "20")]
4569 pub init_containers: ::prost::alloc::vec::Vec<Container>,
4570 /// List of containers belonging to the pod.
4571 /// Containers cannot currently be added or removed.
4572 /// There must be at least one container in a Pod.
4573 /// Cannot be updated.
4574 /// +patchMergeKey=name
4575 /// +patchStrategy=merge
4576 /// +listType=map
4577 /// +listMapKey=name
4578 #[prost(message, repeated, tag = "2")]
4579 pub containers: ::prost::alloc::vec::Vec<Container>,
4580 /// List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing
4581 /// pod to perform user-initiated actions such as debugging. This list cannot be specified when
4582 /// creating a pod, and it cannot be modified by updating the pod spec. In order to add an
4583 /// ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.
4584 /// +optional
4585 /// +patchMergeKey=name
4586 /// +patchStrategy=merge
4587 /// +listType=map
4588 /// +listMapKey=name
4589 #[prost(message, repeated, tag = "34")]
4590 pub ephemeral_containers: ::prost::alloc::vec::Vec<EphemeralContainer>,
4591 /// Restart policy for all containers within the pod.
4592 /// One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted.
4593 /// Default to Always.
4594 /// More info: <https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy>
4595 /// +optional
4596 #[prost(string, optional, tag = "3")]
4597 pub restart_policy: ::core::option::Option<::prost::alloc::string::String>,
4598 /// Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.
4599 /// Value must be non-negative integer. The value zero indicates stop immediately via
4600 /// the kill signal (no opportunity to shut down).
4601 /// If this value is nil, the default grace period will be used instead.
4602 /// The grace period is the duration in seconds after the processes running in the pod are sent
4603 /// a termination signal and the time when the processes are forcibly halted with a kill signal.
4604 /// Set this value longer than the expected cleanup time for your process.
4605 /// Defaults to 30 seconds.
4606 /// +optional
4607 #[prost(int64, optional, tag = "4")]
4608 pub termination_grace_period_seconds: ::core::option::Option<i64>,
4609 /// Optional duration in seconds the pod may be active on the node relative to
4610 /// StartTime before the system will actively try to mark it failed and kill associated containers.
4611 /// Value must be a positive integer.
4612 /// +optional
4613 #[prost(int64, optional, tag = "5")]
4614 pub active_deadline_seconds: ::core::option::Option<i64>,
4615 /// Set DNS policy for the pod.
4616 /// Defaults to "ClusterFirst".
4617 /// Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'.
4618 /// DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy.
4619 /// To have DNS options set along with hostNetwork, you have to specify DNS policy
4620 /// explicitly to 'ClusterFirstWithHostNet'.
4621 /// +optional
4622 #[prost(string, optional, tag = "6")]
4623 pub dns_policy: ::core::option::Option<::prost::alloc::string::String>,
4624 /// NodeSelector is a selector which must be true for the pod to fit on a node.
4625 /// Selector which must match a node's labels for the pod to be scheduled on that node.
4626 /// More info: <https://kubernetes.io/docs/concepts/configuration/assign-pod-node/>
4627 /// +optional
4628 /// +mapType=atomic
4629 #[prost(btree_map = "string, string", tag = "7")]
4630 pub node_selector:
4631 ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
4632 /// ServiceAccountName is the name of the ServiceAccount to use to run this pod.
4633 /// More info: <https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/>
4634 /// +optional
4635 #[prost(string, optional, tag = "8")]
4636 pub service_account_name: ::core::option::Option<::prost::alloc::string::String>,
4637 /// DeprecatedServiceAccount is a deprecated alias for ServiceAccountName.
4638 /// Deprecated: Use serviceAccountName instead.
4639 /// +k8s:conversion-gen=false
4640 /// +optional
4641 #[prost(string, optional, tag = "9")]
4642 pub service_account: ::core::option::Option<::prost::alloc::string::String>,
4643 /// AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.
4644 /// +optional
4645 #[prost(bool, optional, tag = "21")]
4646 pub automount_service_account_token: ::core::option::Option<bool>,
4647 /// NodeName indicates in which node this pod is scheduled.
4648 /// If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName.
4649 /// Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod.
4650 /// This field should not be used to express a desire for the pod to be scheduled on a specific node.
4651 /// <https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodename>
4652 /// +optional
4653 #[prost(string, optional, tag = "10")]
4654 pub node_name: ::core::option::Option<::prost::alloc::string::String>,
4655 /// Host networking requested for this pod. Use the host's network namespace.
4656 /// When using HostNetwork you should specify ports so the scheduler is aware.
4657 /// When `hostNetwork` is true, specified `hostPort` fields in port definitions must match `containerPort`,
4658 /// and unspecified `hostPort` fields in port definitions are defaulted to match `containerPort`.
4659 /// Default to false.
4660 /// +k8s:conversion-gen=false
4661 /// +optional
4662 #[prost(bool, optional, tag = "11")]
4663 pub host_network: ::core::option::Option<bool>,
4664 /// Use the host's pid namespace.
4665 /// Optional: Default to false.
4666 /// +k8s:conversion-gen=false
4667 /// +optional
4668 #[prost(bool, optional, tag = "12")]
4669 pub host_pid: ::core::option::Option<bool>,
4670 /// Use the host's ipc namespace.
4671 /// Optional: Default to false.
4672 /// +k8s:conversion-gen=false
4673 /// +optional
4674 #[prost(bool, optional, tag = "13")]
4675 pub host_ipc: ::core::option::Option<bool>,
4676 /// Share a single process namespace between all of the containers in a pod.
4677 /// When this is set containers will be able to view and signal processes from other containers
4678 /// in the same pod, and the first process in each container will not be assigned PID 1.
4679 /// HostPID and ShareProcessNamespace cannot both be set.
4680 /// Optional: Default to false.
4681 /// +k8s:conversion-gen=false
4682 /// +optional
4683 #[prost(bool, optional, tag = "27")]
4684 pub share_process_namespace: ::core::option::Option<bool>,
4685 /// SecurityContext holds pod-level security attributes and common container settings.
4686 /// Optional: Defaults to empty. See type description for default values of each field.
4687 /// +optional
4688 #[prost(message, optional, tag = "14")]
4689 pub security_context: ::core::option::Option<PodSecurityContext>,
4690 /// 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.
4691 /// If specified, these secrets will be passed to individual puller implementations for them to use.
4692 /// More info: <https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod>
4693 /// +optional
4694 /// +patchMergeKey=name
4695 /// +patchStrategy=merge
4696 /// +listType=map
4697 /// +listMapKey=name
4698 #[prost(message, repeated, tag = "15")]
4699 pub image_pull_secrets: ::prost::alloc::vec::Vec<LocalObjectReference>,
4700 /// Specifies the hostname of the Pod
4701 /// If not specified, the pod's hostname will be set to a system-defined value.
4702 /// +optional
4703 #[prost(string, optional, tag = "16")]
4704 pub hostname: ::core::option::Option<::prost::alloc::string::String>,
4705 /// If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>".
4706 /// If not specified, the pod will not have a domainname at all.
4707 /// +optional
4708 #[prost(string, optional, tag = "17")]
4709 pub subdomain: ::core::option::Option<::prost::alloc::string::String>,
4710 /// If specified, the pod's scheduling constraints
4711 /// +optional
4712 #[prost(message, optional, tag = "18")]
4713 pub affinity: ::core::option::Option<Affinity>,
4714 /// If specified, the pod will be dispatched by specified scheduler.
4715 /// If not specified, the pod will be dispatched by default scheduler.
4716 /// +optional
4717 #[prost(string, optional, tag = "19")]
4718 pub scheduler_name: ::core::option::Option<::prost::alloc::string::String>,
4719 /// If specified, the pod's tolerations.
4720 /// +optional
4721 /// +listType=atomic
4722 #[prost(message, repeated, tag = "22")]
4723 pub tolerations: ::prost::alloc::vec::Vec<Toleration>,
4724 /// HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts
4725 /// file if specified.
4726 /// +optional
4727 /// +patchMergeKey=ip
4728 /// +patchStrategy=merge
4729 /// +listType=map
4730 /// +listMapKey=ip
4731 #[prost(message, repeated, tag = "23")]
4732 pub host_aliases: ::prost::alloc::vec::Vec<HostAlias>,
4733 /// If specified, indicates the pod's priority. "system-node-critical" and
4734 /// "system-cluster-critical" are two special keywords which indicate the
4735 /// highest priorities with the former being the highest priority. Any other
4736 /// name must be defined by creating a PriorityClass object with that name.
4737 /// If not specified, the pod priority will be default or zero if there is no
4738 /// default.
4739 /// +optional
4740 #[prost(string, optional, tag = "24")]
4741 pub priority_class_name: ::core::option::Option<::prost::alloc::string::String>,
4742 /// The priority value. Various system components use this field to find the
4743 /// priority of the pod. When Priority Admission Controller is enabled, it
4744 /// prevents users from setting this field. The admission controller populates
4745 /// this field from PriorityClassName.
4746 /// The higher the value, the higher the priority.
4747 /// +optional
4748 #[prost(int32, optional, tag = "25")]
4749 pub priority: ::core::option::Option<i32>,
4750 /// Specifies the DNS parameters of a pod.
4751 /// Parameters specified here will be merged to the generated DNS
4752 /// configuration based on DNSPolicy.
4753 /// +optional
4754 #[prost(message, optional, tag = "26")]
4755 pub dns_config: ::core::option::Option<PodDnsConfig>,
4756 /// If specified, all readiness gates will be evaluated for pod readiness.
4757 /// A pod is ready when all its containers are ready AND
4758 /// all conditions specified in the readiness gates have status equal to "True"
4759 /// More info: <https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates>
4760 /// +optional
4761 /// +listType=atomic
4762 #[prost(message, repeated, tag = "28")]
4763 pub readiness_gates: ::prost::alloc::vec::Vec<PodReadinessGate>,
4764 /// RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used
4765 /// to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run.
4766 /// If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an
4767 /// empty definition that uses the default runtime handler.
4768 /// More info: <https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class>
4769 /// +optional
4770 #[prost(string, optional, tag = "29")]
4771 pub runtime_class_name: ::core::option::Option<::prost::alloc::string::String>,
4772 /// EnableServiceLinks indicates whether information about services should be injected into pod's
4773 /// environment variables, matching the syntax of Docker links.
4774 /// Optional: Defaults to true.
4775 /// +optional
4776 #[prost(bool, optional, tag = "30")]
4777 pub enable_service_links: ::core::option::Option<bool>,
4778 /// PreemptionPolicy is the Policy for preempting pods with lower priority.
4779 /// One of Never, PreemptLowerPriority.
4780 /// Defaults to PreemptLowerPriority if unset.
4781 /// +optional
4782 #[prost(string, optional, tag = "31")]
4783 pub preemption_policy: ::core::option::Option<::prost::alloc::string::String>,
4784 /// Overhead represents the resource overhead associated with running a pod for a given RuntimeClass.
4785 /// This field will be autopopulated at admission time by the RuntimeClass admission controller. If
4786 /// the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests.
4787 /// The RuntimeClass admission controller will reject Pod create requests which have the overhead already
4788 /// set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value
4789 /// defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero.
4790 /// More info: <https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md>
4791 /// +optional
4792 #[prost(btree_map = "string, message", tag = "32")]
4793 pub overhead: ::prost::alloc::collections::BTreeMap<
4794 ::prost::alloc::string::String,
4795 super::super::super::apimachinery::pkg::api::resource::Quantity,
4796 >,
4797 /// TopologySpreadConstraints describes how a group of pods ought to spread across topology
4798 /// domains. Scheduler will schedule pods in a way which abides by the constraints.
4799 /// All topologySpreadConstraints are ANDed.
4800 /// +optional
4801 /// +patchMergeKey=topologyKey
4802 /// +patchStrategy=merge
4803 /// +listType=map
4804 /// +listMapKey=topologyKey
4805 /// +listMapKey=whenUnsatisfiable
4806 #[prost(message, repeated, tag = "33")]
4807 pub topology_spread_constraints: ::prost::alloc::vec::Vec<TopologySpreadConstraint>,
4808 /// If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default).
4809 /// In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname).
4810 /// 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.
4811 /// If a pod does not have FQDN, this has no effect.
4812 /// Default to false.
4813 /// +optional
4814 #[prost(bool, optional, tag = "35")]
4815 pub set_hostname_as_fqdn: ::core::option::Option<bool>,
4816 /// Specifies the OS of the containers in the pod.
4817 /// Some pod and container fields are restricted if this is set.
4818 ///
4819 /// If the OS field is set to linux, the following fields must be unset:
4820 /// -securityContext.windowsOptions
4821 ///
4822 /// If the OS field is set to windows, following fields must be unset:
4823 /// - spec.hostPID
4824 /// - spec.hostIPC
4825 /// - spec.hostUsers
4826 /// - spec.resources
4827 /// - spec.securityContext.appArmorProfile
4828 /// - spec.securityContext.seLinuxOptions
4829 /// - spec.securityContext.seccompProfile
4830 /// - spec.securityContext.fsGroup
4831 /// - spec.securityContext.fsGroupChangePolicy
4832 /// - spec.securityContext.sysctls
4833 /// - spec.shareProcessNamespace
4834 /// - spec.securityContext.runAsUser
4835 /// - spec.securityContext.runAsGroup
4836 /// - spec.securityContext.supplementalGroups
4837 /// - spec.securityContext.supplementalGroupsPolicy
4838 /// - spec.containers\[*\].securityContext.appArmorProfile
4839 /// - spec.containers\[*\].securityContext.seLinuxOptions
4840 /// - spec.containers\[*\].securityContext.seccompProfile
4841 /// - spec.containers\[*\].securityContext.capabilities
4842 /// - spec.containers\[*\].securityContext.readOnlyRootFilesystem
4843 /// - spec.containers\[*\].securityContext.privileged
4844 /// - spec.containers\[*\].securityContext.allowPrivilegeEscalation
4845 /// - spec.containers\[*\].securityContext.procMount
4846 /// - spec.containers\[*\].securityContext.runAsUser
4847 /// - spec.containers\[*\].securityContext.runAsGroup
4848 /// +optional
4849 #[prost(message, optional, tag = "36")]
4850 pub os: ::core::option::Option<PodOs>,
4851 /// Use the host's user namespace.
4852 /// Optional: Default to true.
4853 /// If set to true or not present, the pod will be run in the host user namespace, useful
4854 /// for when the pod needs a feature only available to the host user namespace, such as
4855 /// loading a kernel module with CAP_SYS_MODULE.
4856 /// When set to false, a new userns is created for the pod. Setting false is useful for
4857 /// mitigating container breakout vulnerabilities even allowing users to run their
4858 /// containers as root without actually having root privileges on the host.
4859 /// This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.
4860 /// +k8s:conversion-gen=false
4861 /// +optional
4862 #[prost(bool, optional, tag = "37")]
4863 pub host_users: ::core::option::Option<bool>,
4864 /// SchedulingGates is an opaque list of values that if specified will block scheduling the pod.
4865 /// If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the
4866 /// scheduler will not attempt to schedule the pod.
4867 ///
4868 /// SchedulingGates can only be set at pod creation time, and be removed only afterwards.
4869 ///
4870 /// +patchMergeKey=name
4871 /// +patchStrategy=merge
4872 /// +listType=map
4873 /// +listMapKey=name
4874 /// +optional
4875 #[prost(message, repeated, tag = "38")]
4876 pub scheduling_gates: ::prost::alloc::vec::Vec<PodSchedulingGate>,
4877 /// ResourceClaims defines which ResourceClaims must be allocated
4878 /// and reserved before the Pod is allowed to start. The resources
4879 /// will be made available to those containers which consume them
4880 /// by name.
4881 ///
4882 /// This is a stable field but requires that the
4883 /// DynamicResourceAllocation feature gate is enabled.
4884 ///
4885 /// This field is immutable.
4886 ///
4887 /// +patchMergeKey=name
4888 /// +patchStrategy=merge,retainKeys
4889 /// +listType=map
4890 /// +listMapKey=name
4891 /// +featureGate=DynamicResourceAllocation
4892 /// +optional
4893 #[prost(message, repeated, tag = "39")]
4894 pub resource_claims: ::prost::alloc::vec::Vec<PodResourceClaim>,
4895 /// Resources is the total amount of CPU and Memory resources required by all
4896 /// containers in the pod. It supports specifying Requests and Limits for
4897 /// "cpu", "memory" and "hugepages-" resource names only. ResourceClaims are not supported.
4898 ///
4899 /// This field enables fine-grained control over resource allocation for the
4900 /// entire pod, allowing resource sharing among containers in a pod.
4901 /// TODO: For beta graduation, expand this comment with a detailed explanation.
4902 ///
4903 /// This is an alpha field and requires enabling the PodLevelResources feature
4904 /// gate.
4905 ///
4906 /// +featureGate=PodLevelResources
4907 /// +optional
4908 #[prost(message, optional, tag = "40")]
4909 pub resources: ::core::option::Option<ResourceRequirements>,
4910 /// HostnameOverride specifies an explicit override for the pod's hostname as perceived by the pod.
4911 /// This field only specifies the pod's hostname and does not affect its DNS records.
4912 /// When this field is set to a non-empty string:
4913 /// - It takes precedence over the values set in `hostname` and `subdomain`.
4914 /// - The Pod's hostname will be set to this value.
4915 /// - `setHostnameAsFQDN` must be nil or set to false.
4916 /// - `hostNetwork` must be set to false.
4917 ///
4918 /// This field must be a valid DNS subdomain as defined in RFC 1123 and contain at most 64 characters.
4919 /// Requires the HostnameOverride feature gate to be enabled.
4920 ///
4921 /// +featureGate=HostnameOverride
4922 /// +optional
4923 #[prost(string, optional, tag = "41")]
4924 pub hostname_override: ::core::option::Option<::prost::alloc::string::String>,
4925 /// WorkloadRef provides a reference to the Workload object that this Pod belongs to.
4926 /// This field is used by the scheduler to identify the PodGroup and apply the
4927 /// correct group scheduling policies. The Workload object referenced
4928 /// by this field may not exist at the time the Pod is created.
4929 /// This field is immutable, but a Workload object with the same name
4930 /// may be recreated with different policies. Doing this during pod scheduling
4931 /// may result in the placement not conforming to the expected policies.
4932 ///
4933 /// +featureGate=GenericWorkload
4934 /// +optional
4935 #[prost(message, optional, tag = "42")]
4936 pub workload_ref: ::core::option::Option<WorkloadReference>,
4937}
4938/// PodStatus represents information about the status of a pod. Status may trail the actual
4939/// state of a system, especially if the node that hosts the pod cannot contact the control
4940/// plane.
4941#[derive(Clone, PartialEq, ::prost::Message)]
4942pub struct PodStatus {
4943 /// If set, this represents the .metadata.generation that the pod status was set based upon.
4944 /// The PodObservedGenerationTracking feature gate must be enabled to use this field.
4945 /// +featureGate=PodObservedGenerationTracking
4946 /// +optional
4947 #[prost(int64, optional, tag = "17")]
4948 pub observed_generation: ::core::option::Option<i64>,
4949 /// The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle.
4950 /// The conditions array, the reason and message fields, and the individual container status
4951 /// arrays contain more detail about the pod's status.
4952 /// There are five possible phase values:
4953 ///
4954 /// Pending: The pod has been accepted by the Kubernetes system, but one or more of the
4955 /// container images has not been created. This includes time before being scheduled as
4956 /// well as time spent downloading images over the network, which could take a while.
4957 /// Running: The pod has been bound to a node, and all of the containers have been created.
4958 /// At least one container is still running, or is in the process of starting or restarting.
4959 /// Succeeded: All containers in the pod have terminated in success, and will not be restarted.
4960 /// Failed: All containers in the pod have terminated, and at least one container has
4961 /// terminated in failure. The container either exited with non-zero status or was terminated
4962 /// by the system.
4963 /// Unknown: For some reason the state of the pod could not be obtained, typically due to an
4964 /// error in communicating with the host of the pod.
4965 ///
4966 /// More info: <https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase>
4967 /// +optional
4968 #[prost(string, optional, tag = "1")]
4969 pub phase: ::core::option::Option<::prost::alloc::string::String>,
4970 /// Current service state of pod.
4971 /// More info: <https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions>
4972 /// +optional
4973 /// +patchMergeKey=type
4974 /// +patchStrategy=merge
4975 /// +listType=map
4976 /// +listMapKey=type
4977 #[prost(message, repeated, tag = "2")]
4978 pub conditions: ::prost::alloc::vec::Vec<PodCondition>,
4979 /// A human readable message indicating details about why the pod is in this condition.
4980 /// +optional
4981 #[prost(string, optional, tag = "3")]
4982 pub message: ::core::option::Option<::prost::alloc::string::String>,
4983 /// A brief CamelCase message indicating details about why the pod is in this state.
4984 /// e.g. 'Evicted'
4985 /// +optional
4986 #[prost(string, optional, tag = "4")]
4987 pub reason: ::core::option::Option<::prost::alloc::string::String>,
4988 /// nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be
4989 /// scheduled right away as preemption victims receive their graceful termination periods.
4990 /// This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide
4991 /// to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to
4992 /// give the resources on this node to a higher priority pod that is created after preemption.
4993 /// As a result, this field may be different than PodSpec.nodeName when the pod is
4994 /// scheduled.
4995 /// +optional
4996 #[prost(string, optional, tag = "11")]
4997 pub nominated_node_name: ::core::option::Option<::prost::alloc::string::String>,
4998 /// hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet.
4999 /// A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will
5000 /// not be updated even if there is a node is assigned to pod
5001 /// +optional
5002 #[prost(string, optional, tag = "5")]
5003 pub host_ip: ::core::option::Option<::prost::alloc::string::String>,
5004 /// hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must
5005 /// match the hostIP field. This list is empty if the pod has not started yet.
5006 /// A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will
5007 /// not be updated even if there is a node is assigned to this pod.
5008 /// +optional
5009 /// +patchStrategy=merge
5010 /// +patchMergeKey=ip
5011 /// +listType=atomic
5012 #[prost(message, repeated, tag = "16")]
5013 pub host_ips: ::prost::alloc::vec::Vec<HostIp>,
5014 /// podIP address allocated to the pod. Routable at least within the cluster.
5015 /// Empty if not yet allocated.
5016 /// +optional
5017 #[prost(string, optional, tag = "6")]
5018 pub pod_ip: ::core::option::Option<::prost::alloc::string::String>,
5019 /// podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must
5020 /// match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list
5021 /// is empty if no IPs have been allocated yet.
5022 /// +optional
5023 /// +patchStrategy=merge
5024 /// +patchMergeKey=ip
5025 /// +listType=map
5026 /// +listMapKey=ip
5027 #[prost(message, repeated, tag = "12")]
5028 pub pod_ips: ::prost::alloc::vec::Vec<PodIp>,
5029 /// RFC 3339 date and time at which the object was acknowledged by the Kubelet.
5030 /// This is before the Kubelet pulled the container image(s) for the pod.
5031 /// +optional
5032 #[prost(message, optional, tag = "7")]
5033 pub start_time: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::Time>,
5034 /// Statuses of init containers in this pod. The most recent successful non-restartable
5035 /// init container will have ready = true, the most recently started container will have
5036 /// startTime set.
5037 /// Each init container in the pod should have at most one status in this list,
5038 /// and all statuses should be for containers in the pod.
5039 /// However this is not enforced.
5040 /// If a status for a non-existent container is present in the list, or the list has duplicate names,
5041 /// the behavior of various Kubernetes components is not defined and those statuses might be
5042 /// ignored.
5043 /// More info: <https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-and-container-status>
5044 /// +listType=atomic
5045 #[prost(message, repeated, tag = "10")]
5046 pub init_container_statuses: ::prost::alloc::vec::Vec<ContainerStatus>,
5047 /// Statuses of containers in this pod.
5048 /// Each container in the pod should have at most one status in this list,
5049 /// and all statuses should be for containers in the pod.
5050 /// However this is not enforced.
5051 /// If a status for a non-existent container is present in the list, or the list has duplicate names,
5052 /// the behavior of various Kubernetes components is not defined and those statuses might be
5053 /// ignored.
5054 /// More info: <https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status>
5055 /// +optional
5056 /// +listType=atomic
5057 #[prost(message, repeated, tag = "8")]
5058 pub container_statuses: ::prost::alloc::vec::Vec<ContainerStatus>,
5059 /// The Quality of Service (QOS) classification assigned to the pod based on resource requirements
5060 /// See PodQOSClass type for available QOS classes
5061 /// More info: <https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes>
5062 /// +optional
5063 #[prost(string, optional, tag = "9")]
5064 pub qos_class: ::core::option::Option<::prost::alloc::string::String>,
5065 /// Statuses for any ephemeral containers that have run in this pod.
5066 /// Each ephemeral container in the pod should have at most one status in this list,
5067 /// and all statuses should be for containers in the pod.
5068 /// However this is not enforced.
5069 /// If a status for a non-existent container is present in the list, or the list has duplicate names,
5070 /// the behavior of various Kubernetes components is not defined and those statuses might be
5071 /// ignored.
5072 /// More info: <https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status>
5073 /// +optional
5074 /// +listType=atomic
5075 #[prost(message, repeated, tag = "13")]
5076 pub ephemeral_container_statuses: ::prost::alloc::vec::Vec<ContainerStatus>,
5077 /// Status of resources resize desired for pod's containers.
5078 /// It is empty if no resources resize is pending.
5079 /// Any changes to container resources will automatically set this to "Proposed"
5080 /// Deprecated: Resize status is moved to two pod conditions PodResizePending and PodResizeInProgress.
5081 /// PodResizePending will track states where the spec has been resized, but the Kubelet has not yet allocated the resources.
5082 /// PodResizeInProgress will track in-progress resizes, and should be present whenever allocated resources != acknowledged resources.
5083 /// +featureGate=InPlacePodVerticalScaling
5084 /// +optional
5085 #[prost(string, optional, tag = "14")]
5086 pub resize: ::core::option::Option<::prost::alloc::string::String>,
5087 /// Status of resource claims.
5088 /// +patchMergeKey=name
5089 /// +patchStrategy=merge,retainKeys
5090 /// +listType=map
5091 /// +listMapKey=name
5092 /// +featureGate=DynamicResourceAllocation
5093 /// +optional
5094 #[prost(message, repeated, tag = "15")]
5095 pub resource_claim_statuses: ::prost::alloc::vec::Vec<PodResourceClaimStatus>,
5096 /// Status of extended resource claim backed by DRA.
5097 /// +featureGate=DRAExtendedResource
5098 /// +optional
5099 #[prost(message, optional, tag = "18")]
5100 pub extended_resource_claim_status: ::core::option::Option<PodExtendedResourceClaimStatus>,
5101 /// AllocatedResources is the total requests allocated for this pod by the node.
5102 /// If pod-level requests are not set, this will be the total requests aggregated
5103 /// across containers in the pod.
5104 /// +featureGate=InPlacePodLevelResourcesVerticalScaling
5105 /// +optional
5106 #[prost(btree_map = "string, message", tag = "19")]
5107 pub allocated_resources: ::prost::alloc::collections::BTreeMap<
5108 ::prost::alloc::string::String,
5109 super::super::super::apimachinery::pkg::api::resource::Quantity,
5110 >,
5111 /// Resources represents the compute resource requests and limits that have been
5112 /// applied at the pod level if pod-level requests or limits are set in
5113 /// PodSpec.Resources
5114 /// +featureGate=InPlacePodLevelResourcesVerticalScaling
5115 /// +optional
5116 #[prost(message, optional, tag = "20")]
5117 pub resources: ::core::option::Option<ResourceRequirements>,
5118}
5119/// PodStatusResult is a wrapper for PodStatus returned by kubelet that can be encode/decoded
5120#[derive(Clone, PartialEq, ::prost::Message)]
5121pub struct PodStatusResult {
5122 /// Standard object's metadata.
5123 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
5124 /// +optional
5125 #[prost(message, optional, tag = "1")]
5126 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
5127 /// Most recently observed status of the pod.
5128 /// This data may not be up to date.
5129 /// Populated by the system.
5130 /// Read-only.
5131 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status>
5132 /// +optional
5133 #[prost(message, optional, tag = "2")]
5134 pub status: ::core::option::Option<PodStatus>,
5135}
5136/// PodTemplate describes a template for creating copies of a predefined pod.
5137#[derive(Clone, PartialEq, ::prost::Message)]
5138pub struct PodTemplate {
5139 /// Standard object's metadata.
5140 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
5141 /// +optional
5142 #[prost(message, optional, tag = "1")]
5143 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
5144 /// Template defines the pods that will be created from this pod template.
5145 /// <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status>
5146 /// +optional
5147 #[prost(message, optional, tag = "2")]
5148 pub template: ::core::option::Option<PodTemplateSpec>,
5149}
5150/// PodTemplateList is a list of PodTemplates.
5151#[derive(Clone, PartialEq, ::prost::Message)]
5152pub struct PodTemplateList {
5153 /// Standard list metadata.
5154 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds>
5155 /// +optional
5156 #[prost(message, optional, tag = "1")]
5157 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
5158 /// List of pod templates
5159 #[prost(message, repeated, tag = "2")]
5160 pub items: ::prost::alloc::vec::Vec<PodTemplate>,
5161}
5162/// PodTemplateSpec describes the data a pod should have when created from a template
5163#[derive(Clone, PartialEq, ::prost::Message)]
5164pub struct PodTemplateSpec {
5165 /// Standard object's metadata.
5166 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
5167 /// +optional
5168 #[prost(message, optional, tag = "1")]
5169 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
5170 /// Specification of the desired behavior of the pod.
5171 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status>
5172 /// +optional
5173 #[prost(message, optional, tag = "2")]
5174 pub spec: ::core::option::Option<PodSpec>,
5175}
5176/// PortStatus represents the error condition of a service port
5177#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5178pub struct PortStatus {
5179 /// Port is the port number of the service port of which status is recorded here
5180 #[prost(int32, optional, tag = "1")]
5181 pub port: ::core::option::Option<i32>,
5182 /// Protocol is the protocol of the service port of which status is recorded here
5183 /// The supported values are: "TCP", "UDP", "SCTP"
5184 #[prost(string, optional, tag = "2")]
5185 pub protocol: ::core::option::Option<::prost::alloc::string::String>,
5186 /// Error is to record the problem with the service port
5187 /// The format of the error shall comply with the following rules:
5188 /// - built-in error values shall be specified in this file and those shall use
5189 /// CamelCase names
5190 /// - cloud provider specific error values must have names that comply with the
5191 /// format foo.example.com/CamelCase.
5192 /// ---
5193 /// The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
5194 /// +optional
5195 /// +kubebuilder:validation:Required
5196 /// +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\])$`
5197 /// +kubebuilder:validation:MaxLength=316
5198 #[prost(string, optional, tag = "3")]
5199 pub error: ::core::option::Option<::prost::alloc::string::String>,
5200}
5201/// PortworxVolumeSource represents a Portworx volume resource.
5202#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5203pub struct PortworxVolumeSource {
5204 /// volumeID uniquely identifies a Portworx volume
5205 #[prost(string, optional, tag = "1")]
5206 pub volume_id: ::core::option::Option<::prost::alloc::string::String>,
5207 /// fSType represents the filesystem type to mount
5208 /// Must be a filesystem type supported by the host operating system.
5209 /// Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified.
5210 #[prost(string, optional, tag = "2")]
5211 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
5212 /// readOnly defaults to false (read/write). ReadOnly here will force
5213 /// the ReadOnly setting in VolumeMounts.
5214 /// +optional
5215 #[prost(bool, optional, tag = "3")]
5216 pub read_only: ::core::option::Option<bool>,
5217}
5218/// Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.
5219/// +k8s:openapi-gen=false
5220#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5221pub struct Preconditions {
5222 /// Specifies the target UID.
5223 /// +optional
5224 #[prost(string, optional, tag = "1")]
5225 pub uid: ::core::option::Option<::prost::alloc::string::String>,
5226}
5227/// Describes a class of pods that should avoid this node.
5228#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5229pub struct PreferAvoidPodsEntry {
5230 /// The class of pods.
5231 #[prost(message, optional, tag = "1")]
5232 pub pod_signature: ::core::option::Option<PodSignature>,
5233 /// Time at which this entry was added to the list.
5234 /// +optional
5235 #[prost(message, optional, tag = "2")]
5236 pub eviction_time: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::Time>,
5237 /// (brief) reason why this entry was added to the list.
5238 /// +optional
5239 #[prost(string, optional, tag = "3")]
5240 pub reason: ::core::option::Option<::prost::alloc::string::String>,
5241 /// Human readable message indicating why this entry was added to the list.
5242 /// +optional
5243 #[prost(string, optional, tag = "4")]
5244 pub message: ::core::option::Option<::prost::alloc::string::String>,
5245}
5246/// An empty preferred scheduling term matches all objects with implicit weight 0
5247/// (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).
5248#[derive(Clone, PartialEq, ::prost::Message)]
5249pub struct PreferredSchedulingTerm {
5250 /// Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.
5251 #[prost(int32, optional, tag = "1")]
5252 pub weight: ::core::option::Option<i32>,
5253 /// A node selector term, associated with the corresponding weight.
5254 #[prost(message, optional, tag = "2")]
5255 pub preference: ::core::option::Option<NodeSelectorTerm>,
5256}
5257/// Probe describes a health check to be performed against a container to determine whether it is
5258/// alive or ready to receive traffic.
5259#[derive(Clone, PartialEq, ::prost::Message)]
5260pub struct Probe {
5261 /// The action taken to determine the health of a container
5262 #[prost(message, optional, tag = "1")]
5263 pub handler: ::core::option::Option<ProbeHandler>,
5264 /// Number of seconds after the container has started before liveness probes are initiated.
5265 /// More info: <https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes>
5266 /// +optional
5267 #[prost(int32, optional, tag = "2")]
5268 pub initial_delay_seconds: ::core::option::Option<i32>,
5269 /// Number of seconds after which the probe times out.
5270 /// Defaults to 1 second. Minimum value is 1.
5271 /// More info: <https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes>
5272 /// +optional
5273 #[prost(int32, optional, tag = "3")]
5274 pub timeout_seconds: ::core::option::Option<i32>,
5275 /// How often (in seconds) to perform the probe.
5276 /// Default to 10 seconds. Minimum value is 1.
5277 /// +optional
5278 #[prost(int32, optional, tag = "4")]
5279 pub period_seconds: ::core::option::Option<i32>,
5280 /// Minimum consecutive successes for the probe to be considered successful after having failed.
5281 /// Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.
5282 /// +optional
5283 #[prost(int32, optional, tag = "5")]
5284 pub success_threshold: ::core::option::Option<i32>,
5285 /// Minimum consecutive failures for the probe to be considered failed after having succeeded.
5286 /// Defaults to 3. Minimum value is 1.
5287 /// +optional
5288 #[prost(int32, optional, tag = "6")]
5289 pub failure_threshold: ::core::option::Option<i32>,
5290 /// Optional duration in seconds the pod needs to terminate gracefully upon probe failure.
5291 /// The grace period is the duration in seconds after the processes running in the pod are sent
5292 /// a termination signal and the time when the processes are forcibly halted with a kill signal.
5293 /// Set this value longer than the expected cleanup time for your process.
5294 /// If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this
5295 /// value overrides the value provided by the pod spec.
5296 /// Value must be non-negative integer. The value zero indicates stop immediately via
5297 /// the kill signal (no opportunity to shut down).
5298 /// This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.
5299 /// Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.
5300 /// +optional
5301 #[prost(int64, optional, tag = "7")]
5302 pub termination_grace_period_seconds: ::core::option::Option<i64>,
5303}
5304/// ProbeHandler defines a specific action that should be taken in a probe.
5305/// One and only one of the fields must be specified.
5306#[derive(Clone, PartialEq, ::prost::Message)]
5307pub struct ProbeHandler {
5308 /// Exec specifies a command to execute in the container.
5309 /// +optional
5310 #[prost(message, optional, tag = "1")]
5311 pub exec: ::core::option::Option<ExecAction>,
5312 /// HTTPGet specifies an HTTP GET request to perform.
5313 /// +optional
5314 #[prost(message, optional, tag = "2")]
5315 pub http_get: ::core::option::Option<HttpGetAction>,
5316 /// TCPSocket specifies a connection to a TCP port.
5317 /// +optional
5318 #[prost(message, optional, tag = "3")]
5319 pub tcp_socket: ::core::option::Option<TcpSocketAction>,
5320 /// GRPC specifies a GRPC HealthCheckRequest.
5321 /// +optional
5322 #[prost(message, optional, tag = "4")]
5323 pub grpc: ::core::option::Option<GrpcAction>,
5324}
5325/// Represents a projected volume source
5326#[derive(Clone, PartialEq, ::prost::Message)]
5327pub struct ProjectedVolumeSource {
5328 /// sources is the list of volume projections. Each entry in this list
5329 /// handles one source.
5330 /// +optional
5331 /// +listType=atomic
5332 #[prost(message, repeated, tag = "1")]
5333 pub sources: ::prost::alloc::vec::Vec<VolumeProjection>,
5334 /// defaultMode are the mode bits used to set permissions on created files by default.
5335 /// Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
5336 /// YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
5337 /// Directories within the path are not affected by this setting.
5338 /// This might be in conflict with other options that affect the file
5339 /// mode, like fsGroup, and the result can be other mode bits set.
5340 /// +optional
5341 #[prost(int32, optional, tag = "2")]
5342 pub default_mode: ::core::option::Option<i32>,
5343}
5344/// Represents a Quobyte mount that lasts the lifetime of a pod.
5345/// Quobyte volumes do not support ownership management or SELinux relabeling.
5346#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5347pub struct QuobyteVolumeSource {
5348 /// registry represents a single or multiple Quobyte Registry services
5349 /// specified as a string as host:port pair (multiple entries are separated with commas)
5350 /// which acts as the central registry for volumes
5351 #[prost(string, optional, tag = "1")]
5352 pub registry: ::core::option::Option<::prost::alloc::string::String>,
5353 /// volume is a string that references an already created Quobyte volume by name.
5354 #[prost(string, optional, tag = "2")]
5355 pub volume: ::core::option::Option<::prost::alloc::string::String>,
5356 /// readOnly here will force the Quobyte volume to be mounted with read-only permissions.
5357 /// Defaults to false.
5358 /// +optional
5359 #[prost(bool, optional, tag = "3")]
5360 pub read_only: ::core::option::Option<bool>,
5361 /// user to map volume access to
5362 /// Defaults to serivceaccount user
5363 /// +optional
5364 #[prost(string, optional, tag = "4")]
5365 pub user: ::core::option::Option<::prost::alloc::string::String>,
5366 /// group to map volume access to
5367 /// Default is no group
5368 /// +optional
5369 #[prost(string, optional, tag = "5")]
5370 pub group: ::core::option::Option<::prost::alloc::string::String>,
5371 /// tenant owning the given Quobyte volume in the Backend
5372 /// Used with dynamically provisioned Quobyte volumes, value is set by the plugin
5373 /// +optional
5374 #[prost(string, optional, tag = "6")]
5375 pub tenant: ::core::option::Option<::prost::alloc::string::String>,
5376}
5377/// Represents a Rados Block Device mount that lasts the lifetime of a pod.
5378/// RBD volumes support ownership management and SELinux relabeling.
5379#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5380pub struct RbdPersistentVolumeSource {
5381 /// monitors is a collection of Ceph monitors.
5382 /// More info: <https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it>
5383 /// +listType=atomic
5384 #[prost(string, repeated, tag = "1")]
5385 pub monitors: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5386 /// image is the rados image name.
5387 /// More info: <https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it>
5388 #[prost(string, optional, tag = "2")]
5389 pub image: ::core::option::Option<::prost::alloc::string::String>,
5390 /// fsType is the filesystem type of the volume that you want to mount.
5391 /// Tip: Ensure that the filesystem type is supported by the host operating system.
5392 /// Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
5393 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#rbd>
5394 /// TODO: how do we prevent errors in the filesystem from compromising the machine
5395 /// +optional
5396 #[prost(string, optional, tag = "3")]
5397 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
5398 /// pool is the rados pool name.
5399 /// Default is rbd.
5400 /// More info: <https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it>
5401 /// +optional
5402 /// +default="rbd"
5403 #[prost(string, optional, tag = "4")]
5404 pub pool: ::core::option::Option<::prost::alloc::string::String>,
5405 /// user is the rados user name.
5406 /// Default is admin.
5407 /// More info: <https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it>
5408 /// +optional
5409 /// +default="admin"
5410 #[prost(string, optional, tag = "5")]
5411 pub user: ::core::option::Option<::prost::alloc::string::String>,
5412 /// keyring is the path to key ring for RBDUser.
5413 /// Default is /etc/ceph/keyring.
5414 /// More info: <https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it>
5415 /// +optional
5416 /// +default="/etc/ceph/keyring"
5417 #[prost(string, optional, tag = "6")]
5418 pub keyring: ::core::option::Option<::prost::alloc::string::String>,
5419 /// secretRef is name of the authentication secret for RBDUser. If provided
5420 /// overrides keyring.
5421 /// Default is nil.
5422 /// More info: <https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it>
5423 /// +optional
5424 #[prost(message, optional, tag = "7")]
5425 pub secret_ref: ::core::option::Option<SecretReference>,
5426 /// readOnly here will force the ReadOnly setting in VolumeMounts.
5427 /// Defaults to false.
5428 /// More info: <https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it>
5429 /// +optional
5430 #[prost(bool, optional, tag = "8")]
5431 pub read_only: ::core::option::Option<bool>,
5432}
5433/// Represents a Rados Block Device mount that lasts the lifetime of a pod.
5434/// RBD volumes support ownership management and SELinux relabeling.
5435#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5436pub struct RbdVolumeSource {
5437 /// monitors is a collection of Ceph monitors.
5438 /// More info: <https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it>
5439 /// +listType=atomic
5440 #[prost(string, repeated, tag = "1")]
5441 pub monitors: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5442 /// image is the rados image name.
5443 /// More info: <https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it>
5444 #[prost(string, optional, tag = "2")]
5445 pub image: ::core::option::Option<::prost::alloc::string::String>,
5446 /// fsType is the filesystem type of the volume that you want to mount.
5447 /// Tip: Ensure that the filesystem type is supported by the host operating system.
5448 /// Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
5449 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#rbd>
5450 /// TODO: how do we prevent errors in the filesystem from compromising the machine
5451 /// +optional
5452 #[prost(string, optional, tag = "3")]
5453 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
5454 /// pool is the rados pool name.
5455 /// Default is rbd.
5456 /// More info: <https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it>
5457 /// +optional
5458 /// +default="rbd"
5459 #[prost(string, optional, tag = "4")]
5460 pub pool: ::core::option::Option<::prost::alloc::string::String>,
5461 /// user is the rados user name.
5462 /// Default is admin.
5463 /// More info: <https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it>
5464 /// +optional
5465 /// +default="admin"
5466 #[prost(string, optional, tag = "5")]
5467 pub user: ::core::option::Option<::prost::alloc::string::String>,
5468 /// keyring is the path to key ring for RBDUser.
5469 /// Default is /etc/ceph/keyring.
5470 /// More info: <https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it>
5471 /// +optional
5472 /// +default="/etc/ceph/keyring"
5473 #[prost(string, optional, tag = "6")]
5474 pub keyring: ::core::option::Option<::prost::alloc::string::String>,
5475 /// secretRef is name of the authentication secret for RBDUser. If provided
5476 /// overrides keyring.
5477 /// Default is nil.
5478 /// More info: <https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it>
5479 /// +optional
5480 #[prost(message, optional, tag = "7")]
5481 pub secret_ref: ::core::option::Option<LocalObjectReference>,
5482 /// readOnly here will force the ReadOnly setting in VolumeMounts.
5483 /// Defaults to false.
5484 /// More info: <https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it>
5485 /// +optional
5486 #[prost(bool, optional, tag = "8")]
5487 pub read_only: ::core::option::Option<bool>,
5488}
5489/// RangeAllocation is not a public type.
5490#[derive(Clone, PartialEq, ::prost::Message)]
5491pub struct RangeAllocation {
5492 /// Standard object's metadata.
5493 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
5494 /// +optional
5495 #[prost(message, optional, tag = "1")]
5496 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
5497 /// Range is string that identifies the range represented by 'data'.
5498 #[prost(string, optional, tag = "2")]
5499 pub range: ::core::option::Option<::prost::alloc::string::String>,
5500 /// Data is a bit array containing all allocated addresses in the previous segment.
5501 #[prost(bytes = "vec", optional, tag = "3")]
5502 pub data: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
5503}
5504/// ReplicationController represents the configuration of a replication controller.
5505#[derive(Clone, PartialEq, ::prost::Message)]
5506pub struct ReplicationController {
5507 /// If the Labels of a ReplicationController are empty, they are defaulted to
5508 /// be the same as the Pod(s) that the replication controller manages.
5509 /// Standard object's metadata. More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
5510 /// +optional
5511 /// +k8s:subfield(name)=+k8s:optional
5512 /// +k8s:subfield(name)=+k8s:format=k8s-long-name
5513 #[prost(message, optional, tag = "1")]
5514 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
5515 /// Spec defines the specification of the desired behavior of the replication controller.
5516 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status>
5517 /// +optional
5518 #[prost(message, optional, tag = "2")]
5519 pub spec: ::core::option::Option<ReplicationControllerSpec>,
5520 /// Status is the most recently observed status of the replication controller.
5521 /// This data may be out of date by some window of time.
5522 /// Populated by the system.
5523 /// Read-only.
5524 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status>
5525 /// +optional
5526 #[prost(message, optional, tag = "3")]
5527 pub status: ::core::option::Option<ReplicationControllerStatus>,
5528}
5529/// ReplicationControllerCondition describes the state of a replication controller at a certain point.
5530#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5531pub struct ReplicationControllerCondition {
5532 /// Type of replication controller condition.
5533 #[prost(string, optional, tag = "1")]
5534 pub r#type: ::core::option::Option<::prost::alloc::string::String>,
5535 /// Status of the condition, one of True, False, Unknown.
5536 #[prost(string, optional, tag = "2")]
5537 pub status: ::core::option::Option<::prost::alloc::string::String>,
5538 /// The last time the condition transitioned from one status to another.
5539 /// +optional
5540 #[prost(message, optional, tag = "3")]
5541 pub last_transition_time:
5542 ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::Time>,
5543 /// The reason for the condition's last transition.
5544 /// +optional
5545 #[prost(string, optional, tag = "4")]
5546 pub reason: ::core::option::Option<::prost::alloc::string::String>,
5547 /// A human readable message indicating details about the transition.
5548 /// +optional
5549 #[prost(string, optional, tag = "5")]
5550 pub message: ::core::option::Option<::prost::alloc::string::String>,
5551}
5552/// ReplicationControllerList is a collection of replication controllers.
5553#[derive(Clone, PartialEq, ::prost::Message)]
5554pub struct ReplicationControllerList {
5555 /// Standard list metadata.
5556 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds>
5557 /// +optional
5558 #[prost(message, optional, tag = "1")]
5559 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
5560 /// List of replication controllers.
5561 /// More info: <https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller>
5562 #[prost(message, repeated, tag = "2")]
5563 pub items: ::prost::alloc::vec::Vec<ReplicationController>,
5564}
5565/// ReplicationControllerSpec is the specification of a replication controller.
5566#[derive(Clone, PartialEq, ::prost::Message)]
5567pub struct ReplicationControllerSpec {
5568 /// Replicas is the number of desired replicas.
5569 /// This is a pointer to distinguish between explicit zero and unspecified.
5570 /// Defaults to 1.
5571 /// More info: <https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller>
5572 /// +optional
5573 /// +k8s:optional
5574 /// +default=1
5575 /// +k8s:minimum=0
5576 #[prost(int32, optional, tag = "1")]
5577 pub replicas: ::core::option::Option<i32>,
5578 /// Minimum number of seconds for which a newly created pod should be ready
5579 /// without any of its container crashing, for it to be considered available.
5580 /// Defaults to 0 (pod will be considered available as soon as it is ready)
5581 /// +optional
5582 /// +k8s:optional
5583 /// +default=0
5584 /// +k8s:minimum=0
5585 #[prost(int32, optional, tag = "4")]
5586 pub min_ready_seconds: ::core::option::Option<i32>,
5587 /// Selector is a label query over pods that should match the Replicas count.
5588 /// If Selector is empty, it is defaulted to the labels present on the Pod template.
5589 /// Label keys and values that must match in order to be controlled by this replication
5590 /// controller, if empty defaulted to labels on Pod template.
5591 /// More info: <https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors>
5592 /// +optional
5593 /// +mapType=atomic
5594 #[prost(btree_map = "string, string", tag = "2")]
5595 pub selector:
5596 ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
5597 /// Template is the object that describes the pod that will be created if
5598 /// insufficient replicas are detected. This takes precedence over a TemplateRef.
5599 /// The only allowed template.spec.restartPolicy value is "Always".
5600 /// More info: <https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template>
5601 /// +optional
5602 #[prost(message, optional, tag = "3")]
5603 pub template: ::core::option::Option<PodTemplateSpec>,
5604}
5605/// ReplicationControllerStatus represents the current status of a replication
5606/// controller.
5607#[derive(Clone, PartialEq, ::prost::Message)]
5608pub struct ReplicationControllerStatus {
5609 /// Replicas is the most recently observed number of replicas.
5610 /// More info: <https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller>
5611 #[prost(int32, optional, tag = "1")]
5612 pub replicas: ::core::option::Option<i32>,
5613 /// The number of pods that have labels matching the labels of the pod template of the replication controller.
5614 /// +optional
5615 #[prost(int32, optional, tag = "2")]
5616 pub fully_labeled_replicas: ::core::option::Option<i32>,
5617 /// The number of ready replicas for this replication controller.
5618 /// +optional
5619 #[prost(int32, optional, tag = "4")]
5620 pub ready_replicas: ::core::option::Option<i32>,
5621 /// The number of available replicas (ready for at least minReadySeconds) for this replication controller.
5622 /// +optional
5623 #[prost(int32, optional, tag = "5")]
5624 pub available_replicas: ::core::option::Option<i32>,
5625 /// ObservedGeneration reflects the generation of the most recently observed replication controller.
5626 /// +optional
5627 #[prost(int64, optional, tag = "3")]
5628 pub observed_generation: ::core::option::Option<i64>,
5629 /// Represents the latest available observations of a replication controller's current state.
5630 /// +optional
5631 /// +patchMergeKey=type
5632 /// +patchStrategy=merge
5633 /// +listType=map
5634 /// +listMapKey=type
5635 #[prost(message, repeated, tag = "6")]
5636 pub conditions: ::prost::alloc::vec::Vec<ReplicationControllerCondition>,
5637}
5638/// ResourceClaim references one entry in PodSpec.ResourceClaims.
5639#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5640pub struct ResourceClaim {
5641 /// Name must match the name of one entry in pod.spec.resourceClaims of
5642 /// the Pod where this field is used. It makes that resource available
5643 /// inside a container.
5644 #[prost(string, optional, tag = "1")]
5645 pub name: ::core::option::Option<::prost::alloc::string::String>,
5646 /// Request is the name chosen for a request in the referenced claim.
5647 /// If empty, everything from the claim is made available, otherwise
5648 /// only the result of this request.
5649 ///
5650 /// +optional
5651 #[prost(string, optional, tag = "2")]
5652 pub request: ::core::option::Option<::prost::alloc::string::String>,
5653}
5654/// ResourceFieldSelector represents container resources (cpu, memory) and their output format
5655/// +structType=atomic
5656#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5657pub struct ResourceFieldSelector {
5658 /// Container name: required for volumes, optional for env vars
5659 /// +optional
5660 #[prost(string, optional, tag = "1")]
5661 pub container_name: ::core::option::Option<::prost::alloc::string::String>,
5662 /// Required: resource to select
5663 #[prost(string, optional, tag = "2")]
5664 pub resource: ::core::option::Option<::prost::alloc::string::String>,
5665 /// Specifies the output format of the exposed resources, defaults to "1"
5666 /// +optional
5667 #[prost(message, optional, tag = "3")]
5668 pub divisor: ::core::option::Option<super::super::super::apimachinery::pkg::api::resource::Quantity>,
5669}
5670/// ResourceHealth represents the health of a resource. It has the latest device health information.
5671/// This is a part of KEP <https://kep.k8s.io/4680.>
5672#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5673pub struct ResourceHealth {
5674 /// ResourceID is the unique identifier of the resource. See the ResourceID type for more information.
5675 #[prost(string, optional, tag = "1")]
5676 pub resource_id: ::core::option::Option<::prost::alloc::string::String>,
5677 /// Health of the resource.
5678 /// can be one of:
5679 /// - Healthy: operates as normal
5680 /// - Unhealthy: reported unhealthy. We consider this a temporary health issue
5681 /// since we do not have a mechanism today to distinguish
5682 /// temporary and permanent issues.
5683 /// - Unknown: The status cannot be determined.
5684 /// For example, Device Plugin got unregistered and hasn't been re-registered since.
5685 ///
5686 /// In future we may want to introduce the PermanentlyUnhealthy Status.
5687 #[prost(string, optional, tag = "2")]
5688 pub health: ::core::option::Option<::prost::alloc::string::String>,
5689}
5690/// ResourceQuota sets aggregate quota restrictions enforced per namespace
5691#[derive(Clone, PartialEq, ::prost::Message)]
5692pub struct ResourceQuota {
5693 /// Standard object's metadata.
5694 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
5695 /// +optional
5696 #[prost(message, optional, tag = "1")]
5697 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
5698 /// Spec defines the desired quota.
5699 /// <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status>
5700 /// +optional
5701 #[prost(message, optional, tag = "2")]
5702 pub spec: ::core::option::Option<ResourceQuotaSpec>,
5703 /// Status defines the actual enforced quota and its current usage.
5704 /// <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status>
5705 /// +optional
5706 #[prost(message, optional, tag = "3")]
5707 pub status: ::core::option::Option<ResourceQuotaStatus>,
5708}
5709/// ResourceQuotaList is a list of ResourceQuota items.
5710#[derive(Clone, PartialEq, ::prost::Message)]
5711pub struct ResourceQuotaList {
5712 /// Standard list metadata.
5713 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds>
5714 /// +optional
5715 #[prost(message, optional, tag = "1")]
5716 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
5717 /// Items is a list of ResourceQuota objects.
5718 /// More info: <https://kubernetes.io/docs/concepts/policy/resource-quotas/>
5719 #[prost(message, repeated, tag = "2")]
5720 pub items: ::prost::alloc::vec::Vec<ResourceQuota>,
5721}
5722/// ResourceQuotaSpec defines the desired hard limits to enforce for Quota.
5723#[derive(Clone, PartialEq, ::prost::Message)]
5724pub struct ResourceQuotaSpec {
5725 /// hard is the set of desired hard limits for each named resource.
5726 /// More info: <https://kubernetes.io/docs/concepts/policy/resource-quotas/>
5727 /// +optional
5728 #[prost(btree_map = "string, message", tag = "1")]
5729 pub hard: ::prost::alloc::collections::BTreeMap<
5730 ::prost::alloc::string::String,
5731 super::super::super::apimachinery::pkg::api::resource::Quantity,
5732 >,
5733 /// A collection of filters that must match each object tracked by a quota.
5734 /// If not specified, the quota matches all objects.
5735 /// +optional
5736 /// +listType=atomic
5737 #[prost(string, repeated, tag = "2")]
5738 pub scopes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5739 /// scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota
5740 /// but expressed using ScopeSelectorOperator in combination with possible values.
5741 /// For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.
5742 /// +optional
5743 #[prost(message, optional, tag = "3")]
5744 pub scope_selector: ::core::option::Option<ScopeSelector>,
5745}
5746/// ResourceQuotaStatus defines the enforced hard limits and observed use.
5747#[derive(Clone, PartialEq, ::prost::Message)]
5748pub struct ResourceQuotaStatus {
5749 /// Hard is the set of enforced hard limits for each named resource.
5750 /// More info: <https://kubernetes.io/docs/concepts/policy/resource-quotas/>
5751 /// +optional
5752 #[prost(btree_map = "string, message", tag = "1")]
5753 pub hard: ::prost::alloc::collections::BTreeMap<
5754 ::prost::alloc::string::String,
5755 super::super::super::apimachinery::pkg::api::resource::Quantity,
5756 >,
5757 /// Used is the current observed total usage of the resource in the namespace.
5758 /// +optional
5759 #[prost(btree_map = "string, message", tag = "2")]
5760 pub used: ::prost::alloc::collections::BTreeMap<
5761 ::prost::alloc::string::String,
5762 super::super::super::apimachinery::pkg::api::resource::Quantity,
5763 >,
5764}
5765/// ResourceRequirements describes the compute resource requirements.
5766#[derive(Clone, PartialEq, ::prost::Message)]
5767pub struct ResourceRequirements {
5768 /// Limits describes the maximum amount of compute resources allowed.
5769 /// More info: <https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/>
5770 /// +optional
5771 #[prost(btree_map = "string, message", tag = "1")]
5772 pub limits: ::prost::alloc::collections::BTreeMap<
5773 ::prost::alloc::string::String,
5774 super::super::super::apimachinery::pkg::api::resource::Quantity,
5775 >,
5776 /// Requests describes the minimum amount of compute resources required.
5777 /// If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
5778 /// otherwise to an implementation-defined value. Requests cannot exceed Limits.
5779 /// More info: <https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/>
5780 /// +optional
5781 #[prost(btree_map = "string, message", tag = "2")]
5782 pub requests: ::prost::alloc::collections::BTreeMap<
5783 ::prost::alloc::string::String,
5784 super::super::super::apimachinery::pkg::api::resource::Quantity,
5785 >,
5786 /// Claims lists the names of resources, defined in spec.resourceClaims,
5787 /// that are used by this container.
5788 ///
5789 /// This field depends on the
5790 /// DynamicResourceAllocation feature gate.
5791 ///
5792 /// This field is immutable. It can only be set for containers.
5793 ///
5794 /// +listType=map
5795 /// +listMapKey=name
5796 /// +featureGate=DynamicResourceAllocation
5797 /// +optional
5798 #[prost(message, repeated, tag = "3")]
5799 pub claims: ::prost::alloc::vec::Vec<ResourceClaim>,
5800}
5801/// ResourceStatus represents the status of a single resource allocated to a Pod.
5802#[derive(Clone, PartialEq, ::prost::Message)]
5803pub struct ResourceStatus {
5804 /// 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.
5805 /// For DRA resources, the value must be "claim:<claim_name>/<request>".
5806 /// When this status is reported about a container, the "claim_name" and "request" must match one of the claims of this container.
5807 /// +required
5808 #[prost(string, optional, tag = "1")]
5809 pub name: ::core::option::Option<::prost::alloc::string::String>,
5810 /// List of unique resources health. Each element in the list contains an unique resource ID and its health.
5811 /// At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node.
5812 /// If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share.
5813 /// See ResourceID type definition for a specific format it has in various use cases.
5814 /// +listType=map
5815 /// +listMapKey=resourceID
5816 #[prost(message, repeated, tag = "2")]
5817 pub resources: ::prost::alloc::vec::Vec<ResourceHealth>,
5818}
5819/// SELinuxOptions are the labels to be applied to the container
5820#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5821pub struct SeLinuxOptions {
5822 /// User is a SELinux user label that applies to the container.
5823 /// +optional
5824 #[prost(string, optional, tag = "1")]
5825 pub user: ::core::option::Option<::prost::alloc::string::String>,
5826 /// Role is a SELinux role label that applies to the container.
5827 /// +optional
5828 #[prost(string, optional, tag = "2")]
5829 pub role: ::core::option::Option<::prost::alloc::string::String>,
5830 /// Type is a SELinux type label that applies to the container.
5831 /// +optional
5832 #[prost(string, optional, tag = "3")]
5833 pub r#type: ::core::option::Option<::prost::alloc::string::String>,
5834 /// Level is SELinux level label that applies to the container.
5835 /// +optional
5836 #[prost(string, optional, tag = "4")]
5837 pub level: ::core::option::Option<::prost::alloc::string::String>,
5838}
5839/// ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume
5840#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5841pub struct ScaleIoPersistentVolumeSource {
5842 /// gateway is the host address of the ScaleIO API Gateway.
5843 #[prost(string, optional, tag = "1")]
5844 pub gateway: ::core::option::Option<::prost::alloc::string::String>,
5845 /// system is the name of the storage system as configured in ScaleIO.
5846 #[prost(string, optional, tag = "2")]
5847 pub system: ::core::option::Option<::prost::alloc::string::String>,
5848 /// secretRef references to the secret for ScaleIO user and other
5849 /// sensitive information. If this is not provided, Login operation will fail.
5850 #[prost(message, optional, tag = "3")]
5851 pub secret_ref: ::core::option::Option<SecretReference>,
5852 /// sslEnabled is the flag to enable/disable SSL communication with Gateway, default false
5853 /// +optional
5854 #[prost(bool, optional, tag = "4")]
5855 pub ssl_enabled: ::core::option::Option<bool>,
5856 /// protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.
5857 /// +optional
5858 #[prost(string, optional, tag = "5")]
5859 pub protection_domain: ::core::option::Option<::prost::alloc::string::String>,
5860 /// storagePool is the ScaleIO Storage Pool associated with the protection domain.
5861 /// +optional
5862 #[prost(string, optional, tag = "6")]
5863 pub storage_pool: ::core::option::Option<::prost::alloc::string::String>,
5864 /// storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
5865 /// Default is ThinProvisioned.
5866 /// +optional
5867 /// +default="ThinProvisioned"
5868 #[prost(string, optional, tag = "7")]
5869 pub storage_mode: ::core::option::Option<::prost::alloc::string::String>,
5870 /// volumeName is the name of a volume already created in the ScaleIO system
5871 /// that is associated with this volume source.
5872 #[prost(string, optional, tag = "8")]
5873 pub volume_name: ::core::option::Option<::prost::alloc::string::String>,
5874 /// fsType is the filesystem type to mount.
5875 /// Must be a filesystem type supported by the host operating system.
5876 /// Ex. "ext4", "xfs", "ntfs".
5877 /// Default is "xfs"
5878 /// +optional
5879 /// +default="xfs"
5880 #[prost(string, optional, tag = "9")]
5881 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
5882 /// readOnly defaults to false (read/write). ReadOnly here will force
5883 /// the ReadOnly setting in VolumeMounts.
5884 /// +optional
5885 #[prost(bool, optional, tag = "10")]
5886 pub read_only: ::core::option::Option<bool>,
5887}
5888/// ScaleIOVolumeSource represents a persistent ScaleIO volume
5889#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5890pub struct ScaleIoVolumeSource {
5891 /// gateway is the host address of the ScaleIO API Gateway.
5892 #[prost(string, optional, tag = "1")]
5893 pub gateway: ::core::option::Option<::prost::alloc::string::String>,
5894 /// system is the name of the storage system as configured in ScaleIO.
5895 #[prost(string, optional, tag = "2")]
5896 pub system: ::core::option::Option<::prost::alloc::string::String>,
5897 /// secretRef references to the secret for ScaleIO user and other
5898 /// sensitive information. If this is not provided, Login operation will fail.
5899 #[prost(message, optional, tag = "3")]
5900 pub secret_ref: ::core::option::Option<LocalObjectReference>,
5901 /// sslEnabled Flag enable/disable SSL communication with Gateway, default false
5902 /// +optional
5903 #[prost(bool, optional, tag = "4")]
5904 pub ssl_enabled: ::core::option::Option<bool>,
5905 /// protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.
5906 /// +optional
5907 #[prost(string, optional, tag = "5")]
5908 pub protection_domain: ::core::option::Option<::prost::alloc::string::String>,
5909 /// storagePool is the ScaleIO Storage Pool associated with the protection domain.
5910 /// +optional
5911 #[prost(string, optional, tag = "6")]
5912 pub storage_pool: ::core::option::Option<::prost::alloc::string::String>,
5913 /// storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
5914 /// Default is ThinProvisioned.
5915 /// +optional
5916 /// +default="ThinProvisioned"
5917 #[prost(string, optional, tag = "7")]
5918 pub storage_mode: ::core::option::Option<::prost::alloc::string::String>,
5919 /// volumeName is the name of a volume already created in the ScaleIO system
5920 /// that is associated with this volume source.
5921 #[prost(string, optional, tag = "8")]
5922 pub volume_name: ::core::option::Option<::prost::alloc::string::String>,
5923 /// fsType is the filesystem type to mount.
5924 /// Must be a filesystem type supported by the host operating system.
5925 /// Ex. "ext4", "xfs", "ntfs".
5926 /// Default is "xfs".
5927 /// +optional
5928 /// +default="xfs"
5929 #[prost(string, optional, tag = "9")]
5930 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
5931 /// readOnly Defaults to false (read/write). ReadOnly here will force
5932 /// the ReadOnly setting in VolumeMounts.
5933 /// +optional
5934 #[prost(bool, optional, tag = "10")]
5935 pub read_only: ::core::option::Option<bool>,
5936}
5937/// A scope selector represents the AND of the selectors represented
5938/// by the scoped-resource selector requirements.
5939/// +structType=atomic
5940#[derive(Clone, PartialEq, ::prost::Message)]
5941pub struct ScopeSelector {
5942 /// A list of scope selector requirements by scope of the resources.
5943 /// +optional
5944 /// +listType=atomic
5945 #[prost(message, repeated, tag = "1")]
5946 pub match_expressions: ::prost::alloc::vec::Vec<ScopedResourceSelectorRequirement>,
5947}
5948/// A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator
5949/// that relates the scope name and values.
5950#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5951pub struct ScopedResourceSelectorRequirement {
5952 /// The name of the scope that the selector applies to.
5953 #[prost(string, optional, tag = "1")]
5954 pub scope_name: ::core::option::Option<::prost::alloc::string::String>,
5955 /// Represents a scope's relationship to a set of values.
5956 /// Valid operators are In, NotIn, Exists, DoesNotExist.
5957 #[prost(string, optional, tag = "2")]
5958 pub operator: ::core::option::Option<::prost::alloc::string::String>,
5959 /// An array of string values. If the operator is In or NotIn,
5960 /// the values array must be non-empty. If the operator is Exists or DoesNotExist,
5961 /// the values array must be empty.
5962 /// This array is replaced during a strategic merge patch.
5963 /// +optional
5964 /// +listType=atomic
5965 #[prost(string, repeated, tag = "3")]
5966 pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5967}
5968/// SeccompProfile defines a pod/container's seccomp profile settings.
5969/// Only one profile source may be set.
5970/// +union
5971#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5972pub struct SeccompProfile {
5973 /// type indicates which kind of seccomp profile will be applied.
5974 /// Valid options are:
5975 ///
5976 /// Localhost - a profile defined in a file on the node should be used.
5977 /// RuntimeDefault - the container runtime default profile should be used.
5978 /// Unconfined - no profile should be applied.
5979 /// +unionDiscriminator
5980 #[prost(string, optional, tag = "1")]
5981 pub r#type: ::core::option::Option<::prost::alloc::string::String>,
5982 /// localhostProfile indicates a profile defined in a file on the node should be used.
5983 /// The profile must be preconfigured on the node to work.
5984 /// Must be a descending path, relative to the kubelet's configured seccomp profile location.
5985 /// Must be set if type is "Localhost". Must NOT be set for any other type.
5986 /// +optional
5987 #[prost(string, optional, tag = "2")]
5988 pub localhost_profile: ::core::option::Option<::prost::alloc::string::String>,
5989}
5990/// Secret holds secret data of a certain type. The total bytes of the values in
5991/// the Data field must be less than MaxSecretSize bytes.
5992#[derive(Clone, PartialEq, ::prost::Message)]
5993pub struct Secret {
5994 /// Standard object's metadata.
5995 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
5996 /// +optional
5997 #[prost(message, optional, tag = "1")]
5998 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
5999 /// Immutable, if set to true, ensures that data stored in the Secret cannot
6000 /// be updated (only object metadata can be modified).
6001 /// If not set to true, the field can be modified at any time.
6002 /// Defaulted to nil.
6003 /// +optional
6004 #[prost(bool, optional, tag = "5")]
6005 pub immutable: ::core::option::Option<bool>,
6006 /// Data contains the secret data. Each key must consist of alphanumeric
6007 /// characters, '-', '_' or '.'. The serialized form of the secret data is a
6008 /// base64 encoded string, representing the arbitrary (possibly non-string)
6009 /// data value here. Described in <https://tools.ietf.org/html/rfc4648#section-4>
6010 /// +optional
6011 #[prost(btree_map = "string, bytes", tag = "2")]
6012 pub data:
6013 ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::vec::Vec<u8>>,
6014 /// stringData allows specifying non-binary secret data in string form.
6015 /// It is provided as a write-only input field for convenience.
6016 /// All keys and values are merged into the data field on write, overwriting any existing values.
6017 /// The stringData field is never output when reading from the API.
6018 /// +k8s:conversion-gen=false
6019 /// +optional
6020 #[prost(btree_map = "string, string", tag = "4")]
6021 pub string_data:
6022 ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
6023 /// Used to facilitate programmatic handling of secret data.
6024 /// More info: <https://kubernetes.io/docs/concepts/configuration/secret/#secret-types>
6025 /// +optional
6026 #[prost(string, optional, tag = "3")]
6027 pub r#type: ::core::option::Option<::prost::alloc::string::String>,
6028}
6029/// SecretEnvSource selects a Secret to populate the environment
6030/// variables with.
6031///
6032/// The contents of the target Secret's Data field will represent the
6033/// key-value pairs as environment variables.
6034#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
6035pub struct SecretEnvSource {
6036 /// The Secret to select from.
6037 #[prost(message, optional, tag = "1")]
6038 pub local_object_reference: ::core::option::Option<LocalObjectReference>,
6039 /// Specify whether the Secret must be defined
6040 /// +optional
6041 #[prost(bool, optional, tag = "2")]
6042 pub optional: ::core::option::Option<bool>,
6043}
6044/// SecretKeySelector selects a key of a Secret.
6045/// +structType=atomic
6046#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
6047pub struct SecretKeySelector {
6048 /// The name of the secret in the pod's namespace to select from.
6049 #[prost(message, optional, tag = "1")]
6050 pub local_object_reference: ::core::option::Option<LocalObjectReference>,
6051 /// The key of the secret to select from. Must be a valid secret key.
6052 #[prost(string, optional, tag = "2")]
6053 pub key: ::core::option::Option<::prost::alloc::string::String>,
6054 /// Specify whether the Secret or its key must be defined
6055 /// +optional
6056 #[prost(bool, optional, tag = "3")]
6057 pub optional: ::core::option::Option<bool>,
6058}
6059/// SecretList is a list of Secret.
6060#[derive(Clone, PartialEq, ::prost::Message)]
6061pub struct SecretList {
6062 /// Standard list metadata.
6063 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds>
6064 /// +optional
6065 #[prost(message, optional, tag = "1")]
6066 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
6067 /// Items is a list of secret objects.
6068 /// More info: <https://kubernetes.io/docs/concepts/configuration/secret>
6069 #[prost(message, repeated, tag = "2")]
6070 pub items: ::prost::alloc::vec::Vec<Secret>,
6071}
6072/// Adapts a secret into a projected volume.
6073///
6074/// The contents of the target Secret's Data field will be presented in a
6075/// projected volume as files using the keys in the Data field as the file names.
6076/// Note that this is identical to a secret volume source without the default
6077/// mode.
6078#[derive(Clone, PartialEq, ::prost::Message)]
6079pub struct SecretProjection {
6080 #[prost(message, optional, tag = "1")]
6081 pub local_object_reference: ::core::option::Option<LocalObjectReference>,
6082 /// items if unspecified, each key-value pair in the Data field of the referenced
6083 /// Secret will be projected into the volume as a file whose name is the
6084 /// key and content is the value. If specified, the listed keys will be
6085 /// projected into the specified paths, and unlisted keys will not be
6086 /// present. If a key is specified which is not present in the Secret,
6087 /// the volume setup will error unless it is marked optional. Paths must be
6088 /// relative and may not contain the '..' path or start with '..'.
6089 /// +optional
6090 /// +listType=atomic
6091 #[prost(message, repeated, tag = "2")]
6092 pub items: ::prost::alloc::vec::Vec<KeyToPath>,
6093 /// optional field specify whether the Secret or its key must be defined
6094 /// +optional
6095 #[prost(bool, optional, tag = "4")]
6096 pub optional: ::core::option::Option<bool>,
6097}
6098/// SecretReference represents a Secret Reference. It has enough information to retrieve secret
6099/// in any namespace
6100/// +structType=atomic
6101#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
6102pub struct SecretReference {
6103 /// name is unique within a namespace to reference a secret resource.
6104 /// +optional
6105 #[prost(string, optional, tag = "1")]
6106 pub name: ::core::option::Option<::prost::alloc::string::String>,
6107 /// namespace defines the space within which the secret name must be unique.
6108 /// +optional
6109 #[prost(string, optional, tag = "2")]
6110 pub namespace: ::core::option::Option<::prost::alloc::string::String>,
6111}
6112/// Adapts a Secret into a volume.
6113///
6114/// The contents of the target Secret's Data field will be presented in a volume
6115/// as files using the keys in the Data field as the file names.
6116/// Secret volumes support ownership management and SELinux relabeling.
6117#[derive(Clone, PartialEq, ::prost::Message)]
6118pub struct SecretVolumeSource {
6119 /// secretName is the name of the secret in the pod's namespace to use.
6120 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#secret>
6121 /// +optional
6122 #[prost(string, optional, tag = "1")]
6123 pub secret_name: ::core::option::Option<::prost::alloc::string::String>,
6124 /// items If unspecified, each key-value pair in the Data field of the referenced
6125 /// Secret will be projected into the volume as a file whose name is the
6126 /// key and content is the value. If specified, the listed keys will be
6127 /// projected into the specified paths, and unlisted keys will not be
6128 /// present. If a key is specified which is not present in the Secret,
6129 /// the volume setup will error unless it is marked optional. Paths must be
6130 /// relative and may not contain the '..' path or start with '..'.
6131 /// +optional
6132 /// +listType=atomic
6133 #[prost(message, repeated, tag = "2")]
6134 pub items: ::prost::alloc::vec::Vec<KeyToPath>,
6135 /// defaultMode is Optional: mode bits used to set permissions on created files by default.
6136 /// Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
6137 /// YAML accepts both octal and decimal values, JSON requires decimal values
6138 /// for mode bits. Defaults to 0644.
6139 /// Directories within the path are not affected by this setting.
6140 /// This might be in conflict with other options that affect the file
6141 /// mode, like fsGroup, and the result can be other mode bits set.
6142 /// +optional
6143 #[prost(int32, optional, tag = "3")]
6144 pub default_mode: ::core::option::Option<i32>,
6145 /// optional field specify whether the Secret or its keys must be defined
6146 /// +optional
6147 #[prost(bool, optional, tag = "4")]
6148 pub optional: ::core::option::Option<bool>,
6149}
6150/// SecurityContext holds security configuration that will be applied to a container.
6151/// Some fields are present in both SecurityContext and PodSecurityContext. When both
6152/// are set, the values in SecurityContext take precedence.
6153#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
6154pub struct SecurityContext {
6155 /// The capabilities to add/drop when running containers.
6156 /// Defaults to the default set of capabilities granted by the container runtime.
6157 /// Note that this field cannot be set when spec.os.name is windows.
6158 /// +optional
6159 #[prost(message, optional, tag = "1")]
6160 pub capabilities: ::core::option::Option<Capabilities>,
6161 /// Run container in privileged mode.
6162 /// Processes in privileged containers are essentially equivalent to root on the host.
6163 /// Defaults to false.
6164 /// Note that this field cannot be set when spec.os.name is windows.
6165 /// +optional
6166 #[prost(bool, optional, tag = "2")]
6167 pub privileged: ::core::option::Option<bool>,
6168 /// The SELinux context to be applied to the container.
6169 /// If unspecified, the container runtime will allocate a random SELinux context for each
6170 /// container. May also be set in PodSecurityContext. If set in both SecurityContext and
6171 /// PodSecurityContext, the value specified in SecurityContext takes precedence.
6172 /// Note that this field cannot be set when spec.os.name is windows.
6173 /// +optional
6174 #[prost(message, optional, tag = "3")]
6175 pub se_linux_options: ::core::option::Option<SeLinuxOptions>,
6176 /// The Windows specific settings applied to all containers.
6177 /// If unspecified, the options from the PodSecurityContext will be used.
6178 /// If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
6179 /// Note that this field cannot be set when spec.os.name is linux.
6180 /// +optional
6181 #[prost(message, optional, tag = "10")]
6182 pub windows_options: ::core::option::Option<WindowsSecurityContextOptions>,
6183 /// The UID to run the entrypoint of the container process.
6184 /// Defaults to user specified in image metadata if unspecified.
6185 /// May also be set in PodSecurityContext. If set in both SecurityContext and
6186 /// PodSecurityContext, the value specified in SecurityContext takes precedence.
6187 /// Note that this field cannot be set when spec.os.name is windows.
6188 /// +optional
6189 #[prost(int64, optional, tag = "4")]
6190 pub run_as_user: ::core::option::Option<i64>,
6191 /// The GID to run the entrypoint of the container process.
6192 /// Uses runtime default if unset.
6193 /// May also be set in PodSecurityContext. If set in both SecurityContext and
6194 /// PodSecurityContext, the value specified in SecurityContext takes precedence.
6195 /// Note that this field cannot be set when spec.os.name is windows.
6196 /// +optional
6197 #[prost(int64, optional, tag = "8")]
6198 pub run_as_group: ::core::option::Option<i64>,
6199 /// Indicates that the container must run as a non-root user.
6200 /// If true, the Kubelet will validate the image at runtime to ensure that it
6201 /// does not run as UID 0 (root) and fail to start the container if it does.
6202 /// If unset or false, no such validation will be performed.
6203 /// May also be set in PodSecurityContext. If set in both SecurityContext and
6204 /// PodSecurityContext, the value specified in SecurityContext takes precedence.
6205 /// +optional
6206 #[prost(bool, optional, tag = "5")]
6207 pub run_as_non_root: ::core::option::Option<bool>,
6208 /// Whether this container has a read-only root filesystem.
6209 /// Default is false.
6210 /// Note that this field cannot be set when spec.os.name is windows.
6211 /// +optional
6212 #[prost(bool, optional, tag = "6")]
6213 pub read_only_root_filesystem: ::core::option::Option<bool>,
6214 /// AllowPrivilegeEscalation controls whether a process can gain more
6215 /// privileges than its parent process. This bool directly controls if
6216 /// the no_new_privs flag will be set on the container process.
6217 /// AllowPrivilegeEscalation is true always when the container is:
6218 /// 1) run as Privileged
6219 /// 2) has CAP_SYS_ADMIN
6220 /// Note that this field cannot be set when spec.os.name is windows.
6221 /// +optional
6222 #[prost(bool, optional, tag = "7")]
6223 pub allow_privilege_escalation: ::core::option::Option<bool>,
6224 /// procMount denotes the type of proc mount to use for the containers.
6225 /// The default value is Default which uses the container runtime defaults for
6226 /// readonly paths and masked paths.
6227 /// This requires the ProcMountType feature flag to be enabled.
6228 /// Note that this field cannot be set when spec.os.name is windows.
6229 /// +optional
6230 #[prost(string, optional, tag = "9")]
6231 pub proc_mount: ::core::option::Option<::prost::alloc::string::String>,
6232 /// The seccomp options to use by this container. If seccomp options are
6233 /// provided at both the pod & container level, the container options
6234 /// override the pod options.
6235 /// Note that this field cannot be set when spec.os.name is windows.
6236 /// +optional
6237 #[prost(message, optional, tag = "11")]
6238 pub seccomp_profile: ::core::option::Option<SeccompProfile>,
6239 /// appArmorProfile is the AppArmor options to use by this container. If set, this profile
6240 /// overrides the pod's appArmorProfile.
6241 /// Note that this field cannot be set when spec.os.name is windows.
6242 /// +optional
6243 #[prost(message, optional, tag = "12")]
6244 pub app_armor_profile: ::core::option::Option<AppArmorProfile>,
6245}
6246/// SerializedReference is a reference to serialized object.
6247#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
6248pub struct SerializedReference {
6249 /// The reference to an object in the system.
6250 /// +optional
6251 #[prost(message, optional, tag = "1")]
6252 pub reference: ::core::option::Option<ObjectReference>,
6253}
6254/// Service is a named abstraction of software service (for example, mysql) consisting of local port
6255/// (for example 3306) that the proxy listens on, and the selector that determines which pods
6256/// will answer requests sent through the proxy.
6257#[derive(Clone, PartialEq, ::prost::Message)]
6258pub struct Service {
6259 /// Standard object's metadata.
6260 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
6261 /// +optional
6262 #[prost(message, optional, tag = "1")]
6263 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
6264 /// Spec defines the behavior of a service.
6265 /// <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status>
6266 /// +optional
6267 #[prost(message, optional, tag = "2")]
6268 pub spec: ::core::option::Option<ServiceSpec>,
6269 /// Most recently observed status of the service.
6270 /// Populated by the system.
6271 /// Read-only.
6272 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status>
6273 /// +optional
6274 #[prost(message, optional, tag = "3")]
6275 pub status: ::core::option::Option<ServiceStatus>,
6276}
6277/// ServiceAccount binds together:
6278/// * a name, understood by users, and perhaps by peripheral systems, for an identity
6279/// * a principal that can be authenticated and authorized
6280/// * a set of secrets
6281#[derive(Clone, PartialEq, ::prost::Message)]
6282pub struct ServiceAccount {
6283 /// Standard object's metadata.
6284 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
6285 /// +optional
6286 #[prost(message, optional, tag = "1")]
6287 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
6288 /// Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use.
6289 /// Pods are only limited to this list if this service account has a "kubernetes.io/enforce-mountable-secrets" annotation set to "true".
6290 /// The "kubernetes.io/enforce-mountable-secrets" annotation is deprecated since v1.32.
6291 /// Prefer separate namespaces to isolate access to mounted secrets.
6292 /// This field should not be used to find auto-generated service account token secrets for use outside of pods.
6293 /// Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created.
6294 /// More info: <https://kubernetes.io/docs/concepts/configuration/secret>
6295 /// +optional
6296 /// +patchMergeKey=name
6297 /// +patchStrategy=merge
6298 /// +listType=map
6299 /// +listMapKey=name
6300 #[prost(message, repeated, tag = "2")]
6301 pub secrets: ::prost::alloc::vec::Vec<ObjectReference>,
6302 /// ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
6303 /// in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
6304 /// can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
6305 /// More info: <https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod>
6306 /// +optional
6307 /// +listType=atomic
6308 #[prost(message, repeated, tag = "3")]
6309 pub image_pull_secrets: ::prost::alloc::vec::Vec<LocalObjectReference>,
6310 /// AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted.
6311 /// Can be overridden at the pod level.
6312 /// +optional
6313 #[prost(bool, optional, tag = "4")]
6314 pub automount_service_account_token: ::core::option::Option<bool>,
6315}
6316/// ServiceAccountList is a list of ServiceAccount objects
6317#[derive(Clone, PartialEq, ::prost::Message)]
6318pub struct ServiceAccountList {
6319 /// Standard list metadata.
6320 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds>
6321 /// +optional
6322 #[prost(message, optional, tag = "1")]
6323 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
6324 /// List of ServiceAccounts.
6325 /// More info: <https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/>
6326 #[prost(message, repeated, tag = "2")]
6327 pub items: ::prost::alloc::vec::Vec<ServiceAccount>,
6328}
6329/// ServiceAccountTokenProjection represents a projected service account token
6330/// volume. This projection can be used to insert a service account token into
6331/// the pods runtime filesystem for use against APIs (Kubernetes API Server or
6332/// otherwise).
6333#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
6334pub struct ServiceAccountTokenProjection {
6335 /// audience is the intended audience of the token. A recipient of a token
6336 /// must identify itself with an identifier specified in the audience of the
6337 /// token, and otherwise should reject the token. The audience defaults to the
6338 /// identifier of the apiserver.
6339 /// +optional
6340 #[prost(string, optional, tag = "1")]
6341 pub audience: ::core::option::Option<::prost::alloc::string::String>,
6342 /// expirationSeconds is the requested duration of validity of the service
6343 /// account token. As the token approaches expiration, the kubelet volume
6344 /// plugin will proactively rotate the service account token. The kubelet will
6345 /// start trying to rotate the token if the token is older than 80 percent of
6346 /// its time to live or if the token is older than 24 hours.Defaults to 1 hour
6347 /// and must be at least 10 minutes.
6348 /// +optional
6349 #[prost(int64, optional, tag = "2")]
6350 pub expiration_seconds: ::core::option::Option<i64>,
6351 /// path is the path relative to the mount point of the file to project the
6352 /// token into.
6353 #[prost(string, optional, tag = "3")]
6354 pub path: ::core::option::Option<::prost::alloc::string::String>,
6355}
6356/// ServiceList holds a list of services.
6357#[derive(Clone, PartialEq, ::prost::Message)]
6358pub struct ServiceList {
6359 /// Standard list metadata.
6360 /// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds>
6361 /// +optional
6362 #[prost(message, optional, tag = "1")]
6363 pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
6364 /// List of services
6365 #[prost(message, repeated, tag = "2")]
6366 pub items: ::prost::alloc::vec::Vec<Service>,
6367}
6368/// ServicePort contains information on service's port.
6369#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
6370pub struct ServicePort {
6371 /// The name of this port within the service. This must be a DNS_LABEL.
6372 /// All ports within a ServiceSpec must have unique names. When considering
6373 /// the endpoints for a Service, this must match the 'name' field in the
6374 /// EndpointPort.
6375 /// Optional if only one ServicePort is defined on this service.
6376 /// +optional
6377 #[prost(string, optional, tag = "1")]
6378 pub name: ::core::option::Option<::prost::alloc::string::String>,
6379 /// The IP protocol for this port. Supports "TCP", "UDP", and "SCTP".
6380 /// Default is TCP.
6381 /// +default="TCP"
6382 /// +optional
6383 #[prost(string, optional, tag = "2")]
6384 pub protocol: ::core::option::Option<::prost::alloc::string::String>,
6385 /// The application protocol for this port.
6386 /// This is used as a hint for implementations to offer richer behavior for protocols that they understand.
6387 /// This field follows standard Kubernetes label syntax.
6388 /// Valid values are either:
6389 ///
6390 /// * Un-prefixed protocol names - reserved for IANA standard service names (as per
6391 /// RFC-6335 and <https://www.iana.org/assignments/service-names>).
6392 ///
6393 /// * Kubernetes-defined prefixed names:
6394 /// * '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->
6395 /// * 'kubernetes.io/ws' - WebSocket over cleartext as described in <https://www.rfc-editor.org/rfc/rfc6455>
6396 /// * 'kubernetes.io/wss' - WebSocket over TLS as described in <https://www.rfc-editor.org/rfc/rfc6455>
6397 ///
6398 /// * Other protocols should use implementation-defined prefixed names such as
6399 /// mycompany.com/my-custom-protocol.
6400 /// +optional
6401 #[prost(string, optional, tag = "6")]
6402 pub app_protocol: ::core::option::Option<::prost::alloc::string::String>,
6403 /// The port that will be exposed by this service.
6404 #[prost(int32, optional, tag = "3")]
6405 pub port: ::core::option::Option<i32>,
6406 /// Number or name of the port to access on the pods targeted by the service.
6407 /// Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
6408 /// If this is a string, it will be looked up as a named port in the
6409 /// target Pod's container ports. If this is not specified, the value
6410 /// of the 'port' field is used (an identity map).
6411 /// This field is ignored for services with clusterIP=None, and should be
6412 /// omitted or set equal to the 'port' field.
6413 /// More info: <https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service>
6414 /// +optional
6415 #[prost(message, optional, tag = "4")]
6416 pub target_port:
6417 ::core::option::Option<super::super::super::apimachinery::pkg::util::intstr::IntOrString>,
6418 /// The port on each node on which this service is exposed when type is
6419 /// NodePort or LoadBalancer. Usually assigned by the system. If a value is
6420 /// specified, in-range, and not in use it will be used, otherwise the
6421 /// operation will fail. If not specified, a port will be allocated if this
6422 /// Service requires one. If this field is specified when creating a
6423 /// Service which does not need it, creation will fail. This field will be
6424 /// wiped when updating a Service to no longer need it (e.g. changing type
6425 /// from NodePort to ClusterIP).
6426 /// More info: <https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport>
6427 /// +optional
6428 #[prost(int32, optional, tag = "5")]
6429 pub node_port: ::core::option::Option<i32>,
6430}
6431/// ServiceProxyOptions is the query options to a Service's proxy call.
6432#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
6433pub struct ServiceProxyOptions {
6434 /// Path is the part of URLs that include service endpoints, suffixes,
6435 /// and parameters to use for the current proxy request to service.
6436 /// For example, the whole request URL is
6437 /// <http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy.>
6438 /// Path is _search?q=user:kimchy.
6439 /// +optional
6440 #[prost(string, optional, tag = "1")]
6441 pub path: ::core::option::Option<::prost::alloc::string::String>,
6442}
6443/// ServiceSpec describes the attributes that a user creates on a service.
6444#[derive(Clone, PartialEq, ::prost::Message)]
6445pub struct ServiceSpec {
6446 /// The list of ports that are exposed by this service.
6447 /// More info: <https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies>
6448 /// +patchMergeKey=port
6449 /// +patchStrategy=merge
6450 /// +listType=map
6451 /// +listMapKey=port
6452 /// +listMapKey=protocol
6453 #[prost(message, repeated, tag = "1")]
6454 pub ports: ::prost::alloc::vec::Vec<ServicePort>,
6455 /// Route service traffic to pods with label keys and values matching this
6456 /// selector. If empty or not present, the service is assumed to have an
6457 /// external process managing its endpoints, which Kubernetes will not
6458 /// modify. Only applies to types ClusterIP, NodePort, and LoadBalancer.
6459 /// Ignored if type is ExternalName.
6460 /// More info: <https://kubernetes.io/docs/concepts/services-networking/service/>
6461 /// +optional
6462 /// +mapType=atomic
6463 #[prost(btree_map = "string, string", tag = "2")]
6464 pub selector:
6465 ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
6466 /// clusterIP is the IP address of the service and is usually assigned
6467 /// randomly. If an address is specified manually, is in-range (as per
6468 /// system configuration), and is not in use, it will be allocated to the
6469 /// service; otherwise creation of the service will fail. This field may not
6470 /// be changed through updates unless the type field is also being changed
6471 /// to ExternalName (which requires this field to be blank) or the type
6472 /// field is being changed from ExternalName (in which case this field may
6473 /// optionally be specified, as describe above). Valid values are "None",
6474 /// empty string (""), or a valid IP address. Setting this to "None" makes a
6475 /// "headless service" (no virtual IP), which is useful when direct endpoint
6476 /// connections are preferred and proxying is not required. Only applies to
6477 /// types ClusterIP, NodePort, and LoadBalancer. If this field is specified
6478 /// when creating a Service of type ExternalName, creation will fail. This
6479 /// field will be wiped when updating a Service to type ExternalName.
6480 /// More info: <https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies>
6481 /// +optional
6482 #[prost(string, optional, tag = "3")]
6483 pub cluster_ip: ::core::option::Option<::prost::alloc::string::String>,
6484 /// ClusterIPs is a list of IP addresses assigned to this service, and are
6485 /// usually assigned randomly. If an address is specified manually, is
6486 /// in-range (as per system configuration), and is not in use, it will be
6487 /// allocated to the service; otherwise creation of the service will fail.
6488 /// This field may not be changed through updates unless the type field is
6489 /// also being changed to ExternalName (which requires this field to be
6490 /// empty) or the type field is being changed from ExternalName (in which
6491 /// case this field may optionally be specified, as describe above). Valid
6492 /// values are "None", empty string (""), or a valid IP address. Setting
6493 /// this to "None" makes a "headless service" (no virtual IP), which is
6494 /// useful when direct endpoint connections are preferred and proxying is
6495 /// not required. Only applies to types ClusterIP, NodePort, and
6496 /// LoadBalancer. If this field is specified when creating a Service of type
6497 /// ExternalName, creation will fail. This field will be wiped when updating
6498 /// a Service to type ExternalName. If this field is not specified, it will
6499 /// be initialized from the clusterIP field. If this field is specified,
6500 /// clients must ensure that clusterIPs\[0\] and clusterIP have the same
6501 /// value.
6502 ///
6503 /// This field may hold a maximum of two entries (dual-stack IPs, in either order).
6504 /// These IPs must correspond to the values of the ipFamilies field. Both
6505 /// clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.
6506 /// More info: <https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies>
6507 /// +listType=atomic
6508 /// +optional
6509 #[prost(string, repeated, tag = "18")]
6510 pub cluster_ips: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6511 /// type determines how the Service is exposed. Defaults to ClusterIP. Valid
6512 /// options are ExternalName, ClusterIP, NodePort, and LoadBalancer.
6513 /// "ClusterIP" allocates a cluster-internal IP address for load-balancing
6514 /// to endpoints. Endpoints are determined by the selector or if that is not
6515 /// specified, by manual construction of an Endpoints object or
6516 /// EndpointSlice objects. If clusterIP is "None", no virtual IP is
6517 /// allocated and the endpoints are published as a set of endpoints rather
6518 /// than a virtual IP.
6519 /// "NodePort" builds on ClusterIP and allocates a port on every node which
6520 /// routes to the same endpoints as the clusterIP.
6521 /// "LoadBalancer" builds on NodePort and creates an external load-balancer
6522 /// (if supported in the current cloud) which routes to the same endpoints
6523 /// as the clusterIP.
6524 /// "ExternalName" aliases this service to the specified externalName.
6525 /// Several other fields do not apply to ExternalName services.
6526 /// More info: <https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types>
6527 /// +optional
6528 #[prost(string, optional, tag = "4")]
6529 pub r#type: ::core::option::Option<::prost::alloc::string::String>,
6530 /// externalIPs is a list of IP addresses for which nodes in the cluster
6531 /// will also accept traffic for this service. These IPs are not managed by
6532 /// Kubernetes. The user is responsible for ensuring that traffic arrives
6533 /// at a node with this IP. A common example is external load-balancers
6534 /// that are not part of the Kubernetes system.
6535 /// +optional
6536 /// +listType=atomic
6537 #[prost(string, repeated, tag = "5")]
6538 pub external_ips: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6539 /// Supports "ClientIP" and "None". Used to maintain session affinity.
6540 /// Enable client IP based session affinity.
6541 /// Must be ClientIP or None.
6542 /// Defaults to None.
6543 /// More info: <https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies>
6544 /// +optional
6545 #[prost(string, optional, tag = "7")]
6546 pub session_affinity: ::core::option::Option<::prost::alloc::string::String>,
6547 /// Only applies to Service Type: LoadBalancer.
6548 /// This feature depends on whether the underlying cloud-provider supports specifying
6549 /// the loadBalancerIP when a load balancer is created.
6550 /// This field will be ignored if the cloud-provider does not support the feature.
6551 /// Deprecated: This field was under-specified and its meaning varies across implementations.
6552 /// Using it is non-portable and it may not support dual-stack.
6553 /// Users are encouraged to use implementation-specific annotations when available.
6554 /// +optional
6555 #[prost(string, optional, tag = "8")]
6556 pub load_balancer_ip: ::core::option::Option<::prost::alloc::string::String>,
6557 /// If specified and supported by the platform, this will restrict traffic through the cloud-provider
6558 /// load-balancer will be restricted to the specified client IPs. This field will be ignored if the
6559 /// cloud-provider does not support the feature."
6560 /// More info: <https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/>
6561 /// +optional
6562 /// +listType=atomic
6563 #[prost(string, repeated, tag = "9")]
6564 pub load_balancer_source_ranges: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6565 /// externalName is the external reference that discovery mechanisms will
6566 /// return as an alias for this service (e.g. a DNS CNAME record). No
6567 /// proxying will be involved. Must be a lowercase RFC-1123 hostname
6568 /// (<https://tools.ietf.org/html/rfc1123>) and requires `type` to be "ExternalName".
6569 /// +optional
6570 #[prost(string, optional, tag = "10")]
6571 pub external_name: ::core::option::Option<::prost::alloc::string::String>,
6572 /// externalTrafficPolicy describes how nodes distribute service traffic they
6573 /// receive on one of the Service's "externally-facing" addresses (NodePorts,
6574 /// ExternalIPs, and LoadBalancer IPs). If set to "Local", the proxy will configure
6575 /// the service in a way that assumes that external load balancers will take care
6576 /// of balancing the service traffic between nodes, and so each node will deliver
6577 /// traffic only to the node-local endpoints of the service, without masquerading
6578 /// the client source IP. (Traffic mistakenly sent to a node with no endpoints will
6579 /// be dropped.) The default value, "Cluster", uses the standard behavior of
6580 /// routing to all endpoints evenly (possibly modified by topology and other
6581 /// features). Note that traffic sent to an External IP or LoadBalancer IP from
6582 /// within the cluster will always get "Cluster" semantics, but clients sending to
6583 /// a NodePort from within the cluster may need to take traffic policy into account
6584 /// when picking a node.
6585 /// +optional
6586 #[prost(string, optional, tag = "11")]
6587 pub external_traffic_policy: ::core::option::Option<::prost::alloc::string::String>,
6588 /// healthCheckNodePort specifies the healthcheck nodePort for the service.
6589 /// This only applies when type is set to LoadBalancer and
6590 /// externalTrafficPolicy is set to Local. If a value is specified, is
6591 /// in-range, and is not in use, it will be used. If not specified, a value
6592 /// will be automatically allocated. External systems (e.g. load-balancers)
6593 /// can use this port to determine if a given node holds endpoints for this
6594 /// service or not. If this field is specified when creating a Service
6595 /// which does not need it, creation will fail. This field will be wiped
6596 /// when updating a Service to no longer need it (e.g. changing type).
6597 /// This field cannot be updated once set.
6598 /// +optional
6599 #[prost(int32, optional, tag = "12")]
6600 pub health_check_node_port: ::core::option::Option<i32>,
6601 /// publishNotReadyAddresses indicates that any agent which deals with endpoints for this
6602 /// Service should disregard any indications of ready/not-ready.
6603 /// The primary use case for setting this field is for a StatefulSet's Headless Service to
6604 /// propagate SRV DNS records for its Pods for the purpose of peer discovery.
6605 /// The Kubernetes controllers that generate Endpoints and EndpointSlice resources for
6606 /// Services interpret this to mean that all endpoints are considered "ready" even if the
6607 /// Pods themselves are not. Agents which consume only Kubernetes generated endpoints
6608 /// through the Endpoints or EndpointSlice resources can safely assume this behavior.
6609 /// +optional
6610 #[prost(bool, optional, tag = "13")]
6611 pub publish_not_ready_addresses: ::core::option::Option<bool>,
6612 /// sessionAffinityConfig contains the configurations of session affinity.
6613 /// +optional
6614 #[prost(message, optional, tag = "14")]
6615 pub session_affinity_config: ::core::option::Option<SessionAffinityConfig>,
6616 /// IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this
6617 /// service. This field is usually assigned automatically based on cluster
6618 /// configuration and the ipFamilyPolicy field. If this field is specified
6619 /// manually, the requested family is available in the cluster,
6620 /// and ipFamilyPolicy allows it, it will be used; otherwise creation of
6621 /// the service will fail. This field is conditionally mutable: it allows
6622 /// for adding or removing a secondary IP family, but it does not allow
6623 /// changing the primary IP family of the Service. Valid values are "IPv4"
6624 /// and "IPv6". This field only applies to Services of types ClusterIP,
6625 /// NodePort, and LoadBalancer, and does apply to "headless" services.
6626 /// This field will be wiped when updating a Service to type ExternalName.
6627 ///
6628 /// This field may hold a maximum of two entries (dual-stack families, in
6629 /// either order). These families must correspond to the values of the
6630 /// clusterIPs field, if specified. Both clusterIPs and ipFamilies are
6631 /// governed by the ipFamilyPolicy field.
6632 /// +listType=atomic
6633 /// +optional
6634 #[prost(string, repeated, tag = "19")]
6635 pub ip_families: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6636 /// IPFamilyPolicy represents the dual-stack-ness requested or required by
6637 /// this Service. If there is no value provided, then this field will be set
6638 /// to SingleStack. Services can be "SingleStack" (a single IP family),
6639 /// "PreferDualStack" (two IP families on dual-stack configured clusters or
6640 /// a single IP family on single-stack clusters), or "RequireDualStack"
6641 /// (two IP families on dual-stack configured clusters, otherwise fail). The
6642 /// ipFamilies and clusterIPs fields depend on the value of this field. This
6643 /// field will be wiped when updating a service to type ExternalName.
6644 /// +optional
6645 #[prost(string, optional, tag = "17")]
6646 pub ip_family_policy: ::core::option::Option<::prost::alloc::string::String>,
6647 /// allocateLoadBalancerNodePorts defines if NodePorts will be automatically
6648 /// allocated for services with type LoadBalancer. Default is "true". It
6649 /// may be set to "false" if the cluster load-balancer does not rely on
6650 /// NodePorts. If the caller requests specific NodePorts (by specifying a
6651 /// value), those requests will be respected, regardless of this field.
6652 /// This field may only be set for services with type LoadBalancer and will
6653 /// be cleared if the type is changed to any other type.
6654 /// +optional
6655 #[prost(bool, optional, tag = "20")]
6656 pub allocate_load_balancer_node_ports: ::core::option::Option<bool>,
6657 /// loadBalancerClass is the class of the load balancer implementation this Service belongs to.
6658 /// If specified, the value of this field must be a label-style identifier, with an optional prefix,
6659 /// e.g. "internal-vip" or "example.com/internal-vip". Unprefixed names are reserved for end-users.
6660 /// This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load
6661 /// balancer implementation is used, today this is typically done through the cloud provider integration,
6662 /// but should apply for any default implementation. If set, it is assumed that a load balancer
6663 /// implementation is watching for Services with a matching class. Any default load balancer
6664 /// implementation (e.g. cloud providers) should ignore Services that set this field.
6665 /// This field can only be set when creating or updating a Service to type 'LoadBalancer'.
6666 /// Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.
6667 /// +optional
6668 #[prost(string, optional, tag = "21")]
6669 pub load_balancer_class: ::core::option::Option<::prost::alloc::string::String>,
6670 /// InternalTrafficPolicy describes how nodes distribute service traffic they
6671 /// receive on the ClusterIP. If set to "Local", the proxy will assume that pods
6672 /// only want to talk to endpoints of the service on the same node as the pod,
6673 /// dropping the traffic if there are no local endpoints. The default value,
6674 /// "Cluster", uses the standard behavior of routing to all endpoints evenly
6675 /// (possibly modified by topology and other features).
6676 /// +optional
6677 #[prost(string, optional, tag = "22")]
6678 pub internal_traffic_policy: ::core::option::Option<::prost::alloc::string::String>,
6679 /// TrafficDistribution offers a way to express preferences for how traffic
6680 /// is distributed to Service endpoints. Implementations can use this field
6681 /// as a hint, but are not required to guarantee strict adherence. If the
6682 /// field is not set, the implementation will apply its default routing
6683 /// strategy. If set to "PreferClose", implementations should prioritize
6684 /// endpoints that are in the same zone.
6685 /// +optional
6686 #[prost(string, optional, tag = "23")]
6687 pub traffic_distribution: ::core::option::Option<::prost::alloc::string::String>,
6688}
6689/// ServiceStatus represents the current status of a service.
6690#[derive(Clone, PartialEq, ::prost::Message)]
6691pub struct ServiceStatus {
6692 /// LoadBalancer contains the current status of the load-balancer,
6693 /// if one is present.
6694 /// +optional
6695 #[prost(message, optional, tag = "1")]
6696 pub load_balancer: ::core::option::Option<LoadBalancerStatus>,
6697 /// Current service state
6698 /// +optional
6699 /// +patchMergeKey=type
6700 /// +patchStrategy=merge
6701 /// +listType=map
6702 /// +listMapKey=type
6703 #[prost(message, repeated, tag = "2")]
6704 pub conditions:
6705 ::prost::alloc::vec::Vec<super::super::super::apimachinery::pkg::apis::meta::v1::Condition>,
6706}
6707/// SessionAffinityConfig represents the configurations of session affinity.
6708#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
6709pub struct SessionAffinityConfig {
6710 /// clientIP contains the configurations of Client IP based session affinity.
6711 /// +optional
6712 #[prost(message, optional, tag = "1")]
6713 pub client_ip: ::core::option::Option<ClientIpConfig>,
6714}
6715/// SleepAction describes a "sleep" action.
6716#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
6717pub struct SleepAction {
6718 /// Seconds is the number of seconds to sleep.
6719 #[prost(int64, optional, tag = "1")]
6720 pub seconds: ::core::option::Option<i64>,
6721}
6722/// Represents a StorageOS persistent volume resource.
6723#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
6724pub struct StorageOsPersistentVolumeSource {
6725 /// volumeName is the human-readable name of the StorageOS volume. Volume
6726 /// names are only unique within a namespace.
6727 #[prost(string, optional, tag = "1")]
6728 pub volume_name: ::core::option::Option<::prost::alloc::string::String>,
6729 /// volumeNamespace specifies the scope of the volume within StorageOS. If no
6730 /// namespace is specified then the Pod's namespace will be used. This allows the
6731 /// Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
6732 /// Set VolumeName to any name to override the default behaviour.
6733 /// Set to "default" if you are not using namespaces within StorageOS.
6734 /// Namespaces that do not pre-exist within StorageOS will be created.
6735 /// +optional
6736 #[prost(string, optional, tag = "2")]
6737 pub volume_namespace: ::core::option::Option<::prost::alloc::string::String>,
6738 /// fsType is the filesystem type to mount.
6739 /// Must be a filesystem type supported by the host operating system.
6740 /// Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
6741 /// +optional
6742 #[prost(string, optional, tag = "3")]
6743 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
6744 /// readOnly defaults to false (read/write). ReadOnly here will force
6745 /// the ReadOnly setting in VolumeMounts.
6746 /// +optional
6747 #[prost(bool, optional, tag = "4")]
6748 pub read_only: ::core::option::Option<bool>,
6749 /// secretRef specifies the secret to use for obtaining the StorageOS API
6750 /// credentials. If not specified, default values will be attempted.
6751 /// +optional
6752 #[prost(message, optional, tag = "5")]
6753 pub secret_ref: ::core::option::Option<ObjectReference>,
6754}
6755/// Represents a StorageOS persistent volume resource.
6756#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
6757pub struct StorageOsVolumeSource {
6758 /// volumeName is the human-readable name of the StorageOS volume. Volume
6759 /// names are only unique within a namespace.
6760 #[prost(string, optional, tag = "1")]
6761 pub volume_name: ::core::option::Option<::prost::alloc::string::String>,
6762 /// volumeNamespace specifies the scope of the volume within StorageOS. If no
6763 /// namespace is specified then the Pod's namespace will be used. This allows the
6764 /// Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
6765 /// Set VolumeName to any name to override the default behaviour.
6766 /// Set to "default" if you are not using namespaces within StorageOS.
6767 /// Namespaces that do not pre-exist within StorageOS will be created.
6768 /// +optional
6769 #[prost(string, optional, tag = "2")]
6770 pub volume_namespace: ::core::option::Option<::prost::alloc::string::String>,
6771 /// fsType is the filesystem type to mount.
6772 /// Must be a filesystem type supported by the host operating system.
6773 /// Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
6774 /// +optional
6775 #[prost(string, optional, tag = "3")]
6776 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
6777 /// readOnly defaults to false (read/write). ReadOnly here will force
6778 /// the ReadOnly setting in VolumeMounts.
6779 /// +optional
6780 #[prost(bool, optional, tag = "4")]
6781 pub read_only: ::core::option::Option<bool>,
6782 /// secretRef specifies the secret to use for obtaining the StorageOS API
6783 /// credentials. If not specified, default values will be attempted.
6784 /// +optional
6785 #[prost(message, optional, tag = "5")]
6786 pub secret_ref: ::core::option::Option<LocalObjectReference>,
6787}
6788/// Sysctl defines a kernel parameter to be set
6789#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
6790pub struct Sysctl {
6791 /// Name of a property to set
6792 #[prost(string, optional, tag = "1")]
6793 pub name: ::core::option::Option<::prost::alloc::string::String>,
6794 /// Value of a property to set
6795 #[prost(string, optional, tag = "2")]
6796 pub value: ::core::option::Option<::prost::alloc::string::String>,
6797}
6798/// TCPSocketAction describes an action based on opening a socket
6799#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
6800pub struct TcpSocketAction {
6801 /// Number or name of the port to access on the container.
6802 /// Number must be in the range 1 to 65535.
6803 /// Name must be an IANA_SVC_NAME.
6804 #[prost(message, optional, tag = "1")]
6805 pub port: ::core::option::Option<super::super::super::apimachinery::pkg::util::intstr::IntOrString>,
6806 /// Optional: Host name to connect to, defaults to the pod IP.
6807 /// +optional
6808 #[prost(string, optional, tag = "2")]
6809 pub host: ::core::option::Option<::prost::alloc::string::String>,
6810}
6811/// The node this Taint is attached to has the "effect" on
6812/// any pod that does not tolerate the Taint.
6813#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
6814pub struct Taint {
6815 /// Required. The taint key to be applied to a node.
6816 #[prost(string, optional, tag = "1")]
6817 pub key: ::core::option::Option<::prost::alloc::string::String>,
6818 /// The taint value corresponding to the taint key.
6819 /// +optional
6820 #[prost(string, optional, tag = "2")]
6821 pub value: ::core::option::Option<::prost::alloc::string::String>,
6822 /// Required. The effect of the taint on pods
6823 /// that do not tolerate the taint.
6824 /// Valid effects are NoSchedule, PreferNoSchedule and NoExecute.
6825 #[prost(string, optional, tag = "3")]
6826 pub effect: ::core::option::Option<::prost::alloc::string::String>,
6827 /// TimeAdded represents the time at which the taint was added.
6828 /// +optional
6829 #[prost(message, optional, tag = "4")]
6830 pub time_added: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::Time>,
6831}
6832/// The pod this Toleration is attached to tolerates any taint that matches
6833/// the triple <key,value,effect> using the matching operator <operator>.
6834#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
6835pub struct Toleration {
6836 /// Key is the taint key that the toleration applies to. Empty means match all taint keys.
6837 /// If the key is empty, operator must be Exists; this combination means to match all values and all keys.
6838 /// +optional
6839 #[prost(string, optional, tag = "1")]
6840 pub key: ::core::option::Option<::prost::alloc::string::String>,
6841 /// Operator represents a key's relationship to the value.
6842 /// Valid operators are Exists, Equal, Lt, and Gt. Defaults to Equal.
6843 /// Exists is equivalent to wildcard for value, so that a pod can
6844 /// tolerate all taints of a particular category.
6845 /// Lt and Gt perform numeric comparisons (requires feature gate TaintTolerationComparisonOperators).
6846 /// +optional
6847 #[prost(string, optional, tag = "2")]
6848 pub operator: ::core::option::Option<::prost::alloc::string::String>,
6849 /// Value is the taint value the toleration matches to.
6850 /// If the operator is Exists, the value should be empty, otherwise just a regular string.
6851 /// +optional
6852 #[prost(string, optional, tag = "3")]
6853 pub value: ::core::option::Option<::prost::alloc::string::String>,
6854 /// Effect indicates the taint effect to match. Empty means match all taint effects.
6855 /// When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
6856 /// +optional
6857 #[prost(string, optional, tag = "4")]
6858 pub effect: ::core::option::Option<::prost::alloc::string::String>,
6859 /// TolerationSeconds represents the period of time the toleration (which must be
6860 /// of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
6861 /// it is not set, which means tolerate the taint forever (do not evict). Zero and
6862 /// negative values will be treated as 0 (evict immediately) by the system.
6863 /// +optional
6864 #[prost(int64, optional, tag = "5")]
6865 pub toleration_seconds: ::core::option::Option<i64>,
6866}
6867/// A topology selector requirement is a selector that matches given label.
6868/// This is an alpha feature and may change in the future.
6869#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
6870pub struct TopologySelectorLabelRequirement {
6871 /// The label key that the selector applies to.
6872 #[prost(string, optional, tag = "1")]
6873 pub key: ::core::option::Option<::prost::alloc::string::String>,
6874 /// An array of string values. One value must match the label to be selected.
6875 /// Each entry in Values is ORed.
6876 /// +listType=atomic
6877 #[prost(string, repeated, tag = "2")]
6878 pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6879}
6880/// A topology selector term represents the result of label queries.
6881/// A null or empty topology selector term matches no objects.
6882/// The requirements of them are ANDed.
6883/// It provides a subset of functionality as NodeSelectorTerm.
6884/// This is an alpha feature and may change in the future.
6885/// +structType=atomic
6886#[derive(Clone, PartialEq, ::prost::Message)]
6887pub struct TopologySelectorTerm {
6888 /// A list of topology selector requirements by labels.
6889 /// +optional
6890 /// +listType=atomic
6891 #[prost(message, repeated, tag = "1")]
6892 pub match_label_expressions: ::prost::alloc::vec::Vec<TopologySelectorLabelRequirement>,
6893}
6894/// TopologySpreadConstraint specifies how to spread matching pods among the given topology.
6895#[derive(Clone, PartialEq, ::prost::Message)]
6896pub struct TopologySpreadConstraint {
6897 /// MaxSkew describes the degree to which pods may be unevenly distributed.
6898 /// When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference
6899 /// between the number of matching pods in the target topology and the global minimum.
6900 /// The global minimum is the minimum number of matching pods in an eligible domain
6901 /// or zero if the number of eligible domains is less than MinDomains.
6902 /// For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same
6903 /// labelSelector spread as 2/2/1:
6904 /// In this case, the global minimum is 1.
6905 /// +-------+-------+-------+
6906 /// | zone1 | zone2 | zone3 |
6907 /// +-------+-------+-------+
6908 /// | P P | P P | P |
6909 /// +-------+-------+-------+
6910 /// - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2;
6911 /// scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2)
6912 /// violate MaxSkew(1).
6913 /// - if MaxSkew is 2, incoming pod can be scheduled onto any zone.
6914 /// When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence
6915 /// to topologies that satisfy it.
6916 /// It's a required field. Default value is 1 and 0 is not allowed.
6917 #[prost(int32, optional, tag = "1")]
6918 pub max_skew: ::core::option::Option<i32>,
6919 /// TopologyKey is the key of node labels. Nodes that have a label with this key
6920 /// and identical values are considered to be in the same topology.
6921 /// We consider each <key, value> as a "bucket", and try to put balanced number
6922 /// of pods into each bucket.
6923 /// We define a domain as a particular instance of a topology.
6924 /// Also, we define an eligible domain as a domain whose nodes meet the requirements of
6925 /// nodeAffinityPolicy and nodeTaintsPolicy.
6926 /// e.g. If TopologyKey is "kubernetes.io/hostname", each Node is a domain of that topology.
6927 /// And, if TopologyKey is "topology.kubernetes.io/zone", each zone is a domain of that topology.
6928 /// It's a required field.
6929 #[prost(string, optional, tag = "2")]
6930 pub topology_key: ::core::option::Option<::prost::alloc::string::String>,
6931 /// WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy
6932 /// the spread constraint.
6933 /// - DoNotSchedule (default) tells the scheduler not to schedule it.
6934 /// - ScheduleAnyway tells the scheduler to schedule the pod in any location,
6935 /// but giving higher precedence to topologies that would help reduce the
6936 /// skew.
6937 /// A constraint is considered "Unsatisfiable" for an incoming pod
6938 /// if and only if every possible node assignment for that pod would violate
6939 /// "MaxSkew" on some topology.
6940 /// For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same
6941 /// labelSelector spread as 3/1/1:
6942 /// +-------+-------+-------+
6943 /// | zone1 | zone2 | zone3 |
6944 /// +-------+-------+-------+
6945 /// | P P P | P | P |
6946 /// +-------+-------+-------+
6947 /// If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled
6948 /// to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies
6949 /// MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler
6950 /// won't make it *more* imbalanced.
6951 /// It's a required field.
6952 #[prost(string, optional, tag = "3")]
6953 pub when_unsatisfiable: ::core::option::Option<::prost::alloc::string::String>,
6954 /// LabelSelector is used to find matching pods.
6955 /// Pods that match this label selector are counted to determine the number of pods
6956 /// in their corresponding topology domain.
6957 /// +optional
6958 #[prost(message, optional, tag = "4")]
6959 pub label_selector:
6960 ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::LabelSelector>,
6961 /// MinDomains indicates a minimum number of eligible domains.
6962 /// When the number of eligible domains with matching topology keys is less than minDomains,
6963 /// Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed.
6964 /// And when the number of eligible domains with matching topology keys equals or greater than minDomains,
6965 /// this value has no effect on scheduling.
6966 /// As a result, when the number of eligible domains is less than minDomains,
6967 /// scheduler won't schedule more than maxSkew Pods to those domains.
6968 /// If value is nil, the constraint behaves as if MinDomains is equal to 1.
6969 /// Valid values are integers greater than 0.
6970 /// When value is not nil, WhenUnsatisfiable must be DoNotSchedule.
6971 ///
6972 /// For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same
6973 /// labelSelector spread as 2/2/2:
6974 /// +-------+-------+-------+
6975 /// | zone1 | zone2 | zone3 |
6976 /// +-------+-------+-------+
6977 /// | P P | P P | P P |
6978 /// +-------+-------+-------+
6979 /// The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0.
6980 /// In this situation, new pod with the same labelSelector cannot be scheduled,
6981 /// because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones,
6982 /// it will violate MaxSkew.
6983 /// +optional
6984 #[prost(int32, optional, tag = "5")]
6985 pub min_domains: ::core::option::Option<i32>,
6986 /// NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector
6987 /// when calculating pod topology spread skew. Options are:
6988 /// - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations.
6989 /// - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.
6990 ///
6991 /// If this value is nil, the behavior is equivalent to the Honor policy.
6992 /// +optional
6993 #[prost(string, optional, tag = "6")]
6994 pub node_affinity_policy: ::core::option::Option<::prost::alloc::string::String>,
6995 /// NodeTaintsPolicy indicates how we will treat node taints when calculating
6996 /// pod topology spread skew. Options are:
6997 /// - Honor: nodes without taints, along with tainted nodes for which the incoming pod
6998 /// has a toleration, are included.
6999 /// - Ignore: node taints are ignored. All nodes are included.
7000 ///
7001 /// If this value is nil, the behavior is equivalent to the Ignore policy.
7002 /// +optional
7003 #[prost(string, optional, tag = "7")]
7004 pub node_taints_policy: ::core::option::Option<::prost::alloc::string::String>,
7005 /// MatchLabelKeys is a set of pod label keys to select the pods over which
7006 /// spreading will be calculated. The keys are used to lookup values from the
7007 /// incoming pod labels, those key-value labels are ANDed with labelSelector
7008 /// to select the group of existing pods over which spreading will be calculated
7009 /// for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector.
7010 /// MatchLabelKeys cannot be set when LabelSelector isn't set.
7011 /// Keys that don't exist in the incoming pod labels will
7012 /// be ignored. A null or empty list means only match against labelSelector.
7013 ///
7014 /// This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).
7015 /// +listType=atomic
7016 /// +optional
7017 #[prost(string, repeated, tag = "8")]
7018 pub match_label_keys: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
7019}
7020/// TypedLocalObjectReference contains enough information to let you locate the
7021/// typed referenced object inside the same namespace.
7022/// ---
7023/// New uses of this type are discouraged because of difficulty describing its usage when embedded in APIs.
7024/// 1. Invalid usage help. It is impossible to add specific help for individual usage. In most embedded usages, there are particular
7025/// restrictions like, "must refer only to types A and B" or "UID not honored" or "name must be restricted".
7026/// Those cannot be well described when embedded.
7027/// 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.
7028/// 3. The fields are both imprecise and overly precise. Kind is not a precise mapping to a URL. This can produce ambiguity
7029/// during interpretation and require a REST mapping. In most cases, the dependency is on the group,resource tuple
7030/// and the version of the actual struct is irrelevant.
7031/// 4. We cannot easily change it. Because this type is embedded in many locations, updates to this type
7032/// will affect numerous schemas. Don't make new APIs embed an underspecified API type they do not control.
7033///
7034/// Instead of using this type, create a locally provided and used type that is well-focused on your reference.
7035/// For example, ServiceReferences for admission registration: <https://github.com/kubernetes/api/blob/release-1.17/admissionregistration/v1/types.go#L533> .
7036/// +structType=atomic
7037#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
7038pub struct TypedLocalObjectReference {
7039 /// APIGroup is the group for the resource being referenced.
7040 /// If APIGroup is not specified, the specified Kind must be in the core API group.
7041 /// For any other third-party types, APIGroup is required.
7042 /// +optional
7043 #[prost(string, optional, tag = "1")]
7044 pub api_group: ::core::option::Option<::prost::alloc::string::String>,
7045 /// Kind is the type of resource being referenced
7046 #[prost(string, optional, tag = "2")]
7047 pub kind: ::core::option::Option<::prost::alloc::string::String>,
7048 /// Name is the name of resource being referenced
7049 #[prost(string, optional, tag = "3")]
7050 pub name: ::core::option::Option<::prost::alloc::string::String>,
7051}
7052/// TypedObjectReference contains enough information to let you locate the typed referenced object
7053#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
7054pub struct TypedObjectReference {
7055 /// APIGroup is the group for the resource being referenced.
7056 /// If APIGroup is not specified, the specified Kind must be in the core API group.
7057 /// For any other third-party types, APIGroup is required.
7058 /// +optional
7059 #[prost(string, optional, tag = "1")]
7060 pub api_group: ::core::option::Option<::prost::alloc::string::String>,
7061 /// Kind is the type of resource being referenced
7062 #[prost(string, optional, tag = "2")]
7063 pub kind: ::core::option::Option<::prost::alloc::string::String>,
7064 /// Name is the name of resource being referenced
7065 #[prost(string, optional, tag = "3")]
7066 pub name: ::core::option::Option<::prost::alloc::string::String>,
7067 /// Namespace is the namespace of resource being referenced
7068 /// 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.
7069 /// (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
7070 /// +featureGate=CrossNamespaceVolumeDataSource
7071 /// +optional
7072 #[prost(string, optional, tag = "4")]
7073 pub namespace: ::core::option::Option<::prost::alloc::string::String>,
7074}
7075/// Volume represents a named volume in a pod that may be accessed by any container in the pod.
7076#[derive(Clone, PartialEq, ::prost::Message)]
7077pub struct Volume {
7078 /// name of the volume.
7079 /// Must be a DNS_LABEL and unique within the pod.
7080 /// More info: <https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names>
7081 #[prost(string, optional, tag = "1")]
7082 pub name: ::core::option::Option<::prost::alloc::string::String>,
7083 /// volumeSource represents the location and type of the mounted volume.
7084 /// If not specified, the Volume is implied to be an EmptyDir.
7085 /// This implied behavior is deprecated and will be removed in a future version.
7086 #[prost(message, optional, tag = "2")]
7087 pub volume_source: ::core::option::Option<VolumeSource>,
7088}
7089/// volumeDevice describes a mapping of a raw block device within a container.
7090#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
7091pub struct VolumeDevice {
7092 /// name must match the name of a persistentVolumeClaim in the pod
7093 #[prost(string, optional, tag = "1")]
7094 pub name: ::core::option::Option<::prost::alloc::string::String>,
7095 /// devicePath is the path inside of the container that the device will be mapped to.
7096 #[prost(string, optional, tag = "2")]
7097 pub device_path: ::core::option::Option<::prost::alloc::string::String>,
7098}
7099/// VolumeMount describes a mounting of a Volume within a container.
7100#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
7101pub struct VolumeMount {
7102 /// This must match the Name of a Volume.
7103 #[prost(string, optional, tag = "1")]
7104 pub name: ::core::option::Option<::prost::alloc::string::String>,
7105 /// Mounted read-only if true, read-write otherwise (false or unspecified).
7106 /// Defaults to false.
7107 /// +optional
7108 #[prost(bool, optional, tag = "2")]
7109 pub read_only: ::core::option::Option<bool>,
7110 /// RecursiveReadOnly specifies whether read-only mounts should be handled
7111 /// recursively.
7112 ///
7113 /// If ReadOnly is false, this field has no meaning and must be unspecified.
7114 ///
7115 /// If ReadOnly is true, and this field is set to Disabled, the mount is not made
7116 /// recursively read-only. If this field is set to IfPossible, the mount is made
7117 /// recursively read-only, if it is supported by the container runtime. If this
7118 /// field is set to Enabled, the mount is made recursively read-only if it is
7119 /// supported by the container runtime, otherwise the pod will not be started and
7120 /// an error will be generated to indicate the reason.
7121 ///
7122 /// If this field is set to IfPossible or Enabled, MountPropagation must be set to
7123 /// None (or be unspecified, which defaults to None).
7124 ///
7125 /// If this field is not specified, it is treated as an equivalent of Disabled.
7126 /// +optional
7127 #[prost(string, optional, tag = "7")]
7128 pub recursive_read_only: ::core::option::Option<::prost::alloc::string::String>,
7129 /// Path within the container at which the volume should be mounted. Must
7130 /// not contain ':'.
7131 #[prost(string, optional, tag = "3")]
7132 pub mount_path: ::core::option::Option<::prost::alloc::string::String>,
7133 /// Path within the volume from which the container's volume should be mounted.
7134 /// Defaults to "" (volume's root).
7135 /// +optional
7136 #[prost(string, optional, tag = "4")]
7137 pub sub_path: ::core::option::Option<::prost::alloc::string::String>,
7138 /// mountPropagation determines how mounts are propagated from the host
7139 /// to container and the other way around.
7140 /// When not set, MountPropagationNone is used.
7141 /// This field is beta in 1.10.
7142 /// When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified
7143 /// (which defaults to None).
7144 /// +optional
7145 #[prost(string, optional, tag = "5")]
7146 pub mount_propagation: ::core::option::Option<::prost::alloc::string::String>,
7147 /// Expanded path within the volume from which the container's volume should be mounted.
7148 /// Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.
7149 /// Defaults to "" (volume's root).
7150 /// SubPathExpr and SubPath are mutually exclusive.
7151 /// +optional
7152 #[prost(string, optional, tag = "6")]
7153 pub sub_path_expr: ::core::option::Option<::prost::alloc::string::String>,
7154}
7155/// VolumeMountStatus shows status of volume mounts.
7156#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
7157pub struct VolumeMountStatus {
7158 /// Name corresponds to the name of the original VolumeMount.
7159 #[prost(string, optional, tag = "1")]
7160 pub name: ::core::option::Option<::prost::alloc::string::String>,
7161 /// MountPath corresponds to the original VolumeMount.
7162 #[prost(string, optional, tag = "2")]
7163 pub mount_path: ::core::option::Option<::prost::alloc::string::String>,
7164 /// ReadOnly corresponds to the original VolumeMount.
7165 /// +optional
7166 #[prost(bool, optional, tag = "3")]
7167 pub read_only: ::core::option::Option<bool>,
7168 /// RecursiveReadOnly must be set to Disabled, Enabled, or unspecified (for non-readonly mounts).
7169 /// An IfPossible value in the original VolumeMount must be translated to Disabled or Enabled,
7170 /// depending on the mount result.
7171 /// +optional
7172 #[prost(string, optional, tag = "4")]
7173 pub recursive_read_only: ::core::option::Option<::prost::alloc::string::String>,
7174}
7175/// VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from.
7176#[derive(Clone, PartialEq, ::prost::Message)]
7177pub struct VolumeNodeAffinity {
7178 /// required specifies hard node constraints that must be met.
7179 #[prost(message, optional, tag = "1")]
7180 pub required: ::core::option::Option<NodeSelector>,
7181}
7182/// Projection that may be projected along with other supported volume types.
7183/// Exactly one of these fields must be set.
7184#[derive(Clone, PartialEq, ::prost::Message)]
7185pub struct VolumeProjection {
7186 /// secret information about the secret data to project
7187 /// +optional
7188 #[prost(message, optional, tag = "1")]
7189 pub secret: ::core::option::Option<SecretProjection>,
7190 /// downwardAPI information about the downwardAPI data to project
7191 /// +optional
7192 #[prost(message, optional, tag = "2")]
7193 pub downward_api: ::core::option::Option<DownwardAPIProjection>,
7194 /// configMap information about the configMap data to project
7195 /// +optional
7196 #[prost(message, optional, tag = "3")]
7197 pub config_map: ::core::option::Option<ConfigMapProjection>,
7198 /// serviceAccountToken is information about the serviceAccountToken data to project
7199 /// +optional
7200 #[prost(message, optional, tag = "4")]
7201 pub service_account_token: ::core::option::Option<ServiceAccountTokenProjection>,
7202 /// ClusterTrustBundle allows a pod to access the `.spec.trustBundle` field
7203 /// of ClusterTrustBundle objects in an auto-updating file.
7204 ///
7205 /// Alpha, gated by the ClusterTrustBundleProjection feature gate.
7206 ///
7207 /// ClusterTrustBundle objects can either be selected by name, or by the
7208 /// combination of signer name and a label selector.
7209 ///
7210 /// Kubelet performs aggressive normalization of the PEM contents written
7211 /// into the pod filesystem. Esoteric PEM features such as inter-block
7212 /// comments and block headers are stripped. Certificates are deduplicated.
7213 /// The ordering of certificates within the file is arbitrary, and Kubelet
7214 /// may change the order over time.
7215 ///
7216 /// +featureGate=ClusterTrustBundleProjection
7217 /// +optional
7218 #[prost(message, optional, tag = "5")]
7219 pub cluster_trust_bundle: ::core::option::Option<ClusterTrustBundleProjection>,
7220 /// Projects an auto-rotating credential bundle (private key and certificate
7221 /// chain) that the pod can use either as a TLS client or server.
7222 ///
7223 /// Kubelet generates a private key and uses it to send a
7224 /// PodCertificateRequest to the named signer. Once the signer approves the
7225 /// request and issues a certificate chain, Kubelet writes the key and
7226 /// certificate chain to the pod filesystem. The pod does not start until
7227 /// certificates have been issued for each podCertificate projected volume
7228 /// source in its spec.
7229 ///
7230 /// Kubelet will begin trying to rotate the certificate at the time indicated
7231 /// by the signer using the PodCertificateRequest.Status.BeginRefreshAt
7232 /// timestamp.
7233 ///
7234 /// Kubelet can write a single file, indicated by the credentialBundlePath
7235 /// field, or separate files, indicated by the keyPath and
7236 /// certificateChainPath fields.
7237 ///
7238 /// The credential bundle is a single file in PEM format. The first PEM
7239 /// entry is the private key (in PKCS#8 format), and the remaining PEM
7240 /// entries are the certificate chain issued by the signer (typically,
7241 /// signers will return their certificate chain in leaf-to-root order).
7242 ///
7243 /// Prefer using the credential bundle format, since your application code
7244 /// can read it atomically. If you use keyPath and certificateChainPath,
7245 /// your application must make two separate file reads. If these coincide
7246 /// with a certificate rotation, it is possible that the private key and leaf
7247 /// certificate you read may not correspond to each other. Your application
7248 /// will need to check for this condition, and re-read until they are
7249 /// consistent.
7250 ///
7251 /// The named signer controls chooses the format of the certificate it
7252 /// issues; consult the signer implementation's documentation to learn how to
7253 /// use the certificates it issues.
7254 ///
7255 /// +featureGate=PodCertificateProjection
7256 /// +optional
7257 #[prost(message, optional, tag = "6")]
7258 pub pod_certificate: ::core::option::Option<PodCertificateProjection>,
7259}
7260/// VolumeResourceRequirements describes the storage resource requirements for a volume.
7261#[derive(Clone, PartialEq, ::prost::Message)]
7262pub struct VolumeResourceRequirements {
7263 /// Limits describes the maximum amount of compute resources allowed.
7264 /// More info: <https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/>
7265 /// +optional
7266 #[prost(btree_map = "string, message", tag = "1")]
7267 pub limits: ::prost::alloc::collections::BTreeMap<
7268 ::prost::alloc::string::String,
7269 super::super::super::apimachinery::pkg::api::resource::Quantity,
7270 >,
7271 /// Requests describes the minimum amount of compute resources required.
7272 /// If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
7273 /// otherwise to an implementation-defined value. Requests cannot exceed Limits.
7274 /// More info: <https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/>
7275 /// +optional
7276 #[prost(btree_map = "string, message", tag = "2")]
7277 pub requests: ::prost::alloc::collections::BTreeMap<
7278 ::prost::alloc::string::String,
7279 super::super::super::apimachinery::pkg::api::resource::Quantity,
7280 >,
7281}
7282/// Represents the source of a volume to mount.
7283/// Only one of its members may be specified.
7284#[derive(Clone, PartialEq, ::prost::Message)]
7285pub struct VolumeSource {
7286 /// hostPath represents a pre-existing file or directory on the host
7287 /// machine that is directly exposed to the container. This is generally
7288 /// used for system agents or other privileged things that are allowed
7289 /// to see the host machine. Most containers will NOT need this.
7290 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#hostpath>
7291 /// ---
7292 /// TODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not
7293 /// mount host directories as read/write.
7294 /// +optional
7295 #[prost(message, optional, tag = "1")]
7296 pub host_path: ::core::option::Option<HostPathVolumeSource>,
7297 /// emptyDir represents a temporary directory that shares a pod's lifetime.
7298 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#emptydir>
7299 /// +optional
7300 #[prost(message, optional, tag = "2")]
7301 pub empty_dir: ::core::option::Option<EmptyDirVolumeSource>,
7302 /// gcePersistentDisk represents a GCE Disk resource that is attached to a
7303 /// kubelet's host machine and then exposed to the pod.
7304 /// Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree
7305 /// gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver.
7306 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk>
7307 /// +optional
7308 #[prost(message, optional, tag = "3")]
7309 pub gce_persistent_disk: ::core::option::Option<GcePersistentDiskVolumeSource>,
7310 /// awsElasticBlockStore represents an AWS Disk resource that is attached to a
7311 /// kubelet's host machine and then exposed to the pod.
7312 /// Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree
7313 /// awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver.
7314 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore>
7315 /// +optional
7316 #[prost(message, optional, tag = "4")]
7317 pub aws_elastic_block_store: ::core::option::Option<AwsElasticBlockStoreVolumeSource>,
7318 /// gitRepo represents a git repository at a particular revision.
7319 /// Deprecated: GitRepo is deprecated. To provision a container with a git repo, mount an
7320 /// EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir
7321 /// into the Pod's container.
7322 /// +optional
7323 #[prost(message, optional, tag = "5")]
7324 pub git_repo: ::core::option::Option<GitRepoVolumeSource>,
7325 /// secret represents a secret that should populate this volume.
7326 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#secret>
7327 /// +optional
7328 #[prost(message, optional, tag = "6")]
7329 pub secret: ::core::option::Option<SecretVolumeSource>,
7330 /// nfs represents an NFS mount on the host that shares a pod's lifetime
7331 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes#nfs>
7332 /// +optional
7333 #[prost(message, optional, tag = "7")]
7334 pub nfs: ::core::option::Option<NfsVolumeSource>,
7335 /// iscsi represents an ISCSI Disk resource that is attached to a
7336 /// kubelet's host machine and then exposed to the pod.
7337 /// More info: <https://kubernetes.io/docs/concepts/storage/volumes/#iscsi>
7338 /// +optional
7339 #[prost(message, optional, tag = "8")]
7340 pub iscsi: ::core::option::Option<IscsiVolumeSource>,
7341 /// glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime.
7342 /// Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported.
7343 /// +optional
7344 #[prost(message, optional, tag = "9")]
7345 pub glusterfs: ::core::option::Option<GlusterfsVolumeSource>,
7346 /// persistentVolumeClaimVolumeSource represents a reference to a
7347 /// PersistentVolumeClaim in the same namespace.
7348 /// More info: <https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims>
7349 /// +optional
7350 #[prost(message, optional, tag = "10")]
7351 pub persistent_volume_claim: ::core::option::Option<PersistentVolumeClaimVolumeSource>,
7352 /// rbd represents a Rados Block Device mount on the host that shares a pod's lifetime.
7353 /// Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported.
7354 /// +optional
7355 #[prost(message, optional, tag = "11")]
7356 pub rbd: ::core::option::Option<RbdVolumeSource>,
7357 /// flexVolume represents a generic volume resource that is
7358 /// provisioned/attached using an exec based plugin.
7359 /// Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead.
7360 /// +optional
7361 #[prost(message, optional, tag = "12")]
7362 pub flex_volume: ::core::option::Option<FlexVolumeSource>,
7363 /// cinder represents a cinder volume attached and mounted on kubelets host machine.
7364 /// Deprecated: Cinder is deprecated. All operations for the in-tree cinder type
7365 /// are redirected to the cinder.csi.openstack.org CSI driver.
7366 /// More info: <https://examples.k8s.io/mysql-cinder-pd/README.md>
7367 /// +optional
7368 #[prost(message, optional, tag = "13")]
7369 pub cinder: ::core::option::Option<CinderVolumeSource>,
7370 /// cephFS represents a Ceph FS mount on the host that shares a pod's lifetime.
7371 /// Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported.
7372 /// +optional
7373 #[prost(message, optional, tag = "14")]
7374 pub cephfs: ::core::option::Option<CephFsVolumeSource>,
7375 /// flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running.
7376 /// Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported.
7377 /// +optional
7378 #[prost(message, optional, tag = "15")]
7379 pub flocker: ::core::option::Option<FlockerVolumeSource>,
7380 /// downwardAPI represents downward API about the pod that should populate this volume
7381 /// +optional
7382 #[prost(message, optional, tag = "16")]
7383 pub downward_api: ::core::option::Option<DownwardAPIVolumeSource>,
7384 /// fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
7385 /// +optional
7386 #[prost(message, optional, tag = "17")]
7387 pub fc: ::core::option::Option<FcVolumeSource>,
7388 /// azureFile represents an Azure File Service mount on the host and bind mount to the pod.
7389 /// Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type
7390 /// are redirected to the file.csi.azure.com CSI driver.
7391 /// +optional
7392 #[prost(message, optional, tag = "18")]
7393 pub azure_file: ::core::option::Option<AzureFileVolumeSource>,
7394 /// configMap represents a configMap that should populate this volume
7395 /// +optional
7396 #[prost(message, optional, tag = "19")]
7397 pub config_map: ::core::option::Option<ConfigMapVolumeSource>,
7398 /// vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine.
7399 /// Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type
7400 /// are redirected to the csi.vsphere.vmware.com CSI driver.
7401 /// +optional
7402 #[prost(message, optional, tag = "20")]
7403 pub vsphere_volume: ::core::option::Option<VsphereVirtualDiskVolumeSource>,
7404 /// quobyte represents a Quobyte mount on the host that shares a pod's lifetime.
7405 /// Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported.
7406 /// +optional
7407 #[prost(message, optional, tag = "21")]
7408 pub quobyte: ::core::option::Option<QuobyteVolumeSource>,
7409 /// azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
7410 /// Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type
7411 /// are redirected to the disk.csi.azure.com CSI driver.
7412 /// +optional
7413 #[prost(message, optional, tag = "22")]
7414 pub azure_disk: ::core::option::Option<AzureDiskVolumeSource>,
7415 /// photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine.
7416 /// Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported.
7417 #[prost(message, optional, tag = "23")]
7418 pub photon_persistent_disk: ::core::option::Option<PhotonPersistentDiskVolumeSource>,
7419 /// projected items for all in one resources secrets, configmaps, and downward API
7420 #[prost(message, optional, tag = "26")]
7421 pub projected: ::core::option::Option<ProjectedVolumeSource>,
7422 /// portworxVolume represents a portworx volume attached and mounted on kubelets host machine.
7423 /// Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type
7424 /// are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate
7425 /// is on.
7426 /// +optional
7427 #[prost(message, optional, tag = "24")]
7428 pub portworx_volume: ::core::option::Option<PortworxVolumeSource>,
7429 /// scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
7430 /// Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported.
7431 /// +optional
7432 #[prost(message, optional, tag = "25")]
7433 pub scale_io: ::core::option::Option<ScaleIoVolumeSource>,
7434 /// storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.
7435 /// Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported.
7436 /// +optional
7437 #[prost(message, optional, tag = "27")]
7438 pub storageos: ::core::option::Option<StorageOsVolumeSource>,
7439 /// csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers.
7440 /// +optional
7441 #[prost(message, optional, tag = "28")]
7442 pub csi: ::core::option::Option<CSIVolumeSource>,
7443 /// ephemeral represents a volume that is handled by a cluster storage driver.
7444 /// The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts,
7445 /// and deleted when the pod is removed.
7446 ///
7447 /// Use this if:
7448 /// a) the volume is only needed while the pod runs,
7449 /// b) features of normal volumes like restoring from snapshot or capacity
7450 /// tracking are needed,
7451 /// c) the storage driver is specified through a storage class, and
7452 /// d) the storage driver supports dynamic volume provisioning through
7453 /// a PersistentVolumeClaim (see EphemeralVolumeSource for more
7454 /// information on the connection between this volume type
7455 /// and PersistentVolumeClaim).
7456 ///
7457 /// Use PersistentVolumeClaim or one of the vendor-specific
7458 /// APIs for volumes that persist for longer than the lifecycle
7459 /// of an individual pod.
7460 ///
7461 /// Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to
7462 /// be used that way - see the documentation of the driver for
7463 /// more information.
7464 ///
7465 /// A pod can use both types of ephemeral volumes and
7466 /// persistent volumes at the same time.
7467 ///
7468 /// +optional
7469 #[prost(message, optional, tag = "29")]
7470 pub ephemeral: ::core::option::Option<EphemeralVolumeSource>,
7471 /// image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine.
7472 /// The volume is resolved at pod startup depending on which PullPolicy value is provided:
7473 ///
7474 /// - Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails.
7475 /// - 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.
7476 /// - 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.
7477 ///
7478 /// The volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation.
7479 /// 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.
7480 /// 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.
7481 /// 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.
7482 /// The volume will be mounted read-only (ro) and non-executable files (noexec).
7483 /// Sub path mounts for containers are not supported (spec.containers\[*\].volumeMounts.subpath) before 1.33.
7484 /// The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type.
7485 /// +featureGate=ImageVolume
7486 /// +optional
7487 #[prost(message, optional, tag = "30")]
7488 pub image: ::core::option::Option<ImageVolumeSource>,
7489}
7490/// Represents a vSphere volume resource.
7491#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
7492pub struct VsphereVirtualDiskVolumeSource {
7493 /// volumePath is the path that identifies vSphere volume vmdk
7494 #[prost(string, optional, tag = "1")]
7495 pub volume_path: ::core::option::Option<::prost::alloc::string::String>,
7496 /// fsType is filesystem type to mount.
7497 /// Must be a filesystem type supported by the host operating system.
7498 /// Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
7499 /// +optional
7500 #[prost(string, optional, tag = "2")]
7501 pub fs_type: ::core::option::Option<::prost::alloc::string::String>,
7502 /// storagePolicyName is the storage Policy Based Management (SPBM) profile name.
7503 /// +optional
7504 #[prost(string, optional, tag = "3")]
7505 pub storage_policy_name: ::core::option::Option<::prost::alloc::string::String>,
7506 /// storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
7507 /// +optional
7508 #[prost(string, optional, tag = "4")]
7509 pub storage_policy_id: ::core::option::Option<::prost::alloc::string::String>,
7510}
7511/// The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)
7512#[derive(Clone, PartialEq, ::prost::Message)]
7513pub struct WeightedPodAffinityTerm {
7514 /// weight associated with matching the corresponding podAffinityTerm,
7515 /// in the range 1-100.
7516 #[prost(int32, optional, tag = "1")]
7517 pub weight: ::core::option::Option<i32>,
7518 /// Required. A pod affinity term, associated with the corresponding weight.
7519 #[prost(message, optional, tag = "2")]
7520 pub pod_affinity_term: ::core::option::Option<PodAffinityTerm>,
7521}
7522/// WindowsSecurityContextOptions contain Windows-specific options and credentials.
7523#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
7524pub struct WindowsSecurityContextOptions {
7525 /// GMSACredentialSpecName is the name of the GMSA credential spec to use.
7526 /// +optional
7527 #[prost(string, optional, tag = "1")]
7528 pub gmsa_credential_spec_name: ::core::option::Option<::prost::alloc::string::String>,
7529 /// GMSACredentialSpec is where the GMSA admission webhook
7530 /// (<https://github.com/kubernetes-sigs/windows-gmsa>) inlines the contents of the
7531 /// GMSA credential spec named by the GMSACredentialSpecName field.
7532 /// +optional
7533 #[prost(string, optional, tag = "2")]
7534 pub gmsa_credential_spec: ::core::option::Option<::prost::alloc::string::String>,
7535 /// The UserName in Windows to run the entrypoint of the container process.
7536 /// Defaults to the user specified in image metadata if unspecified.
7537 /// May also be set in PodSecurityContext. If set in both SecurityContext and
7538 /// PodSecurityContext, the value specified in SecurityContext takes precedence.
7539 /// +optional
7540 #[prost(string, optional, tag = "3")]
7541 pub run_as_user_name: ::core::option::Option<::prost::alloc::string::String>,
7542 /// HostProcess determines if a container should be run as a 'Host Process' container.
7543 /// All of a Pod's containers must have the same effective HostProcess value
7544 /// (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).
7545 /// In addition, if HostProcess is true then HostNetwork must also be set to true.
7546 /// +optional
7547 #[prost(bool, optional, tag = "4")]
7548 pub host_process: ::core::option::Option<bool>,
7549}
7550/// WorkloadReference identifies the Workload object and PodGroup membership
7551/// that a Pod belongs to. The scheduler uses this information to apply
7552/// workload-aware scheduling semantics.
7553#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
7554pub struct WorkloadReference {
7555 /// Name defines the name of the Workload object this Pod belongs to.
7556 /// Workload must be in the same namespace as the Pod.
7557 /// If it doesn't match any existing Workload, the Pod will remain unschedulable
7558 /// until a Workload object is created and observed by the kube-scheduler.
7559 /// It must be a DNS subdomain.
7560 ///
7561 /// +required
7562 #[prost(string, optional, tag = "1")]
7563 pub name: ::core::option::Option<::prost::alloc::string::String>,
7564 /// PodGroup is the name of the PodGroup within the Workload that this Pod
7565 /// belongs to. If it doesn't match any existing PodGroup within the Workload,
7566 /// the Pod will remain unschedulable until the Workload object is recreated
7567 /// and observed by the kube-scheduler. It must be a DNS label.
7568 ///
7569 /// +required
7570 #[prost(string, optional, tag = "2")]
7571 pub pod_group: ::core::option::Option<::prost::alloc::string::String>,
7572 /// PodGroupReplicaKey specifies the replica key of the PodGroup to which this
7573 /// Pod belongs. It is used to distinguish pods belonging to different replicas
7574 /// of the same pod group. The pod group policy is applied separately to each replica.
7575 /// When set, it must be a DNS label.
7576 ///
7577 /// +optional
7578 #[prost(string, optional, tag = "3")]
7579 pub pod_group_replica_key: ::core::option::Option<::prost::alloc::string::String>,
7580}
7581
7582impl crate::Resource for Binding {
7583 const API_VERSION: &'static str = "v1";
7584 const GROUP: &'static str = "";
7585 const VERSION: &'static str = "v1";
7586 const KIND: &'static str = "Binding";
7587 const URL_PATH_SEGMENT: &'static str = "bindings";
7588 type Scope = crate::NamespaceResourceScope;
7589}
7590impl crate::Metadata for Binding {
7591 type Ty = crate::apimachinery::pkg::apis::meta::v1::ObjectMeta;
7592 fn metadata(&self) -> Option<&<Self as crate::Metadata>::Ty> {
7593 self.metadata.as_ref()
7594 }
7595 fn metadata_mut(&mut self) -> Option<&mut <Self as crate::Metadata>::Ty> {
7596 self.metadata.as_mut()
7597 }
7598}
7599
7600impl crate::Resource for ComponentStatus {
7601 const API_VERSION: &'static str = "v1";
7602 const GROUP: &'static str = "";
7603 const VERSION: &'static str = "v1";
7604 const KIND: &'static str = "ComponentStatus";
7605 const URL_PATH_SEGMENT: &'static str = "componentstatuses";
7606 type Scope = crate::ClusterResourceScope;
7607}
7608impl crate::Metadata for ComponentStatus {
7609 type Ty = crate::apimachinery::pkg::apis::meta::v1::ObjectMeta;
7610 fn metadata(&self) -> Option<&<Self as crate::Metadata>::Ty> {
7611 self.metadata.as_ref()
7612 }
7613 fn metadata_mut(&mut self) -> Option<&mut <Self as crate::Metadata>::Ty> {
7614 self.metadata.as_mut()
7615 }
7616}
7617
7618impl crate::Resource for ConfigMap {
7619 const API_VERSION: &'static str = "v1";
7620 const GROUP: &'static str = "";
7621 const VERSION: &'static str = "v1";
7622 const KIND: &'static str = "ConfigMap";
7623 const URL_PATH_SEGMENT: &'static str = "configmaps";
7624 type Scope = crate::NamespaceResourceScope;
7625}
7626impl crate::Metadata for ConfigMap {
7627 type Ty = crate::apimachinery::pkg::apis::meta::v1::ObjectMeta;
7628 fn metadata(&self) -> Option<&<Self as crate::Metadata>::Ty> {
7629 self.metadata.as_ref()
7630 }
7631 fn metadata_mut(&mut self) -> Option<&mut <Self as crate::Metadata>::Ty> {
7632 self.metadata.as_mut()
7633 }
7634}
7635
7636impl crate::Resource for Endpoints {
7637 const API_VERSION: &'static str = "v1";
7638 const GROUP: &'static str = "";
7639 const VERSION: &'static str = "v1";
7640 const KIND: &'static str = "Endpoints";
7641 const URL_PATH_SEGMENT: &'static str = "endpoints";
7642 type Scope = crate::NamespaceResourceScope;
7643}
7644impl crate::Metadata for Endpoints {
7645 type Ty = crate::apimachinery::pkg::apis::meta::v1::ObjectMeta;
7646 fn metadata(&self) -> Option<&<Self as crate::Metadata>::Ty> {
7647 self.metadata.as_ref()
7648 }
7649 fn metadata_mut(&mut self) -> Option<&mut <Self as crate::Metadata>::Ty> {
7650 self.metadata.as_mut()
7651 }
7652}
7653
7654impl crate::Resource for Event {
7655 const API_VERSION: &'static str = "v1";
7656 const GROUP: &'static str = "";
7657 const VERSION: &'static str = "v1";
7658 const KIND: &'static str = "Event";
7659 const URL_PATH_SEGMENT: &'static str = "events";
7660 type Scope = crate::NamespaceResourceScope;
7661}
7662impl crate::Metadata for Event {
7663 type Ty = crate::apimachinery::pkg::apis::meta::v1::ObjectMeta;
7664 fn metadata(&self) -> Option<&<Self as crate::Metadata>::Ty> {
7665 self.metadata.as_ref()
7666 }
7667 fn metadata_mut(&mut self) -> Option<&mut <Self as crate::Metadata>::Ty> {
7668 self.metadata.as_mut()
7669 }
7670}
7671
7672impl crate::Resource for LimitRange {
7673 const API_VERSION: &'static str = "v1";
7674 const GROUP: &'static str = "";
7675 const VERSION: &'static str = "v1";
7676 const KIND: &'static str = "LimitRange";
7677 const URL_PATH_SEGMENT: &'static str = "limitranges";
7678 type Scope = crate::NamespaceResourceScope;
7679}
7680impl crate::Metadata for LimitRange {
7681 type Ty = crate::apimachinery::pkg::apis::meta::v1::ObjectMeta;
7682 fn metadata(&self) -> Option<&<Self as crate::Metadata>::Ty> {
7683 self.metadata.as_ref()
7684 }
7685 fn metadata_mut(&mut self) -> Option<&mut <Self as crate::Metadata>::Ty> {
7686 self.metadata.as_mut()
7687 }
7688}
7689impl crate::HasSpec for LimitRange {
7690 type Spec = crate::api::core::v1::LimitRangeSpec;
7691 fn spec(&self) -> Option<&<Self as crate::HasSpec>::Spec> {
7692 self.spec.as_ref()
7693 }
7694 fn spec_mut(&mut self) -> Option<&mut <Self as crate::HasSpec>::Spec> {
7695 self.spec.as_mut()
7696 }
7697}
7698
7699impl crate::Resource for Namespace {
7700 const API_VERSION: &'static str = "v1";
7701 const GROUP: &'static str = "";
7702 const VERSION: &'static str = "v1";
7703 const KIND: &'static str = "Namespace";
7704 const URL_PATH_SEGMENT: &'static str = "namespaces";
7705 type Scope = crate::ClusterResourceScope;
7706}
7707impl crate::Metadata for Namespace {
7708 type Ty = crate::apimachinery::pkg::apis::meta::v1::ObjectMeta;
7709 fn metadata(&self) -> Option<&<Self as crate::Metadata>::Ty> {
7710 self.metadata.as_ref()
7711 }
7712 fn metadata_mut(&mut self) -> Option<&mut <Self as crate::Metadata>::Ty> {
7713 self.metadata.as_mut()
7714 }
7715}
7716impl crate::HasSpec for Namespace {
7717 type Spec = crate::api::core::v1::NamespaceSpec;
7718 fn spec(&self) -> Option<&<Self as crate::HasSpec>::Spec> {
7719 self.spec.as_ref()
7720 }
7721 fn spec_mut(&mut self) -> Option<&mut <Self as crate::HasSpec>::Spec> {
7722 self.spec.as_mut()
7723 }
7724}
7725impl crate::HasStatus for Namespace {
7726 type Status = crate::api::core::v1::NamespaceStatus;
7727 fn status(&self) -> Option<&<Self as crate::HasStatus>::Status> {
7728 self.status.as_ref()
7729 }
7730 fn status_mut(&mut self) -> Option<&mut <Self as crate::HasStatus>::Status> {
7731 self.status.as_mut()
7732 }
7733}
7734impl crate::HasConditions for Namespace {
7735 type Condition = crate::api::core::v1::NamespaceCondition;
7736 fn conditions(&self) -> Option<&[<Self as crate::HasConditions>::Condition]> {
7737 self.status.as_ref().map(|s| s.conditions.as_slice())
7738 }
7739 fn conditions_mut(&mut self) -> Option<&mut Vec<<Self as crate::HasConditions>::Condition>> {
7740 self.status.as_mut().and_then(|s| Some(s.conditions.as_mut()))
7741 }
7742}
7743
7744impl crate::Resource for Node {
7745 const API_VERSION: &'static str = "v1";
7746 const GROUP: &'static str = "";
7747 const VERSION: &'static str = "v1";
7748 const KIND: &'static str = "Node";
7749 const URL_PATH_SEGMENT: &'static str = "nodes";
7750 type Scope = crate::ClusterResourceScope;
7751}
7752impl crate::Metadata for Node {
7753 type Ty = crate::apimachinery::pkg::apis::meta::v1::ObjectMeta;
7754 fn metadata(&self) -> Option<&<Self as crate::Metadata>::Ty> {
7755 self.metadata.as_ref()
7756 }
7757 fn metadata_mut(&mut self) -> Option<&mut <Self as crate::Metadata>::Ty> {
7758 self.metadata.as_mut()
7759 }
7760}
7761impl crate::HasSpec for Node {
7762 type Spec = crate::api::core::v1::NodeSpec;
7763 fn spec(&self) -> Option<&<Self as crate::HasSpec>::Spec> {
7764 self.spec.as_ref()
7765 }
7766 fn spec_mut(&mut self) -> Option<&mut <Self as crate::HasSpec>::Spec> {
7767 self.spec.as_mut()
7768 }
7769}
7770impl crate::HasStatus for Node {
7771 type Status = crate::api::core::v1::NodeStatus;
7772 fn status(&self) -> Option<&<Self as crate::HasStatus>::Status> {
7773 self.status.as_ref()
7774 }
7775 fn status_mut(&mut self) -> Option<&mut <Self as crate::HasStatus>::Status> {
7776 self.status.as_mut()
7777 }
7778}
7779impl crate::HasConditions for Node {
7780 type Condition = crate::api::core::v1::NodeCondition;
7781 fn conditions(&self) -> Option<&[<Self as crate::HasConditions>::Condition]> {
7782 self.status.as_ref().map(|s| s.conditions.as_slice())
7783 }
7784 fn conditions_mut(&mut self) -> Option<&mut Vec<<Self as crate::HasConditions>::Condition>> {
7785 self.status.as_mut().and_then(|s| Some(s.conditions.as_mut()))
7786 }
7787}
7788
7789impl crate::Resource for PersistentVolume {
7790 const API_VERSION: &'static str = "v1";
7791 const GROUP: &'static str = "";
7792 const VERSION: &'static str = "v1";
7793 const KIND: &'static str = "PersistentVolume";
7794 const URL_PATH_SEGMENT: &'static str = "persistentvolumes";
7795 type Scope = crate::ClusterResourceScope;
7796}
7797impl crate::Metadata for PersistentVolume {
7798 type Ty = crate::apimachinery::pkg::apis::meta::v1::ObjectMeta;
7799 fn metadata(&self) -> Option<&<Self as crate::Metadata>::Ty> {
7800 self.metadata.as_ref()
7801 }
7802 fn metadata_mut(&mut self) -> Option<&mut <Self as crate::Metadata>::Ty> {
7803 self.metadata.as_mut()
7804 }
7805}
7806impl crate::HasSpec for PersistentVolume {
7807 type Spec = crate::api::core::v1::PersistentVolumeSpec;
7808 fn spec(&self) -> Option<&<Self as crate::HasSpec>::Spec> {
7809 self.spec.as_ref()
7810 }
7811 fn spec_mut(&mut self) -> Option<&mut <Self as crate::HasSpec>::Spec> {
7812 self.spec.as_mut()
7813 }
7814}
7815impl crate::HasStatus for PersistentVolume {
7816 type Status = crate::api::core::v1::PersistentVolumeStatus;
7817 fn status(&self) -> Option<&<Self as crate::HasStatus>::Status> {
7818 self.status.as_ref()
7819 }
7820 fn status_mut(&mut self) -> Option<&mut <Self as crate::HasStatus>::Status> {
7821 self.status.as_mut()
7822 }
7823}
7824
7825impl crate::Resource for PersistentVolumeClaim {
7826 const API_VERSION: &'static str = "v1";
7827 const GROUP: &'static str = "";
7828 const VERSION: &'static str = "v1";
7829 const KIND: &'static str = "PersistentVolumeClaim";
7830 const URL_PATH_SEGMENT: &'static str = "persistentvolumeclaims";
7831 type Scope = crate::NamespaceResourceScope;
7832}
7833impl crate::Metadata for PersistentVolumeClaim {
7834 type Ty = crate::apimachinery::pkg::apis::meta::v1::ObjectMeta;
7835 fn metadata(&self) -> Option<&<Self as crate::Metadata>::Ty> {
7836 self.metadata.as_ref()
7837 }
7838 fn metadata_mut(&mut self) -> Option<&mut <Self as crate::Metadata>::Ty> {
7839 self.metadata.as_mut()
7840 }
7841}
7842impl crate::HasSpec for PersistentVolumeClaim {
7843 type Spec = crate::api::core::v1::PersistentVolumeClaimSpec;
7844 fn spec(&self) -> Option<&<Self as crate::HasSpec>::Spec> {
7845 self.spec.as_ref()
7846 }
7847 fn spec_mut(&mut self) -> Option<&mut <Self as crate::HasSpec>::Spec> {
7848 self.spec.as_mut()
7849 }
7850}
7851impl crate::HasStatus for PersistentVolumeClaim {
7852 type Status = crate::api::core::v1::PersistentVolumeClaimStatus;
7853 fn status(&self) -> Option<&<Self as crate::HasStatus>::Status> {
7854 self.status.as_ref()
7855 }
7856 fn status_mut(&mut self) -> Option<&mut <Self as crate::HasStatus>::Status> {
7857 self.status.as_mut()
7858 }
7859}
7860impl crate::HasConditions for PersistentVolumeClaim {
7861 type Condition = crate::api::core::v1::PersistentVolumeClaimCondition;
7862 fn conditions(&self) -> Option<&[<Self as crate::HasConditions>::Condition]> {
7863 self.status.as_ref().map(|s| s.conditions.as_slice())
7864 }
7865 fn conditions_mut(&mut self) -> Option<&mut Vec<<Self as crate::HasConditions>::Condition>> {
7866 self.status.as_mut().and_then(|s| Some(s.conditions.as_mut()))
7867 }
7868}
7869
7870impl crate::Resource for Pod {
7871 const API_VERSION: &'static str = "v1";
7872 const GROUP: &'static str = "";
7873 const VERSION: &'static str = "v1";
7874 const KIND: &'static str = "Pod";
7875 const URL_PATH_SEGMENT: &'static str = "pods";
7876 type Scope = crate::NamespaceResourceScope;
7877}
7878impl crate::Metadata for Pod {
7879 type Ty = crate::apimachinery::pkg::apis::meta::v1::ObjectMeta;
7880 fn metadata(&self) -> Option<&<Self as crate::Metadata>::Ty> {
7881 self.metadata.as_ref()
7882 }
7883 fn metadata_mut(&mut self) -> Option<&mut <Self as crate::Metadata>::Ty> {
7884 self.metadata.as_mut()
7885 }
7886}
7887impl crate::HasSpec for Pod {
7888 type Spec = crate::api::core::v1::PodSpec;
7889 fn spec(&self) -> Option<&<Self as crate::HasSpec>::Spec> {
7890 self.spec.as_ref()
7891 }
7892 fn spec_mut(&mut self) -> Option<&mut <Self as crate::HasSpec>::Spec> {
7893 self.spec.as_mut()
7894 }
7895}
7896impl crate::HasStatus for Pod {
7897 type Status = crate::api::core::v1::PodStatus;
7898 fn status(&self) -> Option<&<Self as crate::HasStatus>::Status> {
7899 self.status.as_ref()
7900 }
7901 fn status_mut(&mut self) -> Option<&mut <Self as crate::HasStatus>::Status> {
7902 self.status.as_mut()
7903 }
7904}
7905impl crate::HasConditions for Pod {
7906 type Condition = crate::api::core::v1::PodCondition;
7907 fn conditions(&self) -> Option<&[<Self as crate::HasConditions>::Condition]> {
7908 self.status.as_ref().map(|s| s.conditions.as_slice())
7909 }
7910 fn conditions_mut(&mut self) -> Option<&mut Vec<<Self as crate::HasConditions>::Condition>> {
7911 self.status.as_mut().and_then(|s| Some(s.conditions.as_mut()))
7912 }
7913}
7914
7915impl crate::Resource for PodTemplate {
7916 const API_VERSION: &'static str = "v1";
7917 const GROUP: &'static str = "";
7918 const VERSION: &'static str = "v1";
7919 const KIND: &'static str = "PodTemplate";
7920 const URL_PATH_SEGMENT: &'static str = "podtemplates";
7921 type Scope = crate::NamespaceResourceScope;
7922}
7923impl crate::Metadata for PodTemplate {
7924 type Ty = crate::apimachinery::pkg::apis::meta::v1::ObjectMeta;
7925 fn metadata(&self) -> Option<&<Self as crate::Metadata>::Ty> {
7926 self.metadata.as_ref()
7927 }
7928 fn metadata_mut(&mut self) -> Option<&mut <Self as crate::Metadata>::Ty> {
7929 self.metadata.as_mut()
7930 }
7931}
7932
7933impl crate::Resource for ReplicationController {
7934 const API_VERSION: &'static str = "v1";
7935 const GROUP: &'static str = "";
7936 const VERSION: &'static str = "v1";
7937 const KIND: &'static str = "ReplicationController";
7938 const URL_PATH_SEGMENT: &'static str = "replicationcontrollers";
7939 type Scope = crate::NamespaceResourceScope;
7940}
7941impl crate::Metadata for ReplicationController {
7942 type Ty = crate::apimachinery::pkg::apis::meta::v1::ObjectMeta;
7943 fn metadata(&self) -> Option<&<Self as crate::Metadata>::Ty> {
7944 self.metadata.as_ref()
7945 }
7946 fn metadata_mut(&mut self) -> Option<&mut <Self as crate::Metadata>::Ty> {
7947 self.metadata.as_mut()
7948 }
7949}
7950impl crate::HasSpec for ReplicationController {
7951 type Spec = crate::api::core::v1::ReplicationControllerSpec;
7952 fn spec(&self) -> Option<&<Self as crate::HasSpec>::Spec> {
7953 self.spec.as_ref()
7954 }
7955 fn spec_mut(&mut self) -> Option<&mut <Self as crate::HasSpec>::Spec> {
7956 self.spec.as_mut()
7957 }
7958}
7959impl crate::HasStatus for ReplicationController {
7960 type Status = crate::api::core::v1::ReplicationControllerStatus;
7961 fn status(&self) -> Option<&<Self as crate::HasStatus>::Status> {
7962 self.status.as_ref()
7963 }
7964 fn status_mut(&mut self) -> Option<&mut <Self as crate::HasStatus>::Status> {
7965 self.status.as_mut()
7966 }
7967}
7968impl crate::HasConditions for ReplicationController {
7969 type Condition = crate::api::core::v1::ReplicationControllerCondition;
7970 fn conditions(&self) -> Option<&[<Self as crate::HasConditions>::Condition]> {
7971 self.status.as_ref().map(|s| s.conditions.as_slice())
7972 }
7973 fn conditions_mut(&mut self) -> Option<&mut Vec<<Self as crate::HasConditions>::Condition>> {
7974 self.status.as_mut().and_then(|s| Some(s.conditions.as_mut()))
7975 }
7976}
7977
7978impl crate::Resource for ResourceQuota {
7979 const API_VERSION: &'static str = "v1";
7980 const GROUP: &'static str = "";
7981 const VERSION: &'static str = "v1";
7982 const KIND: &'static str = "ResourceQuota";
7983 const URL_PATH_SEGMENT: &'static str = "resourcequotas";
7984 type Scope = crate::NamespaceResourceScope;
7985}
7986impl crate::Metadata for ResourceQuota {
7987 type Ty = crate::apimachinery::pkg::apis::meta::v1::ObjectMeta;
7988 fn metadata(&self) -> Option<&<Self as crate::Metadata>::Ty> {
7989 self.metadata.as_ref()
7990 }
7991 fn metadata_mut(&mut self) -> Option<&mut <Self as crate::Metadata>::Ty> {
7992 self.metadata.as_mut()
7993 }
7994}
7995impl crate::HasSpec for ResourceQuota {
7996 type Spec = crate::api::core::v1::ResourceQuotaSpec;
7997 fn spec(&self) -> Option<&<Self as crate::HasSpec>::Spec> {
7998 self.spec.as_ref()
7999 }
8000 fn spec_mut(&mut self) -> Option<&mut <Self as crate::HasSpec>::Spec> {
8001 self.spec.as_mut()
8002 }
8003}
8004impl crate::HasStatus for ResourceQuota {
8005 type Status = crate::api::core::v1::ResourceQuotaStatus;
8006 fn status(&self) -> Option<&<Self as crate::HasStatus>::Status> {
8007 self.status.as_ref()
8008 }
8009 fn status_mut(&mut self) -> Option<&mut <Self as crate::HasStatus>::Status> {
8010 self.status.as_mut()
8011 }
8012}
8013
8014impl crate::Resource for Secret {
8015 const API_VERSION: &'static str = "v1";
8016 const GROUP: &'static str = "";
8017 const VERSION: &'static str = "v1";
8018 const KIND: &'static str = "Secret";
8019 const URL_PATH_SEGMENT: &'static str = "secrets";
8020 type Scope = crate::NamespaceResourceScope;
8021}
8022impl crate::Metadata for Secret {
8023 type Ty = crate::apimachinery::pkg::apis::meta::v1::ObjectMeta;
8024 fn metadata(&self) -> Option<&<Self as crate::Metadata>::Ty> {
8025 self.metadata.as_ref()
8026 }
8027 fn metadata_mut(&mut self) -> Option<&mut <Self as crate::Metadata>::Ty> {
8028 self.metadata.as_mut()
8029 }
8030}
8031
8032impl crate::Resource for Service {
8033 const API_VERSION: &'static str = "v1";
8034 const GROUP: &'static str = "";
8035 const VERSION: &'static str = "v1";
8036 const KIND: &'static str = "Service";
8037 const URL_PATH_SEGMENT: &'static str = "services";
8038 type Scope = crate::NamespaceResourceScope;
8039}
8040impl crate::Metadata for Service {
8041 type Ty = crate::apimachinery::pkg::apis::meta::v1::ObjectMeta;
8042 fn metadata(&self) -> Option<&<Self as crate::Metadata>::Ty> {
8043 self.metadata.as_ref()
8044 }
8045 fn metadata_mut(&mut self) -> Option<&mut <Self as crate::Metadata>::Ty> {
8046 self.metadata.as_mut()
8047 }
8048}
8049impl crate::HasSpec for Service {
8050 type Spec = crate::api::core::v1::ServiceSpec;
8051 fn spec(&self) -> Option<&<Self as crate::HasSpec>::Spec> {
8052 self.spec.as_ref()
8053 }
8054 fn spec_mut(&mut self) -> Option<&mut <Self as crate::HasSpec>::Spec> {
8055 self.spec.as_mut()
8056 }
8057}
8058impl crate::HasStatus for Service {
8059 type Status = crate::api::core::v1::ServiceStatus;
8060 fn status(&self) -> Option<&<Self as crate::HasStatus>::Status> {
8061 self.status.as_ref()
8062 }
8063 fn status_mut(&mut self) -> Option<&mut <Self as crate::HasStatus>::Status> {
8064 self.status.as_mut()
8065 }
8066}
8067impl crate::HasConditions for Service {
8068 type Condition = crate::apimachinery::pkg::apis::meta::v1::Condition;
8069 fn conditions(&self) -> Option<&[<Self as crate::HasConditions>::Condition]> {
8070 self.status.as_ref().map(|s| s.conditions.as_slice())
8071 }
8072 fn conditions_mut(&mut self) -> Option<&mut Vec<<Self as crate::HasConditions>::Condition>> {
8073 self.status.as_mut().and_then(|s| Some(s.conditions.as_mut()))
8074 }
8075}
8076
8077impl crate::Resource for ServiceAccount {
8078 const API_VERSION: &'static str = "v1";
8079 const GROUP: &'static str = "";
8080 const VERSION: &'static str = "v1";
8081 const KIND: &'static str = "ServiceAccount";
8082 const URL_PATH_SEGMENT: &'static str = "serviceaccounts";
8083 type Scope = crate::NamespaceResourceScope;
8084}
8085impl crate::Metadata for ServiceAccount {
8086 type Ty = crate::apimachinery::pkg::apis::meta::v1::ObjectMeta;
8087 fn metadata(&self) -> Option<&<Self as crate::Metadata>::Ty> {
8088 self.metadata.as_ref()
8089 }
8090 fn metadata_mut(&mut self) -> Option<&mut <Self as crate::Metadata>::Ty> {
8091 self.metadata.as_mut()
8092 }
8093}