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