1package v1
2
3import (
4 "strings"
5 "time"
6)
7
8// An Issuer represents a certificate issuing authority which can be
9// referenced as part of `issuerRef` fields.
10// It is scoped to a single namespace and can therefore only be referenced by
11// resources within the same namespace.
12#Issuer: {
13 _embeddedResource
14
15 // APIVersion defines the versioned schema of this representation of an object.
16 // Servers should convert recognized schemas to the latest internal value, and
17 // may reject unrecognized values.
18 // More info:
19 // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
20 apiVersion?: string
21
22 // Kind is a string value representing the REST resource this object represents.
23 // Servers may infer this from the endpoint the client submits requests to.
24 // Cannot be updated.
25 // In CamelCase.
26 // More info:
27 // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
28 kind?: string
29 metadata?: {}
30
31 // Desired state of the Issuer resource.
32 spec!: {
33 // ACME configures this issuer to communicate with a RFC8555 (ACME) server
34 // to obtain signed x509 certificates.
35 acme?: {
36 // Base64-encoded bundle of PEM CAs which can be used to validate the certificate
37 // chain presented by the ACME server.
38 // Mutually exclusive with SkipTLSVerify; prefer using CABundle to prevent various
39 // kinds of security vulnerabilities.
40 // If CABundle and SkipTLSVerify are unset, the system certificate bundle inside
41 // the container is used to validate the TLS connection.
42 caBundle?: string
43
44 // Enables or disables generating a new ACME account key.
45 // If true, the Issuer resource will *not* request a new account but will expect
46 // the account key to be supplied via an existing secret.
47 // If false, the cert-manager system will generate a new ACME account key
48 // for the Issuer.
49 // Defaults to false.
50 disableAccountKeyGeneration?: bool
51
52 // Email is the email address to be associated with the ACME account.
53 // This field is optional, but it is strongly recommended to be set.
54 // It will be used to contact you in case of issues with your account or
55 // certificates, including expiry notification emails.
56 // This field may be updated after the account is initially registered.
57 email?: string
58
59 // Enables requesting a Not After date on certificates that matches the
60 // duration of the certificate. This is not supported by all ACME servers
61 // like Let's Encrypt. If set to true when the ACME server does not support
62 // it, it will create an error on the Order.
63 // Defaults to false.
64 enableDurationFeature?: bool
65
66 // ExternalAccountBinding is a reference to a CA external account of the ACME
67 // server.
68 // If set, upon registration cert-manager will attempt to associate the given
69 // external account credentials with the registered ACME account.
70 externalAccountBinding?: {
71 // Deprecated: keyAlgorithm field exists for historical compatibility
72 // reasons and should not be used. The algorithm is now hardcoded to HS256
73 // in golang/x/crypto/acme.
74 keyAlgorithm?: "HS256" | "HS384" | "HS512"
75
76 // keyID is the ID of the CA key that the External Account is bound to.
77 keyID!: string
78
79 // keySecretRef is a Secret Key Selector referencing a data item in a Kubernetes
80 // Secret which holds the symmetric MAC key of the External Account Binding.
81 // The `key` is the index string that is paired with the key data in the
82 // Secret and should not be confused with the key data itself, or indeed with
83 // the External Account Binding keyID above.
84 // The secret key stored in the Secret **must** be un-padded, base64 URL
85 // encoded data.
86 keySecretRef!: {
87 // The key of the entry in the Secret resource's `data` field to be used.
88 // Some instances of this field may be defaulted, in others it may be
89 // required.
90 key?: string
91
92 // Name of the resource being referred to.
93 // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
94 name!: string
95 }
96 }
97
98 // PreferredChain is the chain to use if the ACME server outputs multiple.
99 // PreferredChain is no guarantee that this one gets delivered by the ACME
100 // endpoint.
101 // For example, for Let's Encrypt's DST cross-sign you would use:
102 // "DST Root CA X3" or "ISRG Root X1" for the newer Let's Encrypt root CA.
103 // This value picks the first certificate bundle in the combined set of
104 // ACME default and alternative chains that has a root-most certificate with
105 // this value as its issuer's commonname.
106 preferredChain?: strings.MaxRunes(
107 64,
108 )
109
110 // PrivateKey is the name of a Kubernetes Secret resource that will be used to
111 // store the automatically generated ACME account private key.
112 // Optionally, a `key` may be specified to select a specific entry within
113 // the named Secret resource.
114 // If `key` is not specified, a default of `tls.key` will be used.
115 privateKeySecretRef!: {
116 // The key of the entry in the Secret resource's `data` field to be used.
117 // Some instances of this field may be defaulted, in others it may be
118 // required.
119 key?: string
120
121 // Name of the resource being referred to.
122 // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
123 name!: string
124 }
125
126 // Profile allows requesting a certificate profile from the ACME server.
127 // Supported profiles are listed by the server's ACME directory URL.
128 profile?: string
129
130 // Server is the URL used to access the ACME server's 'directory' endpoint.
131 // For example, for Let's Encrypt's staging endpoint, you would use:
132 // "https://acme-staging-v02.api.letsencrypt.org/directory".
133 // Only ACME v2 endpoints (i.e. RFC 8555) are supported.
134 server!: string
135
136 // INSECURE: Enables or disables validation of the ACME server TLS certificate.
137 // If true, requests to the ACME server will not have the TLS certificate chain
138 // validated.
139 // Mutually exclusive with CABundle; prefer using CABundle to prevent various
140 // kinds of security vulnerabilities.
141 // Only enable this option in development environments.
142 // If CABundle and SkipTLSVerify are unset, the system certificate bundle inside
143 // the container is used to validate the TLS connection.
144 // Defaults to false.
145 skipTLSVerify?: bool
146
147 // Solvers is a list of challenge solvers that will be used to solve
148 // ACME challenges for the matching domains.
149 // Solver configurations must be provided in order to obtain certificates
150 // from an ACME server.
151 // For more information, see: https://cert-manager.io/docs/configuration/acme/
152 solvers?: [...{
153 // Configures cert-manager to attempt to complete authorizations by
154 // performing the DNS01 challenge flow.
155 dns01?: {
156 // Use the 'ACME DNS' (https://github.com/joohoi/acme-dns) API to manage
157 // DNS01 challenge records.
158 acmeDNS?: {
159 // A reference to a specific 'key' within a Secret resource.
160 // In some instances, `key` is a required field.
161 accountSecretRef!: {
162 // The key of the entry in the Secret resource's `data` field to be used.
163 // Some instances of this field may be defaulted, in others it may be
164 // required.
165 key?: string
166
167 // Name of the resource being referred to.
168 // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
169 name!: string
170 }
171 host!: string
172 }
173
174 // Use the Akamai DNS zone management API to manage DNS01 challenge records.
175 akamai?: {
176 // A reference to a specific 'key' within a Secret resource.
177 // In some instances, `key` is a required field.
178 accessTokenSecretRef!: {
179 // The key of the entry in the Secret resource's `data` field to be used.
180 // Some instances of this field may be defaulted, in others it may be
181 // required.
182 key?: string
183
184 // Name of the resource being referred to.
185 // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
186 name!: string
187 }
188
189 // A reference to a specific 'key' within a Secret resource.
190 // In some instances, `key` is a required field.
191 clientSecretSecretRef!: {
192 // The key of the entry in the Secret resource's `data` field to be used.
193 // Some instances of this field may be defaulted, in others it may be
194 // required.
195 key?: string
196
197 // Name of the resource being referred to.
198 // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
199 name!: string
200 }
201
202 // A reference to a specific 'key' within a Secret resource.
203 // In some instances, `key` is a required field.
204 clientTokenSecretRef!: {
205 // The key of the entry in the Secret resource's `data` field to be used.
206 // Some instances of this field may be defaulted, in others it may be
207 // required.
208 key?: string
209
210 // Name of the resource being referred to.
211 // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
212 name!: string
213 }
214 serviceConsumerDomain!: string
215 }
216
217 // Use the Microsoft Azure DNS API to manage DNS01 challenge records.
218 azureDNS?: {
219 // Auth: Azure Service Principal:
220 // The ClientID of the Azure Service Principal used to authenticate with Azure DNS.
221 // If set, ClientSecret and TenantID must also be set.
222 clientID?: string
223
224 // Auth: Azure Service Principal:
225 // A reference to a Secret containing the password associated with the Service Principal.
226 // If set, ClientID and TenantID must also be set.
227 clientSecretSecretRef?: {
228 // The key of the entry in the Secret resource's `data` field to be used.
229 // Some instances of this field may be defaulted, in others it may be
230 // required.
231 key?: string
232
233 // Name of the resource being referred to.
234 // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
235 name!: string
236 }
237
238 // name of the Azure environment (default AzurePublicCloud)
239 environment?: "AzurePublicCloud" |
240 "AzureChinaCloud" |
241 "AzureGermanCloud" |
242 "AzureUSGovernmentCloud"
243
244 // name of the DNS zone that should be used
245 hostedZoneName?: string
246
247 // Auth: Azure Workload Identity or Azure Managed Service Identity:
248 // Settings to enable Azure Workload Identity or Azure Managed Service Identity
249 // If set, ClientID, ClientSecret and TenantID must not be set.
250 managedIdentity?: {
251 // client ID of the managed identity, cannot be used at the same time as resourceID
252 clientID?: string
253
254 // resource ID of the managed identity, cannot be used at the same time as clientID
255 // Cannot be used for Azure Managed Service Identity
256 resourceID?: string
257
258 // tenant ID of the managed identity, cannot be used at the same time as resourceID
259 tenantID?: string
260 }
261
262 // resource group the DNS zone is located in
263 resourceGroupName!: string
264
265 // ID of the Azure subscription
266 subscriptionID!: string
267
268 // Auth: Azure Service Principal:
269 // The TenantID of the Azure Service Principal used to authenticate with Azure DNS.
270 // If set, ClientID and ClientSecret must also be set.
271 tenantID?: string
272
273 // ZoneType determines which type of Azure DNS zone to use.
274 //
275 // Valid values are:
276 // - AzurePublicZone (default): Use a public Azure DNS zone.
277 // - AzurePrivateZone: Use an Azure Private DNS zone.
278 //
279 // If not specified, AzurePublicZone is used.
280 //
281 // Support for Azure Private DNS zones is currently
282 // experimental and may change in future releases.
283 zoneType?: "AzurePublicZone" | "AzurePrivateZone"
284 }
285
286 // Use the Google Cloud DNS API to manage DNS01 challenge records.
287 cloudDNS?: {
288 // HostedZoneName is an optional field that tells cert-manager in which
289 // Cloud DNS zone the challenge record has to be created.
290 // If left empty cert-manager will automatically choose a zone.
291 hostedZoneName?: string
292 project!: string
293
294 // A reference to a specific 'key' within a Secret resource.
295 // In some instances, `key` is a required field.
296 serviceAccountSecretRef?: {
297 // The key of the entry in the Secret resource's `data` field to be used.
298 // Some instances of this field may be defaulted, in others it may be
299 // required.
300 key?: string
301
302 // Name of the resource being referred to.
303 // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
304 name!: string
305 }
306 }
307
308 // Use the Cloudflare API to manage DNS01 challenge records.
309 cloudflare?: {
310 // API key to use to authenticate with Cloudflare.
311 // Note: using an API token to authenticate is now the recommended method
312 // as it allows greater control of permissions.
313 apiKeySecretRef?: {
314 // The key of the entry in the Secret resource's `data` field to be used.
315 // Some instances of this field may be defaulted, in others it may be
316 // required.
317 key?: string
318
319 // Name of the resource being referred to.
320 // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
321 name!: string
322 }
323
324 // API token used to authenticate with Cloudflare.
325 apiTokenSecretRef?: {
326 // The key of the entry in the Secret resource's `data` field to be used.
327 // Some instances of this field may be defaulted, in others it may be
328 // required.
329 key?: string
330
331 // Name of the resource being referred to.
332 // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
333 name!: string
334 }
335
336 // Email of the account, only required when using API key based authentication.
337 email?: string
338 }
339
340 // CNAMEStrategy configures how the DNS01 provider should handle CNAME
341 // records when found in DNS zones.
342 cnameStrategy?: "None" | "Follow"
343
344 // Use the DigitalOcean DNS API to manage DNS01 challenge records.
345 digitalocean?: {
346 // A reference to a specific 'key' within a Secret resource.
347 // In some instances, `key` is a required field.
348 tokenSecretRef!: {
349 // The key of the entry in the Secret resource's `data` field to be used.
350 // Some instances of this field may be defaulted, in others it may be
351 // required.
352 key?: string
353
354 // Name of the resource being referred to.
355 // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
356 name!: string
357 }
358 }
359
360 // Use RFC2136 ("Dynamic Updates in the Domain Name System")
361 // (https://datatracker.ietf.org/doc/rfc2136/)
362 // to manage DNS01 challenge records.
363 rfc2136?: {
364 // The IP address or hostname of an authoritative DNS server supporting
365 // RFC2136 in the form host:port. If the host is an IPv6 address it must be
366 // enclosed in square brackets (e.g [2001:db8::1]); port is optional.
367 // This field is required.
368 nameserver!: string
369
370 // Protocol to use for dynamic DNS update queries. Valid values are
371 // (case-sensitive) ``TCP`` and ``UDP``; ``UDP`` (default).
372 protocol?: "TCP" | "UDP"
373
374 // The TSIG Algorithm configured in the DNS supporting RFC2136. Used only
375 // when ``tsigSecretSecretRef`` and ``tsigKeyName`` are defined.
376 // Supported values are (case-insensitive): ``HMACMD5`` (default),
377 // ``HMACSHA1``, ``HMACSHA256`` or ``HMACSHA512``.
378 tsigAlgorithm?: string
379
380 // The TSIG Key name configured in the DNS.
381 // If ``tsigSecretSecretRef`` is defined, this field is required.
382 tsigKeyName?: string
383
384 // The name of the secret containing the TSIG value.
385 // If ``tsigKeyName`` is defined, this field is required.
386 tsigSecretSecretRef?: {
387 // The key of the entry in the Secret resource's `data` field to be used.
388 // Some instances of this field may be defaulted, in others it may be
389 // required.
390 key?: string
391
392 // Name of the resource being referred to.
393 // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
394 name!: string
395 }
396 }
397
398 // Use the AWS Route53 API to manage DNS01 challenge records.
399 route53?: {
400 // The AccessKeyID is used for authentication.
401 // Cannot be set when SecretAccessKeyID is set.
402 // If neither the Access Key nor Key ID are set, we fall back to using env
403 // vars, shared credentials file, or AWS Instance metadata,
404 // see:
405 // https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials
406 accessKeyID?: string
407
408 // The SecretAccessKey is used for authentication. If set, pull the AWS
409 // access key ID from a key within a Kubernetes Secret.
410 // Cannot be set when AccessKeyID is set.
411 // If neither the Access Key nor Key ID are set, we fall back to using env
412 // vars, shared credentials file, or AWS Instance metadata,
413 // see:
414 // https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials
415 accessKeyIDSecretRef?: {
416 // The key of the entry in the Secret resource's `data` field to be used.
417 // Some instances of this field may be defaulted, in others it may be
418 // required.
419 key?: string
420
421 // Name of the resource being referred to.
422 // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
423 name!: string
424 }
425
426 // Auth configures how cert-manager authenticates.
427 auth?: {
428 // Kubernetes authenticates with Route53 using AssumeRoleWithWebIdentity
429 // by passing a bound ServiceAccount token.
430 kubernetes!: {
431 // A reference to a service account that will be used to request a bound
432 // token (also known as "projected token"). To use this field, you must
433 // configure an RBAC rule to let cert-manager request a token.
434 serviceAccountRef!: {
435 // TokenAudiences is an optional list of audiences to include in the
436 // token passed to AWS. The default token consisting of the issuer's namespace
437 // and name is always included.
438 // If unset the audience defaults to `sts.amazonaws.com`.
439 audiences?: [...string]
440
441 // Name of the ServiceAccount used to request a token.
442 name!: string
443 }
444 }
445 }
446
447 // If set, the provider will manage only this zone in Route53 and will not do a
448 // lookup using the route53:ListHostedZonesByName api call.
449 hostedZoneID?: string
450
451 // Override the AWS region.
452 //
453 // Route53 is a global service and does not have regional endpoints but the
454 // region specified here (or via environment variables) is used as a hint to
455 // help compute the correct AWS credential scope and partition when it
456 // connects to Route53. See:
457 // - [Amazon Route 53 endpoints and quotas](https://docs.aws.amazon.com/general/latest/gr/r53.html)
458 // - [Global
459 // services](https://docs.aws.amazon.com/whitepapers/latest/aws-fault-isolation-boundaries/global-services.html)
460 //
461 // If you omit this region field, cert-manager will use the region from
462 // AWS_REGION and AWS_DEFAULT_REGION environment variables, if they are set
463 // in the cert-manager controller Pod.
464 //
465 // The `region` field is not needed if you use [IAM Roles for Service Accounts
466 // (IRSA)](https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html).
467 // Instead an AWS_REGION environment variable is added to the cert-manager controller Pod by:
468 // [Amazon EKS Pod Identity Webhook](https://github.com/aws/amazon-eks-pod-identity-webhook).
469 // In this case this `region` field value is ignored.
470 //
471 // The `region` field is not needed if you use [EKS Pod
472 // Identities](https://docs.aws.amazon.com/eks/latest/userguide/pod-identities.html).
473 // Instead an AWS_REGION environment variable is added to the cert-manager controller Pod by:
474 // [Amazon EKS Pod Identity Agent](https://github.com/aws/eks-pod-identity-agent),
475 // In this case this `region` field value is ignored.
476 region?: string
477
478 // Role is a Role ARN which the Route53 provider will assume using either the
479 // explicit credentials AccessKeyID/SecretAccessKey
480 // or the inferred credentials from environment variables, shared credentials
481 // file or AWS Instance metadata
482 role?: string
483
484 // The SecretAccessKey is used for authentication.
485 // If neither the Access Key nor Key ID are set, we fall back to using env
486 // vars, shared credentials file, or AWS Instance metadata,
487 // see:
488 // https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials
489 secretAccessKeySecretRef?: {
490 // The key of the entry in the Secret resource's `data` field to be used.
491 // Some instances of this field may be defaulted, in others it may be
492 // required.
493 key?: string
494
495 // Name of the resource being referred to.
496 // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
497 name!: string
498 }
499 }
500
501 // Configure an external webhook based DNS01 challenge solver to manage
502 // DNS01 challenge records.
503 webhook?: {
504 // Additional configuration that should be passed to the webhook apiserver
505 // when challenges are processed.
506 // This can contain arbitrary JSON data.
507 // Secret values should not be specified in this stanza.
508 // If secret values are needed (e.g., credentials for a DNS service), you
509 // should use a SecretKeySelector to reference a Secret resource.
510 // For details on the schema of this field, consult the webhook provider
511 // implementation's documentation.
512 config?: null | bool | number | string | [...] | {...}
513
514 // The API group name that should be used when POSTing ChallengePayload
515 // resources to the webhook apiserver.
516 // This should be the same as the GroupName specified in the webhook
517 // provider implementation.
518 groupName!: string
519
520 // The name of the solver to use, as defined in the webhook provider
521 // implementation.
522 // This will typically be the name of the provider, e.g., 'cloudflare'.
523 solverName!: string
524 }
525 }
526
527 // Configures cert-manager to attempt to complete authorizations by
528 // performing the HTTP01 challenge flow.
529 // It is not possible to obtain certificates for wildcard domain names
530 // (e.g., `*.example.com`) using the HTTP01 challenge mechanism.
531 http01?: {
532 // The Gateway API is a sig-network community API that models service networking
533 // in Kubernetes (https://gateway-api.sigs.k8s.io/). The Gateway solver will
534 // create HTTPRoutes with the specified labels in the same namespace as the challenge.
535 // This solver is experimental, and fields / behaviour may change in the future.
536 gatewayHTTPRoute?: {
537 // Custom labels that will be applied to HTTPRoutes created by cert-manager
538 // while solving HTTP-01 challenges.
539 labels?: [string]: string
540
541 // When solving an HTTP-01 challenge, cert-manager creates an HTTPRoute.
542 // cert-manager needs to know which parentRefs should be used when creating
543 // the HTTPRoute. Usually, the parentRef references a Gateway. See:
544 // https://gateway-api.sigs.k8s.io/api-types/httproute/#attaching-to-gateways
545 parentRefs?: [...{
546 // Group is the group of the referent.
547 // When unspecified, "gateway.networking.k8s.io" is inferred.
548 // To set the core API group (such as for a "Service" kind referent),
549 // Group must be explicitly set to "" (empty string).
550 //
551 // Support: Core
552 group?: strings.MaxRunes(
553 253,
554 ) &
555 =~"^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$"
556
557 // Kind is kind of the referent.
558 //
559 // There are two kinds of parent resources with "Core" support:
560 //
561 // * Gateway (Gateway conformance profile)
562 // * Service (Mesh conformance profile, ClusterIP Services only)
563 //
564 // Support for other resources is Implementation-Specific.
565 kind?: strings.MaxRunes(
566 63,
567 ) &
568 strings.MinRunes(
569 1,
570 ) &
571 =~"^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$"
572
573 // Name is the name of the referent.
574 //
575 // Support: Core
576 name!: strings.MaxRunes(
577 253,
578 ) & strings.MinRunes(
579 1,
580 )
581
582 // Namespace is the namespace of the referent. When unspecified, this refers
583 // to the local namespace of the Route.
584 //
585 // Note that there are specific rules for ParentRefs which cross namespace
586 // boundaries. Cross-namespace references are only valid if they are explicitly
587 // allowed by something in the namespace they are referring to. For example:
588 // Gateway has the AllowedRoutes field, and ReferenceGrant provides a
589 // generic way to enable any other kind of cross-namespace reference.
590 //
591 // <gateway:experimental:description>
592 // ParentRefs from a Route to a Service in the same namespace are "producer"
593 // routes, which apply default routing rules to inbound connections from
594 // any namespace to the Service.
595 //
596 // ParentRefs from a Route to a Service in a different namespace are
597 // "consumer" routes, and these routing rules are only applied to outbound
598 // connections originating from the same namespace as the Route, for which
599 // the intended destination of the connections are a Service targeted as a
600 // ParentRef of the Route.
601 // </gateway:experimental:description>
602 //
603 // Support: Core
604 namespace?: strings.MaxRunes(
605 63,
606 ) &
607 strings.MinRunes(
608 1,
609 ) &
610 =~"^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
611
612 // Port is the network port this Route targets. It can be interpreted
613 // differently based on the type of parent resource.
614 //
615 // When the parent resource is a Gateway, this targets all listeners
616 // listening on the specified port that also support this kind of Route(and
617 // select this Route). It's not recommended to set `Port` unless the
618 // networking behaviors specified in a Route must apply to a specific port
619 // as opposed to a listener(s) whose port(s) may be changed. When both Port
620 // and SectionName are specified, the name and port of the selected listener
621 // must match both specified values.
622 //
623 // <gateway:experimental:description>
624 // When the parent resource is a Service, this targets a specific port in the
625 // Service spec. When both Port (experimental) and SectionName are specified,
626 // the name and port of the selected port must match both specified values.
627 // </gateway:experimental:description>
628 //
629 // Implementations MAY choose to support other parent resources.
630 // Implementations supporting other types of parent resources MUST clearly
631 // document how/if Port is interpreted.
632 //
633 // For the purpose of status, an attachment is considered successful as
634 // long as the parent resource accepts it partially. For example, Gateway
635 // listeners can restrict which Routes can attach to them by Route kind,
636 // namespace, or hostname. If 1 of 2 Gateway listeners accept attachment
637 // from the referencing Route, the Route MUST be considered successfully
638 // attached. If no Gateway listeners accept attachment from this Route,
639 // the Route MUST be considered detached from the Gateway.
640 //
641 // Support: Extended
642 port?: int32 & int & <=65535 & >=1
643
644 // SectionName is the name of a section within the target resource. In the
645 // following resources, SectionName is interpreted as the following:
646 //
647 // * Gateway: Listener name. When both Port (experimental) and SectionName
648 // are specified, the name and port of the selected listener must match
649 // both specified values.
650 // * Service: Port name. When both Port (experimental) and SectionName
651 // are specified, the name and port of the selected listener must match
652 // both specified values.
653 //
654 // Implementations MAY choose to support attaching Routes to other resources.
655 // If that is the case, they MUST clearly document how SectionName is
656 // interpreted.
657 //
658 // When unspecified (empty string), this will reference the entire resource.
659 // For the purpose of status, an attachment is considered successful if at
660 // least one section in the parent resource accepts it. For example, Gateway
661 // listeners can restrict which Routes can attach to them by Route kind,
662 // namespace, or hostname. If 1 of 2 Gateway listeners accept attachment from
663 // the referencing Route, the Route MUST be considered successfully
664 // attached. If no Gateway listeners accept attachment from this Route, the
665 // Route MUST be considered detached from the Gateway.
666 //
667 // Support: Core
668 sectionName?: strings.MaxRunes(
669 253,
670 ) &
671 strings.MinRunes(
672 1,
673 ) &
674 =~"^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$"
675 }]
676
677 // Optional pod template used to configure the ACME challenge solver pods
678 // used for HTTP01 challenges.
679 podTemplate?: {
680 // ObjectMeta overrides for the pod used to solve HTTP01 challenges.
681 // Only the 'labels' and 'annotations' fields may be set.
682 // If labels or annotations overlap with in-built values, the values here
683 // will override the in-built values.
684 metadata?: {
685 // Annotations that should be added to the created ACME HTTP01 solver pods.
686 annotations?: [string]: string
687
688 // Labels that should be added to the created ACME HTTP01 solver pods.
689 labels?: [string]: string
690 }
691
692 // PodSpec defines overrides for the HTTP01 challenge solver pod.
693 // Check ACMEChallengeSolverHTTP01IngressPodSpec to find out currently supported fields.
694 // All other fields will be ignored.
695 spec?: {
696 // If specified, the pod's scheduling constraints
697 affinity?: {
698 // Describes node affinity scheduling rules for the pod.
699 nodeAffinity?: {
700 // The scheduler will prefer to schedule pods to nodes that satisfy
701 // the affinity expressions specified by this field, but it may choose
702 // a node that violates one or more of the expressions. The node that is
703 // most preferred is the one with the greatest sum of weights, i.e.
704 // for each node that meets all of the scheduling requirements (resource
705 // request, requiredDuringScheduling affinity expressions, etc.),
706 // compute a sum by iterating through the elements of this field and adding
707 // "weight" to the sum if the node matches the corresponding matchExpressions; the
708 // node(s) with the highest sum are the most preferred.
709 preferredDuringSchedulingIgnoredDuringExecution?: [...{
710 // A node selector term, associated with the corresponding weight.
711 preference!: {
712 // A list of node selector requirements by node's labels.
713 matchExpressions?: [...{
714 // The label key that the selector applies to.
715 key!: string
716
717 // Represents a key's relationship to a set of values.
718 // Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
719 operator!: string
720
721 // An array of string values. If the operator is In or NotIn,
722 // the values array must be non-empty. If the operator is Exists or DoesNotExist,
723 // the values array must be empty. If the operator is Gt or Lt, the values
724 // array must have a single element, which will be interpreted as an integer.
725 // This array is replaced during a strategic merge patch.
726 values?: [...string]
727 }]
728
729 // A list of node selector requirements by node's fields.
730 matchFields?: [...{
731 // The label key that the selector applies to.
732 key!: string
733
734 // Represents a key's relationship to a set of values.
735 // Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
736 operator!: string
737
738 // An array of string values. If the operator is In or NotIn,
739 // the values array must be non-empty. If the operator is Exists or DoesNotExist,
740 // the values array must be empty. If the operator is Gt or Lt, the values
741 // array must have a single element, which will be interpreted as an integer.
742 // This array is replaced during a strategic merge patch.
743 values?: [...string]
744 }]
745 }
746
747 // Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.
748 weight!: int32 & int
749 }]
750
751 // If the affinity requirements specified by this field are not met at
752 // scheduling time, the pod will not be scheduled onto the node.
753 // If the affinity requirements specified by this field cease to be met
754 // at some point during pod execution (e.g. due to an update), the system
755 // may or may not try to eventually evict the pod from its node.
756 requiredDuringSchedulingIgnoredDuringExecution?: {
757 // Required. A list of node selector terms. The terms are ORed.
758 nodeSelectorTerms!: [...{
759 // A list of node selector requirements by node's labels.
760 matchExpressions?: [...{
761 // The label key that the selector applies to.
762 key!: string
763
764 // Represents a key's relationship to a set of values.
765 // Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
766 operator!: string
767
768 // An array of string values. If the operator is In or NotIn,
769 // the values array must be non-empty. If the operator is Exists or DoesNotExist,
770 // the values array must be empty. If the operator is Gt or Lt, the values
771 // array must have a single element, which will be interpreted as an integer.
772 // This array is replaced during a strategic merge patch.
773 values?: [...string]
774 }]
775
776 // A list of node selector requirements by node's fields.
777 matchFields?: [...{
778 // The label key that the selector applies to.
779 key!: string
780
781 // Represents a key's relationship to a set of values.
782 // Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
783 operator!: string
784
785 // An array of string values. If the operator is In or NotIn,
786 // the values array must be non-empty. If the operator is Exists or DoesNotExist,
787 // the values array must be empty. If the operator is Gt or Lt, the values
788 // array must have a single element, which will be interpreted as an integer.
789 // This array is replaced during a strategic merge patch.
790 values?: [...string]
791 }]
792 }]
793 }
794 }
795
796 // Describes pod affinity scheduling rules (e.g. co-locate this pod in the same
797 // node, zone, etc. as some other pod(s)).
798 podAffinity?: {
799 // The scheduler will prefer to schedule pods to nodes that satisfy
800 // the affinity expressions specified by this field, but it may choose
801 // a node that violates one or more of the expressions. The node that is
802 // most preferred is the one with the greatest sum of weights, i.e.
803 // for each node that meets all of the scheduling requirements (resource
804 // request, requiredDuringScheduling affinity expressions, etc.),
805 // compute a sum by iterating through the elements of this field and adding
806 // "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
807 // node(s) with the highest sum are the most preferred.
808 preferredDuringSchedulingIgnoredDuringExecution?: [...{
809 // Required. A pod affinity term, associated with the corresponding weight.
810 podAffinityTerm!: {
811 // A label query over a set of resources, in this case pods.
812 // If it's null, this PodAffinityTerm matches with no Pods.
813 labelSelector?: {
814 // matchExpressions is a list of label selector requirements. The requirements are ANDed.
815 matchExpressions?: [...{
816 // key is the label key that the selector applies to.
817 key!: string
818
819 // operator represents a key's relationship to a set of values.
820 // Valid operators are In, NotIn, Exists and DoesNotExist.
821 operator!: string
822
823 // values is an array of string values. If the operator is In or NotIn,
824 // the values array must be non-empty. If the operator is Exists or DoesNotExist,
825 // the values array must be empty. This array is replaced during a strategic
826 // merge patch.
827 values?: [...string]
828 }]
829
830 // matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
831 // map is equivalent to an element of matchExpressions, whose key field is "key", the
832 // operator is "In", and the values array contains only "value". The requirements are ANDed.
833 matchLabels?: [string]: string
834 }
835
836 // MatchLabelKeys is a set of pod label keys to select which pods will
837 // be taken into consideration. The keys are used to lookup values from the
838 // incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`
839 // to select the group of existing pods which pods will be taken into consideration
840 // for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
841 // pod labels will be ignored. The default value is empty.
842 // The same key is forbidden to exist in both matchLabelKeys and labelSelector.
843 // Also, matchLabelKeys cannot be set when labelSelector isn't set.
844 matchLabelKeys?: [...string]
845
846 // MismatchLabelKeys is a set of pod label keys to select which pods will
847 // be taken into consideration. The keys are used to lookup values from the
848 // incoming pod labels, those key-value labels are merged with `labelSelector`
849 // as `key notin (value)`
850 // to select the group of existing pods which pods will be taken into consideration
851 // for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
852 // pod labels will be ignored. The default value is empty.
853 // The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.
854 // Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
855 mismatchLabelKeys?: [...string]
856
857 // A label query over the set of namespaces that the term applies to.
858 // The term is applied to the union of the namespaces selected by this field
859 // and the ones listed in the namespaces field.
860 // null selector and null or empty namespaces list means "this pod's namespace".
861 // An empty selector ({}) matches all namespaces.
862 namespaceSelector?: {
863 // matchExpressions is a list of label selector requirements. The requirements are ANDed.
864 matchExpressions?: [...{
865 // key is the label key that the selector applies to.
866 key!: string
867
868 // operator represents a key's relationship to a set of values.
869 // Valid operators are In, NotIn, Exists and DoesNotExist.
870 operator!: string
871
872 // values is an array of string values. If the operator is In or NotIn,
873 // the values array must be non-empty. If the operator is Exists or DoesNotExist,
874 // the values array must be empty. This array is replaced during a strategic
875 // merge patch.
876 values?: [...string]
877 }]
878
879 // matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
880 // map is equivalent to an element of matchExpressions, whose key field is "key", the
881 // operator is "In", and the values array contains only "value". The requirements are ANDed.
882 matchLabels?: [string]: string
883 }
884
885 // namespaces specifies a static list of namespace names that the term applies to.
886 // The term is applied to the union of the namespaces listed in this field
887 // and the ones selected by namespaceSelector.
888 // null or empty namespaces list and null namespaceSelector means "this pod's namespace".
889 namespaces?: [...string]
890
891 // This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
892 // the labelSelector in the specified namespaces, where co-located is defined as running on a node
893 // whose value of the label with key topologyKey matches that of any node on which any of the
894 // selected pods is running.
895 // Empty topologyKey is not allowed.
896 topologyKey!: string
897 }
898
899 // weight associated with matching the corresponding podAffinityTerm,
900 // in the range 1-100.
901 weight!: int32 & int
902 }]
903
904 // If the affinity requirements specified by this field are not met at
905 // scheduling time, the pod will not be scheduled onto the node.
906 // If the affinity requirements specified by this field cease to be met
907 // at some point during pod execution (e.g. due to a pod label update), the
908 // system may or may not try to eventually evict the pod from its node.
909 // When there are multiple elements, the lists of nodes corresponding to each
910 // podAffinityTerm are intersected, i.e. all terms must be satisfied.
911 requiredDuringSchedulingIgnoredDuringExecution?: [...{
912 // A label query over a set of resources, in this case pods.
913 // If it's null, this PodAffinityTerm matches with no Pods.
914 labelSelector?: {
915 // matchExpressions is a list of label selector requirements. The requirements are ANDed.
916 matchExpressions?: [...{
917 // key is the label key that the selector applies to.
918 key!: string
919
920 // operator represents a key's relationship to a set of values.
921 // Valid operators are In, NotIn, Exists and DoesNotExist.
922 operator!: string
923
924 // values is an array of string values. If the operator is In or NotIn,
925 // the values array must be non-empty. If the operator is Exists or DoesNotExist,
926 // the values array must be empty. This array is replaced during a strategic
927 // merge patch.
928 values?: [...string]
929 }]
930
931 // matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
932 // map is equivalent to an element of matchExpressions, whose key field is "key", the
933 // operator is "In", and the values array contains only "value". The requirements are ANDed.
934 matchLabels?: [string]: string
935 }
936
937 // MatchLabelKeys is a set of pod label keys to select which pods will
938 // be taken into consideration. The keys are used to lookup values from the
939 // incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`
940 // to select the group of existing pods which pods will be taken into consideration
941 // for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
942 // pod labels will be ignored. The default value is empty.
943 // The same key is forbidden to exist in both matchLabelKeys and labelSelector.
944 // Also, matchLabelKeys cannot be set when labelSelector isn't set.
945 matchLabelKeys?: [...string]
946
947 // MismatchLabelKeys is a set of pod label keys to select which pods will
948 // be taken into consideration. The keys are used to lookup values from the
949 // incoming pod labels, those key-value labels are merged with `labelSelector`
950 // as `key notin (value)`
951 // to select the group of existing pods which pods will be taken into consideration
952 // for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
953 // pod labels will be ignored. The default value is empty.
954 // The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.
955 // Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
956 mismatchLabelKeys?: [...string]
957
958 // A label query over the set of namespaces that the term applies to.
959 // The term is applied to the union of the namespaces selected by this field
960 // and the ones listed in the namespaces field.
961 // null selector and null or empty namespaces list means "this pod's namespace".
962 // An empty selector ({}) matches all namespaces.
963 namespaceSelector?: {
964 // matchExpressions is a list of label selector requirements. The requirements are ANDed.
965 matchExpressions?: [...{
966 // key is the label key that the selector applies to.
967 key!: string
968
969 // operator represents a key's relationship to a set of values.
970 // Valid operators are In, NotIn, Exists and DoesNotExist.
971 operator!: string
972
973 // values is an array of string values. If the operator is In or NotIn,
974 // the values array must be non-empty. If the operator is Exists or DoesNotExist,
975 // the values array must be empty. This array is replaced during a strategic
976 // merge patch.
977 values?: [...string]
978 }]
979
980 // matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
981 // map is equivalent to an element of matchExpressions, whose key field is "key", the
982 // operator is "In", and the values array contains only "value". The requirements are ANDed.
983 matchLabels?: [string]: string
984 }
985
986 // namespaces specifies a static list of namespace names that the term applies to.
987 // The term is applied to the union of the namespaces listed in this field
988 // and the ones selected by namespaceSelector.
989 // null or empty namespaces list and null namespaceSelector means "this pod's namespace".
990 namespaces?: [...string]
991
992 // This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
993 // the labelSelector in the specified namespaces, where co-located is defined as running on a node
994 // whose value of the label with key topologyKey matches that of any node on which any of the
995 // selected pods is running.
996 // Empty topologyKey is not allowed.
997 topologyKey!: string
998 }]
999 }
1000
1001 // Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in
1002 // the same node, zone, etc. as some other pod(s)).
1003 podAntiAffinity?: {
1004 // The scheduler will prefer to schedule pods to nodes that satisfy
1005 // the anti-affinity expressions specified by this field, but it may choose
1006 // a node that violates one or more of the expressions. The node that is
1007 // most preferred is the one with the greatest sum of weights, i.e.
1008 // for each node that meets all of the scheduling requirements (resource
1009 // request, requiredDuringScheduling anti-affinity expressions, etc.),
1010 // compute a sum by iterating through the elements of this field and subtracting
1011 // "weight" from the sum if the node has pods which matches the corresponding podAffinityTerm; the
1012 // node(s) with the highest sum are the most preferred.
1013 preferredDuringSchedulingIgnoredDuringExecution?: [...{
1014 // Required. A pod affinity term, associated with the corresponding weight.
1015 podAffinityTerm!: {
1016 // A label query over a set of resources, in this case pods.
1017 // If it's null, this PodAffinityTerm matches with no Pods.
1018 labelSelector?: {
1019 // matchExpressions is a list of label selector requirements. The requirements are ANDed.
1020 matchExpressions?: [...{
1021 // key is the label key that the selector applies to.
1022 key!: string
1023
1024 // operator represents a key's relationship to a set of values.
1025 // Valid operators are In, NotIn, Exists and DoesNotExist.
1026 operator!: string
1027
1028 // values is an array of string values. If the operator is In or NotIn,
1029 // the values array must be non-empty. If the operator is Exists or DoesNotExist,
1030 // the values array must be empty. This array is replaced during a strategic
1031 // merge patch.
1032 values?: [...string]
1033 }]
1034
1035 // matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
1036 // map is equivalent to an element of matchExpressions, whose key field is "key", the
1037 // operator is "In", and the values array contains only "value". The requirements are ANDed.
1038 matchLabels?: [string]: string
1039 }
1040
1041 // MatchLabelKeys is a set of pod label keys to select which pods will
1042 // be taken into consideration. The keys are used to lookup values from the
1043 // incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`
1044 // to select the group of existing pods which pods will be taken into consideration
1045 // for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
1046 // pod labels will be ignored. The default value is empty.
1047 // The same key is forbidden to exist in both matchLabelKeys and labelSelector.
1048 // Also, matchLabelKeys cannot be set when labelSelector isn't set.
1049 matchLabelKeys?: [...string]
1050
1051 // MismatchLabelKeys is a set of pod label keys to select which pods will
1052 // be taken into consideration. The keys are used to lookup values from the
1053 // incoming pod labels, those key-value labels are merged with `labelSelector`
1054 // as `key notin (value)`
1055 // to select the group of existing pods which pods will be taken into consideration
1056 // for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
1057 // pod labels will be ignored. The default value is empty.
1058 // The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.
1059 // Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
1060 mismatchLabelKeys?: [...string]
1061
1062 // A label query over the set of namespaces that the term applies to.
1063 // The term is applied to the union of the namespaces selected by this field
1064 // and the ones listed in the namespaces field.
1065 // null selector and null or empty namespaces list means "this pod's namespace".
1066 // An empty selector ({}) matches all namespaces.
1067 namespaceSelector?: {
1068 // matchExpressions is a list of label selector requirements. The requirements are ANDed.
1069 matchExpressions?: [...{
1070 // key is the label key that the selector applies to.
1071 key!: string
1072
1073 // operator represents a key's relationship to a set of values.
1074 // Valid operators are In, NotIn, Exists and DoesNotExist.
1075 operator!: string
1076
1077 // values is an array of string values. If the operator is In or NotIn,
1078 // the values array must be non-empty. If the operator is Exists or DoesNotExist,
1079 // the values array must be empty. This array is replaced during a strategic
1080 // merge patch.
1081 values?: [...string]
1082 }]
1083
1084 // matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
1085 // map is equivalent to an element of matchExpressions, whose key field is "key", the
1086 // operator is "In", and the values array contains only "value". The requirements are ANDed.
1087 matchLabels?: [string]: string
1088 }
1089
1090 // namespaces specifies a static list of namespace names that the term applies to.
1091 // The term is applied to the union of the namespaces listed in this field
1092 // and the ones selected by namespaceSelector.
1093 // null or empty namespaces list and null namespaceSelector means "this pod's namespace".
1094 namespaces?: [...string]
1095
1096 // This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
1097 // the labelSelector in the specified namespaces, where co-located is defined as running on a node
1098 // whose value of the label with key topologyKey matches that of any node on which any of the
1099 // selected pods is running.
1100 // Empty topologyKey is not allowed.
1101 topologyKey!: string
1102 }
1103
1104 // weight associated with matching the corresponding podAffinityTerm,
1105 // in the range 1-100.
1106 weight!: int32 & int
1107 }]
1108
1109 // If the anti-affinity requirements specified by this field are not met at
1110 // scheduling time, the pod will not be scheduled onto the node.
1111 // If the anti-affinity requirements specified by this field cease to be met
1112 // at some point during pod execution (e.g. due to a pod label update), the
1113 // system may or may not try to eventually evict the pod from its node.
1114 // When there are multiple elements, the lists of nodes corresponding to each
1115 // podAffinityTerm are intersected, i.e. all terms must be satisfied.
1116 requiredDuringSchedulingIgnoredDuringExecution?: [...{
1117 // A label query over a set of resources, in this case pods.
1118 // If it's null, this PodAffinityTerm matches with no Pods.
1119 labelSelector?: {
1120 // matchExpressions is a list of label selector requirements. The requirements are ANDed.
1121 matchExpressions?: [...{
1122 // key is the label key that the selector applies to.
1123 key!: string
1124
1125 // operator represents a key's relationship to a set of values.
1126 // Valid operators are In, NotIn, Exists and DoesNotExist.
1127 operator!: string
1128
1129 // values is an array of string values. If the operator is In or NotIn,
1130 // the values array must be non-empty. If the operator is Exists or DoesNotExist,
1131 // the values array must be empty. This array is replaced during a strategic
1132 // merge patch.
1133 values?: [...string]
1134 }]
1135
1136 // matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
1137 // map is equivalent to an element of matchExpressions, whose key field is "key", the
1138 // operator is "In", and the values array contains only "value". The requirements are ANDed.
1139 matchLabels?: [string]: string
1140 }
1141
1142 // MatchLabelKeys is a set of pod label keys to select which pods will
1143 // be taken into consideration. The keys are used to lookup values from the
1144 // incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`
1145 // to select the group of existing pods which pods will be taken into consideration
1146 // for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
1147 // pod labels will be ignored. The default value is empty.
1148 // The same key is forbidden to exist in both matchLabelKeys and labelSelector.
1149 // Also, matchLabelKeys cannot be set when labelSelector isn't set.
1150 matchLabelKeys?: [...string]
1151
1152 // MismatchLabelKeys is a set of pod label keys to select which pods will
1153 // be taken into consideration. The keys are used to lookup values from the
1154 // incoming pod labels, those key-value labels are merged with `labelSelector`
1155 // as `key notin (value)`
1156 // to select the group of existing pods which pods will be taken into consideration
1157 // for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
1158 // pod labels will be ignored. The default value is empty.
1159 // The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.
1160 // Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
1161 mismatchLabelKeys?: [...string]
1162
1163 // A label query over the set of namespaces that the term applies to.
1164 // The term is applied to the union of the namespaces selected by this field
1165 // and the ones listed in the namespaces field.
1166 // null selector and null or empty namespaces list means "this pod's namespace".
1167 // An empty selector ({}) matches all namespaces.
1168 namespaceSelector?: {
1169 // matchExpressions is a list of label selector requirements. The requirements are ANDed.
1170 matchExpressions?: [...{
1171 // key is the label key that the selector applies to.
1172 key!: string
1173
1174 // operator represents a key's relationship to a set of values.
1175 // Valid operators are In, NotIn, Exists and DoesNotExist.
1176 operator!: string
1177
1178 // values is an array of string values. If the operator is In or NotIn,
1179 // the values array must be non-empty. If the operator is Exists or DoesNotExist,
1180 // the values array must be empty. This array is replaced during a strategic
1181 // merge patch.
1182 values?: [...string]
1183 }]
1184
1185 // matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
1186 // map is equivalent to an element of matchExpressions, whose key field is "key", the
1187 // operator is "In", and the values array contains only "value". The requirements are ANDed.
1188 matchLabels?: [string]: string
1189 }
1190
1191 // namespaces specifies a static list of namespace names that the term applies to.
1192 // The term is applied to the union of the namespaces listed in this field
1193 // and the ones selected by namespaceSelector.
1194 // null or empty namespaces list and null namespaceSelector means "this pod's namespace".
1195 namespaces?: [...string]
1196
1197 // This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
1198 // the labelSelector in the specified namespaces, where co-located is defined as running on a node
1199 // whose value of the label with key topologyKey matches that of any node on which any of the
1200 // selected pods is running.
1201 // Empty topologyKey is not allowed.
1202 topologyKey!: string
1203 }]
1204 }
1205 }
1206
1207 // If specified, the pod's imagePullSecrets
1208 imagePullSecrets?: [...{
1209 // Name of the referent.
1210 // This field is effectively required, but due to backwards compatibility is
1211 // allowed to be empty. Instances of this type with an empty value here are
1212 // almost certainly wrong.
1213 // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
1214 name?: string
1215 }]
1216
1217 // NodeSelector is a selector which must be true for the pod to fit on a node.
1218 // Selector which must match a node's labels for the pod to be scheduled on that node.
1219 // More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
1220 nodeSelector?: [string]: string
1221
1222 // If specified, the pod's priorityClassName.
1223 priorityClassName?: string
1224
1225 // If specified, the pod's resource requirements.
1226 // These values override the global resource configuration flags.
1227 // Note that when only specifying resource limits, ensure they are greater than or equal
1228 // to the corresponding global resource requests configured via controller flags
1229 // (--acme-http01-solver-resource-request-cpu, --acme-http01-solver-resource-request-memory).
1230 // Kubernetes will reject pod creation if limits are lower than requests,
1231 // causing challenge failures.
1232 resources?: {
1233 // Limits describes the maximum amount of compute resources allowed.
1234 // More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
1235 limits?: [string]: matchN(>=1, [int, string]) &
1236 (int |
1237 =~"^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$")
1238
1239 // Requests describes the minimum amount of compute resources required.
1240 // If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
1241 // otherwise to the global values configured via controller flags. Requests cannot exceed Limits.
1242 // More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
1243 requests?: [string]: matchN(>=1, [int, string]) &
1244 (int |
1245 =~"^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$")
1246 }
1247
1248 // If specified, the pod's security context
1249 securityContext?: {
1250 // A special supplemental group that applies to all containers in a pod.
1251 // Some volume types allow the Kubelet to change the ownership of that volume
1252 // to be owned by the pod:
1253 //
1254 // 1. The owning GID will be the FSGroup
1255 // 2. The setgid bit is set (new files created in the volume will be owned by FSGroup)
1256 // 3. The permission bits are OR'd with rw-rw----
1257 //
1258 // If unset, the Kubelet will not modify the ownership and permissions of any volume.
1259 // Note that this field cannot be set when spec.os.name is windows.
1260 fsGroup?: int64 & int
1261
1262 // fsGroupChangePolicy defines behavior of changing ownership and permission of the volume
1263 // before being exposed inside Pod. This field will only apply to
1264 // volume types which support fsGroup based ownership(and permissions).
1265 // It will have no effect on ephemeral volume types such as: secret, configmaps
1266 // and emptydir.
1267 // Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used.
1268 // Note that this field cannot be set when spec.os.name is windows.
1269 fsGroupChangePolicy?: string
1270
1271 // The GID to run the entrypoint of the container process.
1272 // Uses runtime default if unset.
1273 // May also be set in SecurityContext. If set in both SecurityContext and
1274 // PodSecurityContext, the value specified in SecurityContext takes precedence
1275 // for that container.
1276 // Note that this field cannot be set when spec.os.name is windows.
1277 runAsGroup?: int64 & int
1278
1279 // Indicates that the container must run as a non-root user.
1280 // If true, the Kubelet will validate the image at runtime to ensure that it
1281 // does not run as UID 0 (root) and fail to start the container if it does.
1282 // If unset or false, no such validation will be performed.
1283 // May also be set in SecurityContext. If set in both SecurityContext and
1284 // PodSecurityContext, the value specified in SecurityContext takes precedence.
1285 runAsNonRoot?: bool
1286
1287 // The UID to run the entrypoint of the container process.
1288 // Defaults to user specified in image metadata if unspecified.
1289 // May also be set in SecurityContext. If set in both SecurityContext and
1290 // PodSecurityContext, the value specified in SecurityContext takes precedence
1291 // for that container.
1292 // Note that this field cannot be set when spec.os.name is windows.
1293 runAsUser?: int64 & int
1294
1295 // The SELinux context to be applied to all containers.
1296 // If unspecified, the container runtime will allocate a random SELinux context for each
1297 // container. May also be set in SecurityContext. If set in
1298 // both SecurityContext and PodSecurityContext, the value specified in SecurityContext
1299 // takes precedence for that container.
1300 // Note that this field cannot be set when spec.os.name is windows.
1301 seLinuxOptions?: {
1302 // Level is SELinux level label that applies to the container.
1303 level?: string
1304
1305 // Role is a SELinux role label that applies to the container.
1306 role?: string
1307
1308 // Type is a SELinux type label that applies to the container.
1309 type?: string
1310
1311 // User is a SELinux user label that applies to the container.
1312 user?: string
1313 }
1314
1315 // The seccomp options to use by the containers in this pod.
1316 // Note that this field cannot be set when spec.os.name is windows.
1317 seccompProfile?: {
1318 // localhostProfile indicates a profile defined in a file on the node should be used.
1319 // The profile must be preconfigured on the node to work.
1320 // Must be a descending path, relative to the kubelet's configured seccomp profile location.
1321 // Must be set if type is "Localhost". Must NOT be set for any other type.
1322 localhostProfile?: string
1323
1324 // type indicates which kind of seccomp profile will be applied.
1325 // Valid options are:
1326 //
1327 // Localhost - a profile defined in a file on the node should be used.
1328 // RuntimeDefault - the container runtime default profile should be used.
1329 // Unconfined - no profile should be applied.
1330 type!: string
1331 }
1332
1333 // A list of groups applied to the first process run in each container, in addition
1334 // to the container's primary GID, the fsGroup (if specified), and group memberships
1335 // defined in the container image for the uid of the container process. If unspecified,
1336 // no additional groups are added to any container. Note that group memberships
1337 // defined in the container image for the uid of the container process are still effective,
1338 // even if they are not included in this list.
1339 // Note that this field cannot be set when spec.os.name is windows.
1340 supplementalGroups?: [...int64 & int]
1341
1342 // Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
1343 // sysctls (by the container runtime) might fail to launch.
1344 // Note that this field cannot be set when spec.os.name is windows.
1345 sysctls?: [...{
1346 // Name of a property to set
1347 name!: string
1348
1349 // Value of a property to set
1350 value!: string
1351 }]
1352 }
1353
1354 // If specified, the pod's service account
1355 serviceAccountName?: string
1356
1357 // If specified, the pod's tolerations.
1358 tolerations?: [...{
1359 // Effect indicates the taint effect to match. Empty means match all taint effects.
1360 // When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
1361 effect?: string
1362
1363 // Key is the taint key that the toleration applies to. Empty means match all taint keys.
1364 // If the key is empty, operator must be Exists; this combination means to match
1365 // all values and all keys.
1366 key?: string
1367
1368 // Operator represents a key's relationship to the value.
1369 // Valid operators are Exists, Equal, Lt, and Gt. Defaults to Equal.
1370 // Exists is equivalent to wildcard for value, so that a pod can
1371 // tolerate all taints of a particular category.
1372 // Lt and Gt perform numeric comparisons (requires feature gate TaintTolerationComparisonOperators).
1373 operator?: string
1374
1375 // TolerationSeconds represents the period of time the toleration (which must be
1376 // of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
1377 // it is not set, which means tolerate the taint forever (do not evict). Zero and
1378 // negative values will be treated as 0 (evict immediately) by the system.
1379 tolerationSeconds?: int64 & int
1380
1381 // Value is the taint value the toleration matches to.
1382 // If the operator is Exists, the value should be empty, otherwise just a regular string.
1383 value?: string
1384 }]
1385 }
1386 }
1387
1388 // Optional service type for Kubernetes solver service. Supported values
1389 // are NodePort or ClusterIP. If unset, defaults to NodePort.
1390 serviceType?: string
1391 }
1392
1393 // The ingress based HTTP01 challenge solver will solve challenges by
1394 // creating or modifying Ingress resources in order to route requests for
1395 // '/.well-known/acme-challenge/XYZ' to 'challenge solver' pods that are
1396 // provisioned by cert-manager for each Challenge to be completed.
1397 ingress?: {
1398 // This field configures the annotation `kubernetes.io/ingress.class` when
1399 // creating Ingress resources to solve ACME challenges that use this
1400 // challenge solver. Only one of `class`, `name` or `ingressClassName` may
1401 // be specified.
1402 class?: string
1403
1404 // This field configures the field `ingressClassName` on the created Ingress
1405 // resources used to solve ACME challenges that use this challenge solver.
1406 // This is the recommended way of configuring the ingress class. Only one of
1407 // `class`, `name` or `ingressClassName` may be specified.
1408 ingressClassName?: string
1409
1410 // Optional ingress template used to configure the ACME challenge solver
1411 // ingress used for HTTP01 challenges.
1412 ingressTemplate?: {
1413 // ObjectMeta overrides for the ingress used to solve HTTP01 challenges.
1414 // Only the 'labels' and 'annotations' fields may be set.
1415 // If labels or annotations overlap with in-built values, the values here
1416 // will override the in-built values.
1417 metadata?: {
1418 // Annotations that should be added to the created ACME HTTP01 solver ingress.
1419 annotations?: [string]: string
1420
1421 // Labels that should be added to the created ACME HTTP01 solver ingress.
1422 labels?: [string]: string
1423 }
1424 }
1425
1426 // The name of the ingress resource that should have ACME challenge solving
1427 // routes inserted into it in order to solve HTTP01 challenges.
1428 // This is typically used in conjunction with ingress controllers like
1429 // ingress-gce, which maintains a 1:1 mapping between external IPs and
1430 // ingress resources. Only one of `class`, `name` or `ingressClassName` may
1431 // be specified.
1432 name?: string
1433
1434 // Optional pod template used to configure the ACME challenge solver pods
1435 // used for HTTP01 challenges.
1436 podTemplate?: {
1437 // ObjectMeta overrides for the pod used to solve HTTP01 challenges.
1438 // Only the 'labels' and 'annotations' fields may be set.
1439 // If labels or annotations overlap with in-built values, the values here
1440 // will override the in-built values.
1441 metadata?: {
1442 // Annotations that should be added to the created ACME HTTP01 solver pods.
1443 annotations?: [string]: string
1444
1445 // Labels that should be added to the created ACME HTTP01 solver pods.
1446 labels?: [string]: string
1447 }
1448
1449 // PodSpec defines overrides for the HTTP01 challenge solver pod.
1450 // Check ACMEChallengeSolverHTTP01IngressPodSpec to find out currently supported fields.
1451 // All other fields will be ignored.
1452 spec?: {
1453 // If specified, the pod's scheduling constraints
1454 affinity?: {
1455 // Describes node affinity scheduling rules for the pod.
1456 nodeAffinity?: {
1457 // The scheduler will prefer to schedule pods to nodes that satisfy
1458 // the affinity expressions specified by this field, but it may choose
1459 // a node that violates one or more of the expressions. The node that is
1460 // most preferred is the one with the greatest sum of weights, i.e.
1461 // for each node that meets all of the scheduling requirements (resource
1462 // request, requiredDuringScheduling affinity expressions, etc.),
1463 // compute a sum by iterating through the elements of this field and adding
1464 // "weight" to the sum if the node matches the corresponding matchExpressions; the
1465 // node(s) with the highest sum are the most preferred.
1466 preferredDuringSchedulingIgnoredDuringExecution?: [...{
1467 // A node selector term, associated with the corresponding weight.
1468 preference!: {
1469 // A list of node selector requirements by node's labels.
1470 matchExpressions?: [...{
1471 // The label key that the selector applies to.
1472 key!: string
1473
1474 // Represents a key's relationship to a set of values.
1475 // Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
1476 operator!: string
1477
1478 // An array of string values. If the operator is In or NotIn,
1479 // the values array must be non-empty. If the operator is Exists or DoesNotExist,
1480 // the values array must be empty. If the operator is Gt or Lt, the values
1481 // array must have a single element, which will be interpreted as an integer.
1482 // This array is replaced during a strategic merge patch.
1483 values?: [...string]
1484 }]
1485
1486 // A list of node selector requirements by node's fields.
1487 matchFields?: [...{
1488 // The label key that the selector applies to.
1489 key!: string
1490
1491 // Represents a key's relationship to a set of values.
1492 // Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
1493 operator!: string
1494
1495 // An array of string values. If the operator is In or NotIn,
1496 // the values array must be non-empty. If the operator is Exists or DoesNotExist,
1497 // the values array must be empty. If the operator is Gt or Lt, the values
1498 // array must have a single element, which will be interpreted as an integer.
1499 // This array is replaced during a strategic merge patch.
1500 values?: [...string]
1501 }]
1502 }
1503
1504 // Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.
1505 weight!: int32 & int
1506 }]
1507
1508 // If the affinity requirements specified by this field are not met at
1509 // scheduling time, the pod will not be scheduled onto the node.
1510 // If the affinity requirements specified by this field cease to be met
1511 // at some point during pod execution (e.g. due to an update), the system
1512 // may or may not try to eventually evict the pod from its node.
1513 requiredDuringSchedulingIgnoredDuringExecution?: {
1514 // Required. A list of node selector terms. The terms are ORed.
1515 nodeSelectorTerms!: [...{
1516 // A list of node selector requirements by node's labels.
1517 matchExpressions?: [...{
1518 // The label key that the selector applies to.
1519 key!: string
1520
1521 // Represents a key's relationship to a set of values.
1522 // Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
1523 operator!: string
1524
1525 // An array of string values. If the operator is In or NotIn,
1526 // the values array must be non-empty. If the operator is Exists or DoesNotExist,
1527 // the values array must be empty. If the operator is Gt or Lt, the values
1528 // array must have a single element, which will be interpreted as an integer.
1529 // This array is replaced during a strategic merge patch.
1530 values?: [...string]
1531 }]
1532
1533 // A list of node selector requirements by node's fields.
1534 matchFields?: [...{
1535 // The label key that the selector applies to.
1536 key!: string
1537
1538 // Represents a key's relationship to a set of values.
1539 // Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
1540 operator!: string
1541
1542 // An array of string values. If the operator is In or NotIn,
1543 // the values array must be non-empty. If the operator is Exists or DoesNotExist,
1544 // the values array must be empty. If the operator is Gt or Lt, the values
1545 // array must have a single element, which will be interpreted as an integer.
1546 // This array is replaced during a strategic merge patch.
1547 values?: [...string]
1548 }]
1549 }]
1550 }
1551 }
1552
1553 // Describes pod affinity scheduling rules (e.g. co-locate this pod in the same
1554 // node, zone, etc. as some other pod(s)).
1555 podAffinity?: {
1556 // The scheduler will prefer to schedule pods to nodes that satisfy
1557 // the affinity expressions specified by this field, but it may choose
1558 // a node that violates one or more of the expressions. The node that is
1559 // most preferred is the one with the greatest sum of weights, i.e.
1560 // for each node that meets all of the scheduling requirements (resource
1561 // request, requiredDuringScheduling affinity expressions, etc.),
1562 // compute a sum by iterating through the elements of this field and adding
1563 // "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
1564 // node(s) with the highest sum are the most preferred.
1565 preferredDuringSchedulingIgnoredDuringExecution?: [...{
1566 // Required. A pod affinity term, associated with the corresponding weight.
1567 podAffinityTerm!: {
1568 // A label query over a set of resources, in this case pods.
1569 // If it's null, this PodAffinityTerm matches with no Pods.
1570 labelSelector?: {
1571 // matchExpressions is a list of label selector requirements. The requirements are ANDed.
1572 matchExpressions?: [...{
1573 // key is the label key that the selector applies to.
1574 key!: string
1575
1576 // operator represents a key's relationship to a set of values.
1577 // Valid operators are In, NotIn, Exists and DoesNotExist.
1578 operator!: string
1579
1580 // values is an array of string values. If the operator is In or NotIn,
1581 // the values array must be non-empty. If the operator is Exists or DoesNotExist,
1582 // the values array must be empty. This array is replaced during a strategic
1583 // merge patch.
1584 values?: [...string]
1585 }]
1586
1587 // matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
1588 // map is equivalent to an element of matchExpressions, whose key field is "key", the
1589 // operator is "In", and the values array contains only "value". The requirements are ANDed.
1590 matchLabels?: [string]: string
1591 }
1592
1593 // MatchLabelKeys is a set of pod label keys to select which pods will
1594 // be taken into consideration. The keys are used to lookup values from the
1595 // incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`
1596 // to select the group of existing pods which pods will be taken into consideration
1597 // for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
1598 // pod labels will be ignored. The default value is empty.
1599 // The same key is forbidden to exist in both matchLabelKeys and labelSelector.
1600 // Also, matchLabelKeys cannot be set when labelSelector isn't set.
1601 matchLabelKeys?: [...string]
1602
1603 // MismatchLabelKeys is a set of pod label keys to select which pods will
1604 // be taken into consideration. The keys are used to lookup values from the
1605 // incoming pod labels, those key-value labels are merged with `labelSelector`
1606 // as `key notin (value)`
1607 // to select the group of existing pods which pods will be taken into consideration
1608 // for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
1609 // pod labels will be ignored. The default value is empty.
1610 // The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.
1611 // Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
1612 mismatchLabelKeys?: [...string]
1613
1614 // A label query over the set of namespaces that the term applies to.
1615 // The term is applied to the union of the namespaces selected by this field
1616 // and the ones listed in the namespaces field.
1617 // null selector and null or empty namespaces list means "this pod's namespace".
1618 // An empty selector ({}) matches all namespaces.
1619 namespaceSelector?: {
1620 // matchExpressions is a list of label selector requirements. The requirements are ANDed.
1621 matchExpressions?: [...{
1622 // key is the label key that the selector applies to.
1623 key!: string
1624
1625 // operator represents a key's relationship to a set of values.
1626 // Valid operators are In, NotIn, Exists and DoesNotExist.
1627 operator!: string
1628
1629 // values is an array of string values. If the operator is In or NotIn,
1630 // the values array must be non-empty. If the operator is Exists or DoesNotExist,
1631 // the values array must be empty. This array is replaced during a strategic
1632 // merge patch.
1633 values?: [...string]
1634 }]
1635
1636 // matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
1637 // map is equivalent to an element of matchExpressions, whose key field is "key", the
1638 // operator is "In", and the values array contains only "value". The requirements are ANDed.
1639 matchLabels?: [string]: string
1640 }
1641
1642 // namespaces specifies a static list of namespace names that the term applies to.
1643 // The term is applied to the union of the namespaces listed in this field
1644 // and the ones selected by namespaceSelector.
1645 // null or empty namespaces list and null namespaceSelector means "this pod's namespace".
1646 namespaces?: [...string]
1647
1648 // This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
1649 // the labelSelector in the specified namespaces, where co-located is defined as running on a node
1650 // whose value of the label with key topologyKey matches that of any node on which any of the
1651 // selected pods is running.
1652 // Empty topologyKey is not allowed.
1653 topologyKey!: string
1654 }
1655
1656 // weight associated with matching the corresponding podAffinityTerm,
1657 // in the range 1-100.
1658 weight!: int32 & int
1659 }]
1660
1661 // If the affinity requirements specified by this field are not met at
1662 // scheduling time, the pod will not be scheduled onto the node.
1663 // If the affinity requirements specified by this field cease to be met
1664 // at some point during pod execution (e.g. due to a pod label update), the
1665 // system may or may not try to eventually evict the pod from its node.
1666 // When there are multiple elements, the lists of nodes corresponding to each
1667 // podAffinityTerm are intersected, i.e. all terms must be satisfied.
1668 requiredDuringSchedulingIgnoredDuringExecution?: [...{
1669 // A label query over a set of resources, in this case pods.
1670 // If it's null, this PodAffinityTerm matches with no Pods.
1671 labelSelector?: {
1672 // matchExpressions is a list of label selector requirements. The requirements are ANDed.
1673 matchExpressions?: [...{
1674 // key is the label key that the selector applies to.
1675 key!: string
1676
1677 // operator represents a key's relationship to a set of values.
1678 // Valid operators are In, NotIn, Exists and DoesNotExist.
1679 operator!: string
1680
1681 // values is an array of string values. If the operator is In or NotIn,
1682 // the values array must be non-empty. If the operator is Exists or DoesNotExist,
1683 // the values array must be empty. This array is replaced during a strategic
1684 // merge patch.
1685 values?: [...string]
1686 }]
1687
1688 // matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
1689 // map is equivalent to an element of matchExpressions, whose key field is "key", the
1690 // operator is "In", and the values array contains only "value". The requirements are ANDed.
1691 matchLabels?: [string]: string
1692 }
1693
1694 // MatchLabelKeys is a set of pod label keys to select which pods will
1695 // be taken into consideration. The keys are used to lookup values from the
1696 // incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`
1697 // to select the group of existing pods which pods will be taken into consideration
1698 // for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
1699 // pod labels will be ignored. The default value is empty.
1700 // The same key is forbidden to exist in both matchLabelKeys and labelSelector.
1701 // Also, matchLabelKeys cannot be set when labelSelector isn't set.
1702 matchLabelKeys?: [...string]
1703
1704 // MismatchLabelKeys is a set of pod label keys to select which pods will
1705 // be taken into consideration. The keys are used to lookup values from the
1706 // incoming pod labels, those key-value labels are merged with `labelSelector`
1707 // as `key notin (value)`
1708 // to select the group of existing pods which pods will be taken into consideration
1709 // for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
1710 // pod labels will be ignored. The default value is empty.
1711 // The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.
1712 // Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
1713 mismatchLabelKeys?: [...string]
1714
1715 // A label query over the set of namespaces that the term applies to.
1716 // The term is applied to the union of the namespaces selected by this field
1717 // and the ones listed in the namespaces field.
1718 // null selector and null or empty namespaces list means "this pod's namespace".
1719 // An empty selector ({}) matches all namespaces.
1720 namespaceSelector?: {
1721 // matchExpressions is a list of label selector requirements. The requirements are ANDed.
1722 matchExpressions?: [...{
1723 // key is the label key that the selector applies to.
1724 key!: string
1725
1726 // operator represents a key's relationship to a set of values.
1727 // Valid operators are In, NotIn, Exists and DoesNotExist.
1728 operator!: string
1729
1730 // values is an array of string values. If the operator is In or NotIn,
1731 // the values array must be non-empty. If the operator is Exists or DoesNotExist,
1732 // the values array must be empty. This array is replaced during a strategic
1733 // merge patch.
1734 values?: [...string]
1735 }]
1736
1737 // matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
1738 // map is equivalent to an element of matchExpressions, whose key field is "key", the
1739 // operator is "In", and the values array contains only "value". The requirements are ANDed.
1740 matchLabels?: [string]: string
1741 }
1742
1743 // namespaces specifies a static list of namespace names that the term applies to.
1744 // The term is applied to the union of the namespaces listed in this field
1745 // and the ones selected by namespaceSelector.
1746 // null or empty namespaces list and null namespaceSelector means "this pod's namespace".
1747 namespaces?: [...string]
1748
1749 // This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
1750 // the labelSelector in the specified namespaces, where co-located is defined as running on a node
1751 // whose value of the label with key topologyKey matches that of any node on which any of the
1752 // selected pods is running.
1753 // Empty topologyKey is not allowed.
1754 topologyKey!: string
1755 }]
1756 }
1757
1758 // Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in
1759 // the same node, zone, etc. as some other pod(s)).
1760 podAntiAffinity?: {
1761 // The scheduler will prefer to schedule pods to nodes that satisfy
1762 // the anti-affinity expressions specified by this field, but it may choose
1763 // a node that violates one or more of the expressions. The node that is
1764 // most preferred is the one with the greatest sum of weights, i.e.
1765 // for each node that meets all of the scheduling requirements (resource
1766 // request, requiredDuringScheduling anti-affinity expressions, etc.),
1767 // compute a sum by iterating through the elements of this field and subtracting
1768 // "weight" from the sum if the node has pods which matches the corresponding podAffinityTerm; the
1769 // node(s) with the highest sum are the most preferred.
1770 preferredDuringSchedulingIgnoredDuringExecution?: [...{
1771 // Required. A pod affinity term, associated with the corresponding weight.
1772 podAffinityTerm!: {
1773 // A label query over a set of resources, in this case pods.
1774 // If it's null, this PodAffinityTerm matches with no Pods.
1775 labelSelector?: {
1776 // matchExpressions is a list of label selector requirements. The requirements are ANDed.
1777 matchExpressions?: [...{
1778 // key is the label key that the selector applies to.
1779 key!: string
1780
1781 // operator represents a key's relationship to a set of values.
1782 // Valid operators are In, NotIn, Exists and DoesNotExist.
1783 operator!: string
1784
1785 // values is an array of string values. If the operator is In or NotIn,
1786 // the values array must be non-empty. If the operator is Exists or DoesNotExist,
1787 // the values array must be empty. This array is replaced during a strategic
1788 // merge patch.
1789 values?: [...string]
1790 }]
1791
1792 // matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
1793 // map is equivalent to an element of matchExpressions, whose key field is "key", the
1794 // operator is "In", and the values array contains only "value". The requirements are ANDed.
1795 matchLabels?: [string]: string
1796 }
1797
1798 // MatchLabelKeys is a set of pod label keys to select which pods will
1799 // be taken into consideration. The keys are used to lookup values from the
1800 // incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`
1801 // to select the group of existing pods which pods will be taken into consideration
1802 // for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
1803 // pod labels will be ignored. The default value is empty.
1804 // The same key is forbidden to exist in both matchLabelKeys and labelSelector.
1805 // Also, matchLabelKeys cannot be set when labelSelector isn't set.
1806 matchLabelKeys?: [...string]
1807
1808 // MismatchLabelKeys is a set of pod label keys to select which pods will
1809 // be taken into consideration. The keys are used to lookup values from the
1810 // incoming pod labels, those key-value labels are merged with `labelSelector`
1811 // as `key notin (value)`
1812 // to select the group of existing pods which pods will be taken into consideration
1813 // for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
1814 // pod labels will be ignored. The default value is empty.
1815 // The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.
1816 // Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
1817 mismatchLabelKeys?: [...string]
1818
1819 // A label query over the set of namespaces that the term applies to.
1820 // The term is applied to the union of the namespaces selected by this field
1821 // and the ones listed in the namespaces field.
1822 // null selector and null or empty namespaces list means "this pod's namespace".
1823 // An empty selector ({}) matches all namespaces.
1824 namespaceSelector?: {
1825 // matchExpressions is a list of label selector requirements. The requirements are ANDed.
1826 matchExpressions?: [...{
1827 // key is the label key that the selector applies to.
1828 key!: string
1829
1830 // operator represents a key's relationship to a set of values.
1831 // Valid operators are In, NotIn, Exists and DoesNotExist.
1832 operator!: string
1833
1834 // values is an array of string values. If the operator is In or NotIn,
1835 // the values array must be non-empty. If the operator is Exists or DoesNotExist,
1836 // the values array must be empty. This array is replaced during a strategic
1837 // merge patch.
1838 values?: [...string]
1839 }]
1840
1841 // matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
1842 // map is equivalent to an element of matchExpressions, whose key field is "key", the
1843 // operator is "In", and the values array contains only "value". The requirements are ANDed.
1844 matchLabels?: [string]: string
1845 }
1846
1847 // namespaces specifies a static list of namespace names that the term applies to.
1848 // The term is applied to the union of the namespaces listed in this field
1849 // and the ones selected by namespaceSelector.
1850 // null or empty namespaces list and null namespaceSelector means "this pod's namespace".
1851 namespaces?: [...string]
1852
1853 // This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
1854 // the labelSelector in the specified namespaces, where co-located is defined as running on a node
1855 // whose value of the label with key topologyKey matches that of any node on which any of the
1856 // selected pods is running.
1857 // Empty topologyKey is not allowed.
1858 topologyKey!: string
1859 }
1860
1861 // weight associated with matching the corresponding podAffinityTerm,
1862 // in the range 1-100.
1863 weight!: int32 & int
1864 }]
1865
1866 // If the anti-affinity requirements specified by this field are not met at
1867 // scheduling time, the pod will not be scheduled onto the node.
1868 // If the anti-affinity requirements specified by this field cease to be met
1869 // at some point during pod execution (e.g. due to a pod label update), the
1870 // system may or may not try to eventually evict the pod from its node.
1871 // When there are multiple elements, the lists of nodes corresponding to each
1872 // podAffinityTerm are intersected, i.e. all terms must be satisfied.
1873 requiredDuringSchedulingIgnoredDuringExecution?: [...{
1874 // A label query over a set of resources, in this case pods.
1875 // If it's null, this PodAffinityTerm matches with no Pods.
1876 labelSelector?: {
1877 // matchExpressions is a list of label selector requirements. The requirements are ANDed.
1878 matchExpressions?: [...{
1879 // key is the label key that the selector applies to.
1880 key!: string
1881
1882 // operator represents a key's relationship to a set of values.
1883 // Valid operators are In, NotIn, Exists and DoesNotExist.
1884 operator!: string
1885
1886 // values is an array of string values. If the operator is In or NotIn,
1887 // the values array must be non-empty. If the operator is Exists or DoesNotExist,
1888 // the values array must be empty. This array is replaced during a strategic
1889 // merge patch.
1890 values?: [...string]
1891 }]
1892
1893 // matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
1894 // map is equivalent to an element of matchExpressions, whose key field is "key", the
1895 // operator is "In", and the values array contains only "value". The requirements are ANDed.
1896 matchLabels?: [string]: string
1897 }
1898
1899 // MatchLabelKeys is a set of pod label keys to select which pods will
1900 // be taken into consideration. The keys are used to lookup values from the
1901 // incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`
1902 // to select the group of existing pods which pods will be taken into consideration
1903 // for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
1904 // pod labels will be ignored. The default value is empty.
1905 // The same key is forbidden to exist in both matchLabelKeys and labelSelector.
1906 // Also, matchLabelKeys cannot be set when labelSelector isn't set.
1907 matchLabelKeys?: [...string]
1908
1909 // MismatchLabelKeys is a set of pod label keys to select which pods will
1910 // be taken into consideration. The keys are used to lookup values from the
1911 // incoming pod labels, those key-value labels are merged with `labelSelector`
1912 // as `key notin (value)`
1913 // to select the group of existing pods which pods will be taken into consideration
1914 // for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
1915 // pod labels will be ignored. The default value is empty.
1916 // The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.
1917 // Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
1918 mismatchLabelKeys?: [...string]
1919
1920 // A label query over the set of namespaces that the term applies to.
1921 // The term is applied to the union of the namespaces selected by this field
1922 // and the ones listed in the namespaces field.
1923 // null selector and null or empty namespaces list means "this pod's namespace".
1924 // An empty selector ({}) matches all namespaces.
1925 namespaceSelector?: {
1926 // matchExpressions is a list of label selector requirements. The requirements are ANDed.
1927 matchExpressions?: [...{
1928 // key is the label key that the selector applies to.
1929 key!: string
1930
1931 // operator represents a key's relationship to a set of values.
1932 // Valid operators are In, NotIn, Exists and DoesNotExist.
1933 operator!: string
1934
1935 // values is an array of string values. If the operator is In or NotIn,
1936 // the values array must be non-empty. If the operator is Exists or DoesNotExist,
1937 // the values array must be empty. This array is replaced during a strategic
1938 // merge patch.
1939 values?: [...string]
1940 }]
1941
1942 // matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
1943 // map is equivalent to an element of matchExpressions, whose key field is "key", the
1944 // operator is "In", and the values array contains only "value". The requirements are ANDed.
1945 matchLabels?: [string]: string
1946 }
1947
1948 // namespaces specifies a static list of namespace names that the term applies to.
1949 // The term is applied to the union of the namespaces listed in this field
1950 // and the ones selected by namespaceSelector.
1951 // null or empty namespaces list and null namespaceSelector means "this pod's namespace".
1952 namespaces?: [...string]
1953
1954 // This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
1955 // the labelSelector in the specified namespaces, where co-located is defined as running on a node
1956 // whose value of the label with key topologyKey matches that of any node on which any of the
1957 // selected pods is running.
1958 // Empty topologyKey is not allowed.
1959 topologyKey!: string
1960 }]
1961 }
1962 }
1963
1964 // If specified, the pod's imagePullSecrets
1965 imagePullSecrets?: [...{
1966 // Name of the referent.
1967 // This field is effectively required, but due to backwards compatibility is
1968 // allowed to be empty. Instances of this type with an empty value here are
1969 // almost certainly wrong.
1970 // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
1971 name?: string
1972 }]
1973
1974 // NodeSelector is a selector which must be true for the pod to fit on a node.
1975 // Selector which must match a node's labels for the pod to be scheduled on that node.
1976 // More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
1977 nodeSelector?: [string]: string
1978
1979 // If specified, the pod's priorityClassName.
1980 priorityClassName?: string
1981
1982 // If specified, the pod's resource requirements.
1983 // These values override the global resource configuration flags.
1984 // Note that when only specifying resource limits, ensure they are greater than or equal
1985 // to the corresponding global resource requests configured via controller flags
1986 // (--acme-http01-solver-resource-request-cpu, --acme-http01-solver-resource-request-memory).
1987 // Kubernetes will reject pod creation if limits are lower than requests,
1988 // causing challenge failures.
1989 resources?: {
1990 // Limits describes the maximum amount of compute resources allowed.
1991 // More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
1992 limits?: [string]: matchN(>=1, [int, string]) &
1993 (int |
1994 =~"^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$")
1995
1996 // Requests describes the minimum amount of compute resources required.
1997 // If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
1998 // otherwise to the global values configured via controller flags. Requests cannot exceed Limits.
1999 // More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
2000 requests?: [string]: matchN(>=1, [int, string]) &
2001 (int |
2002 =~"^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$")
2003 }
2004
2005 // If specified, the pod's security context
2006 securityContext?: {
2007 // A special supplemental group that applies to all containers in a pod.
2008 // Some volume types allow the Kubelet to change the ownership of that volume
2009 // to be owned by the pod:
2010 //
2011 // 1. The owning GID will be the FSGroup
2012 // 2. The setgid bit is set (new files created in the volume will be owned by FSGroup)
2013 // 3. The permission bits are OR'd with rw-rw----
2014 //
2015 // If unset, the Kubelet will not modify the ownership and permissions of any volume.
2016 // Note that this field cannot be set when spec.os.name is windows.
2017 fsGroup?: int64 & int
2018
2019 // fsGroupChangePolicy defines behavior of changing ownership and permission of the volume
2020 // before being exposed inside Pod. This field will only apply to
2021 // volume types which support fsGroup based ownership(and permissions).
2022 // It will have no effect on ephemeral volume types such as: secret, configmaps
2023 // and emptydir.
2024 // Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used.
2025 // Note that this field cannot be set when spec.os.name is windows.
2026 fsGroupChangePolicy?: string
2027
2028 // The GID to run the entrypoint of the container process.
2029 // Uses runtime default if unset.
2030 // May also be set in SecurityContext. If set in both SecurityContext and
2031 // PodSecurityContext, the value specified in SecurityContext takes precedence
2032 // for that container.
2033 // Note that this field cannot be set when spec.os.name is windows.
2034 runAsGroup?: int64 & int
2035
2036 // Indicates that the container must run as a non-root user.
2037 // If true, the Kubelet will validate the image at runtime to ensure that it
2038 // does not run as UID 0 (root) and fail to start the container if it does.
2039 // If unset or false, no such validation will be performed.
2040 // May also be set in SecurityContext. If set in both SecurityContext and
2041 // PodSecurityContext, the value specified in SecurityContext takes precedence.
2042 runAsNonRoot?: bool
2043
2044 // The UID to run the entrypoint of the container process.
2045 // Defaults to user specified in image metadata if unspecified.
2046 // May also be set in SecurityContext. If set in both SecurityContext and
2047 // PodSecurityContext, the value specified in SecurityContext takes precedence
2048 // for that container.
2049 // Note that this field cannot be set when spec.os.name is windows.
2050 runAsUser?: int64 & int
2051
2052 // The SELinux context to be applied to all containers.
2053 // If unspecified, the container runtime will allocate a random SELinux context for each
2054 // container. May also be set in SecurityContext. If set in
2055 // both SecurityContext and PodSecurityContext, the value specified in SecurityContext
2056 // takes precedence for that container.
2057 // Note that this field cannot be set when spec.os.name is windows.
2058 seLinuxOptions?: {
2059 // Level is SELinux level label that applies to the container.
2060 level?: string
2061
2062 // Role is a SELinux role label that applies to the container.
2063 role?: string
2064
2065 // Type is a SELinux type label that applies to the container.
2066 type?: string
2067
2068 // User is a SELinux user label that applies to the container.
2069 user?: string
2070 }
2071
2072 // The seccomp options to use by the containers in this pod.
2073 // Note that this field cannot be set when spec.os.name is windows.
2074 seccompProfile?: {
2075 // localhostProfile indicates a profile defined in a file on the node should be used.
2076 // The profile must be preconfigured on the node to work.
2077 // Must be a descending path, relative to the kubelet's configured seccomp profile location.
2078 // Must be set if type is "Localhost". Must NOT be set for any other type.
2079 localhostProfile?: string
2080
2081 // type indicates which kind of seccomp profile will be applied.
2082 // Valid options are:
2083 //
2084 // Localhost - a profile defined in a file on the node should be used.
2085 // RuntimeDefault - the container runtime default profile should be used.
2086 // Unconfined - no profile should be applied.
2087 type!: string
2088 }
2089
2090 // A list of groups applied to the first process run in each container, in addition
2091 // to the container's primary GID, the fsGroup (if specified), and group memberships
2092 // defined in the container image for the uid of the container process. If unspecified,
2093 // no additional groups are added to any container. Note that group memberships
2094 // defined in the container image for the uid of the container process are still effective,
2095 // even if they are not included in this list.
2096 // Note that this field cannot be set when spec.os.name is windows.
2097 supplementalGroups?: [...int64 & int]
2098
2099 // Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
2100 // sysctls (by the container runtime) might fail to launch.
2101 // Note that this field cannot be set when spec.os.name is windows.
2102 sysctls?: [...{
2103 // Name of a property to set
2104 name!: string
2105
2106 // Value of a property to set
2107 value!: string
2108 }]
2109 }
2110
2111 // If specified, the pod's service account
2112 serviceAccountName?: string
2113
2114 // If specified, the pod's tolerations.
2115 tolerations?: [...{
2116 // Effect indicates the taint effect to match. Empty means match all taint effects.
2117 // When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
2118 effect?: string
2119
2120 // Key is the taint key that the toleration applies to. Empty means match all taint keys.
2121 // If the key is empty, operator must be Exists; this combination means to match
2122 // all values and all keys.
2123 key?: string
2124
2125 // Operator represents a key's relationship to the value.
2126 // Valid operators are Exists, Equal, Lt, and Gt. Defaults to Equal.
2127 // Exists is equivalent to wildcard for value, so that a pod can
2128 // tolerate all taints of a particular category.
2129 // Lt and Gt perform numeric comparisons (requires feature gate TaintTolerationComparisonOperators).
2130 operator?: string
2131
2132 // TolerationSeconds represents the period of time the toleration (which must be
2133 // of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
2134 // it is not set, which means tolerate the taint forever (do not evict). Zero and
2135 // negative values will be treated as 0 (evict immediately) by the system.
2136 tolerationSeconds?: int64 & int
2137
2138 // Value is the taint value the toleration matches to.
2139 // If the operator is Exists, the value should be empty, otherwise just a regular string.
2140 value?: string
2141 }]
2142 }
2143 }
2144
2145 // Optional service type for Kubernetes solver service. Supported values
2146 // are NodePort or ClusterIP. If unset, defaults to NodePort.
2147 serviceType?: string
2148 }
2149 }
2150
2151 // Selector selects a set of DNSNames on the Certificate resource that
2152 // should be solved using this challenge solver.
2153 // If not specified, the solver will be treated as the 'default' solver
2154 // with the lowest priority, i.e. if any other solver has a more specific
2155 // match, it will be used instead.
2156 selector?: {
2157 // List of DNSNames that this solver will be used to solve.
2158 // If specified and a match is found, a dnsNames selector will take
2159 // precedence over a dnsZones selector.
2160 // If multiple solvers match with the same dnsNames value, the solver
2161 // with the most matching labels in matchLabels will be selected.
2162 // If neither has more matches, the solver defined earlier in the list
2163 // will be selected.
2164 dnsNames?: [...string]
2165
2166 // List of DNSZones that this solver will be used to solve.
2167 // The most specific DNS zone match specified here will take precedence
2168 // over other DNS zone matches, so a solver specifying sys.example.com
2169 // will be selected over one specifying example.com for the domain
2170 // www.sys.example.com.
2171 // If multiple solvers match with the same dnsZones value, the solver
2172 // with the most matching labels in matchLabels will be selected.
2173 // If neither has more matches, the solver defined earlier in the list
2174 // will be selected.
2175 dnsZones?: [...string]
2176
2177 // A label selector that is used to refine the set of certificate's that
2178 // this challenge solver will apply to.
2179 matchLabels?: [string]: string
2180 }
2181
2182 // WaitInsteadOfSelfCheck, if set, skips cert-manager's self-check and
2183 // instead waits this long after presentation before asking the ACME server
2184 // to validate the challenge.
2185 //
2186 // This is an advanced escape hatch for environments where cert-manager's
2187 // self-check cannot succeed from its own network or DNS viewpoint even
2188 // though the ACME server can still validate successfully, for example due
2189 // to split-horizon DNS or NAT hairpinning.
2190 //
2191 // A value of 0 skips the self-check and asks the ACME server to validate
2192 // immediately after presentation, relying on the ACME server's own
2193 // validation retries (RFC 8555 section 8.2) to succeed once the challenge
2194 // has propagated. A negative duration is rejected.
2195 // Value must be in units accepted by Go time.ParseDuration
2196 // https://golang.org/pkg/time/#ParseDuration,
2197 // for example `30s` or `2m`.
2198 waitInsteadOfSelfCheck?: string
2199 }]
2200 }
2201
2202 // CA configures this issuer to sign certificates using a signing CA keypair
2203 // stored in a Secret resource.
2204 // This is used to build internal PKIs that are managed by cert-manager.
2205 ca?: {
2206 // The CRL distribution points is an X.509 v3 certificate extension which identifies
2207 // the location of the CRL from which the revocation of this certificate can be checked.
2208 // If not set, certificates will be issued without distribution points set.
2209 crlDistributionPoints?: [...string]
2210
2211 // IssuingCertificateURLs is a list of URLs which this issuer should embed into certificates
2212 // it creates. See https://www.rfc-editor.org/rfc/rfc5280#section-4.2.2.1 for more details.
2213 // As an example, such a URL might be "http://ca.domain.com/ca.crt".
2214 issuingCertificateURLs?: [...string]
2215
2216 // The OCSP server list is an X.509 v3 extension that defines a list of
2217 // URLs of OCSP responders. The OCSP responders can be queried for the
2218 // revocation status of an issued certificate. If not set, the
2219 // certificate will be issued with no OCSP servers set. For example, an
2220 // OCSP server URL could be "http://ocsp.int-x3.letsencrypt.org".
2221 ocspServers?: [...string]
2222
2223 // SecretName is the name of the secret used to sign Certificates issued
2224 // by this Issuer.
2225 secretName!: string
2226 }
2227
2228 // SelfSigned configures this issuer to 'self sign' certificates using the
2229 // private key used to create the CertificateRequest object.
2230 selfSigned?: {
2231 // The CRL distribution points is an X.509 v3 certificate extension which identifies
2232 // the location of the CRL from which the revocation of this certificate can be checked.
2233 // If not set certificate will be issued without CDP. Values are strings.
2234 crlDistributionPoints?: [...string]
2235 }
2236
2237 // Vault configures this issuer to sign certificates using a HashiCorp Vault
2238 // PKI backend.
2239 vault?: {
2240 // Auth configures how cert-manager authenticates with the Vault server.
2241 auth!: {
2242 // AppRole authenticates with Vault using the App Role auth mechanism,
2243 // with the role and secret stored in a Kubernetes Secret resource.
2244 appRole?: {
2245 // Path where the App Role authentication backend is mounted in Vault, e.g:
2246 // "approle"
2247 path!: string
2248
2249 // RoleID configured in the App Role authentication backend when setting
2250 // up the authentication backend in Vault.
2251 roleId!: string
2252
2253 // Reference to a key in a Secret that contains the App Role secret used
2254 // to authenticate with Vault.
2255 // The `key` field must be specified and denotes which entry within the Secret
2256 // resource is used as the app role secret.
2257 secretRef!: {
2258 // The key of the entry in the Secret resource's `data` field to be used.
2259 // Some instances of this field may be defaulted, in others it may be
2260 // required.
2261 key?: string
2262
2263 // Name of the resource being referred to.
2264 // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
2265 name!: string
2266 }
2267 }
2268
2269 // AWS authenticates with Vault using AWS IAM authentication.
2270 // This allows authentication using IAM roles for service accounts (IRSA),
2271 // EKS Pod Identity (PIA), or ambient credentials (EC2 instance profiles, ECS task role).
2272 aws?: {
2273 // The ARN of the AWS IAM role to assume using the Kubernetes service account
2274 // token. Required when using IRSA (serviceAccountRef is set).
2275 // This role must have a trust policy that allows the OIDC provider to assume it.
2276 iamRoleArn?: string
2277
2278 // The Vault mountPath here is the mount path to use when authenticating with
2279 // Vault. For example, setting a value to `/v1/auth/foo`, will use the path
2280 // `/v1/auth/foo/login` to authenticate with Vault. If unspecified, the
2281 // default value "/v1/auth/aws" will be used.
2282 mountPath?: string
2283
2284 // The AWS region to use for authentication. If not specified, the region
2285 // will be determined from AWS_REGION or AWS_DEFAULT_REGION environment
2286 // variables, falling back to "us-east-1" if not set.
2287 region?: string
2288
2289 // A required field containing the Vault Role to assume when authenticating.
2290 role!: strings.MinRunes(
2291 1,
2292 )
2293
2294 // A reference to a service account that will be used to request a web identity
2295 // token for IRSA (IAM Roles for Service Accounts) authentication.
2296 serviceAccountRef?: {
2297 // TokenAudiences is an optional list of extra audiences to include in the token passed to Vault.
2298 // The default audiences are always included in the token.
2299 audiences?: [...string]
2300
2301 // Name of the ServiceAccount used to request a token.
2302 name!: string
2303 }
2304
2305 // The Vault header value to include in the STS signing request.
2306 // This is used to prevent replay attacks.
2307 vaultHeaderValue?: string
2308 }
2309
2310 // ClientCertificate authenticates with Vault by presenting a client
2311 // certificate during the request's TLS handshake.
2312 // Works only when using HTTPS protocol.
2313 clientCertificate?: {
2314 // The Vault mountPath here is the mount path to use when authenticating with
2315 // Vault. For example, setting a value to `/v1/auth/foo`, will use the path
2316 // `/v1/auth/foo/login` to authenticate with Vault. If unspecified, the
2317 // default value "/v1/auth/cert" will be used.
2318 mountPath?: string
2319
2320 // Name of the certificate role to authenticate against.
2321 // If not set, matching any certificate role, if available.
2322 name?: string
2323
2324 // Reference to Kubernetes Secret of type "kubernetes.io/tls" (hence containing
2325 // tls.crt and tls.key) used to authenticate to Vault using TLS client
2326 // authentication.
2327 secretName?: string
2328 }
2329
2330 // Kubernetes authenticates with Vault by passing the ServiceAccount
2331 // token stored in the named Secret resource to the Vault server.
2332 kubernetes?: {
2333 // The Vault mountPath here is the mount path to use when authenticating with
2334 // Vault. For example, setting a value to `/v1/auth/foo`, will use the path
2335 // `/v1/auth/foo/login` to authenticate with Vault. If unspecified, the
2336 // default value "/v1/auth/kubernetes" will be used.
2337 mountPath?: string
2338
2339 // A required field containing the Vault Role to assume. A Role binds a
2340 // Kubernetes ServiceAccount with a set of Vault policies.
2341 role!: string
2342
2343 // The required Secret field containing a Kubernetes ServiceAccount JWT used
2344 // for authenticating with Vault. Use of 'ambient credentials' is not
2345 // supported.
2346 secretRef?: {
2347 // The key of the entry in the Secret resource's `data` field to be used.
2348 // Some instances of this field may be defaulted, in others it may be
2349 // required.
2350 key?: string
2351
2352 // Name of the resource being referred to.
2353 // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
2354 name!: string
2355 }
2356
2357 // A reference to a service account that will be used to request a bound
2358 // token (also known as "projected token"). Compared to using "secretRef",
2359 // using this field means that you don't rely on statically bound tokens. To
2360 // use this field, you must configure an RBAC rule to let cert-manager
2361 // request a token.
2362 serviceAccountRef?: {
2363 // TokenAudiences is an optional list of extra audiences to include in the token passed to Vault.
2364 // The default audiences are always included in the token.
2365 audiences?: [...string]
2366
2367 // Name of the ServiceAccount used to request a token.
2368 name!: string
2369 }
2370 }
2371
2372 // TokenSecretRef authenticates with Vault by presenting a token.
2373 tokenSecretRef?: {
2374 // The key of the entry in the Secret resource's `data` field to be used.
2375 // Some instances of this field may be defaulted, in others it may be
2376 // required.
2377 key?: string
2378
2379 // Name of the resource being referred to.
2380 // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
2381 name!: string
2382 }
2383 }
2384
2385 // Base64-encoded bundle of PEM CAs which will be used to validate the certificate
2386 // chain presented by Vault. Only used if using HTTPS to connect to Vault and
2387 // ignored for HTTP connections.
2388 // Mutually exclusive with CABundleSecretRef.
2389 // If neither CABundle nor CABundleSecretRef are defined, the certificate bundle in
2390 // the cert-manager controller container is used to validate the TLS connection.
2391 caBundle?: string
2392
2393 // Reference to a Secret containing a bundle of PEM-encoded CAs to use when
2394 // verifying the certificate chain presented by Vault when using HTTPS.
2395 // Mutually exclusive with CABundle.
2396 // If neither CABundle nor CABundleSecretRef are defined, the certificate bundle in
2397 // the cert-manager controller container is used to validate the TLS connection.
2398 // If no key for the Secret is specified, cert-manager will default to 'ca.crt'.
2399 caBundleSecretRef?: {
2400 // The key of the entry in the Secret resource's `data` field to be used.
2401 // Some instances of this field may be defaulted, in others it may be
2402 // required.
2403 key?: string
2404
2405 // Name of the resource being referred to.
2406 // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
2407 name!: string
2408 }
2409
2410 // Reference to a Secret containing a PEM-encoded Client Certificate to use when the
2411 // Vault server requires mTLS.
2412 clientCertSecretRef?: {
2413 // The key of the entry in the Secret resource's `data` field to be used.
2414 // Some instances of this field may be defaulted, in others it may be
2415 // required.
2416 key?: string
2417
2418 // Name of the resource being referred to.
2419 // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
2420 name!: string
2421 }
2422
2423 // Reference to a Secret containing a PEM-encoded Client Private Key to use when the
2424 // Vault server requires mTLS.
2425 clientKeySecretRef?: {
2426 // The key of the entry in the Secret resource's `data` field to be used.
2427 // Some instances of this field may be defaulted, in others it may be
2428 // required.
2429 key?: string
2430
2431 // Name of the resource being referred to.
2432 // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
2433 name!: string
2434 }
2435
2436 // Name of the vault namespace. Namespaces is a set of features within Vault
2437 // Enterprise that allows Vault environments to support Secure Multi-tenancy.
2438 // e.g: "ns1"
2439 // More about namespaces can be found here https://www.vaultproject.io/docs/enterprise/namespaces
2440 namespace?: string
2441
2442 // Path is the mount path of the Vault PKI backend's `sign` endpoint, e.g:
2443 // "my_pki_mount/sign/my-role-name".
2444 path!: string
2445
2446 // Server is the connection address for the Vault server, e.g: "https://vault.example.com:8200".
2447 server!: string
2448
2449 // ServerName is used to verify the hostname on the returned certificates
2450 // by the Vault server.
2451 serverName?: string
2452 }
2453
2454 // Venafi configures this issuer to sign certificates using a CyberArk
2455 // Certificate Manager Self-Hosted
2456 // or SaaS policy zone.
2457 venafi?: {
2458 // Cloud specifies the CyberArk Certificate Manager SaaS configuration settings.
2459 // Only one of CyberArk Certificate Manager may be specified.
2460 cloud?: {
2461 // APITokenSecretRef is a secret key selector for the CyberArk Certificate Manager SaaS API token.
2462 apiTokenSecretRef!: {
2463 // The key of the entry in the Secret resource's `data` field to be used.
2464 // Some instances of this field may be defaulted, in others it may be
2465 // required.
2466 key?: string
2467
2468 // Name of the resource being referred to.
2469 // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
2470 name!: string
2471 }
2472
2473 // URL is the base URL for CyberArk Certificate Manager SaaS.
2474 // Defaults to "https://api.venafi.cloud/".
2475 url?: string
2476 }
2477
2478 // NGTS specifies Palo Alto Networks Next Generation Trust Services (NGTS) configuration
2479 // using OAuth 2.0 Client Credentials. Only one of tpp, cloud, or ngts may be specified.
2480 ngts?: {
2481 // CredentialsRef is a reference to a Kubernetes Secret containing the OAuth 2.0
2482 // Client ID and Client Secret. The secret must contain the keys 'client-id' and
2483 // 'client-secret'.
2484 credentialsRef!: {
2485 // Name of the resource being referred to.
2486 // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
2487 name!: string
2488 }
2489
2490 // TokenEndpoint is the OAuth 2.0 token endpoint URL used to obtain access tokens,
2491 // for example "https://auth.apps.paloaltonetworks.com/oauth2/access_token".
2492 // Defaults to "https://auth.apps.paloaltonetworks.com/oauth2/access_token" if not set.
2493 tokenEndpoint?: string
2494
2495 // TSGID is the Tenant Service Group ID used to scope the OAuth 2.0 access token,
2496 // for example "1234567890". The tsg_id: prefix is added automatically.
2497 // This field is required.
2498 tsgID!: string
2499
2500 // URL is the base URL for the NGTS API endpoint.
2501 // Defaults to "https://api.strata.paloaltonetworks.com/ngts" if not set.
2502 url?: string
2503 }
2504
2505 // TPP specifies CyberArk Certificate Manager Self-Hosted configuration settings.
2506 // Only one of CyberArk Certificate Manager may be specified.
2507 tpp?: {
2508 // Base64-encoded bundle of PEM CAs which will be used to validate the certificate
2509 // chain presented by the CyberArk Certificate Manager Self-Hosted server. Only
2510 // used if using HTTPS; ignored for HTTP.
2511 // If undefined, the certificate bundle in the cert-manager controller container
2512 // is used to validate the chain.
2513 caBundle?: string
2514
2515 // Reference to a Secret containing a base64-encoded bundle of PEM CAs
2516 // which will be used to validate the certificate chain presented by the
2517 // CyberArk Certificate Manager Self-Hosted server.
2518 // Only used if using HTTPS; ignored for HTTP. Mutually exclusive with CABundle.
2519 // If neither CABundle nor CABundleSecretRef is defined, the certificate bundle in
2520 // the cert-manager controller container is used to validate the TLS connection.
2521 caBundleSecretRef?: {
2522 // The key of the entry in the Secret resource's `data` field to be used.
2523 // Some instances of this field may be defaulted, in others it may be
2524 // required.
2525 key?: string
2526
2527 // Name of the resource being referred to.
2528 // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
2529 name!: string
2530 }
2531
2532 // CredentialsRef is a reference to a Secret containing the CyberArk Certificate
2533 // Manager Self-Hosted API credentials.
2534 // The secret must contain the key 'access-token' for the Access Token Authentication,
2535 // or two keys, 'username' and 'password' for the API Keys Authentication.
2536 credentialsRef!: {
2537 // Name of the resource being referred to.
2538 // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
2539 name!: string
2540 }
2541
2542 // URL is the base URL for the vedsdk endpoint of the CyberArk Certificate
2543 // Manager Self-Hosted instance,
2544 // for example: "https://tpp.example.com/vedsdk".
2545 url!: string
2546 }
2547
2548 // Zone is the Certificate Manager Policy Zone to use for this issuer.
2549 // All requests made to the Certificate Manager platform will be restricted by the named
2550 // zone policy.
2551 // This field is required.
2552 zone!: string
2553 }
2554 }
2555
2556 // Status of the Issuer. This is set and managed automatically.
2557 status?: {
2558 // ACME specific status options.
2559 // This field should only be set if the Issuer is configured to use an ACME
2560 // server to issue certificates.
2561 acme?: {
2562 // LastPrivateKeyHash is a hash of the private key associated with the latest
2563 // registered ACME account, in order to track changes made to registered account
2564 // associated with the Issuer
2565 lastPrivateKeyHash?: string
2566
2567 // LastRegisteredEmail is the email associated with the latest registered
2568 // ACME account, in order to track changes made to registered account
2569 // associated with the Issuer
2570 lastRegisteredEmail?: string
2571
2572 // URI is the unique account identifier, which can also be used to retrieve
2573 // account details from the CA
2574 uri?: string
2575 }
2576
2577 // List of status conditions to indicate the status of a CertificateRequest.
2578 // Known condition types are `Ready`.
2579 conditions?: [...{
2580 // LastTransitionTime is the timestamp corresponding to the last status
2581 // change of this condition.
2582 lastTransitionTime?: time.Time
2583
2584 // Message is a human readable description of the details of the last
2585 // transition, complementing reason.
2586 message?: string
2587
2588 // If set, this represents the .metadata.generation that the condition was
2589 // set based upon.
2590 // For instance, if .metadata.generation is currently 12, but the
2591 // .status.condition[x].observedGeneration is 9, the condition is out of date
2592 // with respect to the current state of the Issuer.
2593 observedGeneration?: int64 & int
2594
2595 // Reason is a brief machine readable explanation for the condition's last
2596 // transition.
2597 reason?: string
2598
2599 // Status of the condition, one of (`True`, `False`, `Unknown`).
2600 status!: "True" | "False" | "Unknown"
2601
2602 // Type of the condition, known values are (`Ready`).
2603 type!: string
2604 }]
2605 }
2606
2607 _embeddedResource: {
2608 apiVersion!: string
2609 kind!: string
2610 metadata?: {...}
2611 }
2612 apiVersion: "cert-manager.io/v1"
2613 kind: "Issuer"
2614 metadata!: {
2615 name!: string
2616 namespace!: string
2617 labels?: [string]: string
2618 annotations?: [string]: string
2619 ...
2620 }
2621}