Skip to main content

cert_manager_crds/
lib.rs

1// Generated by:
2// target/debug/k8s-crds-codegen
3
4pub mod acme_cert_manager_io {
5    pub mod v1 {
6        pub mod challenge {
7            /// Challenge is a type to represent a Challenge request with an ACME server
8            #[derive(serde::Deserialize, Debug, PartialEq)]
9            pub struct Challenge {
10                pub metadata: k8s_openapi::apimachinery::pkg::apis::meta::v1::ObjectMeta,
11                pub spec: Spec,
12                pub status: Status,
13            }
14
15            impl k8s_openapi::Resource for Challenge {
16                type Scope = k8s_openapi::ClusterResourceScope;
17
18                const API_VERSION: &'static str = "acme.cert-manager.io/v1";
19                const GROUP: &'static str = "acme.cert-manager.io";
20                const KIND: &'static str = "Challenge";
21                const VERSION: &'static str = "v1";
22                const URL_PATH_SEGMENT: &'static str = "";
23            }
24
25            impl k8s_openapi::Metadata for Challenge {
26                type Ty = k8s_openapi::apimachinery::pkg::apis::meta::v1::ObjectMeta;
27
28                fn metadata(&self) -> &<Self as k8s_openapi::Metadata>::Ty {
29                    &self.metadata
30                }
31
32                fn metadata_mut(&mut self) -> &mut <Self as k8s_openapi::Metadata>::Ty {
33                    &mut self.metadata
34                }
35            }
36
37            impl serde::Serialize for Challenge {
38                fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
39                where
40                    S: serde::Serializer,
41                {
42                    use serde::ser::SerializeStruct;
43                    let mut state = serializer.serialize_struct("Challenge", 5)?;
44                    state.serialize_field(
45                        "apiVersion",
46                        <Self as k8s_openapi::Resource>::API_VERSION,
47                    )?;
48                    state.serialize_field("kind", <Self as k8s_openapi::Resource>::KIND)?;
49                    state.serialize_field("metadata", &self.metadata)?;
50                    state.serialize_field("spec", &self.spec)?;
51                    state.serialize_field("status", &self.status)?;
52                    state.end()
53                }
54            }
55
56            /// A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field.
57            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
58            #[serde(rename_all = "camelCase")]
59            pub struct AccessTokenSecretRef {
60                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
61                pub key: String,
62                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
63                pub name: String,
64            }
65
66            /// A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field.
67            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
68            #[serde(rename_all = "camelCase")]
69            pub struct AccountSecretRef {
70                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
71                pub key: String,
72                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
73                pub name: String,
74            }
75
76            /// Use the 'ACME DNS' (https://github.com/joohoi/acme-dns) API to manage DNS01 challenge records.
77            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
78            #[serde(rename_all = "camelCase")]
79            pub struct AcmeDNS {
80                /// A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field.
81                pub account_secret_ref: AccountSecretRef,
82                pub host: String,
83            }
84
85            /// If specified, the pod's scheduling constraints
86            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
87            #[serde(rename_all = "camelCase")]
88            pub struct Affinity {
89                /// Describes node affinity scheduling rules for the pod.
90                pub node_affinity: NodeAffinity,
91                /// Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
92                pub pod_affinity: PodAffinity,
93                /// Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
94                pub pod_anti_affinity: PodAntiAffinity,
95            }
96
97            /// Use the Akamai DNS zone management API to manage DNS01 challenge records.
98            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
99            #[serde(rename_all = "camelCase")]
100            pub struct Akamai {
101                /// A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field.
102                pub access_token_secret_ref: AccessTokenSecretRef,
103                /// A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field.
104                pub client_secret_secret_ref: AkamaiClientSecretSecretRef,
105                /// A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field.
106                pub client_token_secret_ref: ClientTokenSecretRef,
107                pub service_consumer_domain: String,
108            }
109
110            /// Annotations that should be added to the created ACME HTTP01 solver ingress.
111            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
112            #[serde(rename_all = "camelCase")]
113            pub struct IngressTemplateMetadataAnnotations {
114                /// Annotations that should be added to the created ACME HTTP01 solver ingress.
115                pub properties: std::collections::HashMap<String, String>,
116            }
117
118            /// Annotations that should be added to the create ACME HTTP01 solver pods.
119            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
120            #[serde(rename_all = "camelCase")]
121            pub struct PodTemplateMetadataAnnotations {
122                /// Annotations that should be added to the create ACME HTTP01 solver pods.
123                pub properties: std::collections::HashMap<String, String>,
124            }
125
126            /// API key to use to authenticate with Cloudflare. Note: using an API token to authenticate is now the recommended method as it allows greater control of permissions.
127            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
128            #[serde(rename_all = "camelCase")]
129            pub struct ApiKeySecretRef {
130                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
131                pub key: String,
132                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
133                pub name: String,
134            }
135
136            /// API token used to authenticate with Cloudflare.
137            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
138            #[serde(rename_all = "camelCase")]
139            pub struct ApiTokenSecretRef {
140                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
141                pub key: String,
142                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
143                pub name: String,
144            }
145
146            /// Use the Microsoft Azure DNS API to manage DNS01 challenge records.
147            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
148            #[serde(rename_all = "camelCase")]
149            pub struct AzureDNS {
150                /// if both this and ClientSecret are left unset MSI will be used
151                pub client_i_d: String,
152                /// if both this and ClientID are left unset MSI will be used
153                pub client_secret_secret_ref: AzureDNSClientSecretSecretRef,
154                /// name of the Azure environment (default AzurePublicCloud)
155                pub environment: String,
156                /// name of the DNS zone that should be used
157                pub hosted_zone_name: String,
158                /// managed identity configuration, can not be used at the same time as clientID, clientSecretSecretRef or tenantID
159                pub managed_identity: ManagedIdentity,
160                /// resource group the DNS zone is located in
161                pub resource_group_name: String,
162                /// ID of the Azure subscription
163                pub subscription_i_d: String,
164                /// when specifying ClientID and ClientSecret then this field is also needed
165                pub tenant_i_d: String,
166            }
167
168            /// A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field.
169            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
170            #[serde(rename_all = "camelCase")]
171            pub struct AkamaiClientSecretSecretRef {
172                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
173                pub key: String,
174                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
175                pub name: String,
176            }
177
178            /// if both this and ClientID are left unset MSI will be used
179            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
180            #[serde(rename_all = "camelCase")]
181            pub struct AzureDNSClientSecretSecretRef {
182                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
183                pub key: String,
184                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
185                pub name: String,
186            }
187
188            /// A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field.
189            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
190            #[serde(rename_all = "camelCase")]
191            pub struct ClientTokenSecretRef {
192                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
193                pub key: String,
194                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
195                pub name: String,
196            }
197
198            /// Use the Google Cloud DNS API to manage DNS01 challenge records.
199            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
200            #[serde(rename_all = "camelCase")]
201            pub struct CloudDNS {
202                /// HostedZoneName is an optional field that tells cert-manager in which Cloud DNS zone the challenge record has to be created. If left empty cert-manager will automatically choose a zone.
203                pub hosted_zone_name: String,
204                pub project: String,
205                /// A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field.
206                pub service_account_secret_ref: ServiceAccountSecretRef,
207            }
208
209            /// Use the Cloudflare API to manage DNS01 challenge records.
210            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
211            #[serde(rename_all = "camelCase")]
212            pub struct Cloudflare {
213                /// API key to use to authenticate with Cloudflare. Note: using an API token to authenticate is now the recommended method as it allows greater control of permissions.
214                pub api_key_secret_ref: ApiKeySecretRef,
215                /// API token used to authenticate with Cloudflare.
216                pub api_token_secret_ref: ApiTokenSecretRef,
217                /// Email of the account, only required when using API key based authentication.
218                pub email: String,
219            }
220
221            /// Use the DigitalOcean DNS API to manage DNS01 challenge records.
222            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
223            #[serde(rename_all = "camelCase")]
224            pub struct Digitalocean {
225                /// A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field.
226                pub token_secret_ref: TokenSecretRef,
227            }
228
229            /// Configures cert-manager to attempt to complete authorizations by performing the DNS01 challenge flow.
230            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
231            #[serde(rename_all = "camelCase")]
232            pub struct Dns01 {
233                /// Use the 'ACME DNS' (https://github.com/joohoi/acme-dns) API to manage DNS01 challenge records.
234                pub acme_d_n_s: AcmeDNS,
235                /// Use the Akamai DNS zone management API to manage DNS01 challenge records.
236                pub akamai: Akamai,
237                /// Use the Microsoft Azure DNS API to manage DNS01 challenge records.
238                pub azure_d_n_s: AzureDNS,
239                /// Use the Google Cloud DNS API to manage DNS01 challenge records.
240                pub cloud_d_n_s: CloudDNS,
241                /// Use the Cloudflare API to manage DNS01 challenge records.
242                pub cloudflare: Cloudflare,
243                /// CNAMEStrategy configures how the DNS01 provider should handle CNAME records when found in DNS zones.
244                pub cname_strategy: String,
245                /// Use the DigitalOcean DNS API to manage DNS01 challenge records.
246                pub digitalocean: Digitalocean,
247                /// Use RFC2136 ("Dynamic Updates in the Domain Name System") (https://datatracker.ietf.org/doc/rfc2136/) to manage DNS01 challenge records.
248                pub rfc2136: Rfc2136,
249                /// Use the AWS Route53 API to manage DNS01 challenge records.
250                pub route53: Route53,
251                /// Configure an external webhook based DNS01 challenge solver to manage DNS01 challenge records.
252                pub webhook: Webhook,
253            }
254
255            /// The Gateway API is a sig-network community API that models service networking in Kubernetes (https://gateway-api.sigs.k8s.io/). The Gateway solver will create HTTPRoutes with the specified labels in the same namespace as the challenge. This solver is experimental, and fields / behaviour may change in the future.
256            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
257            #[serde(rename_all = "camelCase")]
258            pub struct GatewayHTTPRoute {
259                /// Custom labels that will be applied to HTTPRoutes created by cert-manager while solving HTTP-01 challenges.
260                pub labels: GatewayHTTPRouteLabels,
261                /// When solving an HTTP-01 challenge, cert-manager creates an HTTPRoute. cert-manager needs to know which parentRefs should be used when creating the HTTPRoute. Usually, the parentRef references a Gateway. See: https://gateway-api.sigs.k8s.io/v1alpha2/api-types/httproute/#attaching-to-gateways
262                pub parent_refs: Vec<ParentRefsItem>,
263                /// Optional service type for Kubernetes solver service. Supported values are NodePort or ClusterIP. If unset, defaults to NodePort.
264                pub service_type: String,
265            }
266
267            /// Configures cert-manager to attempt to complete authorizations by performing the HTTP01 challenge flow. It is not possible to obtain certificates for wildcard domain names (e.g. `*.example.com`) using the HTTP01 challenge mechanism.
268            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
269            #[serde(rename_all = "camelCase")]
270            pub struct Http01 {
271                /// The Gateway API is a sig-network community API that models service networking in Kubernetes (https://gateway-api.sigs.k8s.io/). The Gateway solver will create HTTPRoutes with the specified labels in the same namespace as the challenge. This solver is experimental, and fields / behaviour may change in the future.
272                pub gateway_h_t_t_p_route: GatewayHTTPRoute,
273                /// The ingress based HTTP01 challenge solver will solve challenges by creating or modifying Ingress resources in order to route requests for '/.well-known/acme-challenge/XYZ' to 'challenge solver' pods that are provisioned by cert-manager for each Challenge to be completed.
274                pub ingress: Ingress,
275            }
276
277            /// The ingress based HTTP01 challenge solver will solve challenges by creating or modifying Ingress resources in order to route requests for '/.well-known/acme-challenge/XYZ' to 'challenge solver' pods that are provisioned by cert-manager for each Challenge to be completed.
278            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
279            #[serde(rename_all = "camelCase")]
280            pub struct Ingress {
281                /// The ingress class to use when creating Ingress resources to solve ACME challenges that use this challenge solver. Only one of 'class' or 'name' may be specified.
282                pub class: String,
283                /// Optional ingress template used to configure the ACME challenge solver ingress used for HTTP01 challenges.
284                pub ingress_template: IngressTemplate,
285                /// The name of the ingress resource that should have ACME challenge solving routes inserted into it in order to solve HTTP01 challenges. This is typically used in conjunction with ingress controllers like ingress-gce, which maintains a 1:1 mapping between external IPs and ingress resources.
286                pub name: String,
287                /// Optional pod template used to configure the ACME challenge solver pods used for HTTP01 challenges.
288                pub pod_template: PodTemplate,
289                /// Optional service type for Kubernetes solver service. Supported values are NodePort or ClusterIP. If unset, defaults to NodePort.
290                pub service_type: String,
291            }
292
293            /// Optional ingress template used to configure the ACME challenge solver ingress used for HTTP01 challenges.
294            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
295            #[serde(rename_all = "camelCase")]
296            pub struct IngressTemplate {
297                /// ObjectMeta overrides for the ingress used to solve HTTP01 challenges. Only the 'labels' and 'annotations' fields may be set. If labels or annotations overlap with in-built values, the values here will override the in-built values.
298                pub metadata: IngressTemplateMetadata,
299            }
300
301            /// References a properly configured ACME-type Issuer which should be used to create this Challenge. If the Issuer does not exist, processing will be retried. If the Issuer is not an 'ACME' Issuer, an error will be returned and the Challenge will be marked as failed.
302            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
303            #[serde(rename_all = "camelCase")]
304            pub struct IssuerRef {
305                /// Group of the resource being referred to.
306                pub group: String,
307                /// Kind of the resource being referred to.
308                pub kind: String,
309                /// Name of the resource being referred to.
310                pub name: String,
311            }
312
313            /// A label query over a set of resources, in this case pods.
314            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
315            #[serde(rename_all = "camelCase")]
316            pub struct PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermLabelSelector {
317            /// matchExpressions is a list of label selector requirements. The requirements are ANDed.
318            pub match_expressions: Vec<PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermLabelSelectorMatchExpressionsItem>,
319            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
320            pub match_labels: PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermLabelSelectorMatchLabels,
321        }
322
323            /// A label query over a set of resources, in this case pods.
324            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
325            #[serde(rename_all = "camelCase")]
326            pub struct PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemLabelSelector {
327            /// matchExpressions is a list of label selector requirements. The requirements are ANDed.
328            pub match_expressions: Vec<PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemLabelSelectorMatchExpressionsItem>,
329            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
330            pub match_labels: PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemLabelSelectorMatchLabels,
331        }
332
333            /// A label query over a set of resources, in this case pods.
334            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
335            #[serde(rename_all = "camelCase")]
336            pub struct PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermLabelSelector {
337            /// matchExpressions is a list of label selector requirements. The requirements are ANDed.
338            pub match_expressions: Vec<PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermLabelSelectorMatchExpressionsItem>,
339            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
340            pub match_labels: PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermLabelSelectorMatchLabels,
341        }
342
343            /// A label query over a set of resources, in this case pods.
344            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
345            #[serde(rename_all = "camelCase")]
346            pub struct PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemLabelSelector {
347            /// matchExpressions is a list of label selector requirements. The requirements are ANDed.
348            pub match_expressions: Vec<PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemLabelSelectorMatchExpressionsItem>,
349            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
350            pub match_labels: PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemLabelSelectorMatchLabels,
351        }
352
353            /// Custom labels that will be applied to HTTPRoutes created by cert-manager while solving HTTP-01 challenges.
354            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
355            #[serde(rename_all = "camelCase")]
356            pub struct GatewayHTTPRouteLabels {
357                /// Custom labels that will be applied to HTTPRoutes created by cert-manager while solving HTTP-01 challenges.
358                pub properties: std::collections::HashMap<String, String>,
359            }
360
361            /// Labels that should be added to the created ACME HTTP01 solver ingress.
362            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
363            #[serde(rename_all = "camelCase")]
364            pub struct IngressTemplateMetadataLabels {
365                /// Labels that should be added to the created ACME HTTP01 solver ingress.
366                pub properties: std::collections::HashMap<String, String>,
367            }
368
369            /// Labels that should be added to the created ACME HTTP01 solver pods.
370            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
371            #[serde(rename_all = "camelCase")]
372            pub struct PodTemplateMetadataLabels {
373                /// Labels that should be added to the created ACME HTTP01 solver pods.
374                pub properties: std::collections::HashMap<String, String>,
375            }
376
377            /// managed identity configuration, can not be used at the same time as clientID, clientSecretSecretRef or tenantID
378            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
379            #[serde(rename_all = "camelCase")]
380            pub struct ManagedIdentity {
381                /// client ID of the managed identity, can not be used at the same time as resourceID
382                pub client_i_d: String,
383                /// resource ID of the managed identity, can not be used at the same time as clientID
384                pub resource_i_d: String,
385            }
386
387            /// A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
388            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
389            #[serde(rename_all = "camelCase")]
390            pub struct PreferenceMatchExpressionsItem {
391                /// The label key that the selector applies to.
392                pub key: String,
393                /// Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
394                pub operator: String,
395                /// An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
396                pub values: Vec<String>,
397            }
398
399            /// A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
400            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
401            #[serde(rename_all = "camelCase")]
402            pub struct NodeSelectorTermsItemMatchExpressionsItem {
403                /// The label key that the selector applies to.
404                pub key: String,
405                /// Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
406                pub operator: String,
407                /// An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
408                pub values: Vec<String>,
409            }
410
411            /// A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
412            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
413            #[serde(rename_all = "camelCase")]
414            pub struct PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermLabelSelectorMatchExpressionsItem
415            {
416                /// key is the label key that the selector applies to.
417                pub key: String,
418                /// operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
419                pub operator: String,
420                /// values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
421                pub values: Vec<String>,
422            }
423
424            /// A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
425            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
426            #[serde(rename_all = "camelCase")]
427            pub struct PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermNamespaceSelectorMatchExpressionsItem
428            {
429                /// key is the label key that the selector applies to.
430                pub key: String,
431                /// operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
432                pub operator: String,
433                /// values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
434                pub values: Vec<String>,
435            }
436
437            /// A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
438            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
439            #[serde(rename_all = "camelCase")]
440            pub struct PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemLabelSelectorMatchExpressionsItem
441            {
442                /// key is the label key that the selector applies to.
443                pub key: String,
444                /// operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
445                pub operator: String,
446                /// values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
447                pub values: Vec<String>,
448            }
449
450            /// A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
451            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
452            #[serde(rename_all = "camelCase")]
453            pub struct PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemNamespaceSelectorMatchExpressionsItem
454            {
455                /// key is the label key that the selector applies to.
456                pub key: String,
457                /// operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
458                pub operator: String,
459                /// values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
460                pub values: Vec<String>,
461            }
462
463            /// A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
464            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
465            #[serde(rename_all = "camelCase")]
466            pub struct PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermLabelSelectorMatchExpressionsItem
467            {
468                /// key is the label key that the selector applies to.
469                pub key: String,
470                /// operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
471                pub operator: String,
472                /// values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
473                pub values: Vec<String>,
474            }
475
476            /// A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
477            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
478            #[serde(rename_all = "camelCase")]
479            pub struct PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermNamespaceSelectorMatchExpressionsItem
480            {
481                /// key is the label key that the selector applies to.
482                pub key: String,
483                /// operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
484                pub operator: String,
485                /// values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
486                pub values: Vec<String>,
487            }
488
489            /// A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
490            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
491            #[serde(rename_all = "camelCase")]
492            pub struct PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemLabelSelectorMatchExpressionsItem
493            {
494                /// key is the label key that the selector applies to.
495                pub key: String,
496                /// operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
497                pub operator: String,
498                /// values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
499                pub values: Vec<String>,
500            }
501
502            /// A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
503            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
504            #[serde(rename_all = "camelCase")]
505            pub struct PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemNamespaceSelectorMatchExpressionsItem
506            {
507                /// key is the label key that the selector applies to.
508                pub key: String,
509                /// operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
510                pub operator: String,
511                /// values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
512                pub values: Vec<String>,
513            }
514
515            /// A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
516            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
517            #[serde(rename_all = "camelCase")]
518            pub struct PreferenceMatchFieldsItem {
519                /// The label key that the selector applies to.
520                pub key: String,
521                /// Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
522                pub operator: String,
523                /// An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
524                pub values: Vec<String>,
525            }
526
527            /// A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
528            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
529            #[serde(rename_all = "camelCase")]
530            pub struct NodeSelectorTermsItemMatchFieldsItem {
531                /// The label key that the selector applies to.
532                pub key: String,
533                /// Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
534                pub operator: String,
535                /// An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
536                pub values: Vec<String>,
537            }
538
539            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
540            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
541            #[serde(rename_all = "camelCase")]
542            pub struct PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermLabelSelectorMatchLabels
543            {
544                /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
545                pub properties: std::collections::HashMap<String, String>,
546            }
547
548            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
549            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
550            #[serde(rename_all = "camelCase")]
551            pub struct PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermNamespaceSelectorMatchLabels
552            {
553                /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
554                pub properties: std::collections::HashMap<String, String>,
555            }
556
557            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
558            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
559            #[serde(rename_all = "camelCase")]
560            pub struct PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemLabelSelectorMatchLabels {
561                /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
562                pub properties: std::collections::HashMap<String, String>,
563            }
564
565            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
566            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
567            #[serde(rename_all = "camelCase")]
568            pub struct PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemNamespaceSelectorMatchLabels
569            {
570                /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
571                pub properties: std::collections::HashMap<String, String>,
572            }
573
574            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
575            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
576            #[serde(rename_all = "camelCase")]
577            pub struct PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermLabelSelectorMatchLabels
578            {
579                /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
580                pub properties: std::collections::HashMap<String, String>,
581            }
582
583            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
584            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
585            #[serde(rename_all = "camelCase")]
586            pub struct PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermNamespaceSelectorMatchLabels
587            {
588                /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
589                pub properties: std::collections::HashMap<String, String>,
590            }
591
592            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
593            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
594            #[serde(rename_all = "camelCase")]
595            pub struct PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemLabelSelectorMatchLabels
596            {
597                /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
598                pub properties: std::collections::HashMap<String, String>,
599            }
600
601            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
602            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
603            #[serde(rename_all = "camelCase")]
604            pub struct PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemNamespaceSelectorMatchLabels
605            {
606                /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
607                pub properties: std::collections::HashMap<String, String>,
608            }
609
610            /// A label selector that is used to refine the set of certificate's that this challenge solver will apply to.
611            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
612            #[serde(rename_all = "camelCase")]
613            pub struct SelectorMatchLabels {
614                /// A label selector that is used to refine the set of certificate's that this challenge solver will apply to.
615                pub properties: std::collections::HashMap<String, String>,
616            }
617
618            /// ObjectMeta overrides for the ingress used to solve HTTP01 challenges. Only the 'labels' and 'annotations' fields may be set. If labels or annotations overlap with in-built values, the values here will override the in-built values.
619            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
620            #[serde(rename_all = "camelCase")]
621            pub struct IngressTemplateMetadata {
622                /// Annotations that should be added to the created ACME HTTP01 solver ingress.
623                pub annotations: IngressTemplateMetadataAnnotations,
624                /// Labels that should be added to the created ACME HTTP01 solver ingress.
625                pub labels: IngressTemplateMetadataLabels,
626            }
627
628            /// ObjectMeta overrides for the pod used to solve HTTP01 challenges. Only the 'labels' and 'annotations' fields may be set. If labels or annotations overlap with in-built values, the values here will override the in-built values.
629            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
630            #[serde(rename_all = "camelCase")]
631            pub struct PodTemplateMetadata {
632                /// Annotations that should be added to the create ACME HTTP01 solver pods.
633                pub annotations: PodTemplateMetadataAnnotations,
634                /// Labels that should be added to the created ACME HTTP01 solver pods.
635                pub labels: PodTemplateMetadataLabels,
636            }
637
638            /// A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
639            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
640            #[serde(rename_all = "camelCase")]
641            pub struct PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermNamespaceSelector {
642            /// matchExpressions is a list of label selector requirements. The requirements are ANDed.
643            pub match_expressions: Vec<PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermNamespaceSelectorMatchExpressionsItem>,
644            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
645            pub match_labels: PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermNamespaceSelectorMatchLabels,
646        }
647
648            /// A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
649            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
650            #[serde(rename_all = "camelCase")]
651            pub struct PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemNamespaceSelector {
652            /// matchExpressions is a list of label selector requirements. The requirements are ANDed.
653            pub match_expressions: Vec<PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemNamespaceSelectorMatchExpressionsItem>,
654            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
655            pub match_labels: PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemNamespaceSelectorMatchLabels,
656        }
657
658            /// A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
659            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
660            #[serde(rename_all = "camelCase")]
661            pub struct PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermNamespaceSelector {
662            /// matchExpressions is a list of label selector requirements. The requirements are ANDed.
663            pub match_expressions: Vec<PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermNamespaceSelectorMatchExpressionsItem>,
664            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
665            pub match_labels: PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermNamespaceSelectorMatchLabels,
666        }
667
668            /// A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
669            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
670            #[serde(rename_all = "camelCase")]
671            pub struct PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemNamespaceSelector {
672            /// matchExpressions is a list of label selector requirements. The requirements are ANDed.
673            pub match_expressions: Vec<PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemNamespaceSelectorMatchExpressionsItem>,
674            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
675            pub match_labels: PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemNamespaceSelectorMatchLabels,
676        }
677
678            /// Describes node affinity scheduling rules for the pod.
679            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
680            #[serde(rename_all = "camelCase")]
681            pub struct NodeAffinity {
682                /// The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.
683                pub preferred_during_scheduling_ignored_during_execution:
684                    Vec<NodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionItem>,
685                /// If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.
686                pub required_during_scheduling_ignored_during_execution:
687                    RequiredDuringSchedulingIgnoredDuringExecution,
688            }
689
690            /// NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
691            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
692            #[serde(rename_all = "camelCase")]
693            pub struct NodeSelector {
694                /// NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
695                pub properties: std::collections::HashMap<String, String>,
696            }
697
698            /// A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.
699            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
700            #[serde(rename_all = "camelCase")]
701            pub struct NodeSelectorTermsItem {
702                /// A list of node selector requirements by node's labels.
703                pub match_expressions: Vec<NodeSelectorTermsItemMatchExpressionsItem>,
704                /// A list of node selector requirements by node's fields.
705                pub match_fields: Vec<NodeSelectorTermsItemMatchFieldsItem>,
706            }
707
708            /// ParentRef identifies an API object (usually a Gateway) that can be considered a parent of this resource (usually a route). The only kind of parent resource with "Core" support is Gateway. This API may be extended in the future to support additional kinds of parent resources, such as HTTPRoute.
709            ///  The API object must be valid in the cluster; the Group and Kind must be registered in the cluster for this reference to be valid.
710            ///  References to objects with invalid Group and Kind are not valid, and must be rejected by the implementation, with appropriate Conditions set on the containing object.
711            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
712            #[serde(rename_all = "camelCase")]
713            pub struct ParentRefsItem {
714                /// Group is the group of the referent.
715                ///  Support: Core
716                pub group: String,
717                /// Kind is kind of the referent.
718                ///  Support: Core (Gateway) Support: Custom (Other Resources)
719                pub kind: String,
720                /// Name is the name of the referent.
721                ///  Support: Core
722                pub name: String,
723                /// Namespace is the namespace of the referent. When unspecified (or empty string), this refers to the local namespace of the Route.
724                ///  Support: Core
725                pub namespace: String,
726                /// SectionName is the name of a section within the target resource. In the following resources, SectionName is interpreted as the following:
727                ///  * Gateway: Listener Name
728                ///  Implementations MAY choose to support attaching Routes to other resources. If that is the case, they MUST clearly document how SectionName is interpreted.
729                ///  When unspecified (empty string), this will reference the entire resource. For the purpose of status, an attachment is considered successful if at least one section in the parent resource accepts it. For example, Gateway listeners can restrict which Routes can attach to them by Route kind, namespace, or hostname. If 1 of 2 Gateway listeners accept attachment from the referencing Route, the Route MUST be considered successfully attached. If no Gateway listeners accept attachment from this Route, the Route MUST be considered detached from the Gateway.
730                ///  Support: Core
731                pub section_name: String,
732            }
733
734            /// Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
735            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
736            #[serde(rename_all = "camelCase")]
737            pub struct PodAffinity {
738                /// The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.
739                pub preferred_during_scheduling_ignored_during_execution:
740                    Vec<PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItem>,
741                /// If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.
742                pub required_during_scheduling_ignored_during_execution:
743                    Vec<PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItem>,
744            }
745
746            /// Required. A pod affinity term, associated with the corresponding weight.
747            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
748            #[serde(rename_all = "camelCase")]
749            pub struct PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTerm {
750            /// A label query over a set of resources, in this case pods.
751            pub label_selector: PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermLabelSelector,
752            /// A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
753            pub namespace_selector: PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermNamespaceSelector,
754            /// namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace"
755            pub namespaces: Vec<String>,
756            /// This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.
757            pub topology_key: String,
758        }
759
760            /// Required. A pod affinity term, associated with the corresponding weight.
761            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
762            #[serde(rename_all = "camelCase")]
763            pub struct PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTerm {
764            /// A label query over a set of resources, in this case pods.
765            pub label_selector: PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermLabelSelector,
766            /// A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
767            pub namespace_selector: PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermNamespaceSelector,
768            /// namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace"
769            pub namespaces: Vec<String>,
770            /// This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.
771            pub topology_key: String,
772        }
773
774            /// Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
775            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
776            #[serde(rename_all = "camelCase")]
777            pub struct PodAntiAffinity {
778                /// The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.
779                pub preferred_during_scheduling_ignored_during_execution:
780                    Vec<PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItem>,
781                /// If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.
782                pub required_during_scheduling_ignored_during_execution:
783                    Vec<PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItem>,
784            }
785
786            /// Optional pod template used to configure the ACME challenge solver pods used for HTTP01 challenges.
787            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
788            #[serde(rename_all = "camelCase")]
789            pub struct PodTemplate {
790                /// ObjectMeta overrides for the pod used to solve HTTP01 challenges. Only the 'labels' and 'annotations' fields may be set. If labels or annotations overlap with in-built values, the values here will override the in-built values.
791                pub metadata: PodTemplateMetadata,
792                /// PodSpec defines overrides for the HTTP01 challenge solver pod. Only the 'priorityClassName', 'nodeSelector', 'affinity', 'serviceAccountName' and 'tolerations' fields are supported currently. All other fields will be ignored.
793                pub spec: PodTemplateSpec,
794            }
795
796            /// A node selector term, associated with the corresponding weight.
797            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
798            #[serde(rename_all = "camelCase")]
799            pub struct Preference {
800                /// A list of node selector requirements by node's labels.
801                pub match_expressions: Vec<PreferenceMatchExpressionsItem>,
802                /// A list of node selector requirements by node's fields.
803                pub match_fields: Vec<PreferenceMatchFieldsItem>,
804            }
805
806            /// An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).
807            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
808            #[serde(rename_all = "camelCase")]
809            pub struct NodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionItem {
810                /// A node selector term, associated with the corresponding weight.
811                pub preference: Preference,
812                /// Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.
813                pub weight: i32,
814            }
815
816            /// The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)
817            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
818            #[serde(rename_all = "camelCase")]
819            pub struct PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItem {
820                /// Required. A pod affinity term, associated with the corresponding weight.
821                pub pod_affinity_term:
822                    PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTerm,
823                /// weight associated with matching the corresponding podAffinityTerm, in the range 1-100.
824                pub weight: i32,
825            }
826
827            /// The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)
828            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
829            #[serde(rename_all = "camelCase")]
830            pub struct PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItem {
831            /// Required. A pod affinity term, associated with the corresponding weight.
832            pub pod_affinity_term: PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTerm,
833            /// weight associated with matching the corresponding podAffinityTerm, in the range 1-100.
834            pub weight: i32,
835        }
836
837            /// If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.
838            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
839            #[serde(rename_all = "camelCase")]
840            pub struct RequiredDuringSchedulingIgnoredDuringExecution {
841                /// Required. A list of node selector terms. The terms are ORed.
842                pub node_selector_terms: Vec<NodeSelectorTermsItem>,
843            }
844
845            /// Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running
846            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
847            #[serde(rename_all = "camelCase")]
848            pub struct PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItem {
849                /// A label query over a set of resources, in this case pods.
850                pub label_selector:
851                    PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemLabelSelector,
852                /// A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
853                pub namespace_selector:
854                    PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemNamespaceSelector,
855                /// namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace"
856                pub namespaces: Vec<String>,
857                /// This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.
858                pub topology_key: String,
859            }
860
861            /// Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running
862            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
863            #[serde(rename_all = "camelCase")]
864            pub struct PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItem {
865            /// A label query over a set of resources, in this case pods.
866            pub label_selector: PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemLabelSelector,
867            /// A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
868            pub namespace_selector: PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemNamespaceSelector,
869            /// namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace"
870            pub namespaces: Vec<String>,
871            /// This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.
872            pub topology_key: String,
873        }
874
875            /// Use RFC2136 ("Dynamic Updates in the Domain Name System") (https://datatracker.ietf.org/doc/rfc2136/) to manage DNS01 challenge records.
876            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
877            #[serde(rename_all = "camelCase")]
878            pub struct Rfc2136 {
879                /// The IP address or hostname of an authoritative DNS server supporting RFC2136 in the form host:port. If the host is an IPv6 address it must be enclosed in square brackets (e.g [2001:db8::1]) ; port is optional. This field is required.
880                pub nameserver: String,
881                /// The TSIG Algorithm configured in the DNS supporting RFC2136. Used only when ``tsigSecretSecretRef`` and ``tsigKeyName`` are defined. Supported values are (case-insensitive): ``HMACMD5`` (default), ``HMACSHA1``, ``HMACSHA256`` or ``HMACSHA512``.
882                pub tsig_algorithm: String,
883                /// The TSIG Key name configured in the DNS. If ``tsigSecretSecretRef`` is defined, this field is required.
884                pub tsig_key_name: String,
885                /// The name of the secret containing the TSIG value. If ``tsigKeyName`` is defined, this field is required.
886                pub tsig_secret_secret_ref: TsigSecretSecretRef,
887            }
888
889            /// Use the AWS Route53 API to manage DNS01 challenge records.
890            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
891            #[serde(rename_all = "camelCase")]
892            pub struct Route53 {
893                /// The AccessKeyID is used for authentication. If not set we fall-back to using env vars, shared credentials file or AWS Instance metadata see: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials
894                pub access_key_i_d: String,
895                /// If set, the provider will manage only this zone in Route53 and will not do an lookup using the route53:ListHostedZonesByName api call.
896                pub hosted_zone_i_d: String,
897                /// Always set the region when using AccessKeyID and SecretAccessKey
898                pub region: String,
899                /// Role is a Role ARN which the Route53 provider will assume using either the explicit credentials AccessKeyID/SecretAccessKey or the inferred credentials from environment variables, shared credentials file or AWS Instance metadata
900                pub role: String,
901                /// The SecretAccessKey is used for authentication. If not set we fall-back to using env vars, shared credentials file or AWS Instance metadata https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials
902                pub secret_access_key_secret_ref: SecretAccessKeySecretRef,
903            }
904
905            /// The SecretAccessKey is used for authentication. If not set we fall-back to using env vars, shared credentials file or AWS Instance metadata https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials
906            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
907            #[serde(rename_all = "camelCase")]
908            pub struct SecretAccessKeySecretRef {
909                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
910                pub key: String,
911                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
912                pub name: String,
913            }
914
915            /// Selector selects a set of DNSNames on the Certificate resource that should be solved using this challenge solver. If not specified, the solver will be treated as the 'default' solver with the lowest priority, i.e. if any other solver has a more specific match, it will be used instead.
916            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
917            #[serde(rename_all = "camelCase")]
918            pub struct Selector {
919                /// List of DNSNames that this solver will be used to solve. If specified and a match is found, a dnsNames selector will take precedence over a dnsZones selector. If multiple solvers match with the same dnsNames value, the solver with the most matching labels in matchLabels will be selected. If neither has more matches, the solver defined earlier in the list will be selected.
920                pub dns_names: Vec<String>,
921                /// List of DNSZones that this solver will be used to solve. The most specific DNS zone match specified here will take precedence over other DNS zone matches, so a solver specifying sys.example.com will be selected over one specifying example.com for the domain www.sys.example.com. If multiple solvers match with the same dnsZones value, the solver with the most matching labels in matchLabels will be selected. If neither has more matches, the solver defined earlier in the list will be selected.
922                pub dns_zones: Vec<String>,
923                /// A label selector that is used to refine the set of certificate's that this challenge solver will apply to.
924                pub match_labels: SelectorMatchLabels,
925            }
926
927            /// A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field.
928            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
929            #[serde(rename_all = "camelCase")]
930            pub struct ServiceAccountSecretRef {
931                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
932                pub key: String,
933                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
934                pub name: String,
935            }
936
937            /// Contains the domain solving configuration that should be used to solve this challenge resource.
938            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
939            #[serde(rename_all = "camelCase")]
940            pub struct Solver {
941                /// Configures cert-manager to attempt to complete authorizations by performing the DNS01 challenge flow.
942                pub dns01: Dns01,
943                /// Configures cert-manager to attempt to complete authorizations by performing the HTTP01 challenge flow. It is not possible to obtain certificates for wildcard domain names (e.g. `*.example.com`) using the HTTP01 challenge mechanism.
944                pub http01: Http01,
945                /// Selector selects a set of DNSNames on the Certificate resource that should be solved using this challenge solver. If not specified, the solver will be treated as the 'default' solver with the lowest priority, i.e. if any other solver has a more specific match, it will be used instead.
946                pub selector: Selector,
947            }
948
949            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
950            #[serde(rename_all = "camelCase")]
951            pub struct Spec {
952                /// The URL to the ACME Authorization resource that this challenge is a part of.
953                pub authorization_u_r_l: String,
954                /// dnsName is the identifier that this challenge is for, e.g. example.com. If the requested DNSName is a 'wildcard', this field MUST be set to the non-wildcard domain, e.g. for `*.example.com`, it must be `example.com`.
955                pub dns_name: String,
956                /// References a properly configured ACME-type Issuer which should be used to create this Challenge. If the Issuer does not exist, processing will be retried. If the Issuer is not an 'ACME' Issuer, an error will be returned and the Challenge will be marked as failed.
957                pub issuer_ref: IssuerRef,
958                /// The ACME challenge key for this challenge For HTTP01 challenges, this is the value that must be responded with to complete the HTTP01 challenge in the format: `<private key JWK thumbprint>.<key from acme server for challenge>`. For DNS01 challenges, this is the base64 encoded SHA256 sum of the `<private key JWK thumbprint>.<key from acme server for challenge>` text that must be set as the TXT record content.
959                pub key: String,
960                /// Contains the domain solving configuration that should be used to solve this challenge resource.
961                pub solver: Solver,
962                /// The ACME challenge token for this challenge. This is the raw value returned from the ACME server.
963                pub token: String,
964                /// The type of ACME challenge this resource represents. One of "HTTP-01" or "DNS-01".
965                pub r#type: String,
966                /// The URL of the ACME Challenge resource for this challenge. This can be used to lookup details about the status of this challenge.
967                pub url: String,
968                /// wildcard will be true if this challenge is for a wildcard identifier, for example '*.example.com'.
969                pub wildcard: bool,
970            }
971
972            /// PodSpec defines overrides for the HTTP01 challenge solver pod. Only the 'priorityClassName', 'nodeSelector', 'affinity', 'serviceAccountName' and 'tolerations' fields are supported currently. All other fields will be ignored.
973            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
974            #[serde(rename_all = "camelCase")]
975            pub struct PodTemplateSpec {
976                /// If specified, the pod's scheduling constraints
977                pub affinity: Affinity,
978                /// NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
979                pub node_selector: NodeSelector,
980                /// If specified, the pod's priorityClassName.
981                pub priority_class_name: String,
982                /// If specified, the pod's service account
983                pub service_account_name: String,
984                /// If specified, the pod's tolerations.
985                pub tolerations: Vec<TolerationsItem>,
986            }
987
988            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
989            #[serde(rename_all = "camelCase")]
990            pub struct Status {
991                /// presented will be set to true if the challenge values for this challenge are currently 'presented'. This *does not* imply the self check is passing. Only that the values have been 'submitted' for the appropriate challenge mechanism (i.e. the DNS01 TXT record has been presented, or the HTTP01 configuration has been configured).
992                pub presented: bool,
993                /// Used to denote whether this challenge should be processed or not. This field will only be set to true by the 'scheduling' component. It will only be set to false by the 'challenges' controller, after the challenge has reached a final state or timed out. If this field is set to false, the challenge controller will not take any more action.
994                pub processing: bool,
995                /// Contains human readable information on why the Challenge is in the current state.
996                pub reason: String,
997                /// Contains the current 'state' of the challenge. If not set, the state of the challenge is unknown.
998                pub state: String,
999            }
1000
1001            /// A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field.
1002            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1003            #[serde(rename_all = "camelCase")]
1004            pub struct TokenSecretRef {
1005                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
1006                pub key: String,
1007                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
1008                pub name: String,
1009            }
1010
1011            /// The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.
1012            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1013            #[serde(rename_all = "camelCase")]
1014            pub struct TolerationsItem {
1015                /// Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
1016                pub effect: String,
1017                /// Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.
1018                pub key: String,
1019                /// Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.
1020                pub operator: String,
1021                /// TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.
1022                pub toleration_seconds: i64,
1023                /// Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.
1024                pub value: String,
1025            }
1026
1027            /// The name of the secret containing the TSIG value. If ``tsigKeyName`` is defined, this field is required.
1028            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1029            #[serde(rename_all = "camelCase")]
1030            pub struct TsigSecretSecretRef {
1031                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
1032                pub key: String,
1033                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
1034                pub name: String,
1035            }
1036
1037            /// Configure an external webhook based DNS01 challenge solver to manage DNS01 challenge records.
1038            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1039            #[serde(rename_all = "camelCase")]
1040            pub struct Webhook {
1041                /// Additional configuration that should be passed to the webhook apiserver when challenges are processed. This can contain arbitrary JSON data. Secret values should not be specified in this stanza. If secret values are needed (e.g. credentials for a DNS service), you should use a SecretKeySelector to reference a Secret resource. For details on the schema of this field, consult the webhook provider implementation's documentation.
1042                pub config: serde_json::Map<String, serde_json::Value>,
1043                /// The API group name that should be used when POSTing ChallengePayload resources to the webhook apiserver. This should be the same as the GroupName specified in the webhook provider implementation.
1044                pub group_name: String,
1045                /// The name of the solver to use, as defined in the webhook provider implementation. This will typically be the name of the provider, e.g. 'cloudflare'.
1046                pub solver_name: String,
1047            }
1048        }
1049        pub mod order {
1050            /// Order is a type to represent an Order with an ACME server
1051            #[derive(serde::Deserialize, Debug, PartialEq)]
1052            pub struct Order {
1053                pub metadata: k8s_openapi::apimachinery::pkg::apis::meta::v1::ObjectMeta,
1054                pub spec: Spec,
1055                pub status: Status,
1056            }
1057
1058            impl k8s_openapi::Resource for Order {
1059                type Scope = k8s_openapi::ClusterResourceScope;
1060
1061                const API_VERSION: &'static str = "acme.cert-manager.io/v1";
1062                const GROUP: &'static str = "acme.cert-manager.io";
1063                const KIND: &'static str = "Order";
1064                const VERSION: &'static str = "v1";
1065                const URL_PATH_SEGMENT: &'static str = "";
1066            }
1067
1068            impl k8s_openapi::Metadata for Order {
1069                type Ty = k8s_openapi::apimachinery::pkg::apis::meta::v1::ObjectMeta;
1070
1071                fn metadata(&self) -> &<Self as k8s_openapi::Metadata>::Ty {
1072                    &self.metadata
1073                }
1074
1075                fn metadata_mut(&mut self) -> &mut <Self as k8s_openapi::Metadata>::Ty {
1076                    &mut self.metadata
1077                }
1078            }
1079
1080            impl serde::Serialize for Order {
1081                fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
1082                where
1083                    S: serde::Serializer,
1084                {
1085                    use serde::ser::SerializeStruct;
1086                    let mut state = serializer.serialize_struct("Order", 5)?;
1087                    state.serialize_field(
1088                        "apiVersion",
1089                        <Self as k8s_openapi::Resource>::API_VERSION,
1090                    )?;
1091                    state.serialize_field("kind", <Self as k8s_openapi::Resource>::KIND)?;
1092                    state.serialize_field("metadata", &self.metadata)?;
1093                    state.serialize_field("spec", &self.spec)?;
1094                    state.serialize_field("status", &self.status)?;
1095                    state.end()
1096                }
1097            }
1098
1099            /// ACMEAuthorization contains data returned from the ACME server on an authorization that must be completed in order validate a DNS name on an ACME Order resource.
1100            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1101            #[serde(rename_all = "camelCase")]
1102            pub struct AuthorizationsItem {
1103                /// Challenges specifies the challenge types offered by the ACME server. One of these challenge types will be selected when validating the DNS name and an appropriate Challenge resource will be created to perform the ACME challenge process.
1104                pub challenges: Vec<ChallengesItem>,
1105                /// Identifier is the DNS name to be validated as part of this authorization
1106                pub identifier: String,
1107                /// InitialState is the initial state of the ACME authorization when first fetched from the ACME server. If an Authorization is already 'valid', the Order controller will not create a Challenge resource for the authorization. This will occur when working with an ACME server that enables 'authz reuse' (such as Let's Encrypt's production endpoint). If not set and 'identifier' is set, the state is assumed to be pending and a Challenge will be created.
1108                pub initial_state: String,
1109                /// URL is the URL of the Authorization that must be completed
1110                pub url: String,
1111                /// Wildcard will be true if this authorization is for a wildcard DNS name. If this is true, the identifier will be the *non-wildcard* version of the DNS name. For example, if '*.example.com' is the DNS name being validated, this field will be 'true' and the 'identifier' field will be 'example.com'.
1112                pub wildcard: bool,
1113            }
1114
1115            /// Challenge specifies a challenge offered by the ACME server for an Order. An appropriate Challenge resource can be created to perform the ACME challenge process.
1116            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1117            #[serde(rename_all = "camelCase")]
1118            pub struct ChallengesItem {
1119                /// Token is the token that must be presented for this challenge. This is used to compute the 'key' that must also be presented.
1120                pub token: String,
1121                /// Type is the type of challenge being offered, e.g. 'http-01', 'dns-01', 'tls-sni-01', etc. This is the raw value retrieved from the ACME server. Only 'http-01' and 'dns-01' are supported by cert-manager, other values will be ignored.
1122                pub r#type: String,
1123                /// URL is the URL of this challenge. It can be used to retrieve additional metadata about the Challenge from the ACME server.
1124                pub url: String,
1125            }
1126
1127            /// IssuerRef references a properly configured ACME-type Issuer which should be used to create this Order. If the Issuer does not exist, processing will be retried. If the Issuer is not an 'ACME' Issuer, an error will be returned and the Order will be marked as failed.
1128            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1129            #[serde(rename_all = "camelCase")]
1130            pub struct IssuerRef {
1131                /// Group of the resource being referred to.
1132                pub group: String,
1133                /// Kind of the resource being referred to.
1134                pub kind: String,
1135                /// Name of the resource being referred to.
1136                pub name: String,
1137            }
1138
1139            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1140            #[serde(rename_all = "camelCase")]
1141            pub struct Spec {
1142                /// CommonName is the common name as specified on the DER encoded CSR. If specified, this value must also be present in `dnsNames` or `ipAddresses`. This field must match the corresponding field on the DER encoded CSR.
1143                pub common_name: String,
1144                /// DNSNames is a list of DNS names that should be included as part of the Order validation process. This field must match the corresponding field on the DER encoded CSR.
1145                pub dns_names: Vec<String>,
1146                /// Duration is the duration for the not after date for the requested certificate. this is set on order creation as pe the ACME spec.
1147                pub duration: String,
1148                /// IPAddresses is a list of IP addresses that should be included as part of the Order validation process. This field must match the corresponding field on the DER encoded CSR.
1149                pub ip_addresses: Vec<String>,
1150                /// IssuerRef references a properly configured ACME-type Issuer which should be used to create this Order. If the Issuer does not exist, processing will be retried. If the Issuer is not an 'ACME' Issuer, an error will be returned and the Order will be marked as failed.
1151                pub issuer_ref: IssuerRef,
1152                /// Certificate signing request bytes in DER encoding. This will be used when finalizing the order. This field must be set on the order.
1153                pub request: Vec<u8>,
1154            }
1155
1156            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1157            #[serde(rename_all = "camelCase")]
1158            pub struct Status {
1159                /// Authorizations contains data returned from the ACME server on what authorizations must be completed in order to validate the DNS names specified on the Order.
1160                pub authorizations: Vec<AuthorizationsItem>,
1161                /// Certificate is a copy of the PEM encoded certificate for this Order. This field will be populated after the order has been successfully finalized with the ACME server, and the order has transitioned to the 'valid' state.
1162                pub certificate: Vec<u8>,
1163                /// FailureTime stores the time that this order failed. This is used to influence garbage collection and back-off.
1164                pub failure_time: String,
1165                /// FinalizeURL of the Order. This is used to obtain certificates for this order once it has been completed.
1166                pub finalize_u_r_l: String,
1167                /// Reason optionally provides more information about a why the order is in the current state.
1168                pub reason: String,
1169                /// State contains the current state of this Order resource. States 'success' and 'expired' are 'final'
1170                pub state: String,
1171                /// URL of the Order. This will initially be empty when the resource is first created. The Order controller will populate this field when the Order is first processed. This field will be immutable after it is initially set.
1172                pub url: String,
1173            }
1174        }
1175    }
1176}
1177pub mod cert_manager_io {
1178    pub mod v1 {
1179        pub mod certificate {
1180            /// A Certificate resource should be created to ensure an up to date and signed x509 certificate is stored in the Kubernetes Secret resource named in `spec.secretName`.
1181            ///  The stored certificate will be renewed before it expires (as configured by `spec.renewBefore`).
1182            #[derive(serde::Deserialize, Debug, PartialEq)]
1183            pub struct Certificate {
1184                pub metadata: k8s_openapi::apimachinery::pkg::apis::meta::v1::ObjectMeta,
1185                pub spec: Spec,
1186                pub status: Status,
1187            }
1188
1189            impl k8s_openapi::Resource for Certificate {
1190                type Scope = k8s_openapi::ClusterResourceScope;
1191
1192                const API_VERSION: &'static str = "cert-manager.io/v1";
1193                const GROUP: &'static str = "cert-manager.io";
1194                const KIND: &'static str = "Certificate";
1195                const VERSION: &'static str = "v1";
1196                const URL_PATH_SEGMENT: &'static str = "";
1197            }
1198
1199            impl k8s_openapi::Metadata for Certificate {
1200                type Ty = k8s_openapi::apimachinery::pkg::apis::meta::v1::ObjectMeta;
1201
1202                fn metadata(&self) -> &<Self as k8s_openapi::Metadata>::Ty {
1203                    &self.metadata
1204                }
1205
1206                fn metadata_mut(&mut self) -> &mut <Self as k8s_openapi::Metadata>::Ty {
1207                    &mut self.metadata
1208                }
1209            }
1210
1211            impl serde::Serialize for Certificate {
1212                fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
1213                where
1214                    S: serde::Serializer,
1215                {
1216                    use serde::ser::SerializeStruct;
1217                    let mut state = serializer.serialize_struct("Certificate", 5)?;
1218                    state.serialize_field(
1219                        "apiVersion",
1220                        <Self as k8s_openapi::Resource>::API_VERSION,
1221                    )?;
1222                    state.serialize_field("kind", <Self as k8s_openapi::Resource>::KIND)?;
1223                    state.serialize_field("metadata", &self.metadata)?;
1224                    state.serialize_field("spec", &self.spec)?;
1225                    state.serialize_field("status", &self.status)?;
1226                    state.end()
1227                }
1228            }
1229
1230            /// CertificateAdditionalOutputFormat defines an additional output format of a Certificate resource. These contain supplementary data formats of the signed certificate chain and paired private key.
1231            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1232            #[serde(rename_all = "camelCase")]
1233            pub struct AdditionalOutputFormatsItem {
1234                /// Type is the name of the format type that should be written to the Certificate's target Secret.
1235                pub r#type: String,
1236            }
1237
1238            /// Annotations is a key value map to be copied to the target Kubernetes Secret.
1239            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1240            #[serde(rename_all = "camelCase")]
1241            pub struct Annotations {
1242                /// Annotations is a key value map to be copied to the target Kubernetes Secret.
1243                pub properties: std::collections::HashMap<String, String>,
1244            }
1245
1246            /// CertificateCondition contains condition information for an Certificate.
1247            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1248            #[serde(rename_all = "camelCase")]
1249            pub struct ConditionsItem {
1250                /// LastTransitionTime is the timestamp corresponding to the last status change of this condition.
1251                pub last_transition_time: String,
1252                /// Message is a human readable description of the details of the last transition, complementing reason.
1253                pub message: String,
1254                /// If set, this represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.condition[x].observedGeneration is 9, the condition is out of date with respect to the current state of the Certificate.
1255                pub observed_generation: i64,
1256                /// Reason is a brief machine readable explanation for the condition's last transition.
1257                pub reason: String,
1258                /// Status of the condition, one of (`True`, `False`, `Unknown`).
1259                pub status: String,
1260                /// Type of the condition, known values are (`Ready`, `Issuing`).
1261                pub r#type: String,
1262            }
1263
1264            /// IssuerRef is a reference to the issuer for this certificate. If the `kind` field is not set, or set to `Issuer`, an Issuer resource with the given name in the same namespace as the Certificate will be used. If the `kind` field is set to `ClusterIssuer`, a ClusterIssuer with the provided name will be used. The `name` field in this stanza is required at all times.
1265            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1266            #[serde(rename_all = "camelCase")]
1267            pub struct IssuerRef {
1268                /// Group of the resource being referred to.
1269                pub group: String,
1270                /// Kind of the resource being referred to.
1271                pub kind: String,
1272                /// Name of the resource being referred to.
1273                pub name: String,
1274            }
1275
1276            /// JKS configures options for storing a JKS keystore in the `spec.secretName` Secret resource.
1277            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1278            #[serde(rename_all = "camelCase")]
1279            pub struct Jks {
1280                /// Create enables JKS keystore creation for the Certificate. If true, a file named `keystore.jks` will be created in the target Secret resource, encrypted using the password stored in `passwordSecretRef`. The keystore file will only be updated upon re-issuance. A file named `truststore.jks` will also be created in the target Secret resource, encrypted using the password stored in `passwordSecretRef` containing the issuing Certificate Authority
1281                pub create: bool,
1282                /// PasswordSecretRef is a reference to a key in a Secret resource containing the password used to encrypt the JKS keystore.
1283                pub password_secret_ref: JksPasswordSecretRef,
1284            }
1285
1286            /// Keystores configures additional keystore output formats stored in the `secretName` Secret resource.
1287            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1288            #[serde(rename_all = "camelCase")]
1289            pub struct Keystores {
1290                /// JKS configures options for storing a JKS keystore in the `spec.secretName` Secret resource.
1291                pub jks: Jks,
1292                /// PKCS12 configures options for storing a PKCS12 keystore in the `spec.secretName` Secret resource.
1293                pub pkcs12: Pkcs12,
1294            }
1295
1296            /// Labels is a key value map to be copied to the target Kubernetes Secret.
1297            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1298            #[serde(rename_all = "camelCase")]
1299            pub struct Labels {
1300                /// Labels is a key value map to be copied to the target Kubernetes Secret.
1301                pub properties: std::collections::HashMap<String, String>,
1302            }
1303
1304            /// PasswordSecretRef is a reference to a key in a Secret resource containing the password used to encrypt the JKS keystore.
1305            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1306            #[serde(rename_all = "camelCase")]
1307            pub struct JksPasswordSecretRef {
1308                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
1309                pub key: String,
1310                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
1311                pub name: String,
1312            }
1313
1314            /// PasswordSecretRef is a reference to a key in a Secret resource containing the password used to encrypt the PKCS12 keystore.
1315            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1316            #[serde(rename_all = "camelCase")]
1317            pub struct Pkcs12PasswordSecretRef {
1318                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
1319                pub key: String,
1320                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
1321                pub name: String,
1322            }
1323
1324            /// PKCS12 configures options for storing a PKCS12 keystore in the `spec.secretName` Secret resource.
1325            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1326            #[serde(rename_all = "camelCase")]
1327            pub struct Pkcs12 {
1328                /// Create enables PKCS12 keystore creation for the Certificate. If true, a file named `keystore.p12` will be created in the target Secret resource, encrypted using the password stored in `passwordSecretRef`. The keystore file will only be updated upon re-issuance. A file named `truststore.p12` will also be created in the target Secret resource, encrypted using the password stored in `passwordSecretRef` containing the issuing Certificate Authority
1329                pub create: bool,
1330                /// PasswordSecretRef is a reference to a key in a Secret resource containing the password used to encrypt the PKCS12 keystore.
1331                pub password_secret_ref: Pkcs12PasswordSecretRef,
1332            }
1333
1334            /// Options to control private keys used for the Certificate.
1335            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1336            #[serde(rename_all = "camelCase")]
1337            pub struct PrivateKey {
1338                /// Algorithm is the private key algorithm of the corresponding private key for this certificate. If provided, allowed values are either `RSA`,`Ed25519` or `ECDSA` If `algorithm` is specified and `size` is not provided, key size of 256 will be used for `ECDSA` key algorithm and key size of 2048 will be used for `RSA` key algorithm. key size is ignored when using the `Ed25519` key algorithm.
1339                pub algorithm: String,
1340                /// The private key cryptography standards (PKCS) encoding for this certificate's private key to be encoded in. If provided, allowed values are `PKCS1` and `PKCS8` standing for PKCS#1 and PKCS#8, respectively. Defaults to `PKCS1` if not specified.
1341                pub encoding: String,
1342                /// RotationPolicy controls how private keys should be regenerated when a re-issuance is being processed. If set to Never, a private key will only be generated if one does not already exist in the target `spec.secretName`. If one does exists but it does not have the correct algorithm or size, a warning will be raised to await user intervention. If set to Always, a private key matching the specified requirements will be generated whenever a re-issuance occurs. Default is 'Never' for backward compatibility.
1343                pub rotation_policy: String,
1344                /// Size is the key bit size of the corresponding private key for this certificate. If `algorithm` is set to `RSA`, valid values are `2048`, `4096` or `8192`, and will default to `2048` if not specified. If `algorithm` is set to `ECDSA`, valid values are `256`, `384` or `521`, and will default to `256` if not specified. If `algorithm` is set to `Ed25519`, Size is ignored. No other values are allowed.
1345                pub size: i64,
1346            }
1347
1348            /// SecretTemplate defines annotations and labels to be copied to the Certificate's Secret. Labels and annotations on the Secret will be changed as they appear on the SecretTemplate when added or removed. SecretTemplate annotations are added in conjunction with, and cannot overwrite, the base set of annotations cert-manager sets on the Certificate's Secret.
1349            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1350            #[serde(rename_all = "camelCase")]
1351            pub struct SecretTemplate {
1352                /// Annotations is a key value map to be copied to the target Kubernetes Secret.
1353                pub annotations: Annotations,
1354                /// Labels is a key value map to be copied to the target Kubernetes Secret.
1355                pub labels: Labels,
1356            }
1357
1358            /// Desired state of the Certificate resource.
1359            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1360            #[serde(rename_all = "camelCase")]
1361            pub struct Spec {
1362                /// AdditionalOutputFormats defines extra output formats of the private key and signed certificate chain to be written to this Certificate's target Secret. This is an Alpha Feature and is only enabled with the `--feature-gates=AdditionalCertificateOutputFormats=true` option on both the controller and webhook components.
1363                pub additional_output_formats: Vec<AdditionalOutputFormatsItem>,
1364                /// CommonName is a common name to be used on the Certificate. The CommonName should have a length of 64 characters or fewer to avoid generating invalid CSRs. This value is ignored by TLS clients when any subject alt name is set. This is x509 behaviour: https://tools.ietf.org/html/rfc6125#section-6.4.4
1365                pub common_name: String,
1366                /// DNSNames is a list of DNS subjectAltNames to be set on the Certificate.
1367                pub dns_names: Vec<String>,
1368                /// The requested 'duration' (i.e. lifetime) of the Certificate. This option may be ignored/overridden by some issuer types. If unset this defaults to 90 days. Certificate will be renewed either 2/3 through its duration or `renewBefore` period before its expiry, whichever is later. Minimum accepted duration is 1 hour. Value must be in units accepted by Go time.ParseDuration https://golang.org/pkg/time/#ParseDuration
1369                pub duration: String,
1370                /// EmailAddresses is a list of email subjectAltNames to be set on the Certificate.
1371                pub email_addresses: Vec<String>,
1372                /// EncodeUsagesInRequest controls whether key usages should be present in the CertificateRequest
1373                pub encode_usages_in_request: bool,
1374                /// IPAddresses is a list of IP address subjectAltNames to be set on the Certificate.
1375                pub ip_addresses: Vec<String>,
1376                /// IsCA will mark this Certificate as valid for certificate signing. This will automatically add the `cert sign` usage to the list of `usages`.
1377                pub is_c_a: bool,
1378                /// IssuerRef is a reference to the issuer for this certificate. If the `kind` field is not set, or set to `Issuer`, an Issuer resource with the given name in the same namespace as the Certificate will be used. If the `kind` field is set to `ClusterIssuer`, a ClusterIssuer with the provided name will be used. The `name` field in this stanza is required at all times.
1379                pub issuer_ref: IssuerRef,
1380                /// Keystores configures additional keystore output formats stored in the `secretName` Secret resource.
1381                pub keystores: Keystores,
1382                /// Options to control private keys used for the Certificate.
1383                pub private_key: PrivateKey,
1384                /// How long before the currently issued certificate's expiry cert-manager should renew the certificate. The default is 2/3 of the issued certificate's duration. Minimum accepted value is 5 minutes. Value must be in units accepted by Go time.ParseDuration https://golang.org/pkg/time/#ParseDuration
1385                pub renew_before: String,
1386                /// revisionHistoryLimit is the maximum number of CertificateRequest revisions that are maintained in the Certificate's history. Each revision represents a single `CertificateRequest` created by this Certificate, either when it was created, renewed, or Spec was changed. Revisions will be removed by oldest first if the number of revisions exceeds this number. If set, revisionHistoryLimit must be a value of `1` or greater. If unset (`nil`), revisions will not be garbage collected. Default value is `nil`.
1387                pub revision_history_limit: i32,
1388                /// SecretName is the name of the secret resource that will be automatically created and managed by this Certificate resource. It will be populated with a private key and certificate, signed by the denoted issuer.
1389                pub secret_name: String,
1390                /// SecretTemplate defines annotations and labels to be copied to the Certificate's Secret. Labels and annotations on the Secret will be changed as they appear on the SecretTemplate when added or removed. SecretTemplate annotations are added in conjunction with, and cannot overwrite, the base set of annotations cert-manager sets on the Certificate's Secret.
1391                pub secret_template: SecretTemplate,
1392                /// Full X509 name specification (https://golang.org/pkg/crypto/x509/pkix/#Name).
1393                pub subject: Subject,
1394                /// URIs is a list of URI subjectAltNames to be set on the Certificate.
1395                pub uris: Vec<String>,
1396                /// Usages is the set of x509 usages that are requested for the certificate. Defaults to `digital signature` and `key encipherment` if not specified.
1397                pub usages: Vec<String>,
1398            }
1399
1400            /// Status of the Certificate. This is set and managed automatically.
1401            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1402            #[serde(rename_all = "camelCase")]
1403            pub struct Status {
1404                /// List of status conditions to indicate the status of certificates. Known condition types are `Ready` and `Issuing`.
1405                pub conditions: Vec<ConditionsItem>,
1406                /// The number of continuous failed issuance attempts up till now. This field gets removed (if set) on a successful issuance and gets set to 1 if unset and an issuance has failed. If an issuance has failed, the delay till the next issuance will be calculated using formula time.Hour * 2 ^ (failedIssuanceAttempts - 1).
1407                pub failed_issuance_attempts: i64,
1408                /// LastFailureTime is the time as recorded by the Certificate controller of the most recent failure to complete a CertificateRequest for this Certificate resource. If set, cert-manager will not re-request another Certificate until 1 hour has elapsed from this time.
1409                pub last_failure_time: String,
1410                /// The name of the Secret resource containing the private key to be used for the next certificate iteration. The keymanager controller will automatically set this field if the `Issuing` condition is set to `True`. It will automatically unset this field when the Issuing condition is not set or False.
1411                pub next_private_key_secret_name: String,
1412                /// The expiration time of the certificate stored in the secret named by this resource in `spec.secretName`.
1413                pub not_after: String,
1414                /// The time after which the certificate stored in the secret named by this resource in spec.secretName is valid.
1415                pub not_before: String,
1416                /// RenewalTime is the time at which the certificate will be next renewed. If not set, no upcoming renewal is scheduled.
1417                pub renewal_time: String,
1418                /// The current 'revision' of the certificate as issued.
1419                ///  When a CertificateRequest resource is created, it will have the `cert-manager.io/certificate-revision` set to one greater than the current value of this field.
1420                ///  Upon issuance, this field will be set to the value of the annotation on the CertificateRequest resource used to issue the certificate.
1421                ///  Persisting the value on the CertificateRequest resource allows the certificates controller to know whether a request is part of an old issuance or if it is part of the ongoing revision's issuance by checking if the revision value in the annotation is greater than this field.
1422                pub revision: i64,
1423            }
1424
1425            /// Full X509 name specification (https://golang.org/pkg/crypto/x509/pkix/#Name).
1426            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1427            #[serde(rename_all = "camelCase")]
1428            pub struct Subject {
1429                /// Countries to be used on the Certificate.
1430                pub countries: Vec<String>,
1431                /// Cities to be used on the Certificate.
1432                pub localities: Vec<String>,
1433                /// Organizational Units to be used on the Certificate.
1434                pub organizational_units: Vec<String>,
1435                /// Organizations to be used on the Certificate.
1436                pub organizations: Vec<String>,
1437                /// Postal codes to be used on the Certificate.
1438                pub postal_codes: Vec<String>,
1439                /// State/Provinces to be used on the Certificate.
1440                pub provinces: Vec<String>,
1441                /// Serial number to be used on the Certificate.
1442                pub serial_number: String,
1443                /// Street addresses to be used on the Certificate.
1444                pub street_addresses: Vec<String>,
1445            }
1446        }
1447        pub mod certificate_request {
1448            /// A CertificateRequest is used to request a signed certificate from one of the configured issuers.
1449            ///  All fields within the CertificateRequest's `spec` are immutable after creation. A CertificateRequest will either succeed or fail, as denoted by its `status.state` field.
1450            ///  A CertificateRequest is a one-shot resource, meaning it represents a single point in time request for a certificate and cannot be re-used.
1451            #[derive(serde::Deserialize, Debug, PartialEq)]
1452            pub struct CertificateRequest {
1453                pub metadata: k8s_openapi::apimachinery::pkg::apis::meta::v1::ObjectMeta,
1454                pub spec: Spec,
1455                pub status: Status,
1456            }
1457
1458            impl k8s_openapi::Resource for CertificateRequest {
1459                type Scope = k8s_openapi::ClusterResourceScope;
1460
1461                const API_VERSION: &'static str = "cert-manager.io/v1";
1462                const GROUP: &'static str = "cert-manager.io";
1463                const KIND: &'static str = "CertificateRequest";
1464                const VERSION: &'static str = "v1";
1465                const URL_PATH_SEGMENT: &'static str = "";
1466            }
1467
1468            impl k8s_openapi::Metadata for CertificateRequest {
1469                type Ty = k8s_openapi::apimachinery::pkg::apis::meta::v1::ObjectMeta;
1470
1471                fn metadata(&self) -> &<Self as k8s_openapi::Metadata>::Ty {
1472                    &self.metadata
1473                }
1474
1475                fn metadata_mut(&mut self) -> &mut <Self as k8s_openapi::Metadata>::Ty {
1476                    &mut self.metadata
1477                }
1478            }
1479
1480            impl serde::Serialize for CertificateRequest {
1481                fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
1482                where
1483                    S: serde::Serializer,
1484                {
1485                    use serde::ser::SerializeStruct;
1486                    let mut state = serializer.serialize_struct("CertificateRequest", 5)?;
1487                    state.serialize_field(
1488                        "apiVersion",
1489                        <Self as k8s_openapi::Resource>::API_VERSION,
1490                    )?;
1491                    state.serialize_field("kind", <Self as k8s_openapi::Resource>::KIND)?;
1492                    state.serialize_field("metadata", &self.metadata)?;
1493                    state.serialize_field("spec", &self.spec)?;
1494                    state.serialize_field("status", &self.status)?;
1495                    state.end()
1496                }
1497            }
1498
1499            /// CertificateRequestCondition contains condition information for a CertificateRequest.
1500            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1501            #[serde(rename_all = "camelCase")]
1502            pub struct ConditionsItem {
1503                /// LastTransitionTime is the timestamp corresponding to the last status change of this condition.
1504                pub last_transition_time: String,
1505                /// Message is a human readable description of the details of the last transition, complementing reason.
1506                pub message: String,
1507                /// Reason is a brief machine readable explanation for the condition's last transition.
1508                pub reason: String,
1509                /// Status of the condition, one of (`True`, `False`, `Unknown`).
1510                pub status: String,
1511                /// Type of the condition, known values are (`Ready`, `InvalidRequest`, `Approved`, `Denied`).
1512                pub r#type: String,
1513            }
1514
1515            /// Extra contains extra attributes of the user that created the CertificateRequest. Populated by the cert-manager webhook on creation and immutable.
1516            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1517            #[serde(rename_all = "camelCase")]
1518            pub struct Extra {
1519                /// Extra contains extra attributes of the user that created the CertificateRequest. Populated by the cert-manager webhook on creation and immutable.
1520                pub properties: std::collections::HashMap<String, Vec<String>>,
1521            }
1522
1523            /// IssuerRef is a reference to the issuer for this CertificateRequest.  If the `kind` field is not set, or set to `Issuer`, an Issuer resource with the given name in the same namespace as the CertificateRequest will be used.  If the `kind` field is set to `ClusterIssuer`, a ClusterIssuer with the provided name will be used. The `name` field in this stanza is required at all times. The group field refers to the API group of the issuer which defaults to `cert-manager.io` if empty.
1524            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1525            #[serde(rename_all = "camelCase")]
1526            pub struct IssuerRef {
1527                /// Group of the resource being referred to.
1528                pub group: String,
1529                /// Kind of the resource being referred to.
1530                pub kind: String,
1531                /// Name of the resource being referred to.
1532                pub name: String,
1533            }
1534
1535            /// Desired state of the CertificateRequest resource.
1536            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1537            #[serde(rename_all = "camelCase")]
1538            pub struct Spec {
1539                /// The requested 'duration' (i.e. lifetime) of the Certificate. This option may be ignored/overridden by some issuer types.
1540                pub duration: String,
1541                /// Extra contains extra attributes of the user that created the CertificateRequest. Populated by the cert-manager webhook on creation and immutable.
1542                pub extra: Extra,
1543                /// Groups contains group membership of the user that created the CertificateRequest. Populated by the cert-manager webhook on creation and immutable.
1544                pub groups: Vec<String>,
1545                /// IsCA will request to mark the certificate as valid for certificate signing when submitting to the issuer. This will automatically add the `cert sign` usage to the list of `usages`.
1546                pub is_c_a: bool,
1547                /// IssuerRef is a reference to the issuer for this CertificateRequest.  If the `kind` field is not set, or set to `Issuer`, an Issuer resource with the given name in the same namespace as the CertificateRequest will be used.  If the `kind` field is set to `ClusterIssuer`, a ClusterIssuer with the provided name will be used. The `name` field in this stanza is required at all times. The group field refers to the API group of the issuer which defaults to `cert-manager.io` if empty.
1548                pub issuer_ref: IssuerRef,
1549                /// The PEM-encoded x509 certificate signing request to be submitted to the CA for signing.
1550                pub request: Vec<u8>,
1551                /// UID contains the uid of the user that created the CertificateRequest. Populated by the cert-manager webhook on creation and immutable.
1552                pub uid: String,
1553                /// Usages is the set of x509 usages that are requested for the certificate. If usages are set they SHOULD be encoded inside the CSR spec Defaults to `digital signature` and `key encipherment` if not specified.
1554                pub usages: Vec<String>,
1555                /// Username contains the name of the user that created the CertificateRequest. Populated by the cert-manager webhook on creation and immutable.
1556                pub username: String,
1557            }
1558
1559            /// Status of the CertificateRequest. This is set and managed automatically.
1560            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1561            #[serde(rename_all = "camelCase")]
1562            pub struct Status {
1563                /// The PEM encoded x509 certificate of the signer, also known as the CA (Certificate Authority). This is set on a best-effort basis by different issuers. If not set, the CA is assumed to be unknown/not available.
1564                pub ca: Vec<u8>,
1565                /// The PEM encoded x509 certificate resulting from the certificate signing request. If not set, the CertificateRequest has either not been completed or has failed. More information on failure can be found by checking the `conditions` field.
1566                pub certificate: Vec<u8>,
1567                /// List of status conditions to indicate the status of a CertificateRequest. Known condition types are `Ready` and `InvalidRequest`.
1568                pub conditions: Vec<ConditionsItem>,
1569                /// FailureTime stores the time that this CertificateRequest failed. This is used to influence garbage collection and back-off.
1570                pub failure_time: String,
1571            }
1572        }
1573        pub mod cluster_issuer {
1574            /// A ClusterIssuer represents a certificate issuing authority which can be referenced as part of `issuerRef` fields. It is similar to an Issuer, however it is cluster-scoped and therefore can be referenced by resources that exist in *any* namespace, not just the same namespace as the referent.
1575            #[derive(serde::Deserialize, Debug, PartialEq)]
1576            pub struct ClusterIssuer {
1577                pub metadata: k8s_openapi::apimachinery::pkg::apis::meta::v1::ObjectMeta,
1578                pub spec: Spec,
1579                pub status: Status,
1580            }
1581
1582            impl k8s_openapi::Resource for ClusterIssuer {
1583                type Scope = k8s_openapi::ClusterResourceScope;
1584
1585                const API_VERSION: &'static str = "cert-manager.io/v1";
1586                const GROUP: &'static str = "cert-manager.io";
1587                const KIND: &'static str = "ClusterIssuer";
1588                const VERSION: &'static str = "v1";
1589                const URL_PATH_SEGMENT: &'static str = "";
1590            }
1591
1592            impl k8s_openapi::Metadata for ClusterIssuer {
1593                type Ty = k8s_openapi::apimachinery::pkg::apis::meta::v1::ObjectMeta;
1594
1595                fn metadata(&self) -> &<Self as k8s_openapi::Metadata>::Ty {
1596                    &self.metadata
1597                }
1598
1599                fn metadata_mut(&mut self) -> &mut <Self as k8s_openapi::Metadata>::Ty {
1600                    &mut self.metadata
1601                }
1602            }
1603
1604            impl serde::Serialize for ClusterIssuer {
1605                fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
1606                where
1607                    S: serde::Serializer,
1608                {
1609                    use serde::ser::SerializeStruct;
1610                    let mut state = serializer.serialize_struct("ClusterIssuer", 5)?;
1611                    state.serialize_field(
1612                        "apiVersion",
1613                        <Self as k8s_openapi::Resource>::API_VERSION,
1614                    )?;
1615                    state.serialize_field("kind", <Self as k8s_openapi::Resource>::KIND)?;
1616                    state.serialize_field("metadata", &self.metadata)?;
1617                    state.serialize_field("spec", &self.spec)?;
1618                    state.serialize_field("status", &self.status)?;
1619                    state.end()
1620                }
1621            }
1622
1623            /// A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field.
1624            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1625            #[serde(rename_all = "camelCase")]
1626            pub struct AccessTokenSecretRef {
1627                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
1628                pub key: String,
1629                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
1630                pub name: String,
1631            }
1632
1633            /// A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field.
1634            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1635            #[serde(rename_all = "camelCase")]
1636            pub struct AccountSecretRef {
1637                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
1638                pub key: String,
1639                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
1640                pub name: String,
1641            }
1642
1643            /// ACME configures this issuer to communicate with a RFC8555 (ACME) server to obtain signed x509 certificates.
1644            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1645            #[serde(rename_all = "camelCase")]
1646            pub struct SpecAcme {
1647                /// Enables or disables generating a new ACME account key. If true, the Issuer resource will *not* request a new account but will expect the account key to be supplied via an existing secret. If false, the cert-manager system will generate a new ACME account key for the Issuer. Defaults to false.
1648                pub disable_account_key_generation: bool,
1649                /// Email is the email address to be associated with the ACME account. This field is optional, but it is strongly recommended to be set. It will be used to contact you in case of issues with your account or certificates, including expiry notification emails. This field may be updated after the account is initially registered.
1650                pub email: String,
1651                /// Enables requesting a Not After date on certificates that matches the duration of the certificate. This is not supported by all ACME servers like Let's Encrypt. If set to true when the ACME server does not support it it will create an error on the Order. Defaults to false.
1652                pub enable_duration_feature: bool,
1653                /// ExternalAccountBinding is a reference to a CA external account of the ACME server. If set, upon registration cert-manager will attempt to associate the given external account credentials with the registered ACME account.
1654                pub external_account_binding: ExternalAccountBinding,
1655                /// PreferredChain is the chain to use if the ACME server outputs multiple. PreferredChain is no guarantee that this one gets delivered by the ACME endpoint. For example, for Let's Encrypt's DST crosssign you would use: "DST Root CA X3" or "ISRG Root X1" for the newer Let's Encrypt root CA. This value picks the first certificate bundle in the ACME alternative chains that has a certificate with this value as its issuer's CN
1656                pub preferred_chain: String,
1657                /// PrivateKey is the name of a Kubernetes Secret resource that will be used to store the automatically generated ACME account private key. Optionally, a `key` may be specified to select a specific entry within the named Secret resource. If `key` is not specified, a default of `tls.key` will be used.
1658                pub private_key_secret_ref: PrivateKeySecretRef,
1659                /// Server is the URL used to access the ACME server's 'directory' endpoint. For example, for Let's Encrypt's staging endpoint, you would use: "https://acme-staging-v02.api.letsencrypt.org/directory". Only ACME v2 endpoints (i.e. RFC 8555) are supported.
1660                pub server: String,
1661                /// Enables or disables validation of the ACME server TLS certificate. If true, requests to the ACME server will not have their TLS certificate validated (i.e. insecure connections will be allowed). Only enable this option in development environments. The cert-manager system installed roots will be used to verify connections to the ACME server if this is false. Defaults to false.
1662                pub skip_t_l_s_verify: bool,
1663                /// Solvers is a list of challenge solvers that will be used to solve ACME challenges for the matching domains. Solver configurations must be provided in order to obtain certificates from an ACME server. For more information, see: https://cert-manager.io/docs/configuration/acme/
1664                pub solvers: Vec<SolversItem>,
1665            }
1666
1667            /// ACME specific status options. This field should only be set if the Issuer is configured to use an ACME server to issue certificates.
1668            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1669            #[serde(rename_all = "camelCase")]
1670            pub struct StatusAcme {
1671                /// LastRegisteredEmail is the email associated with the latest registered ACME account, in order to track changes made to registered account associated with the  Issuer
1672                pub last_registered_email: String,
1673                /// URI is the unique account identifier, which can also be used to retrieve account details from the CA
1674                pub uri: String,
1675            }
1676
1677            /// Use the 'ACME DNS' (https://github.com/joohoi/acme-dns) API to manage DNS01 challenge records.
1678            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1679            #[serde(rename_all = "camelCase")]
1680            pub struct AcmeDNS {
1681                /// A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field.
1682                pub account_secret_ref: AccountSecretRef,
1683                pub host: String,
1684            }
1685
1686            /// If specified, the pod's scheduling constraints
1687            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1688            #[serde(rename_all = "camelCase")]
1689            pub struct Affinity {
1690                /// Describes node affinity scheduling rules for the pod.
1691                pub node_affinity: NodeAffinity,
1692                /// Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
1693                pub pod_affinity: PodAffinity,
1694                /// Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
1695                pub pod_anti_affinity: PodAntiAffinity,
1696            }
1697
1698            /// Use the Akamai DNS zone management API to manage DNS01 challenge records.
1699            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1700            #[serde(rename_all = "camelCase")]
1701            pub struct Akamai {
1702                /// A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field.
1703                pub access_token_secret_ref: AccessTokenSecretRef,
1704                /// A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field.
1705                pub client_secret_secret_ref: AkamaiClientSecretSecretRef,
1706                /// A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field.
1707                pub client_token_secret_ref: ClientTokenSecretRef,
1708                pub service_consumer_domain: String,
1709            }
1710
1711            /// Annotations that should be added to the created ACME HTTP01 solver ingress.
1712            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1713            #[serde(rename_all = "camelCase")]
1714            pub struct IngressTemplateMetadataAnnotations {
1715                /// Annotations that should be added to the created ACME HTTP01 solver ingress.
1716                pub properties: std::collections::HashMap<String, String>,
1717            }
1718
1719            /// Annotations that should be added to the create ACME HTTP01 solver pods.
1720            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1721            #[serde(rename_all = "camelCase")]
1722            pub struct PodTemplateMetadataAnnotations {
1723                /// Annotations that should be added to the create ACME HTTP01 solver pods.
1724                pub properties: std::collections::HashMap<String, String>,
1725            }
1726
1727            /// API key to use to authenticate with Cloudflare. Note: using an API token to authenticate is now the recommended method as it allows greater control of permissions.
1728            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1729            #[serde(rename_all = "camelCase")]
1730            pub struct ApiKeySecretRef {
1731                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
1732                pub key: String,
1733                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
1734                pub name: String,
1735            }
1736
1737            /// API token used to authenticate with Cloudflare.
1738            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1739            #[serde(rename_all = "camelCase")]
1740            pub struct CloudflareApiTokenSecretRef {
1741                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
1742                pub key: String,
1743                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
1744                pub name: String,
1745            }
1746
1747            /// APITokenSecretRef is a secret key selector for the Venafi Cloud API token.
1748            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1749            #[serde(rename_all = "camelCase")]
1750            pub struct CloudApiTokenSecretRef {
1751                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
1752                pub key: String,
1753                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
1754                pub name: String,
1755            }
1756
1757            /// AppRole authenticates with Vault using the App Role auth mechanism, with the role and secret stored in a Kubernetes Secret resource.
1758            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1759            #[serde(rename_all = "camelCase")]
1760            pub struct AppRole {
1761                /// Path where the App Role authentication backend is mounted in Vault, e.g: "approle"
1762                pub path: String,
1763                /// RoleID configured in the App Role authentication backend when setting up the authentication backend in Vault.
1764                pub role_id: String,
1765                /// Reference to a key in a Secret that contains the App Role secret used to authenticate with Vault. The `key` field must be specified and denotes which entry within the Secret resource is used as the app role secret.
1766                pub secret_ref: AppRoleSecretRef,
1767            }
1768
1769            /// Auth configures how cert-manager authenticates with the Vault server.
1770            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1771            #[serde(rename_all = "camelCase")]
1772            pub struct Auth {
1773                /// AppRole authenticates with Vault using the App Role auth mechanism, with the role and secret stored in a Kubernetes Secret resource.
1774                pub app_role: AppRole,
1775                /// Kubernetes authenticates with Vault by passing the ServiceAccount token stored in the named Secret resource to the Vault server.
1776                pub kubernetes: Kubernetes,
1777                /// TokenSecretRef authenticates with Vault by presenting a token.
1778                pub token_secret_ref: AuthTokenSecretRef,
1779            }
1780
1781            /// Use the Microsoft Azure DNS API to manage DNS01 challenge records.
1782            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1783            #[serde(rename_all = "camelCase")]
1784            pub struct AzureDNS {
1785                /// if both this and ClientSecret are left unset MSI will be used
1786                pub client_i_d: String,
1787                /// if both this and ClientID are left unset MSI will be used
1788                pub client_secret_secret_ref: AzureDNSClientSecretSecretRef,
1789                /// name of the Azure environment (default AzurePublicCloud)
1790                pub environment: String,
1791                /// name of the DNS zone that should be used
1792                pub hosted_zone_name: String,
1793                /// managed identity configuration, can not be used at the same time as clientID, clientSecretSecretRef or tenantID
1794                pub managed_identity: ManagedIdentity,
1795                /// resource group the DNS zone is located in
1796                pub resource_group_name: String,
1797                /// ID of the Azure subscription
1798                pub subscription_i_d: String,
1799                /// when specifying ClientID and ClientSecret then this field is also needed
1800                pub tenant_i_d: String,
1801            }
1802
1803            /// CA configures this issuer to sign certificates using a signing CA keypair stored in a Secret resource. This is used to build internal PKIs that are managed by cert-manager.
1804            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1805            #[serde(rename_all = "camelCase")]
1806            pub struct Ca {
1807                /// The CRL distribution points is an X.509 v3 certificate extension which identifies the location of the CRL from which the revocation of this certificate can be checked. If not set, certificates will be issued without distribution points set.
1808                pub crl_distribution_points: Vec<String>,
1809                /// The OCSP server list is an X.509 v3 extension that defines a list of URLs of OCSP responders. The OCSP responders can be queried for the revocation status of an issued certificate. If not set, the certificate will be issued with no OCSP servers set. For example, an OCSP server URL could be "http://ocsp.int-x3.letsencrypt.org".
1810                pub ocsp_servers: Vec<String>,
1811                /// SecretName is the name of the secret used to sign Certificates issued by this Issuer.
1812                pub secret_name: String,
1813            }
1814
1815            /// A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field.
1816            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1817            #[serde(rename_all = "camelCase")]
1818            pub struct AkamaiClientSecretSecretRef {
1819                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
1820                pub key: String,
1821                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
1822                pub name: String,
1823            }
1824
1825            /// if both this and ClientID are left unset MSI will be used
1826            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1827            #[serde(rename_all = "camelCase")]
1828            pub struct AzureDNSClientSecretSecretRef {
1829                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
1830                pub key: String,
1831                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
1832                pub name: String,
1833            }
1834
1835            /// A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field.
1836            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1837            #[serde(rename_all = "camelCase")]
1838            pub struct ClientTokenSecretRef {
1839                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
1840                pub key: String,
1841                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
1842                pub name: String,
1843            }
1844
1845            /// Cloud specifies the Venafi cloud configuration settings. Only one of TPP or Cloud may be specified.
1846            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1847            #[serde(rename_all = "camelCase")]
1848            pub struct Cloud {
1849                /// APITokenSecretRef is a secret key selector for the Venafi Cloud API token.
1850                pub api_token_secret_ref: CloudApiTokenSecretRef,
1851                /// URL is the base URL for Venafi Cloud. Defaults to "https://api.venafi.cloud/v1".
1852                pub url: String,
1853            }
1854
1855            /// Use the Google Cloud DNS API to manage DNS01 challenge records.
1856            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1857            #[serde(rename_all = "camelCase")]
1858            pub struct CloudDNS {
1859                /// HostedZoneName is an optional field that tells cert-manager in which Cloud DNS zone the challenge record has to be created. If left empty cert-manager will automatically choose a zone.
1860                pub hosted_zone_name: String,
1861                pub project: String,
1862                /// A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field.
1863                pub service_account_secret_ref: ServiceAccountSecretRef,
1864            }
1865
1866            /// Use the Cloudflare API to manage DNS01 challenge records.
1867            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1868            #[serde(rename_all = "camelCase")]
1869            pub struct Cloudflare {
1870                /// API key to use to authenticate with Cloudflare. Note: using an API token to authenticate is now the recommended method as it allows greater control of permissions.
1871                pub api_key_secret_ref: ApiKeySecretRef,
1872                /// API token used to authenticate with Cloudflare.
1873                pub api_token_secret_ref: CloudflareApiTokenSecretRef,
1874                /// Email of the account, only required when using API key based authentication.
1875                pub email: String,
1876            }
1877
1878            /// IssuerCondition contains condition information for an Issuer.
1879            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1880            #[serde(rename_all = "camelCase")]
1881            pub struct ConditionsItem {
1882                /// LastTransitionTime is the timestamp corresponding to the last status change of this condition.
1883                pub last_transition_time: String,
1884                /// Message is a human readable description of the details of the last transition, complementing reason.
1885                pub message: String,
1886                /// If set, this represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.condition[x].observedGeneration is 9, the condition is out of date with respect to the current state of the Issuer.
1887                pub observed_generation: i64,
1888                /// Reason is a brief machine readable explanation for the condition's last transition.
1889                pub reason: String,
1890                /// Status of the condition, one of (`True`, `False`, `Unknown`).
1891                pub status: String,
1892                /// Type of the condition, known values are (`Ready`).
1893                pub r#type: String,
1894            }
1895
1896            /// CredentialsRef is a reference to a Secret containing the username and password for the TPP server. The secret must contain two keys, 'username' and 'password'.
1897            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1898            #[serde(rename_all = "camelCase")]
1899            pub struct CredentialsRef {
1900                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
1901                pub name: String,
1902            }
1903
1904            /// Use the DigitalOcean DNS API to manage DNS01 challenge records.
1905            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1906            #[serde(rename_all = "camelCase")]
1907            pub struct Digitalocean {
1908                /// A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field.
1909                pub token_secret_ref: DigitaloceanTokenSecretRef,
1910            }
1911
1912            /// Configures cert-manager to attempt to complete authorizations by performing the DNS01 challenge flow.
1913            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1914            #[serde(rename_all = "camelCase")]
1915            pub struct Dns01 {
1916                /// Use the 'ACME DNS' (https://github.com/joohoi/acme-dns) API to manage DNS01 challenge records.
1917                pub acme_d_n_s: AcmeDNS,
1918                /// Use the Akamai DNS zone management API to manage DNS01 challenge records.
1919                pub akamai: Akamai,
1920                /// Use the Microsoft Azure DNS API to manage DNS01 challenge records.
1921                pub azure_d_n_s: AzureDNS,
1922                /// Use the Google Cloud DNS API to manage DNS01 challenge records.
1923                pub cloud_d_n_s: CloudDNS,
1924                /// Use the Cloudflare API to manage DNS01 challenge records.
1925                pub cloudflare: Cloudflare,
1926                /// CNAMEStrategy configures how the DNS01 provider should handle CNAME records when found in DNS zones.
1927                pub cname_strategy: String,
1928                /// Use the DigitalOcean DNS API to manage DNS01 challenge records.
1929                pub digitalocean: Digitalocean,
1930                /// Use RFC2136 ("Dynamic Updates in the Domain Name System") (https://datatracker.ietf.org/doc/rfc2136/) to manage DNS01 challenge records.
1931                pub rfc2136: Rfc2136,
1932                /// Use the AWS Route53 API to manage DNS01 challenge records.
1933                pub route53: Route53,
1934                /// Configure an external webhook based DNS01 challenge solver to manage DNS01 challenge records.
1935                pub webhook: Webhook,
1936            }
1937
1938            /// ExternalAccountBinding is a reference to a CA external account of the ACME server. If set, upon registration cert-manager will attempt to associate the given external account credentials with the registered ACME account.
1939            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1940            #[serde(rename_all = "camelCase")]
1941            pub struct ExternalAccountBinding {
1942                /// Deprecated: keyAlgorithm field exists for historical compatibility reasons and should not be used. The algorithm is now hardcoded to HS256 in golang/x/crypto/acme.
1943                pub key_algorithm: String,
1944                /// keyID is the ID of the CA key that the External Account is bound to.
1945                pub key_i_d: String,
1946                /// keySecretRef is a Secret Key Selector referencing a data item in a Kubernetes Secret which holds the symmetric MAC key of the External Account Binding. The `key` is the index string that is paired with the key data in the Secret and should not be confused with the key data itself, or indeed with the External Account Binding keyID above. The secret key stored in the Secret **must** be un-padded, base64 URL encoded data.
1947                pub key_secret_ref: KeySecretRef,
1948            }
1949
1950            /// The Gateway API is a sig-network community API that models service networking in Kubernetes (https://gateway-api.sigs.k8s.io/). The Gateway solver will create HTTPRoutes with the specified labels in the same namespace as the challenge. This solver is experimental, and fields / behaviour may change in the future.
1951            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1952            #[serde(rename_all = "camelCase")]
1953            pub struct GatewayHTTPRoute {
1954                /// Custom labels that will be applied to HTTPRoutes created by cert-manager while solving HTTP-01 challenges.
1955                pub labels: GatewayHTTPRouteLabels,
1956                /// When solving an HTTP-01 challenge, cert-manager creates an HTTPRoute. cert-manager needs to know which parentRefs should be used when creating the HTTPRoute. Usually, the parentRef references a Gateway. See: https://gateway-api.sigs.k8s.io/v1alpha2/api-types/httproute/#attaching-to-gateways
1957                pub parent_refs: Vec<ParentRefsItem>,
1958                /// Optional service type for Kubernetes solver service. Supported values are NodePort or ClusterIP. If unset, defaults to NodePort.
1959                pub service_type: String,
1960            }
1961
1962            /// Configures cert-manager to attempt to complete authorizations by performing the HTTP01 challenge flow. It is not possible to obtain certificates for wildcard domain names (e.g. `*.example.com`) using the HTTP01 challenge mechanism.
1963            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1964            #[serde(rename_all = "camelCase")]
1965            pub struct Http01 {
1966                /// The Gateway API is a sig-network community API that models service networking in Kubernetes (https://gateway-api.sigs.k8s.io/). The Gateway solver will create HTTPRoutes with the specified labels in the same namespace as the challenge. This solver is experimental, and fields / behaviour may change in the future.
1967                pub gateway_h_t_t_p_route: GatewayHTTPRoute,
1968                /// The ingress based HTTP01 challenge solver will solve challenges by creating or modifying Ingress resources in order to route requests for '/.well-known/acme-challenge/XYZ' to 'challenge solver' pods that are provisioned by cert-manager for each Challenge to be completed.
1969                pub ingress: Ingress,
1970            }
1971
1972            /// The ingress based HTTP01 challenge solver will solve challenges by creating or modifying Ingress resources in order to route requests for '/.well-known/acme-challenge/XYZ' to 'challenge solver' pods that are provisioned by cert-manager for each Challenge to be completed.
1973            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1974            #[serde(rename_all = "camelCase")]
1975            pub struct Ingress {
1976                /// The ingress class to use when creating Ingress resources to solve ACME challenges that use this challenge solver. Only one of 'class' or 'name' may be specified.
1977                pub class: String,
1978                /// Optional ingress template used to configure the ACME challenge solver ingress used for HTTP01 challenges.
1979                pub ingress_template: IngressTemplate,
1980                /// The name of the ingress resource that should have ACME challenge solving routes inserted into it in order to solve HTTP01 challenges. This is typically used in conjunction with ingress controllers like ingress-gce, which maintains a 1:1 mapping between external IPs and ingress resources.
1981                pub name: String,
1982                /// Optional pod template used to configure the ACME challenge solver pods used for HTTP01 challenges.
1983                pub pod_template: PodTemplate,
1984                /// Optional service type for Kubernetes solver service. Supported values are NodePort or ClusterIP. If unset, defaults to NodePort.
1985                pub service_type: String,
1986            }
1987
1988            /// Optional ingress template used to configure the ACME challenge solver ingress used for HTTP01 challenges.
1989            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1990            #[serde(rename_all = "camelCase")]
1991            pub struct IngressTemplate {
1992                /// ObjectMeta overrides for the ingress used to solve HTTP01 challenges. Only the 'labels' and 'annotations' fields may be set. If labels or annotations overlap with in-built values, the values here will override the in-built values.
1993                pub metadata: IngressTemplateMetadata,
1994            }
1995
1996            /// keySecretRef is a Secret Key Selector referencing a data item in a Kubernetes Secret which holds the symmetric MAC key of the External Account Binding. The `key` is the index string that is paired with the key data in the Secret and should not be confused with the key data itself, or indeed with the External Account Binding keyID above. The secret key stored in the Secret **must** be un-padded, base64 URL encoded data.
1997            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
1998            #[serde(rename_all = "camelCase")]
1999            pub struct KeySecretRef {
2000                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
2001                pub key: String,
2002                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
2003                pub name: String,
2004            }
2005
2006            /// Kubernetes authenticates with Vault by passing the ServiceAccount token stored in the named Secret resource to the Vault server.
2007            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2008            #[serde(rename_all = "camelCase")]
2009            pub struct Kubernetes {
2010                /// The Vault mountPath here is the mount path to use when authenticating with Vault. For example, setting a value to `/v1/auth/foo`, will use the path `/v1/auth/foo/login` to authenticate with Vault. If unspecified, the default value "/v1/auth/kubernetes" will be used.
2011                pub mount_path: String,
2012                /// A required field containing the Vault Role to assume. A Role binds a Kubernetes ServiceAccount with a set of Vault policies.
2013                pub role: String,
2014                /// The required Secret field containing a Kubernetes ServiceAccount JWT used for authenticating with Vault. Use of 'ambient credentials' is not supported.
2015                pub secret_ref: KubernetesSecretRef,
2016            }
2017
2018            /// A label query over a set of resources, in this case pods.
2019            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2020            #[serde(rename_all = "camelCase")]
2021            pub struct PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermLabelSelector {
2022            /// matchExpressions is a list of label selector requirements. The requirements are ANDed.
2023            pub match_expressions: Vec<PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermLabelSelectorMatchExpressionsItem>,
2024            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
2025            pub match_labels: PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermLabelSelectorMatchLabels,
2026        }
2027
2028            /// A label query over a set of resources, in this case pods.
2029            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2030            #[serde(rename_all = "camelCase")]
2031            pub struct PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemLabelSelector {
2032            /// matchExpressions is a list of label selector requirements. The requirements are ANDed.
2033            pub match_expressions: Vec<PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemLabelSelectorMatchExpressionsItem>,
2034            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
2035            pub match_labels: PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemLabelSelectorMatchLabels,
2036        }
2037
2038            /// A label query over a set of resources, in this case pods.
2039            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2040            #[serde(rename_all = "camelCase")]
2041            pub struct PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermLabelSelector {
2042            /// matchExpressions is a list of label selector requirements. The requirements are ANDed.
2043            pub match_expressions: Vec<PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermLabelSelectorMatchExpressionsItem>,
2044            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
2045            pub match_labels: PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermLabelSelectorMatchLabels,
2046        }
2047
2048            /// A label query over a set of resources, in this case pods.
2049            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2050            #[serde(rename_all = "camelCase")]
2051            pub struct PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemLabelSelector {
2052            /// matchExpressions is a list of label selector requirements. The requirements are ANDed.
2053            pub match_expressions: Vec<PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemLabelSelectorMatchExpressionsItem>,
2054            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
2055            pub match_labels: PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemLabelSelectorMatchLabels,
2056        }
2057
2058            /// Custom labels that will be applied to HTTPRoutes created by cert-manager while solving HTTP-01 challenges.
2059            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2060            #[serde(rename_all = "camelCase")]
2061            pub struct GatewayHTTPRouteLabels {
2062                /// Custom labels that will be applied to HTTPRoutes created by cert-manager while solving HTTP-01 challenges.
2063                pub properties: std::collections::HashMap<String, String>,
2064            }
2065
2066            /// Labels that should be added to the created ACME HTTP01 solver ingress.
2067            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2068            #[serde(rename_all = "camelCase")]
2069            pub struct IngressTemplateMetadataLabels {
2070                /// Labels that should be added to the created ACME HTTP01 solver ingress.
2071                pub properties: std::collections::HashMap<String, String>,
2072            }
2073
2074            /// Labels that should be added to the created ACME HTTP01 solver pods.
2075            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2076            #[serde(rename_all = "camelCase")]
2077            pub struct PodTemplateMetadataLabels {
2078                /// Labels that should be added to the created ACME HTTP01 solver pods.
2079                pub properties: std::collections::HashMap<String, String>,
2080            }
2081
2082            /// managed identity configuration, can not be used at the same time as clientID, clientSecretSecretRef or tenantID
2083            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2084            #[serde(rename_all = "camelCase")]
2085            pub struct ManagedIdentity {
2086                /// client ID of the managed identity, can not be used at the same time as resourceID
2087                pub client_i_d: String,
2088                /// resource ID of the managed identity, can not be used at the same time as clientID
2089                pub resource_i_d: String,
2090            }
2091
2092            /// A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
2093            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2094            #[serde(rename_all = "camelCase")]
2095            pub struct PreferenceMatchExpressionsItem {
2096                /// The label key that the selector applies to.
2097                pub key: String,
2098                /// Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
2099                pub operator: String,
2100                /// An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
2101                pub values: Vec<String>,
2102            }
2103
2104            /// A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
2105            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2106            #[serde(rename_all = "camelCase")]
2107            pub struct NodeSelectorTermsItemMatchExpressionsItem {
2108                /// The label key that the selector applies to.
2109                pub key: String,
2110                /// Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
2111                pub operator: String,
2112                /// An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
2113                pub values: Vec<String>,
2114            }
2115
2116            /// A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
2117            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2118            #[serde(rename_all = "camelCase")]
2119            pub struct PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermLabelSelectorMatchExpressionsItem
2120            {
2121                /// key is the label key that the selector applies to.
2122                pub key: String,
2123                /// operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
2124                pub operator: String,
2125                /// values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
2126                pub values: Vec<String>,
2127            }
2128
2129            /// A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
2130            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2131            #[serde(rename_all = "camelCase")]
2132            pub struct PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermNamespaceSelectorMatchExpressionsItem
2133            {
2134                /// key is the label key that the selector applies to.
2135                pub key: String,
2136                /// operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
2137                pub operator: String,
2138                /// values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
2139                pub values: Vec<String>,
2140            }
2141
2142            /// A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
2143            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2144            #[serde(rename_all = "camelCase")]
2145            pub struct PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemLabelSelectorMatchExpressionsItem
2146            {
2147                /// key is the label key that the selector applies to.
2148                pub key: String,
2149                /// operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
2150                pub operator: String,
2151                /// values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
2152                pub values: Vec<String>,
2153            }
2154
2155            /// A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
2156            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2157            #[serde(rename_all = "camelCase")]
2158            pub struct PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemNamespaceSelectorMatchExpressionsItem
2159            {
2160                /// key is the label key that the selector applies to.
2161                pub key: String,
2162                /// operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
2163                pub operator: String,
2164                /// values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
2165                pub values: Vec<String>,
2166            }
2167
2168            /// A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
2169            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2170            #[serde(rename_all = "camelCase")]
2171            pub struct PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermLabelSelectorMatchExpressionsItem
2172            {
2173                /// key is the label key that the selector applies to.
2174                pub key: String,
2175                /// operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
2176                pub operator: String,
2177                /// values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
2178                pub values: Vec<String>,
2179            }
2180
2181            /// A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
2182            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2183            #[serde(rename_all = "camelCase")]
2184            pub struct PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermNamespaceSelectorMatchExpressionsItem
2185            {
2186                /// key is the label key that the selector applies to.
2187                pub key: String,
2188                /// operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
2189                pub operator: String,
2190                /// values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
2191                pub values: Vec<String>,
2192            }
2193
2194            /// A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
2195            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2196            #[serde(rename_all = "camelCase")]
2197            pub struct PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemLabelSelectorMatchExpressionsItem
2198            {
2199                /// key is the label key that the selector applies to.
2200                pub key: String,
2201                /// operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
2202                pub operator: String,
2203                /// values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
2204                pub values: Vec<String>,
2205            }
2206
2207            /// A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
2208            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2209            #[serde(rename_all = "camelCase")]
2210            pub struct PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemNamespaceSelectorMatchExpressionsItem
2211            {
2212                /// key is the label key that the selector applies to.
2213                pub key: String,
2214                /// operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
2215                pub operator: String,
2216                /// values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
2217                pub values: Vec<String>,
2218            }
2219
2220            /// A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
2221            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2222            #[serde(rename_all = "camelCase")]
2223            pub struct PreferenceMatchFieldsItem {
2224                /// The label key that the selector applies to.
2225                pub key: String,
2226                /// Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
2227                pub operator: String,
2228                /// An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
2229                pub values: Vec<String>,
2230            }
2231
2232            /// A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
2233            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2234            #[serde(rename_all = "camelCase")]
2235            pub struct NodeSelectorTermsItemMatchFieldsItem {
2236                /// The label key that the selector applies to.
2237                pub key: String,
2238                /// Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
2239                pub operator: String,
2240                /// An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
2241                pub values: Vec<String>,
2242            }
2243
2244            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
2245            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2246            #[serde(rename_all = "camelCase")]
2247            pub struct PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermLabelSelectorMatchLabels
2248            {
2249                /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
2250                pub properties: std::collections::HashMap<String, String>,
2251            }
2252
2253            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
2254            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2255            #[serde(rename_all = "camelCase")]
2256            pub struct PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermNamespaceSelectorMatchLabels
2257            {
2258                /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
2259                pub properties: std::collections::HashMap<String, String>,
2260            }
2261
2262            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
2263            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2264            #[serde(rename_all = "camelCase")]
2265            pub struct PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemLabelSelectorMatchLabels {
2266                /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
2267                pub properties: std::collections::HashMap<String, String>,
2268            }
2269
2270            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
2271            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2272            #[serde(rename_all = "camelCase")]
2273            pub struct PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemNamespaceSelectorMatchLabels
2274            {
2275                /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
2276                pub properties: std::collections::HashMap<String, String>,
2277            }
2278
2279            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
2280            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2281            #[serde(rename_all = "camelCase")]
2282            pub struct PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermLabelSelectorMatchLabels
2283            {
2284                /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
2285                pub properties: std::collections::HashMap<String, String>,
2286            }
2287
2288            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
2289            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2290            #[serde(rename_all = "camelCase")]
2291            pub struct PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermNamespaceSelectorMatchLabels
2292            {
2293                /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
2294                pub properties: std::collections::HashMap<String, String>,
2295            }
2296
2297            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
2298            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2299            #[serde(rename_all = "camelCase")]
2300            pub struct PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemLabelSelectorMatchLabels
2301            {
2302                /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
2303                pub properties: std::collections::HashMap<String, String>,
2304            }
2305
2306            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
2307            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2308            #[serde(rename_all = "camelCase")]
2309            pub struct PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemNamespaceSelectorMatchLabels
2310            {
2311                /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
2312                pub properties: std::collections::HashMap<String, String>,
2313            }
2314
2315            /// A label selector that is used to refine the set of certificate's that this challenge solver will apply to.
2316            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2317            #[serde(rename_all = "camelCase")]
2318            pub struct SelectorMatchLabels {
2319                /// A label selector that is used to refine the set of certificate's that this challenge solver will apply to.
2320                pub properties: std::collections::HashMap<String, String>,
2321            }
2322
2323            /// ObjectMeta overrides for the ingress used to solve HTTP01 challenges. Only the 'labels' and 'annotations' fields may be set. If labels or annotations overlap with in-built values, the values here will override the in-built values.
2324            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2325            #[serde(rename_all = "camelCase")]
2326            pub struct IngressTemplateMetadata {
2327                /// Annotations that should be added to the created ACME HTTP01 solver ingress.
2328                pub annotations: IngressTemplateMetadataAnnotations,
2329                /// Labels that should be added to the created ACME HTTP01 solver ingress.
2330                pub labels: IngressTemplateMetadataLabels,
2331            }
2332
2333            /// ObjectMeta overrides for the pod used to solve HTTP01 challenges. Only the 'labels' and 'annotations' fields may be set. If labels or annotations overlap with in-built values, the values here will override the in-built values.
2334            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2335            #[serde(rename_all = "camelCase")]
2336            pub struct PodTemplateMetadata {
2337                /// Annotations that should be added to the create ACME HTTP01 solver pods.
2338                pub annotations: PodTemplateMetadataAnnotations,
2339                /// Labels that should be added to the created ACME HTTP01 solver pods.
2340                pub labels: PodTemplateMetadataLabels,
2341            }
2342
2343            /// A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
2344            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2345            #[serde(rename_all = "camelCase")]
2346            pub struct PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermNamespaceSelector {
2347            /// matchExpressions is a list of label selector requirements. The requirements are ANDed.
2348            pub match_expressions: Vec<PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermNamespaceSelectorMatchExpressionsItem>,
2349            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
2350            pub match_labels: PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermNamespaceSelectorMatchLabels,
2351        }
2352
2353            /// A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
2354            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2355            #[serde(rename_all = "camelCase")]
2356            pub struct PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemNamespaceSelector {
2357            /// matchExpressions is a list of label selector requirements. The requirements are ANDed.
2358            pub match_expressions: Vec<PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemNamespaceSelectorMatchExpressionsItem>,
2359            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
2360            pub match_labels: PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemNamespaceSelectorMatchLabels,
2361        }
2362
2363            /// A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
2364            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2365            #[serde(rename_all = "camelCase")]
2366            pub struct PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermNamespaceSelector {
2367            /// matchExpressions is a list of label selector requirements. The requirements are ANDed.
2368            pub match_expressions: Vec<PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermNamespaceSelectorMatchExpressionsItem>,
2369            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
2370            pub match_labels: PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermNamespaceSelectorMatchLabels,
2371        }
2372
2373            /// A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
2374            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2375            #[serde(rename_all = "camelCase")]
2376            pub struct PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemNamespaceSelector {
2377            /// matchExpressions is a list of label selector requirements. The requirements are ANDed.
2378            pub match_expressions: Vec<PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemNamespaceSelectorMatchExpressionsItem>,
2379            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
2380            pub match_labels: PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemNamespaceSelectorMatchLabels,
2381        }
2382
2383            /// Describes node affinity scheduling rules for the pod.
2384            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2385            #[serde(rename_all = "camelCase")]
2386            pub struct NodeAffinity {
2387                /// The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.
2388                pub preferred_during_scheduling_ignored_during_execution:
2389                    Vec<NodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionItem>,
2390                /// If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.
2391                pub required_during_scheduling_ignored_during_execution:
2392                    RequiredDuringSchedulingIgnoredDuringExecution,
2393            }
2394
2395            /// NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
2396            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2397            #[serde(rename_all = "camelCase")]
2398            pub struct NodeSelector {
2399                /// NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
2400                pub properties: std::collections::HashMap<String, String>,
2401            }
2402
2403            /// A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.
2404            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2405            #[serde(rename_all = "camelCase")]
2406            pub struct NodeSelectorTermsItem {
2407                /// A list of node selector requirements by node's labels.
2408                pub match_expressions: Vec<NodeSelectorTermsItemMatchExpressionsItem>,
2409                /// A list of node selector requirements by node's fields.
2410                pub match_fields: Vec<NodeSelectorTermsItemMatchFieldsItem>,
2411            }
2412
2413            /// ParentRef identifies an API object (usually a Gateway) that can be considered a parent of this resource (usually a route). The only kind of parent resource with "Core" support is Gateway. This API may be extended in the future to support additional kinds of parent resources, such as HTTPRoute.
2414            ///  The API object must be valid in the cluster; the Group and Kind must be registered in the cluster for this reference to be valid.
2415            ///  References to objects with invalid Group and Kind are not valid, and must be rejected by the implementation, with appropriate Conditions set on the containing object.
2416            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2417            #[serde(rename_all = "camelCase")]
2418            pub struct ParentRefsItem {
2419                /// Group is the group of the referent.
2420                ///  Support: Core
2421                pub group: String,
2422                /// Kind is kind of the referent.
2423                ///  Support: Core (Gateway) Support: Custom (Other Resources)
2424                pub kind: String,
2425                /// Name is the name of the referent.
2426                ///  Support: Core
2427                pub name: String,
2428                /// Namespace is the namespace of the referent. When unspecified (or empty string), this refers to the local namespace of the Route.
2429                ///  Support: Core
2430                pub namespace: String,
2431                /// SectionName is the name of a section within the target resource. In the following resources, SectionName is interpreted as the following:
2432                ///  * Gateway: Listener Name
2433                ///  Implementations MAY choose to support attaching Routes to other resources. If that is the case, they MUST clearly document how SectionName is interpreted.
2434                ///  When unspecified (empty string), this will reference the entire resource. For the purpose of status, an attachment is considered successful if at least one section in the parent resource accepts it. For example, Gateway listeners can restrict which Routes can attach to them by Route kind, namespace, or hostname. If 1 of 2 Gateway listeners accept attachment from the referencing Route, the Route MUST be considered successfully attached. If no Gateway listeners accept attachment from this Route, the Route MUST be considered detached from the Gateway.
2435                ///  Support: Core
2436                pub section_name: String,
2437            }
2438
2439            /// Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
2440            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2441            #[serde(rename_all = "camelCase")]
2442            pub struct PodAffinity {
2443                /// The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.
2444                pub preferred_during_scheduling_ignored_during_execution:
2445                    Vec<PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItem>,
2446                /// If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.
2447                pub required_during_scheduling_ignored_during_execution:
2448                    Vec<PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItem>,
2449            }
2450
2451            /// Required. A pod affinity term, associated with the corresponding weight.
2452            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2453            #[serde(rename_all = "camelCase")]
2454            pub struct PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTerm {
2455            /// A label query over a set of resources, in this case pods.
2456            pub label_selector: PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermLabelSelector,
2457            /// A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
2458            pub namespace_selector: PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermNamespaceSelector,
2459            /// namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace"
2460            pub namespaces: Vec<String>,
2461            /// This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.
2462            pub topology_key: String,
2463        }
2464
2465            /// Required. A pod affinity term, associated with the corresponding weight.
2466            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2467            #[serde(rename_all = "camelCase")]
2468            pub struct PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTerm {
2469            /// A label query over a set of resources, in this case pods.
2470            pub label_selector: PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermLabelSelector,
2471            /// A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
2472            pub namespace_selector: PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermNamespaceSelector,
2473            /// namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace"
2474            pub namespaces: Vec<String>,
2475            /// This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.
2476            pub topology_key: String,
2477        }
2478
2479            /// Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
2480            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2481            #[serde(rename_all = "camelCase")]
2482            pub struct PodAntiAffinity {
2483                /// The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.
2484                pub preferred_during_scheduling_ignored_during_execution:
2485                    Vec<PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItem>,
2486                /// If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.
2487                pub required_during_scheduling_ignored_during_execution:
2488                    Vec<PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItem>,
2489            }
2490
2491            /// Optional pod template used to configure the ACME challenge solver pods used for HTTP01 challenges.
2492            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2493            #[serde(rename_all = "camelCase")]
2494            pub struct PodTemplate {
2495                /// ObjectMeta overrides for the pod used to solve HTTP01 challenges. Only the 'labels' and 'annotations' fields may be set. If labels or annotations overlap with in-built values, the values here will override the in-built values.
2496                pub metadata: PodTemplateMetadata,
2497                /// PodSpec defines overrides for the HTTP01 challenge solver pod. Only the 'priorityClassName', 'nodeSelector', 'affinity', 'serviceAccountName' and 'tolerations' fields are supported currently. All other fields will be ignored.
2498                pub spec: PodTemplateSpec,
2499            }
2500
2501            /// A node selector term, associated with the corresponding weight.
2502            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2503            #[serde(rename_all = "camelCase")]
2504            pub struct Preference {
2505                /// A list of node selector requirements by node's labels.
2506                pub match_expressions: Vec<PreferenceMatchExpressionsItem>,
2507                /// A list of node selector requirements by node's fields.
2508                pub match_fields: Vec<PreferenceMatchFieldsItem>,
2509            }
2510
2511            /// An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).
2512            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2513            #[serde(rename_all = "camelCase")]
2514            pub struct NodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionItem {
2515                /// A node selector term, associated with the corresponding weight.
2516                pub preference: Preference,
2517                /// Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.
2518                pub weight: i32,
2519            }
2520
2521            /// The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)
2522            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2523            #[serde(rename_all = "camelCase")]
2524            pub struct PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItem {
2525                /// Required. A pod affinity term, associated with the corresponding weight.
2526                pub pod_affinity_term:
2527                    PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTerm,
2528                /// weight associated with matching the corresponding podAffinityTerm, in the range 1-100.
2529                pub weight: i32,
2530            }
2531
2532            /// The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)
2533            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2534            #[serde(rename_all = "camelCase")]
2535            pub struct PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItem {
2536            /// Required. A pod affinity term, associated with the corresponding weight.
2537            pub pod_affinity_term: PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTerm,
2538            /// weight associated with matching the corresponding podAffinityTerm, in the range 1-100.
2539            pub weight: i32,
2540        }
2541
2542            /// PrivateKey is the name of a Kubernetes Secret resource that will be used to store the automatically generated ACME account private key. Optionally, a `key` may be specified to select a specific entry within the named Secret resource. If `key` is not specified, a default of `tls.key` will be used.
2543            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2544            #[serde(rename_all = "camelCase")]
2545            pub struct PrivateKeySecretRef {
2546                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
2547                pub key: String,
2548                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
2549                pub name: String,
2550            }
2551
2552            /// If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.
2553            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2554            #[serde(rename_all = "camelCase")]
2555            pub struct RequiredDuringSchedulingIgnoredDuringExecution {
2556                /// Required. A list of node selector terms. The terms are ORed.
2557                pub node_selector_terms: Vec<NodeSelectorTermsItem>,
2558            }
2559
2560            /// Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running
2561            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2562            #[serde(rename_all = "camelCase")]
2563            pub struct PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItem {
2564                /// A label query over a set of resources, in this case pods.
2565                pub label_selector:
2566                    PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemLabelSelector,
2567                /// A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
2568                pub namespace_selector:
2569                    PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemNamespaceSelector,
2570                /// namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace"
2571                pub namespaces: Vec<String>,
2572                /// This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.
2573                pub topology_key: String,
2574            }
2575
2576            /// Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running
2577            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2578            #[serde(rename_all = "camelCase")]
2579            pub struct PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItem {
2580            /// A label query over a set of resources, in this case pods.
2581            pub label_selector: PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemLabelSelector,
2582            /// A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
2583            pub namespace_selector: PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemNamespaceSelector,
2584            /// namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace"
2585            pub namespaces: Vec<String>,
2586            /// This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.
2587            pub topology_key: String,
2588        }
2589
2590            /// Use RFC2136 ("Dynamic Updates in the Domain Name System") (https://datatracker.ietf.org/doc/rfc2136/) to manage DNS01 challenge records.
2591            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2592            #[serde(rename_all = "camelCase")]
2593            pub struct Rfc2136 {
2594                /// The IP address or hostname of an authoritative DNS server supporting RFC2136 in the form host:port. If the host is an IPv6 address it must be enclosed in square brackets (e.g [2001:db8::1]) ; port is optional. This field is required.
2595                pub nameserver: String,
2596                /// The TSIG Algorithm configured in the DNS supporting RFC2136. Used only when ``tsigSecretSecretRef`` and ``tsigKeyName`` are defined. Supported values are (case-insensitive): ``HMACMD5`` (default), ``HMACSHA1``, ``HMACSHA256`` or ``HMACSHA512``.
2597                pub tsig_algorithm: String,
2598                /// The TSIG Key name configured in the DNS. If ``tsigSecretSecretRef`` is defined, this field is required.
2599                pub tsig_key_name: String,
2600                /// The name of the secret containing the TSIG value. If ``tsigKeyName`` is defined, this field is required.
2601                pub tsig_secret_secret_ref: TsigSecretSecretRef,
2602            }
2603
2604            /// Use the AWS Route53 API to manage DNS01 challenge records.
2605            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2606            #[serde(rename_all = "camelCase")]
2607            pub struct Route53 {
2608                /// The AccessKeyID is used for authentication. If not set we fall-back to using env vars, shared credentials file or AWS Instance metadata see: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials
2609                pub access_key_i_d: String,
2610                /// If set, the provider will manage only this zone in Route53 and will not do an lookup using the route53:ListHostedZonesByName api call.
2611                pub hosted_zone_i_d: String,
2612                /// Always set the region when using AccessKeyID and SecretAccessKey
2613                pub region: String,
2614                /// Role is a Role ARN which the Route53 provider will assume using either the explicit credentials AccessKeyID/SecretAccessKey or the inferred credentials from environment variables, shared credentials file or AWS Instance metadata
2615                pub role: String,
2616                /// The SecretAccessKey is used for authentication. If not set we fall-back to using env vars, shared credentials file or AWS Instance metadata https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials
2617                pub secret_access_key_secret_ref: SecretAccessKeySecretRef,
2618            }
2619
2620            /// The SecretAccessKey is used for authentication. If not set we fall-back to using env vars, shared credentials file or AWS Instance metadata https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials
2621            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2622            #[serde(rename_all = "camelCase")]
2623            pub struct SecretAccessKeySecretRef {
2624                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
2625                pub key: String,
2626                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
2627                pub name: String,
2628            }
2629
2630            /// Reference to a key in a Secret that contains the App Role secret used to authenticate with Vault. The `key` field must be specified and denotes which entry within the Secret resource is used as the app role secret.
2631            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2632            #[serde(rename_all = "camelCase")]
2633            pub struct AppRoleSecretRef {
2634                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
2635                pub key: String,
2636                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
2637                pub name: String,
2638            }
2639
2640            /// The required Secret field containing a Kubernetes ServiceAccount JWT used for authenticating with Vault. Use of 'ambient credentials' is not supported.
2641            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2642            #[serde(rename_all = "camelCase")]
2643            pub struct KubernetesSecretRef {
2644                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
2645                pub key: String,
2646                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
2647                pub name: String,
2648            }
2649
2650            /// Selector selects a set of DNSNames on the Certificate resource that should be solved using this challenge solver. If not specified, the solver will be treated as the 'default' solver with the lowest priority, i.e. if any other solver has a more specific match, it will be used instead.
2651            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2652            #[serde(rename_all = "camelCase")]
2653            pub struct Selector {
2654                /// List of DNSNames that this solver will be used to solve. If specified and a match is found, a dnsNames selector will take precedence over a dnsZones selector. If multiple solvers match with the same dnsNames value, the solver with the most matching labels in matchLabels will be selected. If neither has more matches, the solver defined earlier in the list will be selected.
2655                pub dns_names: Vec<String>,
2656                /// List of DNSZones that this solver will be used to solve. The most specific DNS zone match specified here will take precedence over other DNS zone matches, so a solver specifying sys.example.com will be selected over one specifying example.com for the domain www.sys.example.com. If multiple solvers match with the same dnsZones value, the solver with the most matching labels in matchLabels will be selected. If neither has more matches, the solver defined earlier in the list will be selected.
2657                pub dns_zones: Vec<String>,
2658                /// A label selector that is used to refine the set of certificate's that this challenge solver will apply to.
2659                pub match_labels: SelectorMatchLabels,
2660            }
2661
2662            /// SelfSigned configures this issuer to 'self sign' certificates using the private key used to create the CertificateRequest object.
2663            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2664            #[serde(rename_all = "camelCase")]
2665            pub struct SelfSigned {
2666                /// The CRL distribution points is an X.509 v3 certificate extension which identifies the location of the CRL from which the revocation of this certificate can be checked. If not set certificate will be issued without CDP. Values are strings.
2667                pub crl_distribution_points: Vec<String>,
2668            }
2669
2670            /// A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field.
2671            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2672            #[serde(rename_all = "camelCase")]
2673            pub struct ServiceAccountSecretRef {
2674                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
2675                pub key: String,
2676                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
2677                pub name: String,
2678            }
2679
2680            /// An ACMEChallengeSolver describes how to solve ACME challenges for the issuer it is part of. A selector may be provided to use different solving strategies for different DNS names. Only one of HTTP01 or DNS01 must be provided.
2681            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2682            #[serde(rename_all = "camelCase")]
2683            pub struct SolversItem {
2684                /// Configures cert-manager to attempt to complete authorizations by performing the DNS01 challenge flow.
2685                pub dns01: Dns01,
2686                /// Configures cert-manager to attempt to complete authorizations by performing the HTTP01 challenge flow. It is not possible to obtain certificates for wildcard domain names (e.g. `*.example.com`) using the HTTP01 challenge mechanism.
2687                pub http01: Http01,
2688                /// Selector selects a set of DNSNames on the Certificate resource that should be solved using this challenge solver. If not specified, the solver will be treated as the 'default' solver with the lowest priority, i.e. if any other solver has a more specific match, it will be used instead.
2689                pub selector: Selector,
2690            }
2691
2692            /// Desired state of the ClusterIssuer resource.
2693            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2694            #[serde(rename_all = "camelCase")]
2695            pub struct Spec {
2696                /// ACME configures this issuer to communicate with a RFC8555 (ACME) server to obtain signed x509 certificates.
2697                pub acme: SpecAcme,
2698                /// CA configures this issuer to sign certificates using a signing CA keypair stored in a Secret resource. This is used to build internal PKIs that are managed by cert-manager.
2699                pub ca: Ca,
2700                /// SelfSigned configures this issuer to 'self sign' certificates using the private key used to create the CertificateRequest object.
2701                pub self_signed: SelfSigned,
2702                /// Vault configures this issuer to sign certificates using a HashiCorp Vault PKI backend.
2703                pub vault: Vault,
2704                /// Venafi configures this issuer to sign certificates using a Venafi TPP or Venafi Cloud policy zone.
2705                pub venafi: Venafi,
2706            }
2707
2708            /// PodSpec defines overrides for the HTTP01 challenge solver pod. Only the 'priorityClassName', 'nodeSelector', 'affinity', 'serviceAccountName' and 'tolerations' fields are supported currently. All other fields will be ignored.
2709            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2710            #[serde(rename_all = "camelCase")]
2711            pub struct PodTemplateSpec {
2712                /// If specified, the pod's scheduling constraints
2713                pub affinity: Affinity,
2714                /// NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
2715                pub node_selector: NodeSelector,
2716                /// If specified, the pod's priorityClassName.
2717                pub priority_class_name: String,
2718                /// If specified, the pod's service account
2719                pub service_account_name: String,
2720                /// If specified, the pod's tolerations.
2721                pub tolerations: Vec<TolerationsItem>,
2722            }
2723
2724            /// Status of the ClusterIssuer. This is set and managed automatically.
2725            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2726            #[serde(rename_all = "camelCase")]
2727            pub struct Status {
2728                /// ACME specific status options. This field should only be set if the Issuer is configured to use an ACME server to issue certificates.
2729                pub acme: StatusAcme,
2730                /// List of status conditions to indicate the status of a CertificateRequest. Known condition types are `Ready`.
2731                pub conditions: Vec<ConditionsItem>,
2732            }
2733
2734            /// A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field.
2735            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2736            #[serde(rename_all = "camelCase")]
2737            pub struct DigitaloceanTokenSecretRef {
2738                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
2739                pub key: String,
2740                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
2741                pub name: String,
2742            }
2743
2744            /// TokenSecretRef authenticates with Vault by presenting a token.
2745            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2746            #[serde(rename_all = "camelCase")]
2747            pub struct AuthTokenSecretRef {
2748                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
2749                pub key: String,
2750                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
2751                pub name: String,
2752            }
2753
2754            /// The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.
2755            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2756            #[serde(rename_all = "camelCase")]
2757            pub struct TolerationsItem {
2758                /// Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
2759                pub effect: String,
2760                /// Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.
2761                pub key: String,
2762                /// Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.
2763                pub operator: String,
2764                /// TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.
2765                pub toleration_seconds: i64,
2766                /// Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.
2767                pub value: String,
2768            }
2769
2770            /// TPP specifies Trust Protection Platform configuration settings. Only one of TPP or Cloud may be specified.
2771            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2772            #[serde(rename_all = "camelCase")]
2773            pub struct Tpp {
2774                /// CABundle is a PEM encoded TLS certificate to use to verify connections to the TPP instance. If specified, system roots will not be used and the issuing CA for the TPP instance must be verifiable using the provided root. If not specified, the connection will be verified using the cert-manager system root certificates.
2775                pub ca_bundle: Vec<u8>,
2776                /// CredentialsRef is a reference to a Secret containing the username and password for the TPP server. The secret must contain two keys, 'username' and 'password'.
2777                pub credentials_ref: CredentialsRef,
2778                /// URL is the base URL for the vedsdk endpoint of the Venafi TPP instance, for example: "https://tpp.example.com/vedsdk".
2779                pub url: String,
2780            }
2781
2782            /// The name of the secret containing the TSIG value. If ``tsigKeyName`` is defined, this field is required.
2783            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2784            #[serde(rename_all = "camelCase")]
2785            pub struct TsigSecretSecretRef {
2786                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
2787                pub key: String,
2788                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
2789                pub name: String,
2790            }
2791
2792            /// Vault configures this issuer to sign certificates using a HashiCorp Vault PKI backend.
2793            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2794            #[serde(rename_all = "camelCase")]
2795            pub struct Vault {
2796                /// Auth configures how cert-manager authenticates with the Vault server.
2797                pub auth: Auth,
2798                /// PEM-encoded CA bundle (base64-encoded) used to validate Vault server certificate. Only used if the Server URL is using HTTPS protocol. This parameter is ignored for plain HTTP protocol connection. If not set the system root certificates are used to validate the TLS connection.
2799                pub ca_bundle: Vec<u8>,
2800                /// Name of the vault namespace. Namespaces is a set of features within Vault Enterprise that allows Vault environments to support Secure Multi-tenancy. e.g: "ns1" More about namespaces can be found here https://www.vaultproject.io/docs/enterprise/namespaces
2801                pub namespace: String,
2802                /// Path is the mount path of the Vault PKI backend's `sign` endpoint, e.g: "my_pki_mount/sign/my-role-name".
2803                pub path: String,
2804                /// Server is the connection address for the Vault server, e.g: "https://vault.example.com:8200".
2805                pub server: String,
2806            }
2807
2808            /// Venafi configures this issuer to sign certificates using a Venafi TPP or Venafi Cloud policy zone.
2809            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2810            #[serde(rename_all = "camelCase")]
2811            pub struct Venafi {
2812                /// Cloud specifies the Venafi cloud configuration settings. Only one of TPP or Cloud may be specified.
2813                pub cloud: Cloud,
2814                /// TPP specifies Trust Protection Platform configuration settings. Only one of TPP or Cloud may be specified.
2815                pub tpp: Tpp,
2816                /// Zone is the Venafi Policy Zone to use for this issuer. All requests made to the Venafi platform will be restricted by the named zone policy. This field is required.
2817                pub zone: String,
2818            }
2819
2820            /// Configure an external webhook based DNS01 challenge solver to manage DNS01 challenge records.
2821            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2822            #[serde(rename_all = "camelCase")]
2823            pub struct Webhook {
2824                /// Additional configuration that should be passed to the webhook apiserver when challenges are processed. This can contain arbitrary JSON data. Secret values should not be specified in this stanza. If secret values are needed (e.g. credentials for a DNS service), you should use a SecretKeySelector to reference a Secret resource. For details on the schema of this field, consult the webhook provider implementation's documentation.
2825                pub config: serde_json::Map<String, serde_json::Value>,
2826                /// The API group name that should be used when POSTing ChallengePayload resources to the webhook apiserver. This should be the same as the GroupName specified in the webhook provider implementation.
2827                pub group_name: String,
2828                /// The name of the solver to use, as defined in the webhook provider implementation. This will typically be the name of the provider, e.g. 'cloudflare'.
2829                pub solver_name: String,
2830            }
2831        }
2832        pub mod issuer {
2833            /// An Issuer represents a certificate issuing authority which can be referenced as part of `issuerRef` fields. It is scoped to a single namespace and can therefore only be referenced by resources within the same namespace.
2834            #[derive(serde::Deserialize, Debug, PartialEq)]
2835            pub struct Issuer {
2836                pub metadata: k8s_openapi::apimachinery::pkg::apis::meta::v1::ObjectMeta,
2837                pub spec: Spec,
2838                pub status: Status,
2839            }
2840
2841            impl k8s_openapi::Resource for Issuer {
2842                type Scope = k8s_openapi::ClusterResourceScope;
2843
2844                const API_VERSION: &'static str = "cert-manager.io/v1";
2845                const GROUP: &'static str = "cert-manager.io";
2846                const KIND: &'static str = "Issuer";
2847                const VERSION: &'static str = "v1";
2848                const URL_PATH_SEGMENT: &'static str = "";
2849            }
2850
2851            impl k8s_openapi::Metadata for Issuer {
2852                type Ty = k8s_openapi::apimachinery::pkg::apis::meta::v1::ObjectMeta;
2853
2854                fn metadata(&self) -> &<Self as k8s_openapi::Metadata>::Ty {
2855                    &self.metadata
2856                }
2857
2858                fn metadata_mut(&mut self) -> &mut <Self as k8s_openapi::Metadata>::Ty {
2859                    &mut self.metadata
2860                }
2861            }
2862
2863            impl serde::Serialize for Issuer {
2864                fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
2865                where
2866                    S: serde::Serializer,
2867                {
2868                    use serde::ser::SerializeStruct;
2869                    let mut state = serializer.serialize_struct("Issuer", 5)?;
2870                    state.serialize_field(
2871                        "apiVersion",
2872                        <Self as k8s_openapi::Resource>::API_VERSION,
2873                    )?;
2874                    state.serialize_field("kind", <Self as k8s_openapi::Resource>::KIND)?;
2875                    state.serialize_field("metadata", &self.metadata)?;
2876                    state.serialize_field("spec", &self.spec)?;
2877                    state.serialize_field("status", &self.status)?;
2878                    state.end()
2879                }
2880            }
2881
2882            /// A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field.
2883            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2884            #[serde(rename_all = "camelCase")]
2885            pub struct AccessTokenSecretRef {
2886                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
2887                pub key: String,
2888                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
2889                pub name: String,
2890            }
2891
2892            /// A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field.
2893            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2894            #[serde(rename_all = "camelCase")]
2895            pub struct AccountSecretRef {
2896                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
2897                pub key: String,
2898                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
2899                pub name: String,
2900            }
2901
2902            /// ACME configures this issuer to communicate with a RFC8555 (ACME) server to obtain signed x509 certificates.
2903            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2904            #[serde(rename_all = "camelCase")]
2905            pub struct SpecAcme {
2906                /// Enables or disables generating a new ACME account key. If true, the Issuer resource will *not* request a new account but will expect the account key to be supplied via an existing secret. If false, the cert-manager system will generate a new ACME account key for the Issuer. Defaults to false.
2907                pub disable_account_key_generation: bool,
2908                /// Email is the email address to be associated with the ACME account. This field is optional, but it is strongly recommended to be set. It will be used to contact you in case of issues with your account or certificates, including expiry notification emails. This field may be updated after the account is initially registered.
2909                pub email: String,
2910                /// Enables requesting a Not After date on certificates that matches the duration of the certificate. This is not supported by all ACME servers like Let's Encrypt. If set to true when the ACME server does not support it it will create an error on the Order. Defaults to false.
2911                pub enable_duration_feature: bool,
2912                /// ExternalAccountBinding is a reference to a CA external account of the ACME server. If set, upon registration cert-manager will attempt to associate the given external account credentials with the registered ACME account.
2913                pub external_account_binding: ExternalAccountBinding,
2914                /// PreferredChain is the chain to use if the ACME server outputs multiple. PreferredChain is no guarantee that this one gets delivered by the ACME endpoint. For example, for Let's Encrypt's DST crosssign you would use: "DST Root CA X3" or "ISRG Root X1" for the newer Let's Encrypt root CA. This value picks the first certificate bundle in the ACME alternative chains that has a certificate with this value as its issuer's CN
2915                pub preferred_chain: String,
2916                /// PrivateKey is the name of a Kubernetes Secret resource that will be used to store the automatically generated ACME account private key. Optionally, a `key` may be specified to select a specific entry within the named Secret resource. If `key` is not specified, a default of `tls.key` will be used.
2917                pub private_key_secret_ref: PrivateKeySecretRef,
2918                /// Server is the URL used to access the ACME server's 'directory' endpoint. For example, for Let's Encrypt's staging endpoint, you would use: "https://acme-staging-v02.api.letsencrypt.org/directory". Only ACME v2 endpoints (i.e. RFC 8555) are supported.
2919                pub server: String,
2920                /// Enables or disables validation of the ACME server TLS certificate. If true, requests to the ACME server will not have their TLS certificate validated (i.e. insecure connections will be allowed). Only enable this option in development environments. The cert-manager system installed roots will be used to verify connections to the ACME server if this is false. Defaults to false.
2921                pub skip_t_l_s_verify: bool,
2922                /// Solvers is a list of challenge solvers that will be used to solve ACME challenges for the matching domains. Solver configurations must be provided in order to obtain certificates from an ACME server. For more information, see: https://cert-manager.io/docs/configuration/acme/
2923                pub solvers: Vec<SolversItem>,
2924            }
2925
2926            /// ACME specific status options. This field should only be set if the Issuer is configured to use an ACME server to issue certificates.
2927            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2928            #[serde(rename_all = "camelCase")]
2929            pub struct StatusAcme {
2930                /// LastRegisteredEmail is the email associated with the latest registered ACME account, in order to track changes made to registered account associated with the  Issuer
2931                pub last_registered_email: String,
2932                /// URI is the unique account identifier, which can also be used to retrieve account details from the CA
2933                pub uri: String,
2934            }
2935
2936            /// Use the 'ACME DNS' (https://github.com/joohoi/acme-dns) API to manage DNS01 challenge records.
2937            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2938            #[serde(rename_all = "camelCase")]
2939            pub struct AcmeDNS {
2940                /// A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field.
2941                pub account_secret_ref: AccountSecretRef,
2942                pub host: String,
2943            }
2944
2945            /// If specified, the pod's scheduling constraints
2946            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2947            #[serde(rename_all = "camelCase")]
2948            pub struct Affinity {
2949                /// Describes node affinity scheduling rules for the pod.
2950                pub node_affinity: NodeAffinity,
2951                /// Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
2952                pub pod_affinity: PodAffinity,
2953                /// Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
2954                pub pod_anti_affinity: PodAntiAffinity,
2955            }
2956
2957            /// Use the Akamai DNS zone management API to manage DNS01 challenge records.
2958            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2959            #[serde(rename_all = "camelCase")]
2960            pub struct Akamai {
2961                /// A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field.
2962                pub access_token_secret_ref: AccessTokenSecretRef,
2963                /// A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field.
2964                pub client_secret_secret_ref: AkamaiClientSecretSecretRef,
2965                /// A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field.
2966                pub client_token_secret_ref: ClientTokenSecretRef,
2967                pub service_consumer_domain: String,
2968            }
2969
2970            /// Annotations that should be added to the created ACME HTTP01 solver ingress.
2971            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2972            #[serde(rename_all = "camelCase")]
2973            pub struct IngressTemplateMetadataAnnotations {
2974                /// Annotations that should be added to the created ACME HTTP01 solver ingress.
2975                pub properties: std::collections::HashMap<String, String>,
2976            }
2977
2978            /// Annotations that should be added to the create ACME HTTP01 solver pods.
2979            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2980            #[serde(rename_all = "camelCase")]
2981            pub struct PodTemplateMetadataAnnotations {
2982                /// Annotations that should be added to the create ACME HTTP01 solver pods.
2983                pub properties: std::collections::HashMap<String, String>,
2984            }
2985
2986            /// API key to use to authenticate with Cloudflare. Note: using an API token to authenticate is now the recommended method as it allows greater control of permissions.
2987            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2988            #[serde(rename_all = "camelCase")]
2989            pub struct ApiKeySecretRef {
2990                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
2991                pub key: String,
2992                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
2993                pub name: String,
2994            }
2995
2996            /// API token used to authenticate with Cloudflare.
2997            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
2998            #[serde(rename_all = "camelCase")]
2999            pub struct CloudflareApiTokenSecretRef {
3000                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
3001                pub key: String,
3002                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
3003                pub name: String,
3004            }
3005
3006            /// APITokenSecretRef is a secret key selector for the Venafi Cloud API token.
3007            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3008            #[serde(rename_all = "camelCase")]
3009            pub struct CloudApiTokenSecretRef {
3010                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
3011                pub key: String,
3012                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
3013                pub name: String,
3014            }
3015
3016            /// AppRole authenticates with Vault using the App Role auth mechanism, with the role and secret stored in a Kubernetes Secret resource.
3017            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3018            #[serde(rename_all = "camelCase")]
3019            pub struct AppRole {
3020                /// Path where the App Role authentication backend is mounted in Vault, e.g: "approle"
3021                pub path: String,
3022                /// RoleID configured in the App Role authentication backend when setting up the authentication backend in Vault.
3023                pub role_id: String,
3024                /// Reference to a key in a Secret that contains the App Role secret used to authenticate with Vault. The `key` field must be specified and denotes which entry within the Secret resource is used as the app role secret.
3025                pub secret_ref: AppRoleSecretRef,
3026            }
3027
3028            /// Auth configures how cert-manager authenticates with the Vault server.
3029            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3030            #[serde(rename_all = "camelCase")]
3031            pub struct Auth {
3032                /// AppRole authenticates with Vault using the App Role auth mechanism, with the role and secret stored in a Kubernetes Secret resource.
3033                pub app_role: AppRole,
3034                /// Kubernetes authenticates with Vault by passing the ServiceAccount token stored in the named Secret resource to the Vault server.
3035                pub kubernetes: Kubernetes,
3036                /// TokenSecretRef authenticates with Vault by presenting a token.
3037                pub token_secret_ref: AuthTokenSecretRef,
3038            }
3039
3040            /// Use the Microsoft Azure DNS API to manage DNS01 challenge records.
3041            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3042            #[serde(rename_all = "camelCase")]
3043            pub struct AzureDNS {
3044                /// if both this and ClientSecret are left unset MSI will be used
3045                pub client_i_d: String,
3046                /// if both this and ClientID are left unset MSI will be used
3047                pub client_secret_secret_ref: AzureDNSClientSecretSecretRef,
3048                /// name of the Azure environment (default AzurePublicCloud)
3049                pub environment: String,
3050                /// name of the DNS zone that should be used
3051                pub hosted_zone_name: String,
3052                /// managed identity configuration, can not be used at the same time as clientID, clientSecretSecretRef or tenantID
3053                pub managed_identity: ManagedIdentity,
3054                /// resource group the DNS zone is located in
3055                pub resource_group_name: String,
3056                /// ID of the Azure subscription
3057                pub subscription_i_d: String,
3058                /// when specifying ClientID and ClientSecret then this field is also needed
3059                pub tenant_i_d: String,
3060            }
3061
3062            /// CA configures this issuer to sign certificates using a signing CA keypair stored in a Secret resource. This is used to build internal PKIs that are managed by cert-manager.
3063            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3064            #[serde(rename_all = "camelCase")]
3065            pub struct Ca {
3066                /// The CRL distribution points is an X.509 v3 certificate extension which identifies the location of the CRL from which the revocation of this certificate can be checked. If not set, certificates will be issued without distribution points set.
3067                pub crl_distribution_points: Vec<String>,
3068                /// The OCSP server list is an X.509 v3 extension that defines a list of URLs of OCSP responders. The OCSP responders can be queried for the revocation status of an issued certificate. If not set, the certificate will be issued with no OCSP servers set. For example, an OCSP server URL could be "http://ocsp.int-x3.letsencrypt.org".
3069                pub ocsp_servers: Vec<String>,
3070                /// SecretName is the name of the secret used to sign Certificates issued by this Issuer.
3071                pub secret_name: String,
3072            }
3073
3074            /// A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field.
3075            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3076            #[serde(rename_all = "camelCase")]
3077            pub struct AkamaiClientSecretSecretRef {
3078                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
3079                pub key: String,
3080                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
3081                pub name: String,
3082            }
3083
3084            /// if both this and ClientID are left unset MSI will be used
3085            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3086            #[serde(rename_all = "camelCase")]
3087            pub struct AzureDNSClientSecretSecretRef {
3088                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
3089                pub key: String,
3090                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
3091                pub name: String,
3092            }
3093
3094            /// A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field.
3095            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3096            #[serde(rename_all = "camelCase")]
3097            pub struct ClientTokenSecretRef {
3098                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
3099                pub key: String,
3100                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
3101                pub name: String,
3102            }
3103
3104            /// Cloud specifies the Venafi cloud configuration settings. Only one of TPP or Cloud may be specified.
3105            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3106            #[serde(rename_all = "camelCase")]
3107            pub struct Cloud {
3108                /// APITokenSecretRef is a secret key selector for the Venafi Cloud API token.
3109                pub api_token_secret_ref: CloudApiTokenSecretRef,
3110                /// URL is the base URL for Venafi Cloud. Defaults to "https://api.venafi.cloud/v1".
3111                pub url: String,
3112            }
3113
3114            /// Use the Google Cloud DNS API to manage DNS01 challenge records.
3115            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3116            #[serde(rename_all = "camelCase")]
3117            pub struct CloudDNS {
3118                /// HostedZoneName is an optional field that tells cert-manager in which Cloud DNS zone the challenge record has to be created. If left empty cert-manager will automatically choose a zone.
3119                pub hosted_zone_name: String,
3120                pub project: String,
3121                /// A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field.
3122                pub service_account_secret_ref: ServiceAccountSecretRef,
3123            }
3124
3125            /// Use the Cloudflare API to manage DNS01 challenge records.
3126            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3127            #[serde(rename_all = "camelCase")]
3128            pub struct Cloudflare {
3129                /// API key to use to authenticate with Cloudflare. Note: using an API token to authenticate is now the recommended method as it allows greater control of permissions.
3130                pub api_key_secret_ref: ApiKeySecretRef,
3131                /// API token used to authenticate with Cloudflare.
3132                pub api_token_secret_ref: CloudflareApiTokenSecretRef,
3133                /// Email of the account, only required when using API key based authentication.
3134                pub email: String,
3135            }
3136
3137            /// IssuerCondition contains condition information for an Issuer.
3138            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3139            #[serde(rename_all = "camelCase")]
3140            pub struct ConditionsItem {
3141                /// LastTransitionTime is the timestamp corresponding to the last status change of this condition.
3142                pub last_transition_time: String,
3143                /// Message is a human readable description of the details of the last transition, complementing reason.
3144                pub message: String,
3145                /// If set, this represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.condition[x].observedGeneration is 9, the condition is out of date with respect to the current state of the Issuer.
3146                pub observed_generation: i64,
3147                /// Reason is a brief machine readable explanation for the condition's last transition.
3148                pub reason: String,
3149                /// Status of the condition, one of (`True`, `False`, `Unknown`).
3150                pub status: String,
3151                /// Type of the condition, known values are (`Ready`).
3152                pub r#type: String,
3153            }
3154
3155            /// CredentialsRef is a reference to a Secret containing the username and password for the TPP server. The secret must contain two keys, 'username' and 'password'.
3156            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3157            #[serde(rename_all = "camelCase")]
3158            pub struct CredentialsRef {
3159                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
3160                pub name: String,
3161            }
3162
3163            /// Use the DigitalOcean DNS API to manage DNS01 challenge records.
3164            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3165            #[serde(rename_all = "camelCase")]
3166            pub struct Digitalocean {
3167                /// A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field.
3168                pub token_secret_ref: DigitaloceanTokenSecretRef,
3169            }
3170
3171            /// Configures cert-manager to attempt to complete authorizations by performing the DNS01 challenge flow.
3172            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3173            #[serde(rename_all = "camelCase")]
3174            pub struct Dns01 {
3175                /// Use the 'ACME DNS' (https://github.com/joohoi/acme-dns) API to manage DNS01 challenge records.
3176                pub acme_d_n_s: AcmeDNS,
3177                /// Use the Akamai DNS zone management API to manage DNS01 challenge records.
3178                pub akamai: Akamai,
3179                /// Use the Microsoft Azure DNS API to manage DNS01 challenge records.
3180                pub azure_d_n_s: AzureDNS,
3181                /// Use the Google Cloud DNS API to manage DNS01 challenge records.
3182                pub cloud_d_n_s: CloudDNS,
3183                /// Use the Cloudflare API to manage DNS01 challenge records.
3184                pub cloudflare: Cloudflare,
3185                /// CNAMEStrategy configures how the DNS01 provider should handle CNAME records when found in DNS zones.
3186                pub cname_strategy: String,
3187                /// Use the DigitalOcean DNS API to manage DNS01 challenge records.
3188                pub digitalocean: Digitalocean,
3189                /// Use RFC2136 ("Dynamic Updates in the Domain Name System") (https://datatracker.ietf.org/doc/rfc2136/) to manage DNS01 challenge records.
3190                pub rfc2136: Rfc2136,
3191                /// Use the AWS Route53 API to manage DNS01 challenge records.
3192                pub route53: Route53,
3193                /// Configure an external webhook based DNS01 challenge solver to manage DNS01 challenge records.
3194                pub webhook: Webhook,
3195            }
3196
3197            /// ExternalAccountBinding is a reference to a CA external account of the ACME server. If set, upon registration cert-manager will attempt to associate the given external account credentials with the registered ACME account.
3198            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3199            #[serde(rename_all = "camelCase")]
3200            pub struct ExternalAccountBinding {
3201                /// Deprecated: keyAlgorithm field exists for historical compatibility reasons and should not be used. The algorithm is now hardcoded to HS256 in golang/x/crypto/acme.
3202                pub key_algorithm: String,
3203                /// keyID is the ID of the CA key that the External Account is bound to.
3204                pub key_i_d: String,
3205                /// keySecretRef is a Secret Key Selector referencing a data item in a Kubernetes Secret which holds the symmetric MAC key of the External Account Binding. The `key` is the index string that is paired with the key data in the Secret and should not be confused with the key data itself, or indeed with the External Account Binding keyID above. The secret key stored in the Secret **must** be un-padded, base64 URL encoded data.
3206                pub key_secret_ref: KeySecretRef,
3207            }
3208
3209            /// The Gateway API is a sig-network community API that models service networking in Kubernetes (https://gateway-api.sigs.k8s.io/). The Gateway solver will create HTTPRoutes with the specified labels in the same namespace as the challenge. This solver is experimental, and fields / behaviour may change in the future.
3210            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3211            #[serde(rename_all = "camelCase")]
3212            pub struct GatewayHTTPRoute {
3213                /// Custom labels that will be applied to HTTPRoutes created by cert-manager while solving HTTP-01 challenges.
3214                pub labels: GatewayHTTPRouteLabels,
3215                /// When solving an HTTP-01 challenge, cert-manager creates an HTTPRoute. cert-manager needs to know which parentRefs should be used when creating the HTTPRoute. Usually, the parentRef references a Gateway. See: https://gateway-api.sigs.k8s.io/v1alpha2/api-types/httproute/#attaching-to-gateways
3216                pub parent_refs: Vec<ParentRefsItem>,
3217                /// Optional service type for Kubernetes solver service. Supported values are NodePort or ClusterIP. If unset, defaults to NodePort.
3218                pub service_type: String,
3219            }
3220
3221            /// Configures cert-manager to attempt to complete authorizations by performing the HTTP01 challenge flow. It is not possible to obtain certificates for wildcard domain names (e.g. `*.example.com`) using the HTTP01 challenge mechanism.
3222            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3223            #[serde(rename_all = "camelCase")]
3224            pub struct Http01 {
3225                /// The Gateway API is a sig-network community API that models service networking in Kubernetes (https://gateway-api.sigs.k8s.io/). The Gateway solver will create HTTPRoutes with the specified labels in the same namespace as the challenge. This solver is experimental, and fields / behaviour may change in the future.
3226                pub gateway_h_t_t_p_route: GatewayHTTPRoute,
3227                /// The ingress based HTTP01 challenge solver will solve challenges by creating or modifying Ingress resources in order to route requests for '/.well-known/acme-challenge/XYZ' to 'challenge solver' pods that are provisioned by cert-manager for each Challenge to be completed.
3228                pub ingress: Ingress,
3229            }
3230
3231            /// The ingress based HTTP01 challenge solver will solve challenges by creating or modifying Ingress resources in order to route requests for '/.well-known/acme-challenge/XYZ' to 'challenge solver' pods that are provisioned by cert-manager for each Challenge to be completed.
3232            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3233            #[serde(rename_all = "camelCase")]
3234            pub struct Ingress {
3235                /// The ingress class to use when creating Ingress resources to solve ACME challenges that use this challenge solver. Only one of 'class' or 'name' may be specified.
3236                pub class: String,
3237                /// Optional ingress template used to configure the ACME challenge solver ingress used for HTTP01 challenges.
3238                pub ingress_template: IngressTemplate,
3239                /// The name of the ingress resource that should have ACME challenge solving routes inserted into it in order to solve HTTP01 challenges. This is typically used in conjunction with ingress controllers like ingress-gce, which maintains a 1:1 mapping between external IPs and ingress resources.
3240                pub name: String,
3241                /// Optional pod template used to configure the ACME challenge solver pods used for HTTP01 challenges.
3242                pub pod_template: PodTemplate,
3243                /// Optional service type for Kubernetes solver service. Supported values are NodePort or ClusterIP. If unset, defaults to NodePort.
3244                pub service_type: String,
3245            }
3246
3247            /// Optional ingress template used to configure the ACME challenge solver ingress used for HTTP01 challenges.
3248            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3249            #[serde(rename_all = "camelCase")]
3250            pub struct IngressTemplate {
3251                /// ObjectMeta overrides for the ingress used to solve HTTP01 challenges. Only the 'labels' and 'annotations' fields may be set. If labels or annotations overlap with in-built values, the values here will override the in-built values.
3252                pub metadata: IngressTemplateMetadata,
3253            }
3254
3255            /// keySecretRef is a Secret Key Selector referencing a data item in a Kubernetes Secret which holds the symmetric MAC key of the External Account Binding. The `key` is the index string that is paired with the key data in the Secret and should not be confused with the key data itself, or indeed with the External Account Binding keyID above. The secret key stored in the Secret **must** be un-padded, base64 URL encoded data.
3256            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3257            #[serde(rename_all = "camelCase")]
3258            pub struct KeySecretRef {
3259                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
3260                pub key: String,
3261                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
3262                pub name: String,
3263            }
3264
3265            /// Kubernetes authenticates with Vault by passing the ServiceAccount token stored in the named Secret resource to the Vault server.
3266            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3267            #[serde(rename_all = "camelCase")]
3268            pub struct Kubernetes {
3269                /// The Vault mountPath here is the mount path to use when authenticating with Vault. For example, setting a value to `/v1/auth/foo`, will use the path `/v1/auth/foo/login` to authenticate with Vault. If unspecified, the default value "/v1/auth/kubernetes" will be used.
3270                pub mount_path: String,
3271                /// A required field containing the Vault Role to assume. A Role binds a Kubernetes ServiceAccount with a set of Vault policies.
3272                pub role: String,
3273                /// The required Secret field containing a Kubernetes ServiceAccount JWT used for authenticating with Vault. Use of 'ambient credentials' is not supported.
3274                pub secret_ref: KubernetesSecretRef,
3275            }
3276
3277            /// A label query over a set of resources, in this case pods.
3278            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3279            #[serde(rename_all = "camelCase")]
3280            pub struct PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermLabelSelector {
3281            /// matchExpressions is a list of label selector requirements. The requirements are ANDed.
3282            pub match_expressions: Vec<PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermLabelSelectorMatchExpressionsItem>,
3283            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
3284            pub match_labels: PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermLabelSelectorMatchLabels,
3285        }
3286
3287            /// A label query over a set of resources, in this case pods.
3288            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3289            #[serde(rename_all = "camelCase")]
3290            pub struct PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemLabelSelector {
3291            /// matchExpressions is a list of label selector requirements. The requirements are ANDed.
3292            pub match_expressions: Vec<PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemLabelSelectorMatchExpressionsItem>,
3293            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
3294            pub match_labels: PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemLabelSelectorMatchLabels,
3295        }
3296
3297            /// A label query over a set of resources, in this case pods.
3298            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3299            #[serde(rename_all = "camelCase")]
3300            pub struct PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermLabelSelector {
3301            /// matchExpressions is a list of label selector requirements. The requirements are ANDed.
3302            pub match_expressions: Vec<PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermLabelSelectorMatchExpressionsItem>,
3303            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
3304            pub match_labels: PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermLabelSelectorMatchLabels,
3305        }
3306
3307            /// A label query over a set of resources, in this case pods.
3308            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3309            #[serde(rename_all = "camelCase")]
3310            pub struct PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemLabelSelector {
3311            /// matchExpressions is a list of label selector requirements. The requirements are ANDed.
3312            pub match_expressions: Vec<PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemLabelSelectorMatchExpressionsItem>,
3313            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
3314            pub match_labels: PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemLabelSelectorMatchLabels,
3315        }
3316
3317            /// Custom labels that will be applied to HTTPRoutes created by cert-manager while solving HTTP-01 challenges.
3318            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3319            #[serde(rename_all = "camelCase")]
3320            pub struct GatewayHTTPRouteLabels {
3321                /// Custom labels that will be applied to HTTPRoutes created by cert-manager while solving HTTP-01 challenges.
3322                pub properties: std::collections::HashMap<String, String>,
3323            }
3324
3325            /// Labels that should be added to the created ACME HTTP01 solver ingress.
3326            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3327            #[serde(rename_all = "camelCase")]
3328            pub struct IngressTemplateMetadataLabels {
3329                /// Labels that should be added to the created ACME HTTP01 solver ingress.
3330                pub properties: std::collections::HashMap<String, String>,
3331            }
3332
3333            /// Labels that should be added to the created ACME HTTP01 solver pods.
3334            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3335            #[serde(rename_all = "camelCase")]
3336            pub struct PodTemplateMetadataLabels {
3337                /// Labels that should be added to the created ACME HTTP01 solver pods.
3338                pub properties: std::collections::HashMap<String, String>,
3339            }
3340
3341            /// managed identity configuration, can not be used at the same time as clientID, clientSecretSecretRef or tenantID
3342            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3343            #[serde(rename_all = "camelCase")]
3344            pub struct ManagedIdentity {
3345                /// client ID of the managed identity, can not be used at the same time as resourceID
3346                pub client_i_d: String,
3347                /// resource ID of the managed identity, can not be used at the same time as clientID
3348                pub resource_i_d: String,
3349            }
3350
3351            /// A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
3352            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3353            #[serde(rename_all = "camelCase")]
3354            pub struct PreferenceMatchExpressionsItem {
3355                /// The label key that the selector applies to.
3356                pub key: String,
3357                /// Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
3358                pub operator: String,
3359                /// An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
3360                pub values: Vec<String>,
3361            }
3362
3363            /// A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
3364            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3365            #[serde(rename_all = "camelCase")]
3366            pub struct NodeSelectorTermsItemMatchExpressionsItem {
3367                /// The label key that the selector applies to.
3368                pub key: String,
3369                /// Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
3370                pub operator: String,
3371                /// An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
3372                pub values: Vec<String>,
3373            }
3374
3375            /// A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
3376            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3377            #[serde(rename_all = "camelCase")]
3378            pub struct PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermLabelSelectorMatchExpressionsItem
3379            {
3380                /// key is the label key that the selector applies to.
3381                pub key: String,
3382                /// operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
3383                pub operator: String,
3384                /// values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
3385                pub values: Vec<String>,
3386            }
3387
3388            /// A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
3389            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3390            #[serde(rename_all = "camelCase")]
3391            pub struct PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermNamespaceSelectorMatchExpressionsItem
3392            {
3393                /// key is the label key that the selector applies to.
3394                pub key: String,
3395                /// operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
3396                pub operator: String,
3397                /// values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
3398                pub values: Vec<String>,
3399            }
3400
3401            /// A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
3402            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3403            #[serde(rename_all = "camelCase")]
3404            pub struct PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemLabelSelectorMatchExpressionsItem
3405            {
3406                /// key is the label key that the selector applies to.
3407                pub key: String,
3408                /// operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
3409                pub operator: String,
3410                /// values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
3411                pub values: Vec<String>,
3412            }
3413
3414            /// A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
3415            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3416            #[serde(rename_all = "camelCase")]
3417            pub struct PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemNamespaceSelectorMatchExpressionsItem
3418            {
3419                /// key is the label key that the selector applies to.
3420                pub key: String,
3421                /// operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
3422                pub operator: String,
3423                /// values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
3424                pub values: Vec<String>,
3425            }
3426
3427            /// A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
3428            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3429            #[serde(rename_all = "camelCase")]
3430            pub struct PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermLabelSelectorMatchExpressionsItem
3431            {
3432                /// key is the label key that the selector applies to.
3433                pub key: String,
3434                /// operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
3435                pub operator: String,
3436                /// values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
3437                pub values: Vec<String>,
3438            }
3439
3440            /// A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
3441            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3442            #[serde(rename_all = "camelCase")]
3443            pub struct PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermNamespaceSelectorMatchExpressionsItem
3444            {
3445                /// key is the label key that the selector applies to.
3446                pub key: String,
3447                /// operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
3448                pub operator: String,
3449                /// values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
3450                pub values: Vec<String>,
3451            }
3452
3453            /// A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
3454            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3455            #[serde(rename_all = "camelCase")]
3456            pub struct PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemLabelSelectorMatchExpressionsItem
3457            {
3458                /// key is the label key that the selector applies to.
3459                pub key: String,
3460                /// operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
3461                pub operator: String,
3462                /// values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
3463                pub values: Vec<String>,
3464            }
3465
3466            /// A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
3467            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3468            #[serde(rename_all = "camelCase")]
3469            pub struct PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemNamespaceSelectorMatchExpressionsItem
3470            {
3471                /// key is the label key that the selector applies to.
3472                pub key: String,
3473                /// operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
3474                pub operator: String,
3475                /// values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
3476                pub values: Vec<String>,
3477            }
3478
3479            /// A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
3480            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3481            #[serde(rename_all = "camelCase")]
3482            pub struct PreferenceMatchFieldsItem {
3483                /// The label key that the selector applies to.
3484                pub key: String,
3485                /// Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
3486                pub operator: String,
3487                /// An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
3488                pub values: Vec<String>,
3489            }
3490
3491            /// A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
3492            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3493            #[serde(rename_all = "camelCase")]
3494            pub struct NodeSelectorTermsItemMatchFieldsItem {
3495                /// The label key that the selector applies to.
3496                pub key: String,
3497                /// Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
3498                pub operator: String,
3499                /// An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
3500                pub values: Vec<String>,
3501            }
3502
3503            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
3504            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3505            #[serde(rename_all = "camelCase")]
3506            pub struct PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermLabelSelectorMatchLabels
3507            {
3508                /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
3509                pub properties: std::collections::HashMap<String, String>,
3510            }
3511
3512            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
3513            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3514            #[serde(rename_all = "camelCase")]
3515            pub struct PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermNamespaceSelectorMatchLabels
3516            {
3517                /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
3518                pub properties: std::collections::HashMap<String, String>,
3519            }
3520
3521            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
3522            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3523            #[serde(rename_all = "camelCase")]
3524            pub struct PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemLabelSelectorMatchLabels {
3525                /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
3526                pub properties: std::collections::HashMap<String, String>,
3527            }
3528
3529            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
3530            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3531            #[serde(rename_all = "camelCase")]
3532            pub struct PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemNamespaceSelectorMatchLabels
3533            {
3534                /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
3535                pub properties: std::collections::HashMap<String, String>,
3536            }
3537
3538            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
3539            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3540            #[serde(rename_all = "camelCase")]
3541            pub struct PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermLabelSelectorMatchLabels
3542            {
3543                /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
3544                pub properties: std::collections::HashMap<String, String>,
3545            }
3546
3547            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
3548            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3549            #[serde(rename_all = "camelCase")]
3550            pub struct PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermNamespaceSelectorMatchLabels
3551            {
3552                /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
3553                pub properties: std::collections::HashMap<String, String>,
3554            }
3555
3556            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
3557            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3558            #[serde(rename_all = "camelCase")]
3559            pub struct PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemLabelSelectorMatchLabels
3560            {
3561                /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
3562                pub properties: std::collections::HashMap<String, String>,
3563            }
3564
3565            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
3566            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3567            #[serde(rename_all = "camelCase")]
3568            pub struct PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemNamespaceSelectorMatchLabels
3569            {
3570                /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
3571                pub properties: std::collections::HashMap<String, String>,
3572            }
3573
3574            /// A label selector that is used to refine the set of certificate's that this challenge solver will apply to.
3575            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3576            #[serde(rename_all = "camelCase")]
3577            pub struct SelectorMatchLabels {
3578                /// A label selector that is used to refine the set of certificate's that this challenge solver will apply to.
3579                pub properties: std::collections::HashMap<String, String>,
3580            }
3581
3582            /// ObjectMeta overrides for the ingress used to solve HTTP01 challenges. Only the 'labels' and 'annotations' fields may be set. If labels or annotations overlap with in-built values, the values here will override the in-built values.
3583            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3584            #[serde(rename_all = "camelCase")]
3585            pub struct IngressTemplateMetadata {
3586                /// Annotations that should be added to the created ACME HTTP01 solver ingress.
3587                pub annotations: IngressTemplateMetadataAnnotations,
3588                /// Labels that should be added to the created ACME HTTP01 solver ingress.
3589                pub labels: IngressTemplateMetadataLabels,
3590            }
3591
3592            /// ObjectMeta overrides for the pod used to solve HTTP01 challenges. Only the 'labels' and 'annotations' fields may be set. If labels or annotations overlap with in-built values, the values here will override the in-built values.
3593            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3594            #[serde(rename_all = "camelCase")]
3595            pub struct PodTemplateMetadata {
3596                /// Annotations that should be added to the create ACME HTTP01 solver pods.
3597                pub annotations: PodTemplateMetadataAnnotations,
3598                /// Labels that should be added to the created ACME HTTP01 solver pods.
3599                pub labels: PodTemplateMetadataLabels,
3600            }
3601
3602            /// A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
3603            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3604            #[serde(rename_all = "camelCase")]
3605            pub struct PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermNamespaceSelector {
3606            /// matchExpressions is a list of label selector requirements. The requirements are ANDed.
3607            pub match_expressions: Vec<PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermNamespaceSelectorMatchExpressionsItem>,
3608            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
3609            pub match_labels: PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermNamespaceSelectorMatchLabels,
3610        }
3611
3612            /// A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
3613            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3614            #[serde(rename_all = "camelCase")]
3615            pub struct PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemNamespaceSelector {
3616            /// matchExpressions is a list of label selector requirements. The requirements are ANDed.
3617            pub match_expressions: Vec<PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemNamespaceSelectorMatchExpressionsItem>,
3618            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
3619            pub match_labels: PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemNamespaceSelectorMatchLabels,
3620        }
3621
3622            /// A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
3623            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3624            #[serde(rename_all = "camelCase")]
3625            pub struct PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermNamespaceSelector {
3626            /// matchExpressions is a list of label selector requirements. The requirements are ANDed.
3627            pub match_expressions: Vec<PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermNamespaceSelectorMatchExpressionsItem>,
3628            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
3629            pub match_labels: PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermNamespaceSelectorMatchLabels,
3630        }
3631
3632            /// A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
3633            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3634            #[serde(rename_all = "camelCase")]
3635            pub struct PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemNamespaceSelector {
3636            /// matchExpressions is a list of label selector requirements. The requirements are ANDed.
3637            pub match_expressions: Vec<PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemNamespaceSelectorMatchExpressionsItem>,
3638            /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
3639            pub match_labels: PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemNamespaceSelectorMatchLabels,
3640        }
3641
3642            /// Describes node affinity scheduling rules for the pod.
3643            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3644            #[serde(rename_all = "camelCase")]
3645            pub struct NodeAffinity {
3646                /// The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.
3647                pub preferred_during_scheduling_ignored_during_execution:
3648                    Vec<NodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionItem>,
3649                /// If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.
3650                pub required_during_scheduling_ignored_during_execution:
3651                    RequiredDuringSchedulingIgnoredDuringExecution,
3652            }
3653
3654            /// NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
3655            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3656            #[serde(rename_all = "camelCase")]
3657            pub struct NodeSelector {
3658                /// NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
3659                pub properties: std::collections::HashMap<String, String>,
3660            }
3661
3662            /// A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.
3663            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3664            #[serde(rename_all = "camelCase")]
3665            pub struct NodeSelectorTermsItem {
3666                /// A list of node selector requirements by node's labels.
3667                pub match_expressions: Vec<NodeSelectorTermsItemMatchExpressionsItem>,
3668                /// A list of node selector requirements by node's fields.
3669                pub match_fields: Vec<NodeSelectorTermsItemMatchFieldsItem>,
3670            }
3671
3672            /// ParentRef identifies an API object (usually a Gateway) that can be considered a parent of this resource (usually a route). The only kind of parent resource with "Core" support is Gateway. This API may be extended in the future to support additional kinds of parent resources, such as HTTPRoute.
3673            ///  The API object must be valid in the cluster; the Group and Kind must be registered in the cluster for this reference to be valid.
3674            ///  References to objects with invalid Group and Kind are not valid, and must be rejected by the implementation, with appropriate Conditions set on the containing object.
3675            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3676            #[serde(rename_all = "camelCase")]
3677            pub struct ParentRefsItem {
3678                /// Group is the group of the referent.
3679                ///  Support: Core
3680                pub group: String,
3681                /// Kind is kind of the referent.
3682                ///  Support: Core (Gateway) Support: Custom (Other Resources)
3683                pub kind: String,
3684                /// Name is the name of the referent.
3685                ///  Support: Core
3686                pub name: String,
3687                /// Namespace is the namespace of the referent. When unspecified (or empty string), this refers to the local namespace of the Route.
3688                ///  Support: Core
3689                pub namespace: String,
3690                /// SectionName is the name of a section within the target resource. In the following resources, SectionName is interpreted as the following:
3691                ///  * Gateway: Listener Name
3692                ///  Implementations MAY choose to support attaching Routes to other resources. If that is the case, they MUST clearly document how SectionName is interpreted.
3693                ///  When unspecified (empty string), this will reference the entire resource. For the purpose of status, an attachment is considered successful if at least one section in the parent resource accepts it. For example, Gateway listeners can restrict which Routes can attach to them by Route kind, namespace, or hostname. If 1 of 2 Gateway listeners accept attachment from the referencing Route, the Route MUST be considered successfully attached. If no Gateway listeners accept attachment from this Route, the Route MUST be considered detached from the Gateway.
3694                ///  Support: Core
3695                pub section_name: String,
3696            }
3697
3698            /// Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
3699            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3700            #[serde(rename_all = "camelCase")]
3701            pub struct PodAffinity {
3702                /// The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.
3703                pub preferred_during_scheduling_ignored_during_execution:
3704                    Vec<PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItem>,
3705                /// If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.
3706                pub required_during_scheduling_ignored_during_execution:
3707                    Vec<PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItem>,
3708            }
3709
3710            /// Required. A pod affinity term, associated with the corresponding weight.
3711            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3712            #[serde(rename_all = "camelCase")]
3713            pub struct PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTerm {
3714            /// A label query over a set of resources, in this case pods.
3715            pub label_selector: PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermLabelSelector,
3716            /// A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
3717            pub namespace_selector: PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermNamespaceSelector,
3718            /// namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace"
3719            pub namespaces: Vec<String>,
3720            /// This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.
3721            pub topology_key: String,
3722        }
3723
3724            /// Required. A pod affinity term, associated with the corresponding weight.
3725            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3726            #[serde(rename_all = "camelCase")]
3727            pub struct PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTerm {
3728            /// A label query over a set of resources, in this case pods.
3729            pub label_selector: PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermLabelSelector,
3730            /// A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
3731            pub namespace_selector: PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTermNamespaceSelector,
3732            /// namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace"
3733            pub namespaces: Vec<String>,
3734            /// This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.
3735            pub topology_key: String,
3736        }
3737
3738            /// Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
3739            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3740            #[serde(rename_all = "camelCase")]
3741            pub struct PodAntiAffinity {
3742                /// The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.
3743                pub preferred_during_scheduling_ignored_during_execution:
3744                    Vec<PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItem>,
3745                /// If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.
3746                pub required_during_scheduling_ignored_during_execution:
3747                    Vec<PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItem>,
3748            }
3749
3750            /// Optional pod template used to configure the ACME challenge solver pods used for HTTP01 challenges.
3751            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3752            #[serde(rename_all = "camelCase")]
3753            pub struct PodTemplate {
3754                /// ObjectMeta overrides for the pod used to solve HTTP01 challenges. Only the 'labels' and 'annotations' fields may be set. If labels or annotations overlap with in-built values, the values here will override the in-built values.
3755                pub metadata: PodTemplateMetadata,
3756                /// PodSpec defines overrides for the HTTP01 challenge solver pod. Only the 'priorityClassName', 'nodeSelector', 'affinity', 'serviceAccountName' and 'tolerations' fields are supported currently. All other fields will be ignored.
3757                pub spec: PodTemplateSpec,
3758            }
3759
3760            /// A node selector term, associated with the corresponding weight.
3761            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3762            #[serde(rename_all = "camelCase")]
3763            pub struct Preference {
3764                /// A list of node selector requirements by node's labels.
3765                pub match_expressions: Vec<PreferenceMatchExpressionsItem>,
3766                /// A list of node selector requirements by node's fields.
3767                pub match_fields: Vec<PreferenceMatchFieldsItem>,
3768            }
3769
3770            /// An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).
3771            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3772            #[serde(rename_all = "camelCase")]
3773            pub struct NodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionItem {
3774                /// A node selector term, associated with the corresponding weight.
3775                pub preference: Preference,
3776                /// Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.
3777                pub weight: i32,
3778            }
3779
3780            /// The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)
3781            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3782            #[serde(rename_all = "camelCase")]
3783            pub struct PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItem {
3784                /// Required. A pod affinity term, associated with the corresponding weight.
3785                pub pod_affinity_term:
3786                    PodAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTerm,
3787                /// weight associated with matching the corresponding podAffinityTerm, in the range 1-100.
3788                pub weight: i32,
3789            }
3790
3791            /// The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)
3792            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3793            #[serde(rename_all = "camelCase")]
3794            pub struct PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItem {
3795            /// Required. A pod affinity term, associated with the corresponding weight.
3796            pub pod_affinity_term: PodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionItemPodAffinityTerm,
3797            /// weight associated with matching the corresponding podAffinityTerm, in the range 1-100.
3798            pub weight: i32,
3799        }
3800
3801            /// PrivateKey is the name of a Kubernetes Secret resource that will be used to store the automatically generated ACME account private key. Optionally, a `key` may be specified to select a specific entry within the named Secret resource. If `key` is not specified, a default of `tls.key` will be used.
3802            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3803            #[serde(rename_all = "camelCase")]
3804            pub struct PrivateKeySecretRef {
3805                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
3806                pub key: String,
3807                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
3808                pub name: String,
3809            }
3810
3811            /// If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.
3812            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3813            #[serde(rename_all = "camelCase")]
3814            pub struct RequiredDuringSchedulingIgnoredDuringExecution {
3815                /// Required. A list of node selector terms. The terms are ORed.
3816                pub node_selector_terms: Vec<NodeSelectorTermsItem>,
3817            }
3818
3819            /// Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running
3820            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3821            #[serde(rename_all = "camelCase")]
3822            pub struct PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItem {
3823                /// A label query over a set of resources, in this case pods.
3824                pub label_selector:
3825                    PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemLabelSelector,
3826                /// A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
3827                pub namespace_selector:
3828                    PodAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemNamespaceSelector,
3829                /// namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace"
3830                pub namespaces: Vec<String>,
3831                /// This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.
3832                pub topology_key: String,
3833            }
3834
3835            /// Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running
3836            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3837            #[serde(rename_all = "camelCase")]
3838            pub struct PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItem {
3839            /// A label query over a set of resources, in this case pods.
3840            pub label_selector: PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemLabelSelector,
3841            /// A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
3842            pub namespace_selector: PodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionItemNamespaceSelector,
3843            /// namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace"
3844            pub namespaces: Vec<String>,
3845            /// This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.
3846            pub topology_key: String,
3847        }
3848
3849            /// Use RFC2136 ("Dynamic Updates in the Domain Name System") (https://datatracker.ietf.org/doc/rfc2136/) to manage DNS01 challenge records.
3850            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3851            #[serde(rename_all = "camelCase")]
3852            pub struct Rfc2136 {
3853                /// The IP address or hostname of an authoritative DNS server supporting RFC2136 in the form host:port. If the host is an IPv6 address it must be enclosed in square brackets (e.g [2001:db8::1]) ; port is optional. This field is required.
3854                pub nameserver: String,
3855                /// The TSIG Algorithm configured in the DNS supporting RFC2136. Used only when ``tsigSecretSecretRef`` and ``tsigKeyName`` are defined. Supported values are (case-insensitive): ``HMACMD5`` (default), ``HMACSHA1``, ``HMACSHA256`` or ``HMACSHA512``.
3856                pub tsig_algorithm: String,
3857                /// The TSIG Key name configured in the DNS. If ``tsigSecretSecretRef`` is defined, this field is required.
3858                pub tsig_key_name: String,
3859                /// The name of the secret containing the TSIG value. If ``tsigKeyName`` is defined, this field is required.
3860                pub tsig_secret_secret_ref: TsigSecretSecretRef,
3861            }
3862
3863            /// Use the AWS Route53 API to manage DNS01 challenge records.
3864            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3865            #[serde(rename_all = "camelCase")]
3866            pub struct Route53 {
3867                /// The AccessKeyID is used for authentication. If not set we fall-back to using env vars, shared credentials file or AWS Instance metadata see: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials
3868                pub access_key_i_d: String,
3869                /// If set, the provider will manage only this zone in Route53 and will not do an lookup using the route53:ListHostedZonesByName api call.
3870                pub hosted_zone_i_d: String,
3871                /// Always set the region when using AccessKeyID and SecretAccessKey
3872                pub region: String,
3873                /// Role is a Role ARN which the Route53 provider will assume using either the explicit credentials AccessKeyID/SecretAccessKey or the inferred credentials from environment variables, shared credentials file or AWS Instance metadata
3874                pub role: String,
3875                /// The SecretAccessKey is used for authentication. If not set we fall-back to using env vars, shared credentials file or AWS Instance metadata https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials
3876                pub secret_access_key_secret_ref: SecretAccessKeySecretRef,
3877            }
3878
3879            /// The SecretAccessKey is used for authentication. If not set we fall-back to using env vars, shared credentials file or AWS Instance metadata https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials
3880            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3881            #[serde(rename_all = "camelCase")]
3882            pub struct SecretAccessKeySecretRef {
3883                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
3884                pub key: String,
3885                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
3886                pub name: String,
3887            }
3888
3889            /// Reference to a key in a Secret that contains the App Role secret used to authenticate with Vault. The `key` field must be specified and denotes which entry within the Secret resource is used as the app role secret.
3890            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3891            #[serde(rename_all = "camelCase")]
3892            pub struct AppRoleSecretRef {
3893                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
3894                pub key: String,
3895                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
3896                pub name: String,
3897            }
3898
3899            /// The required Secret field containing a Kubernetes ServiceAccount JWT used for authenticating with Vault. Use of 'ambient credentials' is not supported.
3900            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3901            #[serde(rename_all = "camelCase")]
3902            pub struct KubernetesSecretRef {
3903                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
3904                pub key: String,
3905                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
3906                pub name: String,
3907            }
3908
3909            /// Selector selects a set of DNSNames on the Certificate resource that should be solved using this challenge solver. If not specified, the solver will be treated as the 'default' solver with the lowest priority, i.e. if any other solver has a more specific match, it will be used instead.
3910            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3911            #[serde(rename_all = "camelCase")]
3912            pub struct Selector {
3913                /// List of DNSNames that this solver will be used to solve. If specified and a match is found, a dnsNames selector will take precedence over a dnsZones selector. If multiple solvers match with the same dnsNames value, the solver with the most matching labels in matchLabels will be selected. If neither has more matches, the solver defined earlier in the list will be selected.
3914                pub dns_names: Vec<String>,
3915                /// List of DNSZones that this solver will be used to solve. The most specific DNS zone match specified here will take precedence over other DNS zone matches, so a solver specifying sys.example.com will be selected over one specifying example.com for the domain www.sys.example.com. If multiple solvers match with the same dnsZones value, the solver with the most matching labels in matchLabels will be selected. If neither has more matches, the solver defined earlier in the list will be selected.
3916                pub dns_zones: Vec<String>,
3917                /// A label selector that is used to refine the set of certificate's that this challenge solver will apply to.
3918                pub match_labels: SelectorMatchLabels,
3919            }
3920
3921            /// SelfSigned configures this issuer to 'self sign' certificates using the private key used to create the CertificateRequest object.
3922            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3923            #[serde(rename_all = "camelCase")]
3924            pub struct SelfSigned {
3925                /// The CRL distribution points is an X.509 v3 certificate extension which identifies the location of the CRL from which the revocation of this certificate can be checked. If not set certificate will be issued without CDP. Values are strings.
3926                pub crl_distribution_points: Vec<String>,
3927            }
3928
3929            /// A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field.
3930            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3931            #[serde(rename_all = "camelCase")]
3932            pub struct ServiceAccountSecretRef {
3933                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
3934                pub key: String,
3935                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
3936                pub name: String,
3937            }
3938
3939            /// An ACMEChallengeSolver describes how to solve ACME challenges for the issuer it is part of. A selector may be provided to use different solving strategies for different DNS names. Only one of HTTP01 or DNS01 must be provided.
3940            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3941            #[serde(rename_all = "camelCase")]
3942            pub struct SolversItem {
3943                /// Configures cert-manager to attempt to complete authorizations by performing the DNS01 challenge flow.
3944                pub dns01: Dns01,
3945                /// Configures cert-manager to attempt to complete authorizations by performing the HTTP01 challenge flow. It is not possible to obtain certificates for wildcard domain names (e.g. `*.example.com`) using the HTTP01 challenge mechanism.
3946                pub http01: Http01,
3947                /// Selector selects a set of DNSNames on the Certificate resource that should be solved using this challenge solver. If not specified, the solver will be treated as the 'default' solver with the lowest priority, i.e. if any other solver has a more specific match, it will be used instead.
3948                pub selector: Selector,
3949            }
3950
3951            /// Desired state of the Issuer resource.
3952            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3953            #[serde(rename_all = "camelCase")]
3954            pub struct Spec {
3955                /// ACME configures this issuer to communicate with a RFC8555 (ACME) server to obtain signed x509 certificates.
3956                pub acme: SpecAcme,
3957                /// CA configures this issuer to sign certificates using a signing CA keypair stored in a Secret resource. This is used to build internal PKIs that are managed by cert-manager.
3958                pub ca: Ca,
3959                /// SelfSigned configures this issuer to 'self sign' certificates using the private key used to create the CertificateRequest object.
3960                pub self_signed: SelfSigned,
3961                /// Vault configures this issuer to sign certificates using a HashiCorp Vault PKI backend.
3962                pub vault: Vault,
3963                /// Venafi configures this issuer to sign certificates using a Venafi TPP or Venafi Cloud policy zone.
3964                pub venafi: Venafi,
3965            }
3966
3967            /// PodSpec defines overrides for the HTTP01 challenge solver pod. Only the 'priorityClassName', 'nodeSelector', 'affinity', 'serviceAccountName' and 'tolerations' fields are supported currently. All other fields will be ignored.
3968            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3969            #[serde(rename_all = "camelCase")]
3970            pub struct PodTemplateSpec {
3971                /// If specified, the pod's scheduling constraints
3972                pub affinity: Affinity,
3973                /// NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
3974                pub node_selector: NodeSelector,
3975                /// If specified, the pod's priorityClassName.
3976                pub priority_class_name: String,
3977                /// If specified, the pod's service account
3978                pub service_account_name: String,
3979                /// If specified, the pod's tolerations.
3980                pub tolerations: Vec<TolerationsItem>,
3981            }
3982
3983            /// Status of the Issuer. This is set and managed automatically.
3984            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3985            #[serde(rename_all = "camelCase")]
3986            pub struct Status {
3987                /// ACME specific status options. This field should only be set if the Issuer is configured to use an ACME server to issue certificates.
3988                pub acme: StatusAcme,
3989                /// List of status conditions to indicate the status of a CertificateRequest. Known condition types are `Ready`.
3990                pub conditions: Vec<ConditionsItem>,
3991            }
3992
3993            /// A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field.
3994            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
3995            #[serde(rename_all = "camelCase")]
3996            pub struct DigitaloceanTokenSecretRef {
3997                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
3998                pub key: String,
3999                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
4000                pub name: String,
4001            }
4002
4003            /// TokenSecretRef authenticates with Vault by presenting a token.
4004            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
4005            #[serde(rename_all = "camelCase")]
4006            pub struct AuthTokenSecretRef {
4007                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
4008                pub key: String,
4009                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
4010                pub name: String,
4011            }
4012
4013            /// The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.
4014            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
4015            #[serde(rename_all = "camelCase")]
4016            pub struct TolerationsItem {
4017                /// Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
4018                pub effect: String,
4019                /// Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.
4020                pub key: String,
4021                /// Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.
4022                pub operator: String,
4023                /// TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.
4024                pub toleration_seconds: i64,
4025                /// Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.
4026                pub value: String,
4027            }
4028
4029            /// TPP specifies Trust Protection Platform configuration settings. Only one of TPP or Cloud may be specified.
4030            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
4031            #[serde(rename_all = "camelCase")]
4032            pub struct Tpp {
4033                /// CABundle is a PEM encoded TLS certificate to use to verify connections to the TPP instance. If specified, system roots will not be used and the issuing CA for the TPP instance must be verifiable using the provided root. If not specified, the connection will be verified using the cert-manager system root certificates.
4034                pub ca_bundle: Vec<u8>,
4035                /// CredentialsRef is a reference to a Secret containing the username and password for the TPP server. The secret must contain two keys, 'username' and 'password'.
4036                pub credentials_ref: CredentialsRef,
4037                /// URL is the base URL for the vedsdk endpoint of the Venafi TPP instance, for example: "https://tpp.example.com/vedsdk".
4038                pub url: String,
4039            }
4040
4041            /// The name of the secret containing the TSIG value. If ``tsigKeyName`` is defined, this field is required.
4042            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
4043            #[serde(rename_all = "camelCase")]
4044            pub struct TsigSecretSecretRef {
4045                /// The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.
4046                pub key: String,
4047                /// Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
4048                pub name: String,
4049            }
4050
4051            /// Vault configures this issuer to sign certificates using a HashiCorp Vault PKI backend.
4052            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
4053            #[serde(rename_all = "camelCase")]
4054            pub struct Vault {
4055                /// Auth configures how cert-manager authenticates with the Vault server.
4056                pub auth: Auth,
4057                /// PEM-encoded CA bundle (base64-encoded) used to validate Vault server certificate. Only used if the Server URL is using HTTPS protocol. This parameter is ignored for plain HTTP protocol connection. If not set the system root certificates are used to validate the TLS connection.
4058                pub ca_bundle: Vec<u8>,
4059                /// Name of the vault namespace. Namespaces is a set of features within Vault Enterprise that allows Vault environments to support Secure Multi-tenancy. e.g: "ns1" More about namespaces can be found here https://www.vaultproject.io/docs/enterprise/namespaces
4060                pub namespace: String,
4061                /// Path is the mount path of the Vault PKI backend's `sign` endpoint, e.g: "my_pki_mount/sign/my-role-name".
4062                pub path: String,
4063                /// Server is the connection address for the Vault server, e.g: "https://vault.example.com:8200".
4064                pub server: String,
4065            }
4066
4067            /// Venafi configures this issuer to sign certificates using a Venafi TPP or Venafi Cloud policy zone.
4068            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
4069            #[serde(rename_all = "camelCase")]
4070            pub struct Venafi {
4071                /// Cloud specifies the Venafi cloud configuration settings. Only one of TPP or Cloud may be specified.
4072                pub cloud: Cloud,
4073                /// TPP specifies Trust Protection Platform configuration settings. Only one of TPP or Cloud may be specified.
4074                pub tpp: Tpp,
4075                /// Zone is the Venafi Policy Zone to use for this issuer. All requests made to the Venafi platform will be restricted by the named zone policy. This field is required.
4076                pub zone: String,
4077            }
4078
4079            /// Configure an external webhook based DNS01 challenge solver to manage DNS01 challenge records.
4080            #[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq)]
4081            #[serde(rename_all = "camelCase")]
4082            pub struct Webhook {
4083                /// Additional configuration that should be passed to the webhook apiserver when challenges are processed. This can contain arbitrary JSON data. Secret values should not be specified in this stanza. If secret values are needed (e.g. credentials for a DNS service), you should use a SecretKeySelector to reference a Secret resource. For details on the schema of this field, consult the webhook provider implementation's documentation.
4084                pub config: serde_json::Map<String, serde_json::Value>,
4085                /// The API group name that should be used when POSTing ChallengePayload resources to the webhook apiserver. This should be the same as the GroupName specified in the webhook provider implementation.
4086                pub group_name: String,
4087                /// The name of the solver to use, as defined in the webhook provider implementation. This will typically be the name of the provider, e.g. 'cloudflare'.
4088                pub solver_name: String,
4089            }
4090        }
4091    }
4092}