cue.dev/x/crd/cert-manager.io@v0.9.0

acme/v1/Challenge.cue raw

   1package v1
   2
   3import (
   4	"strings"
   5	"time"
   6)
   7
   8// Challenge is a type to represent a Challenge request with an ACME server
   9#Challenge: {
  10	_embeddedResource
  11
  12	// APIVersion defines the versioned schema of this representation of an object.
  13	// Servers should convert recognized schemas to the latest internal value, and
  14	// may reject unrecognized values.
  15	// More info:
  16	// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
  17	apiVersion?: string
  18
  19	// Kind is a string value representing the REST resource this object represents.
  20	// Servers may infer this from the endpoint the client submits requests to.
  21	// Cannot be updated.
  22	// In CamelCase.
  23	// More info:
  24	// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  25	kind?:     string
  26	metadata!: {}
  27	spec!: {
  28		// The URL to the ACME Authorization resource that this
  29		// challenge is a part of.
  30		authorizationURL!: string
  31
  32		// dnsName is the identifier that this challenge is for, e.g., example.com.
  33		// If the requested DNSName is a 'wildcard', this field MUST be set to the
  34		// non-wildcard domain, e.g., for `*.example.com`, it must be `example.com`.
  35		dnsName!: string
  36
  37		// References a properly configured ACME-type Issuer which should
  38		// be used to create this Challenge.
  39		// If the Issuer does not exist, processing will be retried.
  40		// If the Issuer is not an 'ACME' Issuer, an error will be returned and the
  41		// Challenge will be marked as failed.
  42		issuerRef!: {
  43			// Group of the issuer being referred to.
  44			// Defaults to 'cert-manager.io'.
  45			group?: string
  46
  47			// Kind of the issuer being referred to.
  48			// Defaults to 'Issuer'.
  49			kind?: string
  50
  51			// Name of the issuer being referred to.
  52			name!: string
  53		}
  54
  55		// The ACME challenge key for this challenge
  56		// For HTTP01 challenges, this is the value that must be responded with to
  57		// complete the HTTP01 challenge in the format:
  58		// `<private key JWK thumbprint>.<key from acme server for challenge>`.
  59		// For DNS01 challenges, this is the base64 encoded SHA256 sum of the
  60		// `<private key JWK thumbprint>.<key from acme server for challenge>`
  61		// text that must be set as the TXT record content.
  62		key!: string
  63
  64		// Contains the domain solving configuration that should be used to
  65		// solve this challenge resource.
  66		solver!: {
  67			// Configures cert-manager to attempt to complete authorizations by
  68			// performing the DNS01 challenge flow.
  69			dns01?: {
  70				// Use the 'ACME DNS' (https://github.com/joohoi/acme-dns) API to manage
  71				// DNS01 challenge records.
  72				acmeDNS?: {
  73					// A reference to a specific 'key' within a Secret resource.
  74					// In some instances, `key` is a required field.
  75					accountSecretRef!: {
  76						// The key of the entry in the Secret resource's `data` field to be used.
  77						// Some instances of this field may be defaulted, in others it may be
  78						// required.
  79						key?: string
  80
  81						// Name of the resource being referred to.
  82						// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
  83						name!: string
  84					}
  85					host!: string
  86				}
  87
  88				// Use the Akamai DNS zone management API to manage DNS01 challenge records.
  89				akamai?: {
  90					// A reference to a specific 'key' within a Secret resource.
  91					// In some instances, `key` is a required field.
  92					accessTokenSecretRef!: {
  93						// The key of the entry in the Secret resource's `data` field to be used.
  94						// Some instances of this field may be defaulted, in others it may be
  95						// required.
  96						key?: string
  97
  98						// Name of the resource being referred to.
  99						// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
 100						name!: string
 101					}
 102
 103					// A reference to a specific 'key' within a Secret resource.
 104					// In some instances, `key` is a required field.
 105					clientSecretSecretRef!: {
 106						// The key of the entry in the Secret resource's `data` field to be used.
 107						// Some instances of this field may be defaulted, in others it may be
 108						// required.
 109						key?: string
 110
 111						// Name of the resource being referred to.
 112						// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
 113						name!: string
 114					}
 115
 116					// A reference to a specific 'key' within a Secret resource.
 117					// In some instances, `key` is a required field.
 118					clientTokenSecretRef!: {
 119						// The key of the entry in the Secret resource's `data` field to be used.
 120						// Some instances of this field may be defaulted, in others it may be
 121						// required.
 122						key?: string
 123
 124						// Name of the resource being referred to.
 125						// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
 126						name!: string
 127					}
 128					serviceConsumerDomain!: string
 129				}
 130
 131				// Use the Microsoft Azure DNS API to manage DNS01 challenge records.
 132				azureDNS?: {
 133					// Auth: Azure Service Principal:
 134					// The ClientID of the Azure Service Principal used to authenticate with Azure DNS.
 135					// If set, ClientSecret and TenantID must also be set.
 136					clientID?: string
 137
 138					// Auth: Azure Service Principal:
 139					// A reference to a Secret containing the password associated with the Service Principal.
 140					// If set, ClientID and TenantID must also be set.
 141					clientSecretSecretRef?: {
 142						// The key of the entry in the Secret resource's `data` field to be used.
 143						// Some instances of this field may be defaulted, in others it may be
 144						// required.
 145						key?: string
 146
 147						// Name of the resource being referred to.
 148						// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
 149						name!: string
 150					}
 151
 152					// name of the Azure environment (default AzurePublicCloud)
 153					environment?: "AzurePublicCloud" | "AzureChinaCloud" | "AzureGermanCloud" | "AzureUSGovernmentCloud"
 154
 155					// name of the DNS zone that should be used
 156					hostedZoneName?: string
 157
 158					// Auth: Azure Workload Identity or Azure Managed Service Identity:
 159					// Settings to enable Azure Workload Identity or Azure Managed Service Identity
 160					// If set, ClientID, ClientSecret and TenantID must not be set.
 161					managedIdentity?: {
 162						// client ID of the managed identity, cannot be used at the same time as resourceID
 163						clientID?: string
 164
 165						// resource ID of the managed identity, cannot be used at the same time as clientID
 166						// Cannot be used for Azure Managed Service Identity
 167						resourceID?: string
 168
 169						// tenant ID of the managed identity, cannot be used at the same time as resourceID
 170						tenantID?: string
 171					}
 172
 173					// resource group the DNS zone is located in
 174					resourceGroupName!: string
 175
 176					// ID of the Azure subscription
 177					subscriptionID!: string
 178
 179					// Auth: Azure Service Principal:
 180					// The TenantID of the Azure Service Principal used to authenticate with Azure DNS.
 181					// If set, ClientID and ClientSecret must also be set.
 182					tenantID?: string
 183
 184					// ZoneType determines which type of Azure DNS zone to use.
 185					//
 186					// Valid values are:
 187					// - AzurePublicZone (default): Use a public Azure DNS zone.
 188					// - AzurePrivateZone: Use an Azure Private DNS zone.
 189					//
 190					// If not specified, AzurePublicZone is used.
 191					//
 192					// Support for Azure Private DNS zones is currently
 193					// experimental and may change in future releases.
 194					zoneType?: "AzurePublicZone" | "AzurePrivateZone"
 195				}
 196
 197				// Use the Google Cloud DNS API to manage DNS01 challenge records.
 198				cloudDNS?: {
 199					// HostedZoneName is an optional field that tells cert-manager in which
 200					// Cloud DNS zone the challenge record has to be created.
 201					// If left empty cert-manager will automatically choose a zone.
 202					hostedZoneName?: string
 203					project!:        string
 204
 205					// A reference to a specific 'key' within a Secret resource.
 206					// In some instances, `key` is a required field.
 207					serviceAccountSecretRef?: {
 208						// The key of the entry in the Secret resource's `data` field to be used.
 209						// Some instances of this field may be defaulted, in others it may be
 210						// required.
 211						key?: string
 212
 213						// Name of the resource being referred to.
 214						// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
 215						name!: string
 216					}
 217				}
 218
 219				// Use the Cloudflare API to manage DNS01 challenge records.
 220				cloudflare?: {
 221					// API key to use to authenticate with Cloudflare.
 222					// Note: using an API token to authenticate is now the recommended method
 223					// as it allows greater control of permissions.
 224					apiKeySecretRef?: {
 225						// The key of the entry in the Secret resource's `data` field to be used.
 226						// Some instances of this field may be defaulted, in others it may be
 227						// required.
 228						key?: string
 229
 230						// Name of the resource being referred to.
 231						// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
 232						name!: string
 233					}
 234
 235					// API token used to authenticate with Cloudflare.
 236					apiTokenSecretRef?: {
 237						// The key of the entry in the Secret resource's `data` field to be used.
 238						// Some instances of this field may be defaulted, in others it may be
 239						// required.
 240						key?: string
 241
 242						// Name of the resource being referred to.
 243						// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
 244						name!: string
 245					}
 246
 247					// Email of the account, only required when using API key based authentication.
 248					email?: string
 249				}
 250
 251				// CNAMEStrategy configures how the DNS01 provider should handle CNAME
 252				// records when found in DNS zones.
 253				cnameStrategy?: "None" | "Follow"
 254
 255				// Use the DigitalOcean DNS API to manage DNS01 challenge records.
 256				digitalocean?: {
 257					// A reference to a specific 'key' within a Secret resource.
 258					// In some instances, `key` is a required field.
 259					tokenSecretRef!: {
 260						// The key of the entry in the Secret resource's `data` field to be used.
 261						// Some instances of this field may be defaulted, in others it may be
 262						// required.
 263						key?: string
 264
 265						// Name of the resource being referred to.
 266						// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
 267						name!: string
 268					}
 269				}
 270
 271				// Use RFC2136 ("Dynamic Updates in the Domain Name System")
 272				// (https://datatracker.ietf.org/doc/rfc2136/)
 273				// to manage DNS01 challenge records.
 274				rfc2136?: {
 275					// The IP address or hostname of an authoritative DNS server supporting
 276					// RFC2136 in the form host:port. If the host is an IPv6 address it must be
 277					// enclosed in square brackets (e.g [2001:db8::1]); port is optional.
 278					// This field is required.
 279					nameserver!: string
 280
 281					// Protocol to use for dynamic DNS update queries. Valid values are
 282					// (case-sensitive) ``TCP`` and ``UDP``; ``UDP`` (default).
 283					protocol?: "TCP" | "UDP"
 284
 285					// The TSIG Algorithm configured in the DNS supporting RFC2136. Used only
 286					// when ``tsigSecretSecretRef`` and ``tsigKeyName`` are defined.
 287					// Supported values are (case-insensitive): ``HMACMD5`` (default),
 288					// ``HMACSHA1``, ``HMACSHA256`` or ``HMACSHA512``.
 289					tsigAlgorithm?: string
 290
 291					// The TSIG Key name configured in the DNS.
 292					// If ``tsigSecretSecretRef`` is defined, this field is required.
 293					tsigKeyName?: string
 294
 295					// The name of the secret containing the TSIG value.
 296					// If ``tsigKeyName`` is defined, this field is required.
 297					tsigSecretSecretRef?: {
 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 AWS Route53 API to manage DNS01 challenge records.
 310				route53?: {
 311					// The AccessKeyID is used for authentication.
 312					// Cannot be set when SecretAccessKeyID is set.
 313					// If neither the Access Key nor Key ID are set, we fall back to using env
 314					// vars, shared credentials file, or AWS Instance metadata,
 315					// see:
 316					// https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials
 317					accessKeyID?: string
 318
 319					// The SecretAccessKey is used for authentication. If set, pull the AWS
 320					// access key ID from a key within a Kubernetes Secret.
 321					// Cannot be set when AccessKeyID is set.
 322					// If neither the Access Key nor Key ID are set, we fall back to using env
 323					// vars, shared credentials file, or AWS Instance metadata,
 324					// see:
 325					// https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials
 326					accessKeyIDSecretRef?: {
 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					// Auth configures how cert-manager authenticates.
 338					auth?: {
 339						// Kubernetes authenticates with Route53 using AssumeRoleWithWebIdentity
 340						// by passing a bound ServiceAccount token.
 341						kubernetes!: {
 342							// A reference to a service account that will be used to request a bound
 343							// token (also known as "projected token"). To use this field, you must
 344							// configure an RBAC rule to let cert-manager request a token.
 345							serviceAccountRef!: {
 346								// TokenAudiences is an optional list of audiences to include in the
 347								// token passed to AWS. The default token consisting of the issuer's namespace
 348								// and name is always included.
 349								// If unset the audience defaults to `sts.amazonaws.com`.
 350								audiences?: [...string]
 351
 352								// Name of the ServiceAccount used to request a token.
 353								name!: string
 354							}
 355						}
 356					}
 357
 358					// If set, the provider will manage only this zone in Route53 and will not do a
 359					// lookup using the route53:ListHostedZonesByName api call.
 360					hostedZoneID?: string
 361
 362					// Override the AWS region.
 363					//
 364					// Route53 is a global service and does not have regional endpoints but the
 365					// region specified here (or via environment variables) is used as a hint to
 366					// help compute the correct AWS credential scope and partition when it
 367					// connects to Route53. See:
 368					// - [Amazon Route 53 endpoints and quotas](https://docs.aws.amazon.com/general/latest/gr/r53.html)
 369					// - [Global
 370					// services](https://docs.aws.amazon.com/whitepapers/latest/aws-fault-isolation-boundaries/global-services.html)
 371					//
 372					// If you omit this region field, cert-manager will use the region from
 373					// AWS_REGION and AWS_DEFAULT_REGION environment variables, if they are set
 374					// in the cert-manager controller Pod.
 375					//
 376					// The `region` field is not needed if you use [IAM Roles for Service Accounts
 377					// (IRSA)](https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html).
 378					// Instead an AWS_REGION environment variable is added to the cert-manager controller Pod by:
 379					// [Amazon EKS Pod Identity Webhook](https://github.com/aws/amazon-eks-pod-identity-webhook).
 380					// In this case this `region` field value is ignored.
 381					//
 382					// The `region` field is not needed if you use [EKS Pod
 383					// Identities](https://docs.aws.amazon.com/eks/latest/userguide/pod-identities.html).
 384					// Instead an AWS_REGION environment variable is added to the cert-manager controller Pod by:
 385					// [Amazon EKS Pod Identity Agent](https://github.com/aws/eks-pod-identity-agent),
 386					// In this case this `region` field value is ignored.
 387					region?: string
 388
 389					// Role is a Role ARN which the Route53 provider will assume using either the
 390					// explicit credentials AccessKeyID/SecretAccessKey
 391					// or the inferred credentials from environment variables, shared credentials
 392					// file or AWS Instance metadata
 393					role?: string
 394
 395					// The SecretAccessKey is used for authentication.
 396					// If neither the Access Key nor Key ID are set, we fall back to using env
 397					// vars, shared credentials file, or AWS Instance metadata,
 398					// see:
 399					// https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials
 400					secretAccessKeySecretRef?: {
 401						// The key of the entry in the Secret resource's `data` field to be used.
 402						// Some instances of this field may be defaulted, in others it may be
 403						// required.
 404						key?: string
 405
 406						// Name of the resource being referred to.
 407						// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
 408						name!: string
 409					}
 410				}
 411
 412				// Configure an external webhook based DNS01 challenge solver to manage
 413				// DNS01 challenge records.
 414				webhook?: {
 415					// Additional configuration that should be passed to the webhook apiserver
 416					// when challenges are processed.
 417					// This can contain arbitrary JSON data.
 418					// Secret values should not be specified in this stanza.
 419					// If secret values are needed (e.g., credentials for a DNS service), you
 420					// should use a SecretKeySelector to reference a Secret resource.
 421					// For details on the schema of this field, consult the webhook provider
 422					// implementation's documentation.
 423					config?: null | bool | number | string | [...] | {...}
 424
 425					// The API group name that should be used when POSTing ChallengePayload
 426					// resources to the webhook apiserver.
 427					// This should be the same as the GroupName specified in the webhook
 428					// provider implementation.
 429					groupName!: string
 430
 431					// The name of the solver to use, as defined in the webhook provider
 432					// implementation.
 433					// This will typically be the name of the provider, e.g., 'cloudflare'.
 434					solverName!: string
 435				}
 436			}
 437
 438			// Configures cert-manager to attempt to complete authorizations by
 439			// performing the HTTP01 challenge flow.
 440			// It is not possible to obtain certificates for wildcard domain names
 441			// (e.g., `*.example.com`) using the HTTP01 challenge mechanism.
 442			http01?: {
 443				// The Gateway API is a sig-network community API that models service networking
 444				// in Kubernetes (https://gateway-api.sigs.k8s.io/). The Gateway solver will
 445				// create HTTPRoutes with the specified labels in the same namespace as the challenge.
 446				// This solver is experimental, and fields / behaviour may change in the future.
 447				gatewayHTTPRoute?: {
 448					// Custom labels that will be applied to HTTPRoutes created by cert-manager
 449					// while solving HTTP-01 challenges.
 450					labels?: [string]: string
 451
 452					// When solving an HTTP-01 challenge, cert-manager creates an HTTPRoute.
 453					// cert-manager needs to know which parentRefs should be used when creating
 454					// the HTTPRoute. Usually, the parentRef references a Gateway. See:
 455					// https://gateway-api.sigs.k8s.io/api-types/httproute/#attaching-to-gateways
 456					parentRefs?: [...{
 457						// Group is the group of the referent.
 458						// When unspecified, "gateway.networking.k8s.io" is inferred.
 459						// To set the core API group (such as for a "Service" kind referent),
 460						// Group must be explicitly set to "" (empty string).
 461						//
 462						// Support: Core
 463						group?: strings.MaxRunes(
 464							253,
 465						) &
 466						=~"^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$"
 467
 468						// Kind is kind of the referent.
 469						//
 470						// There are two kinds of parent resources with "Core" support:
 471						//
 472						// * Gateway (Gateway conformance profile)
 473						// * Service (Mesh conformance profile, ClusterIP Services only)
 474						//
 475						// Support for other resources is Implementation-Specific.
 476						kind?: strings.MaxRunes(
 477							63,
 478						) &
 479						strings.MinRunes(
 480							1,
 481						) &
 482						=~"^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$"
 483
 484						// Name is the name of the referent.
 485						//
 486						// Support: Core
 487						name!: strings.MaxRunes(
 488							253,
 489						) & strings.MinRunes(
 490							1,
 491						)
 492
 493						// Namespace is the namespace of the referent. When unspecified, this refers
 494						// to the local namespace of the Route.
 495						//
 496						// Note that there are specific rules for ParentRefs which cross namespace
 497						// boundaries. Cross-namespace references are only valid if they are explicitly
 498						// allowed by something in the namespace they are referring to. For example:
 499						// Gateway has the AllowedRoutes field, and ReferenceGrant provides a
 500						// generic way to enable any other kind of cross-namespace reference.
 501						//
 502						// <gateway:experimental:description>
 503						// ParentRefs from a Route to a Service in the same namespace are "producer"
 504						// routes, which apply default routing rules to inbound connections from
 505						// any namespace to the Service.
 506						//
 507						// ParentRefs from a Route to a Service in a different namespace are
 508						// "consumer" routes, and these routing rules are only applied to outbound
 509						// connections originating from the same namespace as the Route, for which
 510						// the intended destination of the connections are a Service targeted as a
 511						// ParentRef of the Route.
 512						// </gateway:experimental:description>
 513						//
 514						// Support: Core
 515						namespace?: strings.MaxRunes(
 516							63,
 517						) &
 518						strings.MinRunes(
 519							1,
 520						) &
 521						=~"^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
 522
 523						// Port is the network port this Route targets. It can be interpreted
 524						// differently based on the type of parent resource.
 525						//
 526						// When the parent resource is a Gateway, this targets all listeners
 527						// listening on the specified port that also support this kind of Route(and
 528						// select this Route). It's not recommended to set `Port` unless the
 529						// networking behaviors specified in a Route must apply to a specific port
 530						// as opposed to a listener(s) whose port(s) may be changed. When both Port
 531						// and SectionName are specified, the name and port of the selected listener
 532						// must match both specified values.
 533						//
 534						// <gateway:experimental:description>
 535						// When the parent resource is a Service, this targets a specific port in the
 536						// Service spec. When both Port (experimental) and SectionName are specified,
 537						// the name and port of the selected port must match both specified values.
 538						// </gateway:experimental:description>
 539						//
 540						// Implementations MAY choose to support other parent resources.
 541						// Implementations supporting other types of parent resources MUST clearly
 542						// document how/if Port is interpreted.
 543						//
 544						// For the purpose of status, an attachment is considered successful as
 545						// long as the parent resource accepts it partially. For example, Gateway
 546						// listeners can restrict which Routes can attach to them by Route kind,
 547						// namespace, or hostname. If 1 of 2 Gateway listeners accept attachment
 548						// from the referencing Route, the Route MUST be considered successfully
 549						// attached. If no Gateway listeners accept attachment from this Route,
 550						// the Route MUST be considered detached from the Gateway.
 551						//
 552						// Support: Extended
 553						port?: int32 & int & <=65535 & >=1
 554
 555						// SectionName is the name of a section within the target resource. In the
 556						// following resources, SectionName is interpreted as the following:
 557						//
 558						// * Gateway: Listener name. When both Port (experimental) and SectionName
 559						// are specified, the name and port of the selected listener must match
 560						// both specified values.
 561						// * Service: Port name. When both Port (experimental) and SectionName
 562						// are specified, the name and port of the selected listener must match
 563						// both specified values.
 564						//
 565						// Implementations MAY choose to support attaching Routes to other resources.
 566						// If that is the case, they MUST clearly document how SectionName is
 567						// interpreted.
 568						//
 569						// When unspecified (empty string), this will reference the entire resource.
 570						// For the purpose of status, an attachment is considered successful if at
 571						// least one section in the parent resource accepts it. For example, Gateway
 572						// listeners can restrict which Routes can attach to them by Route kind,
 573						// namespace, or hostname. If 1 of 2 Gateway listeners accept attachment from
 574						// the referencing Route, the Route MUST be considered successfully
 575						// attached. If no Gateway listeners accept attachment from this Route, the
 576						// Route MUST be considered detached from the Gateway.
 577						//
 578						// Support: Core
 579						sectionName?: strings.MaxRunes(
 580							253,
 581						) &
 582						strings.MinRunes(
 583							1,
 584						) &
 585						=~"^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$"
 586					}]
 587
 588					// Optional pod template used to configure the ACME challenge solver pods
 589					// used for HTTP01 challenges.
 590					podTemplate?: {
 591						// ObjectMeta overrides for the pod used to solve HTTP01 challenges.
 592						// Only the 'labels' and 'annotations' fields may be set.
 593						// If labels or annotations overlap with in-built values, the values here
 594						// will override the in-built values.
 595						metadata?: {
 596							// Annotations that should be added to the created ACME HTTP01 solver pods.
 597							annotations?: [string]: string
 598
 599							// Labels that should be added to the created ACME HTTP01 solver pods.
 600							labels?: [string]: string
 601						}
 602
 603						// PodSpec defines overrides for the HTTP01 challenge solver pod.
 604						// Check ACMEChallengeSolverHTTP01IngressPodSpec to find out currently supported fields.
 605						// All other fields will be ignored.
 606						spec?: {
 607							// If specified, the pod's scheduling constraints
 608							affinity?: {
 609								// Describes node affinity scheduling rules for the pod.
 610								nodeAffinity?: {
 611									// The scheduler will prefer to schedule pods to nodes that satisfy
 612									// the affinity expressions specified by this field, but it may choose
 613									// a node that violates one or more of the expressions. The node that is
 614									// most preferred is the one with the greatest sum of weights, i.e.
 615									// for each node that meets all of the scheduling requirements (resource
 616									// request, requiredDuringScheduling affinity expressions, etc.),
 617									// compute a sum by iterating through the elements of this field and adding
 618									// "weight" to the sum if the node matches the corresponding matchExpressions; the
 619									// node(s) with the highest sum are the most preferred.
 620									preferredDuringSchedulingIgnoredDuringExecution?: [...{
 621										// A node selector term, associated with the corresponding weight.
 622										preference!: {
 623											// A list of node selector requirements by node's labels.
 624											matchExpressions?: [...{
 625												// The label key that the selector applies to.
 626												key!: string
 627
 628												// Represents a key's relationship to a set of values.
 629												// Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
 630												operator!: string
 631
 632												// An array of string values. If the operator is In or NotIn,
 633												// the values array must be non-empty. If the operator is Exists or DoesNotExist,
 634												// the values array must be empty. If the operator is Gt or Lt, the values
 635												// array must have a single element, which will be interpreted as an integer.
 636												// This array is replaced during a strategic merge patch.
 637												values?: [...string]
 638											}]
 639
 640											// A list of node selector requirements by node's fields.
 641											matchFields?: [...{
 642												// The label key that the selector applies to.
 643												key!: string
 644
 645												// Represents a key's relationship to a set of values.
 646												// Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
 647												operator!: string
 648
 649												// An array of string values. If the operator is In or NotIn,
 650												// the values array must be non-empty. If the operator is Exists or DoesNotExist,
 651												// the values array must be empty. If the operator is Gt or Lt, the values
 652												// array must have a single element, which will be interpreted as an integer.
 653												// This array is replaced during a strategic merge patch.
 654												values?: [...string]
 655											}]
 656										}
 657
 658										// Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.
 659										weight!: int32 & int
 660									}]
 661
 662									// If the affinity requirements specified by this field are not met at
 663									// scheduling time, the pod will not be scheduled onto the node.
 664									// If the affinity requirements specified by this field cease to be met
 665									// at some point during pod execution (e.g. due to an update), the system
 666									// may or may not try to eventually evict the pod from its node.
 667									requiredDuringSchedulingIgnoredDuringExecution?: {
 668										// Required. A list of node selector terms. The terms are ORed.
 669										nodeSelectorTerms!: [...{
 670											// A list of node selector requirements by node's labels.
 671											matchExpressions?: [...{
 672												// The label key that the selector applies to.
 673												key!: string
 674
 675												// Represents a key's relationship to a set of values.
 676												// Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
 677												operator!: string
 678
 679												// An array of string values. If the operator is In or NotIn,
 680												// the values array must be non-empty. If the operator is Exists or DoesNotExist,
 681												// the values array must be empty. If the operator is Gt or Lt, the values
 682												// array must have a single element, which will be interpreted as an integer.
 683												// This array is replaced during a strategic merge patch.
 684												values?: [...string]
 685											}]
 686
 687											// A list of node selector requirements by node's fields.
 688											matchFields?: [...{
 689												// The label key that the selector applies to.
 690												key!: string
 691
 692												// Represents a key's relationship to a set of values.
 693												// Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
 694												operator!: string
 695
 696												// An array of string values. If the operator is In or NotIn,
 697												// the values array must be non-empty. If the operator is Exists or DoesNotExist,
 698												// the values array must be empty. If the operator is Gt or Lt, the values
 699												// array must have a single element, which will be interpreted as an integer.
 700												// This array is replaced during a strategic merge patch.
 701												values?: [...string]
 702											}]
 703										}]
 704									}
 705								}
 706
 707								// Describes pod affinity scheduling rules (e.g. co-locate this pod in the same
 708								// node, zone, etc. as some other pod(s)).
 709								podAffinity?: {
 710									// The scheduler will prefer to schedule pods to nodes that satisfy
 711									// the affinity expressions specified by this field, but it may choose
 712									// a node that violates one or more of the expressions. The node that is
 713									// most preferred is the one with the greatest sum of weights, i.e.
 714									// for each node that meets all of the scheduling requirements (resource
 715									// request, requiredDuringScheduling affinity expressions, etc.),
 716									// compute a sum by iterating through the elements of this field and adding
 717									// "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
 718									// node(s) with the highest sum are the most preferred.
 719									preferredDuringSchedulingIgnoredDuringExecution?: [...{
 720										// Required. A pod affinity term, associated with the corresponding weight.
 721										podAffinityTerm!: {
 722											// A label query over a set of resources, in this case pods.
 723											// If it's null, this PodAffinityTerm matches with no Pods.
 724											labelSelector?: {
 725												// matchExpressions is a list of label selector requirements. The requirements are ANDed.
 726												matchExpressions?: [...{
 727													// key is the label key that the selector applies to.
 728													key!: string
 729
 730													// operator represents a key's relationship to a set of values.
 731													// Valid operators are In, NotIn, Exists and DoesNotExist.
 732													operator!: string
 733
 734													// values is an array of string values. If the operator is In or NotIn,
 735													// the values array must be non-empty. If the operator is Exists or DoesNotExist,
 736													// the values array must be empty. This array is replaced during a strategic
 737													// merge patch.
 738													values?: [...string]
 739												}]
 740
 741												// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
 742												// map is equivalent to an element of matchExpressions, whose key field is "key", the
 743												// operator is "In", and the values array contains only "value". The requirements are ANDed.
 744												matchLabels?: [string]: string
 745											}
 746
 747											// MatchLabelKeys is a set of pod label keys to select which pods will
 748											// be taken into consideration. The keys are used to lookup values from the
 749											// incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`
 750											// to select the group of existing pods which pods will be taken into consideration
 751											// for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
 752											// pod labels will be ignored. The default value is empty.
 753											// The same key is forbidden to exist in both matchLabelKeys and labelSelector.
 754											// Also, matchLabelKeys cannot be set when labelSelector isn't set.
 755											matchLabelKeys?: [...string]
 756
 757											// MismatchLabelKeys is a set of pod label keys to select which pods will
 758											// be taken into consideration. The keys are used to lookup values from the
 759											// incoming pod labels, those key-value labels are merged with `labelSelector`
 760											// as `key notin (value)`
 761											// to select the group of existing pods which pods will be taken into consideration
 762											// for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
 763											// pod labels will be ignored. The default value is empty.
 764											// The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.
 765											// Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
 766											mismatchLabelKeys?: [...string]
 767
 768											// A label query over the set of namespaces that the term applies to.
 769											// The term is applied to the union of the namespaces selected by this field
 770											// and the ones listed in the namespaces field.
 771											// null selector and null or empty namespaces list means "this pod's namespace".
 772											// An empty selector ({}) matches all namespaces.
 773											namespaceSelector?: {
 774												// matchExpressions is a list of label selector requirements. The requirements are ANDed.
 775												matchExpressions?: [...{
 776													// key is the label key that the selector applies to.
 777													key!: string
 778
 779													// operator represents a key's relationship to a set of values.
 780													// Valid operators are In, NotIn, Exists and DoesNotExist.
 781													operator!: string
 782
 783													// values is an array of string values. If the operator is In or NotIn,
 784													// the values array must be non-empty. If the operator is Exists or DoesNotExist,
 785													// the values array must be empty. This array is replaced during a strategic
 786													// merge patch.
 787													values?: [...string]
 788												}]
 789
 790												// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
 791												// map is equivalent to an element of matchExpressions, whose key field is "key", the
 792												// operator is "In", and the values array contains only "value". The requirements are ANDed.
 793												matchLabels?: [string]: string
 794											}
 795
 796											// namespaces specifies a static list of namespace names that the term applies to.
 797											// The term is applied to the union of the namespaces listed in this field
 798											// and the ones selected by namespaceSelector.
 799											// null or empty namespaces list and null namespaceSelector means "this pod's namespace".
 800											namespaces?: [...string]
 801
 802											// This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
 803											// the labelSelector in the specified namespaces, where co-located is defined as running on a node
 804											// whose value of the label with key topologyKey matches that of any node on which any of the
 805											// selected pods is running.
 806											// Empty topologyKey is not allowed.
 807											topologyKey!: string
 808										}
 809
 810										// weight associated with matching the corresponding podAffinityTerm,
 811										// in the range 1-100.
 812										weight!: int32 & int
 813									}]
 814
 815									// If the affinity requirements specified by this field are not met at
 816									// scheduling time, the pod will not be scheduled onto the node.
 817									// If the affinity requirements specified by this field cease to be met
 818									// at some point during pod execution (e.g. due to a pod label update), the
 819									// system may or may not try to eventually evict the pod from its node.
 820									// When there are multiple elements, the lists of nodes corresponding to each
 821									// podAffinityTerm are intersected, i.e. all terms must be satisfied.
 822									requiredDuringSchedulingIgnoredDuringExecution?: [...{
 823										// A label query over a set of resources, in this case pods.
 824										// If it's null, this PodAffinityTerm matches with no Pods.
 825										labelSelector?: {
 826											// matchExpressions is a list of label selector requirements. The requirements are ANDed.
 827											matchExpressions?: [...{
 828												// key is the label key that the selector applies to.
 829												key!: string
 830
 831												// operator represents a key's relationship to a set of values.
 832												// Valid operators are In, NotIn, Exists and DoesNotExist.
 833												operator!: string
 834
 835												// values is an array of string values. If the operator is In or NotIn,
 836												// the values array must be non-empty. If the operator is Exists or DoesNotExist,
 837												// the values array must be empty. This array is replaced during a strategic
 838												// merge patch.
 839												values?: [...string]
 840											}]
 841
 842											// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
 843											// map is equivalent to an element of matchExpressions, whose key field is "key", the
 844											// operator is "In", and the values array contains only "value". The requirements are ANDed.
 845											matchLabels?: [string]: string
 846										}
 847
 848										// MatchLabelKeys is a set of pod label keys to select which pods will
 849										// be taken into consideration. The keys are used to lookup values from the
 850										// incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (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 matchLabelKeys and labelSelector.
 855										// Also, matchLabelKeys cannot be set when labelSelector isn't set.
 856										matchLabelKeys?: [...string]
 857
 858										// MismatchLabelKeys is a set of pod label keys to select which pods will
 859										// be taken into consideration. The keys are used to lookup values from the
 860										// incoming pod labels, those key-value labels are merged with `labelSelector`
 861										// as `key notin (value)`
 862										// to select the group of existing pods which pods will be taken into consideration
 863										// for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
 864										// pod labels will be ignored. The default value is empty.
 865										// The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.
 866										// Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
 867										mismatchLabelKeys?: [...string]
 868
 869										// A label query over the set of namespaces that the term applies to.
 870										// The term is applied to the union of the namespaces selected by this field
 871										// and the ones listed in the namespaces field.
 872										// null selector and null or empty namespaces list means "this pod's namespace".
 873										// An empty selector ({}) matches all namespaces.
 874										namespaceSelector?: {
 875											// matchExpressions is a list of label selector requirements. The requirements are ANDed.
 876											matchExpressions?: [...{
 877												// key is the label key that the selector applies to.
 878												key!: string
 879
 880												// operator represents a key's relationship to a set of values.
 881												// Valid operators are In, NotIn, Exists and DoesNotExist.
 882												operator!: string
 883
 884												// values is an array of string values. If the operator is In or NotIn,
 885												// the values array must be non-empty. If the operator is Exists or DoesNotExist,
 886												// the values array must be empty. This array is replaced during a strategic
 887												// merge patch.
 888												values?: [...string]
 889											}]
 890
 891											// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
 892											// map is equivalent to an element of matchExpressions, whose key field is "key", the
 893											// operator is "In", and the values array contains only "value". The requirements are ANDed.
 894											matchLabels?: [string]: string
 895										}
 896
 897										// namespaces specifies a static list of namespace names that the term applies to.
 898										// The term is applied to the union of the namespaces listed in this field
 899										// and the ones selected by namespaceSelector.
 900										// null or empty namespaces list and null namespaceSelector means "this pod's namespace".
 901										namespaces?: [...string]
 902
 903										// This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
 904										// the labelSelector in the specified namespaces, where co-located is defined as running on a node
 905										// whose value of the label with key topologyKey matches that of any node on which any of the
 906										// selected pods is running.
 907										// Empty topologyKey is not allowed.
 908										topologyKey!: string
 909									}]
 910								}
 911
 912								// Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in
 913								// the same node, zone, etc. as some other pod(s)).
 914								podAntiAffinity?: {
 915									// The scheduler will prefer to schedule pods to nodes that satisfy
 916									// the anti-affinity expressions specified by this field, but it may choose
 917									// a node that violates one or more of the expressions. The node that is
 918									// most preferred is the one with the greatest sum of weights, i.e.
 919									// for each node that meets all of the scheduling requirements (resource
 920									// request, requiredDuringScheduling anti-affinity expressions, etc.),
 921									// compute a sum by iterating through the elements of this field and subtracting
 922									// "weight" from the sum if the node has pods which matches the corresponding podAffinityTerm; the
 923									// node(s) with the highest sum are the most preferred.
 924									preferredDuringSchedulingIgnoredDuringExecution?: [...{
 925										// Required. A pod affinity term, associated with the corresponding weight.
 926										podAffinityTerm!: {
 927											// A label query over a set of resources, in this case pods.
 928											// If it's null, this PodAffinityTerm matches with no Pods.
 929											labelSelector?: {
 930												// matchExpressions is a list of label selector requirements. The requirements are ANDed.
 931												matchExpressions?: [...{
 932													// key is the label key that the selector applies to.
 933													key!: string
 934
 935													// operator represents a key's relationship to a set of values.
 936													// Valid operators are In, NotIn, Exists and DoesNotExist.
 937													operator!: string
 938
 939													// values is an array of string values. If the operator is In or NotIn,
 940													// the values array must be non-empty. If the operator is Exists or DoesNotExist,
 941													// the values array must be empty. This array is replaced during a strategic
 942													// merge patch.
 943													values?: [...string]
 944												}]
 945
 946												// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
 947												// map is equivalent to an element of matchExpressions, whose key field is "key", the
 948												// operator is "In", and the values array contains only "value". The requirements are ANDed.
 949												matchLabels?: [string]: string
 950											}
 951
 952											// MatchLabelKeys is a set of pod label keys to select which pods will
 953											// be taken into consideration. The keys are used to lookup values from the
 954											// incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`
 955											// to select the group of existing pods which pods will be taken into consideration
 956											// for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
 957											// pod labels will be ignored. The default value is empty.
 958											// The same key is forbidden to exist in both matchLabelKeys and labelSelector.
 959											// Also, matchLabelKeys cannot be set when labelSelector isn't set.
 960											matchLabelKeys?: [...string]
 961
 962											// MismatchLabelKeys is a set of pod label keys to select which pods will
 963											// be taken into consideration. The keys are used to lookup values from the
 964											// incoming pod labels, those key-value labels are merged with `labelSelector`
 965											// as `key notin (value)`
 966											// to select the group of existing pods which pods will be taken into consideration
 967											// for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
 968											// pod labels will be ignored. The default value is empty.
 969											// The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.
 970											// Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
 971											mismatchLabelKeys?: [...string]
 972
 973											// A label query over the set of namespaces that the term applies to.
 974											// The term is applied to the union of the namespaces selected by this field
 975											// and the ones listed in the namespaces field.
 976											// null selector and null or empty namespaces list means "this pod's namespace".
 977											// An empty selector ({}) matches all namespaces.
 978											namespaceSelector?: {
 979												// matchExpressions is a list of label selector requirements. The requirements are ANDed.
 980												matchExpressions?: [...{
 981													// key is the label key that the selector applies to.
 982													key!: string
 983
 984													// operator represents a key's relationship to a set of values.
 985													// Valid operators are In, NotIn, Exists and DoesNotExist.
 986													operator!: string
 987
 988													// values is an array of string values. If the operator is In or NotIn,
 989													// the values array must be non-empty. If the operator is Exists or DoesNotExist,
 990													// the values array must be empty. This array is replaced during a strategic
 991													// merge patch.
 992													values?: [...string]
 993												}]
 994
 995												// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
 996												// map is equivalent to an element of matchExpressions, whose key field is "key", the
 997												// operator is "In", and the values array contains only "value". The requirements are ANDed.
 998												matchLabels?: [string]: string
 999											}
1000
1001											// namespaces specifies a static list of namespace names that the term applies to.
1002											// The term is applied to the union of the namespaces listed in this field
1003											// and the ones selected by namespaceSelector.
1004											// null or empty namespaces list and null namespaceSelector means "this pod's namespace".
1005											namespaces?: [...string]
1006
1007											// This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
1008											// the labelSelector in the specified namespaces, where co-located is defined as running on a node
1009											// whose value of the label with key topologyKey matches that of any node on which any of the
1010											// selected pods is running.
1011											// Empty topologyKey is not allowed.
1012											topologyKey!: string
1013										}
1014
1015										// weight associated with matching the corresponding podAffinityTerm,
1016										// in the range 1-100.
1017										weight!: int32 & int
1018									}]
1019
1020									// If the anti-affinity requirements specified by this field are not met at
1021									// scheduling time, the pod will not be scheduled onto the node.
1022									// If the anti-affinity requirements specified by this field cease to be met
1023									// at some point during pod execution (e.g. due to a pod label update), the
1024									// system may or may not try to eventually evict the pod from its node.
1025									// When there are multiple elements, the lists of nodes corresponding to each
1026									// podAffinityTerm are intersected, i.e. all terms must be satisfied.
1027									requiredDuringSchedulingIgnoredDuringExecution?: [...{
1028										// A label query over a set of resources, in this case pods.
1029										// If it's null, this PodAffinityTerm matches with no Pods.
1030										labelSelector?: {
1031											// matchExpressions is a list of label selector requirements. The requirements are ANDed.
1032											matchExpressions?: [...{
1033												// key is the label key that the selector applies to.
1034												key!: string
1035
1036												// operator represents a key's relationship to a set of values.
1037												// Valid operators are In, NotIn, Exists and DoesNotExist.
1038												operator!: string
1039
1040												// values is an array of string values. If the operator is In or NotIn,
1041												// the values array must be non-empty. If the operator is Exists or DoesNotExist,
1042												// the values array must be empty. This array is replaced during a strategic
1043												// merge patch.
1044												values?: [...string]
1045											}]
1046
1047											// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
1048											// map is equivalent to an element of matchExpressions, whose key field is "key", the
1049											// operator is "In", and the values array contains only "value". The requirements are ANDed.
1050											matchLabels?: [string]: string
1051										}
1052
1053										// MatchLabelKeys is a set of pod label keys to select which pods will
1054										// be taken into consideration. The keys are used to lookup values from the
1055										// incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (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 matchLabelKeys and labelSelector.
1060										// Also, matchLabelKeys cannot be set when labelSelector isn't set.
1061										matchLabelKeys?: [...string]
1062
1063										// MismatchLabelKeys is a set of pod label keys to select which pods will
1064										// be taken into consideration. The keys are used to lookup values from the
1065										// incoming pod labels, those key-value labels are merged with `labelSelector`
1066										// as `key notin (value)`
1067										// to select the group of existing pods which pods will be taken into consideration
1068										// for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
1069										// pod labels will be ignored. The default value is empty.
1070										// The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.
1071										// Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
1072										mismatchLabelKeys?: [...string]
1073
1074										// A label query over the set of namespaces that the term applies to.
1075										// The term is applied to the union of the namespaces selected by this field
1076										// and the ones listed in the namespaces field.
1077										// null selector and null or empty namespaces list means "this pod's namespace".
1078										// An empty selector ({}) matches all namespaces.
1079										namespaceSelector?: {
1080											// matchExpressions is a list of label selector requirements. The requirements are ANDed.
1081											matchExpressions?: [...{
1082												// key is the label key that the selector applies to.
1083												key!: string
1084
1085												// operator represents a key's relationship to a set of values.
1086												// Valid operators are In, NotIn, Exists and DoesNotExist.
1087												operator!: string
1088
1089												// values is an array of string values. If the operator is In or NotIn,
1090												// the values array must be non-empty. If the operator is Exists or DoesNotExist,
1091												// the values array must be empty. This array is replaced during a strategic
1092												// merge patch.
1093												values?: [...string]
1094											}]
1095
1096											// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
1097											// map is equivalent to an element of matchExpressions, whose key field is "key", the
1098											// operator is "In", and the values array contains only "value". The requirements are ANDed.
1099											matchLabels?: [string]: string
1100										}
1101
1102										// namespaces specifies a static list of namespace names that the term applies to.
1103										// The term is applied to the union of the namespaces listed in this field
1104										// and the ones selected by namespaceSelector.
1105										// null or empty namespaces list and null namespaceSelector means "this pod's namespace".
1106										namespaces?: [...string]
1107
1108										// This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
1109										// the labelSelector in the specified namespaces, where co-located is defined as running on a node
1110										// whose value of the label with key topologyKey matches that of any node on which any of the
1111										// selected pods is running.
1112										// Empty topologyKey is not allowed.
1113										topologyKey!: string
1114									}]
1115								}
1116							}
1117
1118							// If specified, the pod's imagePullSecrets
1119							imagePullSecrets?: [...{
1120								// Name of the referent.
1121								// This field is effectively required, but due to backwards compatibility is
1122								// allowed to be empty. Instances of this type with an empty value here are
1123								// almost certainly wrong.
1124								// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
1125								name?: string
1126							}]
1127
1128							// NodeSelector is a selector which must be true for the pod to fit on a node.
1129							// Selector which must match a node's labels for the pod to be scheduled on that node.
1130							// More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
1131							nodeSelector?: [string]: string
1132
1133							// If specified, the pod's priorityClassName.
1134							priorityClassName?: string
1135
1136							// If specified, the pod's resource requirements.
1137							// These values override the global resource configuration flags.
1138							// Note that when only specifying resource limits, ensure they are greater than or equal
1139							// to the corresponding global resource requests configured via controller flags
1140							// (--acme-http01-solver-resource-request-cpu, --acme-http01-solver-resource-request-memory).
1141							// Kubernetes will reject pod creation if limits are lower than requests,
1142							// causing challenge failures.
1143							resources?: {
1144								// Limits describes the maximum amount of compute resources allowed.
1145								// More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
1146								limits?: [string]: matchN(>=1, [int, string]) &
1147								(int |
1148									=~"^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$")
1149
1150								// Requests describes the minimum amount of compute resources required.
1151								// If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
1152								// otherwise to the global values configured via controller flags. Requests cannot exceed Limits.
1153								// More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
1154								requests?: [string]: matchN(>=1, [int, string]) &
1155								(int |
1156									=~"^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$")
1157							}
1158
1159							// If specified, the pod's security context
1160							securityContext?: {
1161								// A special supplemental group that applies to all containers in a pod.
1162								// Some volume types allow the Kubelet to change the ownership of that volume
1163								// to be owned by the pod:
1164								//
1165								// 1. The owning GID will be the FSGroup
1166								// 2. The setgid bit is set (new files created in the volume will be owned by FSGroup)
1167								// 3. The permission bits are OR'd with rw-rw----
1168								//
1169								// If unset, the Kubelet will not modify the ownership and permissions of any volume.
1170								// Note that this field cannot be set when spec.os.name is windows.
1171								fsGroup?: int64 & int
1172
1173								// fsGroupChangePolicy defines behavior of changing ownership and permission of the volume
1174								// before being exposed inside Pod. This field will only apply to
1175								// volume types which support fsGroup based ownership(and permissions).
1176								// It will have no effect on ephemeral volume types such as: secret, configmaps
1177								// and emptydir.
1178								// Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used.
1179								// Note that this field cannot be set when spec.os.name is windows.
1180								fsGroupChangePolicy?: string
1181
1182								// The GID to run the entrypoint of the container process.
1183								// Uses runtime default if unset.
1184								// May also be set in SecurityContext. If set in both SecurityContext and
1185								// PodSecurityContext, the value specified in SecurityContext takes precedence
1186								// for that container.
1187								// Note that this field cannot be set when spec.os.name is windows.
1188								runAsGroup?: int64 & int
1189
1190								// Indicates that the container must run as a non-root user.
1191								// If true, the Kubelet will validate the image at runtime to ensure that it
1192								// does not run as UID 0 (root) and fail to start the container if it does.
1193								// If unset or false, no such validation will be performed.
1194								// May also be set in SecurityContext. If set in both SecurityContext and
1195								// PodSecurityContext, the value specified in SecurityContext takes precedence.
1196								runAsNonRoot?: bool
1197
1198								// The UID to run the entrypoint of the container process.
1199								// Defaults to user specified in image metadata if unspecified.
1200								// May also be set in SecurityContext. If set in both SecurityContext and
1201								// PodSecurityContext, the value specified in SecurityContext takes precedence
1202								// for that container.
1203								// Note that this field cannot be set when spec.os.name is windows.
1204								runAsUser?: int64 & int
1205
1206								// The SELinux context to be applied to all containers.
1207								// If unspecified, the container runtime will allocate a random SELinux context for each
1208								// container. May also be set in SecurityContext. If set in
1209								// both SecurityContext and PodSecurityContext, the value specified in SecurityContext
1210								// takes precedence for that container.
1211								// Note that this field cannot be set when spec.os.name is windows.
1212								seLinuxOptions?: {
1213									// Level is SELinux level label that applies to the container.
1214									level?: string
1215
1216									// Role is a SELinux role label that applies to the container.
1217									role?: string
1218
1219									// Type is a SELinux type label that applies to the container.
1220									type?: string
1221
1222									// User is a SELinux user label that applies to the container.
1223									user?: string
1224								}
1225
1226								// The seccomp options to use by the containers in this pod.
1227								// Note that this field cannot be set when spec.os.name is windows.
1228								seccompProfile?: {
1229									// localhostProfile indicates a profile defined in a file on the node should be used.
1230									// The profile must be preconfigured on the node to work.
1231									// Must be a descending path, relative to the kubelet's configured seccomp profile location.
1232									// Must be set if type is "Localhost". Must NOT be set for any other type.
1233									localhostProfile?: string
1234
1235									// type indicates which kind of seccomp profile will be applied.
1236									// Valid options are:
1237									//
1238									// Localhost - a profile defined in a file on the node should be used.
1239									// RuntimeDefault - the container runtime default profile should be used.
1240									// Unconfined - no profile should be applied.
1241									type!: string
1242								}
1243
1244								// A list of groups applied to the first process run in each container, in addition
1245								// to the container's primary GID, the fsGroup (if specified), and group memberships
1246								// defined in the container image for the uid of the container process. If unspecified,
1247								// no additional groups are added to any container. Note that group memberships
1248								// defined in the container image for the uid of the container process are still effective,
1249								// even if they are not included in this list.
1250								// Note that this field cannot be set when spec.os.name is windows.
1251								supplementalGroups?: [...int64 & int]
1252
1253								// Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
1254								// sysctls (by the container runtime) might fail to launch.
1255								// Note that this field cannot be set when spec.os.name is windows.
1256								sysctls?: [...{
1257									// Name of a property to set
1258									name!: string
1259
1260									// Value of a property to set
1261									value!: string
1262								}]
1263							}
1264
1265							// If specified, the pod's service account
1266							serviceAccountName?: string
1267
1268							// If specified, the pod's tolerations.
1269							tolerations?: [...{
1270								// Effect indicates the taint effect to match. Empty means match all taint effects.
1271								// When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
1272								effect?: string
1273
1274								// Key is the taint key that the toleration applies to. Empty means match all taint keys.
1275								// If the key is empty, operator must be Exists; this combination means to match
1276								// all values and all keys.
1277								key?: string
1278
1279								// Operator represents a key's relationship to the value.
1280								// Valid operators are Exists, Equal, Lt, and Gt. Defaults to Equal.
1281								// Exists is equivalent to wildcard for value, so that a pod can
1282								// tolerate all taints of a particular category.
1283								// Lt and Gt perform numeric comparisons (requires feature gate TaintTolerationComparisonOperators).
1284								operator?: string
1285
1286								// TolerationSeconds represents the period of time the toleration (which must be
1287								// of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
1288								// it is not set, which means tolerate the taint forever (do not evict). Zero and
1289								// negative values will be treated as 0 (evict immediately) by the system.
1290								tolerationSeconds?: int64 & int
1291
1292								// Value is the taint value the toleration matches to.
1293								// If the operator is Exists, the value should be empty, otherwise just a regular string.
1294								value?: string
1295							}]
1296						}
1297					}
1298
1299					// Optional service type for Kubernetes solver service. Supported values
1300					// are NodePort or ClusterIP. If unset, defaults to NodePort.
1301					serviceType?: string
1302				}
1303
1304				// The ingress based HTTP01 challenge solver will solve challenges by
1305				// creating or modifying Ingress resources in order to route requests for
1306				// '/.well-known/acme-challenge/XYZ' to 'challenge solver' pods that are
1307				// provisioned by cert-manager for each Challenge to be completed.
1308				ingress?: {
1309					// This field configures the annotation `kubernetes.io/ingress.class` when
1310					// creating Ingress resources to solve ACME challenges that use this
1311					// challenge solver. Only one of `class`, `name` or `ingressClassName` may
1312					// be specified.
1313					class?: string
1314
1315					// This field configures the field `ingressClassName` on the created Ingress
1316					// resources used to solve ACME challenges that use this challenge solver.
1317					// This is the recommended way of configuring the ingress class. Only one of
1318					// `class`, `name` or `ingressClassName` may be specified.
1319					ingressClassName?: string
1320
1321					// Optional ingress template used to configure the ACME challenge solver
1322					// ingress used for HTTP01 challenges.
1323					ingressTemplate?: {
1324						// ObjectMeta overrides for the ingress used to solve HTTP01 challenges.
1325						// Only the 'labels' and 'annotations' fields may be set.
1326						// If labels or annotations overlap with in-built values, the values here
1327						// will override the in-built values.
1328						metadata?: {
1329							// Annotations that should be added to the created ACME HTTP01 solver ingress.
1330							annotations?: [string]: string
1331
1332							// Labels that should be added to the created ACME HTTP01 solver ingress.
1333							labels?: [string]: string
1334						}
1335					}
1336
1337					// The name of the ingress resource that should have ACME challenge solving
1338					// routes inserted into it in order to solve HTTP01 challenges.
1339					// This is typically used in conjunction with ingress controllers like
1340					// ingress-gce, which maintains a 1:1 mapping between external IPs and
1341					// ingress resources. Only one of `class`, `name` or `ingressClassName` may
1342					// be specified.
1343					name?: string
1344
1345					// Optional pod template used to configure the ACME challenge solver pods
1346					// used for HTTP01 challenges.
1347					podTemplate?: {
1348						// ObjectMeta overrides for the pod used to solve HTTP01 challenges.
1349						// Only the 'labels' and 'annotations' fields may be set.
1350						// If labels or annotations overlap with in-built values, the values here
1351						// will override the in-built values.
1352						metadata?: {
1353							// Annotations that should be added to the created ACME HTTP01 solver pods.
1354							annotations?: [string]: string
1355
1356							// Labels that should be added to the created ACME HTTP01 solver pods.
1357							labels?: [string]: string
1358						}
1359
1360						// PodSpec defines overrides for the HTTP01 challenge solver pod.
1361						// Check ACMEChallengeSolverHTTP01IngressPodSpec to find out currently supported fields.
1362						// All other fields will be ignored.
1363						spec?: {
1364							// If specified, the pod's scheduling constraints
1365							affinity?: {
1366								// Describes node affinity scheduling rules for the pod.
1367								nodeAffinity?: {
1368									// The scheduler will prefer to schedule pods to nodes that satisfy
1369									// the affinity expressions specified by this field, but it may choose
1370									// a node that violates one or more of the expressions. The node that is
1371									// most preferred is the one with the greatest sum of weights, i.e.
1372									// for each node that meets all of the scheduling requirements (resource
1373									// request, requiredDuringScheduling affinity expressions, etc.),
1374									// compute a sum by iterating through the elements of this field and adding
1375									// "weight" to the sum if the node matches the corresponding matchExpressions; the
1376									// node(s) with the highest sum are the most preferred.
1377									preferredDuringSchedulingIgnoredDuringExecution?: [...{
1378										// A node selector term, associated with the corresponding weight.
1379										preference!: {
1380											// A list of node selector requirements by node's labels.
1381											matchExpressions?: [...{
1382												// The label key that the selector applies to.
1383												key!: string
1384
1385												// Represents a key's relationship to a set of values.
1386												// Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
1387												operator!: string
1388
1389												// An array of string values. If the operator is In or NotIn,
1390												// the values array must be non-empty. If the operator is Exists or DoesNotExist,
1391												// the values array must be empty. If the operator is Gt or Lt, the values
1392												// array must have a single element, which will be interpreted as an integer.
1393												// This array is replaced during a strategic merge patch.
1394												values?: [...string]
1395											}]
1396
1397											// A list of node selector requirements by node's fields.
1398											matchFields?: [...{
1399												// The label key that the selector applies to.
1400												key!: string
1401
1402												// Represents a key's relationship to a set of values.
1403												// Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
1404												operator!: string
1405
1406												// An array of string values. If the operator is In or NotIn,
1407												// the values array must be non-empty. If the operator is Exists or DoesNotExist,
1408												// the values array must be empty. If the operator is Gt or Lt, the values
1409												// array must have a single element, which will be interpreted as an integer.
1410												// This array is replaced during a strategic merge patch.
1411												values?: [...string]
1412											}]
1413										}
1414
1415										// Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.
1416										weight!: int32 & int
1417									}]
1418
1419									// If the affinity requirements specified by this field are not met at
1420									// scheduling time, the pod will not be scheduled onto the node.
1421									// If the affinity requirements specified by this field cease to be met
1422									// at some point during pod execution (e.g. due to an update), the system
1423									// may or may not try to eventually evict the pod from its node.
1424									requiredDuringSchedulingIgnoredDuringExecution?: {
1425										// Required. A list of node selector terms. The terms are ORed.
1426										nodeSelectorTerms!: [...{
1427											// A list of node selector requirements by node's labels.
1428											matchExpressions?: [...{
1429												// The label key that the selector applies to.
1430												key!: string
1431
1432												// Represents a key's relationship to a set of values.
1433												// Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
1434												operator!: string
1435
1436												// An array of string values. If the operator is In or NotIn,
1437												// the values array must be non-empty. If the operator is Exists or DoesNotExist,
1438												// the values array must be empty. If the operator is Gt or Lt, the values
1439												// array must have a single element, which will be interpreted as an integer.
1440												// This array is replaced during a strategic merge patch.
1441												values?: [...string]
1442											}]
1443
1444											// A list of node selector requirements by node's fields.
1445											matchFields?: [...{
1446												// The label key that the selector applies to.
1447												key!: string
1448
1449												// Represents a key's relationship to a set of values.
1450												// Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
1451												operator!: string
1452
1453												// An array of string values. If the operator is In or NotIn,
1454												// the values array must be non-empty. If the operator is Exists or DoesNotExist,
1455												// the values array must be empty. If the operator is Gt or Lt, the values
1456												// array must have a single element, which will be interpreted as an integer.
1457												// This array is replaced during a strategic merge patch.
1458												values?: [...string]
1459											}]
1460										}]
1461									}
1462								}
1463
1464								// Describes pod affinity scheduling rules (e.g. co-locate this pod in the same
1465								// node, zone, etc. as some other pod(s)).
1466								podAffinity?: {
1467									// The scheduler will prefer to schedule pods to nodes that satisfy
1468									// the affinity expressions specified by this field, but it may choose
1469									// a node that violates one or more of the expressions. The node that is
1470									// most preferred is the one with the greatest sum of weights, i.e.
1471									// for each node that meets all of the scheduling requirements (resource
1472									// request, requiredDuringScheduling affinity expressions, etc.),
1473									// compute a sum by iterating through the elements of this field and adding
1474									// "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
1475									// node(s) with the highest sum are the most preferred.
1476									preferredDuringSchedulingIgnoredDuringExecution?: [...{
1477										// Required. A pod affinity term, associated with the corresponding weight.
1478										podAffinityTerm!: {
1479											// A label query over a set of resources, in this case pods.
1480											// If it's null, this PodAffinityTerm matches with no Pods.
1481											labelSelector?: {
1482												// matchExpressions is a list of label selector requirements. The requirements are ANDed.
1483												matchExpressions?: [...{
1484													// key is the label key that the selector applies to.
1485													key!: string
1486
1487													// operator represents a key's relationship to a set of values.
1488													// Valid operators are In, NotIn, Exists and DoesNotExist.
1489													operator!: string
1490
1491													// values is an array of string values. If the operator is In or NotIn,
1492													// the values array must be non-empty. If the operator is Exists or DoesNotExist,
1493													// the values array must be empty. This array is replaced during a strategic
1494													// merge patch.
1495													values?: [...string]
1496												}]
1497
1498												// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
1499												// map is equivalent to an element of matchExpressions, whose key field is "key", the
1500												// operator is "In", and the values array contains only "value". The requirements are ANDed.
1501												matchLabels?: [string]: string
1502											}
1503
1504											// MatchLabelKeys is a set of pod label keys to select which pods will
1505											// be taken into consideration. The keys are used to lookup values from the
1506											// incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`
1507											// to select the group of existing pods which pods will be taken into consideration
1508											// for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
1509											// pod labels will be ignored. The default value is empty.
1510											// The same key is forbidden to exist in both matchLabelKeys and labelSelector.
1511											// Also, matchLabelKeys cannot be set when labelSelector isn't set.
1512											matchLabelKeys?: [...string]
1513
1514											// MismatchLabelKeys is a set of pod label keys to select which pods will
1515											// be taken into consideration. The keys are used to lookup values from the
1516											// incoming pod labels, those key-value labels are merged with `labelSelector`
1517											// as `key notin (value)`
1518											// to select the group of existing pods which pods will be taken into consideration
1519											// for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
1520											// pod labels will be ignored. The default value is empty.
1521											// The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.
1522											// Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
1523											mismatchLabelKeys?: [...string]
1524
1525											// A label query over the set of namespaces that the term applies to.
1526											// The term is applied to the union of the namespaces selected by this field
1527											// and the ones listed in the namespaces field.
1528											// null selector and null or empty namespaces list means "this pod's namespace".
1529											// An empty selector ({}) matches all namespaces.
1530											namespaceSelector?: {
1531												// matchExpressions is a list of label selector requirements. The requirements are ANDed.
1532												matchExpressions?: [...{
1533													// key is the label key that the selector applies to.
1534													key!: string
1535
1536													// operator represents a key's relationship to a set of values.
1537													// Valid operators are In, NotIn, Exists and DoesNotExist.
1538													operator!: string
1539
1540													// values is an array of string values. If the operator is In or NotIn,
1541													// the values array must be non-empty. If the operator is Exists or DoesNotExist,
1542													// the values array must be empty. This array is replaced during a strategic
1543													// merge patch.
1544													values?: [...string]
1545												}]
1546
1547												// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
1548												// map is equivalent to an element of matchExpressions, whose key field is "key", the
1549												// operator is "In", and the values array contains only "value". The requirements are ANDed.
1550												matchLabels?: [string]: string
1551											}
1552
1553											// namespaces specifies a static list of namespace names that the term applies to.
1554											// The term is applied to the union of the namespaces listed in this field
1555											// and the ones selected by namespaceSelector.
1556											// null or empty namespaces list and null namespaceSelector means "this pod's namespace".
1557											namespaces?: [...string]
1558
1559											// This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
1560											// the labelSelector in the specified namespaces, where co-located is defined as running on a node
1561											// whose value of the label with key topologyKey matches that of any node on which any of the
1562											// selected pods is running.
1563											// Empty topologyKey is not allowed.
1564											topologyKey!: string
1565										}
1566
1567										// weight associated with matching the corresponding podAffinityTerm,
1568										// in the range 1-100.
1569										weight!: int32 & int
1570									}]
1571
1572									// If the affinity requirements specified by this field are not met at
1573									// scheduling time, the pod will not be scheduled onto the node.
1574									// If the affinity requirements specified by this field cease to be met
1575									// at some point during pod execution (e.g. due to a pod label update), the
1576									// system may or may not try to eventually evict the pod from its node.
1577									// When there are multiple elements, the lists of nodes corresponding to each
1578									// podAffinityTerm are intersected, i.e. all terms must be satisfied.
1579									requiredDuringSchedulingIgnoredDuringExecution?: [...{
1580										// A label query over a set of resources, in this case pods.
1581										// If it's null, this PodAffinityTerm matches with no Pods.
1582										labelSelector?: {
1583											// matchExpressions is a list of label selector requirements. The requirements are ANDed.
1584											matchExpressions?: [...{
1585												// key is the label key that the selector applies to.
1586												key!: string
1587
1588												// operator represents a key's relationship to a set of values.
1589												// Valid operators are In, NotIn, Exists and DoesNotExist.
1590												operator!: string
1591
1592												// values is an array of string values. If the operator is In or NotIn,
1593												// the values array must be non-empty. If the operator is Exists or DoesNotExist,
1594												// the values array must be empty. This array is replaced during a strategic
1595												// merge patch.
1596												values?: [...string]
1597											}]
1598
1599											// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
1600											// map is equivalent to an element of matchExpressions, whose key field is "key", the
1601											// operator is "In", and the values array contains only "value". The requirements are ANDed.
1602											matchLabels?: [string]: string
1603										}
1604
1605										// MatchLabelKeys is a set of pod label keys to select which pods will
1606										// be taken into consideration. The keys are used to lookup values from the
1607										// incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (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 matchLabelKeys and labelSelector.
1612										// Also, matchLabelKeys cannot be set when labelSelector isn't set.
1613										matchLabelKeys?: [...string]
1614
1615										// MismatchLabelKeys is a set of pod label keys to select which pods will
1616										// be taken into consideration. The keys are used to lookup values from the
1617										// incoming pod labels, those key-value labels are merged with `labelSelector`
1618										// as `key notin (value)`
1619										// to select the group of existing pods which pods will be taken into consideration
1620										// for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
1621										// pod labels will be ignored. The default value is empty.
1622										// The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.
1623										// Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
1624										mismatchLabelKeys?: [...string]
1625
1626										// A label query over the set of namespaces that the term applies to.
1627										// The term is applied to the union of the namespaces selected by this field
1628										// and the ones listed in the namespaces field.
1629										// null selector and null or empty namespaces list means "this pod's namespace".
1630										// An empty selector ({}) matches all namespaces.
1631										namespaceSelector?: {
1632											// matchExpressions is a list of label selector requirements. The requirements are ANDed.
1633											matchExpressions?: [...{
1634												// key is the label key that the selector applies to.
1635												key!: string
1636
1637												// operator represents a key's relationship to a set of values.
1638												// Valid operators are In, NotIn, Exists and DoesNotExist.
1639												operator!: string
1640
1641												// values is an array of string values. If the operator is In or NotIn,
1642												// the values array must be non-empty. If the operator is Exists or DoesNotExist,
1643												// the values array must be empty. This array is replaced during a strategic
1644												// merge patch.
1645												values?: [...string]
1646											}]
1647
1648											// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
1649											// map is equivalent to an element of matchExpressions, whose key field is "key", the
1650											// operator is "In", and the values array contains only "value". The requirements are ANDed.
1651											matchLabels?: [string]: string
1652										}
1653
1654										// namespaces specifies a static list of namespace names that the term applies to.
1655										// The term is applied to the union of the namespaces listed in this field
1656										// and the ones selected by namespaceSelector.
1657										// null or empty namespaces list and null namespaceSelector means "this pod's namespace".
1658										namespaces?: [...string]
1659
1660										// This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
1661										// the labelSelector in the specified namespaces, where co-located is defined as running on a node
1662										// whose value of the label with key topologyKey matches that of any node on which any of the
1663										// selected pods is running.
1664										// Empty topologyKey is not allowed.
1665										topologyKey!: string
1666									}]
1667								}
1668
1669								// Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in
1670								// the same node, zone, etc. as some other pod(s)).
1671								podAntiAffinity?: {
1672									// The scheduler will prefer to schedule pods to nodes that satisfy
1673									// the anti-affinity expressions specified by this field, but it may choose
1674									// a node that violates one or more of the expressions. The node that is
1675									// most preferred is the one with the greatest sum of weights, i.e.
1676									// for each node that meets all of the scheduling requirements (resource
1677									// request, requiredDuringScheduling anti-affinity expressions, etc.),
1678									// compute a sum by iterating through the elements of this field and subtracting
1679									// "weight" from the sum if the node has pods which matches the corresponding podAffinityTerm; the
1680									// node(s) with the highest sum are the most preferred.
1681									preferredDuringSchedulingIgnoredDuringExecution?: [...{
1682										// Required. A pod affinity term, associated with the corresponding weight.
1683										podAffinityTerm!: {
1684											// A label query over a set of resources, in this case pods.
1685											// If it's null, this PodAffinityTerm matches with no Pods.
1686											labelSelector?: {
1687												// matchExpressions is a list of label selector requirements. The requirements are ANDed.
1688												matchExpressions?: [...{
1689													// key is the label key that the selector applies to.
1690													key!: string
1691
1692													// operator represents a key's relationship to a set of values.
1693													// Valid operators are In, NotIn, Exists and DoesNotExist.
1694													operator!: string
1695
1696													// values is an array of string values. If the operator is In or NotIn,
1697													// the values array must be non-empty. If the operator is Exists or DoesNotExist,
1698													// the values array must be empty. This array is replaced during a strategic
1699													// merge patch.
1700													values?: [...string]
1701												}]
1702
1703												// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
1704												// map is equivalent to an element of matchExpressions, whose key field is "key", the
1705												// operator is "In", and the values array contains only "value". The requirements are ANDed.
1706												matchLabels?: [string]: string
1707											}
1708
1709											// MatchLabelKeys is a set of pod label keys to select which pods will
1710											// be taken into consideration. The keys are used to lookup values from the
1711											// incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`
1712											// to select the group of existing pods which pods will be taken into consideration
1713											// for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
1714											// pod labels will be ignored. The default value is empty.
1715											// The same key is forbidden to exist in both matchLabelKeys and labelSelector.
1716											// Also, matchLabelKeys cannot be set when labelSelector isn't set.
1717											matchLabelKeys?: [...string]
1718
1719											// MismatchLabelKeys is a set of pod label keys to select which pods will
1720											// be taken into consideration. The keys are used to lookup values from the
1721											// incoming pod labels, those key-value labels are merged with `labelSelector`
1722											// as `key notin (value)`
1723											// to select the group of existing pods which pods will be taken into consideration
1724											// for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
1725											// pod labels will be ignored. The default value is empty.
1726											// The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.
1727											// Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
1728											mismatchLabelKeys?: [...string]
1729
1730											// A label query over the set of namespaces that the term applies to.
1731											// The term is applied to the union of the namespaces selected by this field
1732											// and the ones listed in the namespaces field.
1733											// null selector and null or empty namespaces list means "this pod's namespace".
1734											// An empty selector ({}) matches all namespaces.
1735											namespaceSelector?: {
1736												// matchExpressions is a list of label selector requirements. The requirements are ANDed.
1737												matchExpressions?: [...{
1738													// key is the label key that the selector applies to.
1739													key!: string
1740
1741													// operator represents a key's relationship to a set of values.
1742													// Valid operators are In, NotIn, Exists and DoesNotExist.
1743													operator!: string
1744
1745													// values is an array of string values. If the operator is In or NotIn,
1746													// the values array must be non-empty. If the operator is Exists or DoesNotExist,
1747													// the values array must be empty. This array is replaced during a strategic
1748													// merge patch.
1749													values?: [...string]
1750												}]
1751
1752												// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
1753												// map is equivalent to an element of matchExpressions, whose key field is "key", the
1754												// operator is "In", and the values array contains only "value". The requirements are ANDed.
1755												matchLabels?: [string]: string
1756											}
1757
1758											// namespaces specifies a static list of namespace names that the term applies to.
1759											// The term is applied to the union of the namespaces listed in this field
1760											// and the ones selected by namespaceSelector.
1761											// null or empty namespaces list and null namespaceSelector means "this pod's namespace".
1762											namespaces?: [...string]
1763
1764											// This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
1765											// the labelSelector in the specified namespaces, where co-located is defined as running on a node
1766											// whose value of the label with key topologyKey matches that of any node on which any of the
1767											// selected pods is running.
1768											// Empty topologyKey is not allowed.
1769											topologyKey!: string
1770										}
1771
1772										// weight associated with matching the corresponding podAffinityTerm,
1773										// in the range 1-100.
1774										weight!: int32 & int
1775									}]
1776
1777									// If the anti-affinity requirements specified by this field are not met at
1778									// scheduling time, the pod will not be scheduled onto the node.
1779									// If the anti-affinity requirements specified by this field cease to be met
1780									// at some point during pod execution (e.g. due to a pod label update), the
1781									// system may or may not try to eventually evict the pod from its node.
1782									// When there are multiple elements, the lists of nodes corresponding to each
1783									// podAffinityTerm are intersected, i.e. all terms must be satisfied.
1784									requiredDuringSchedulingIgnoredDuringExecution?: [...{
1785										// A label query over a set of resources, in this case pods.
1786										// If it's null, this PodAffinityTerm matches with no Pods.
1787										labelSelector?: {
1788											// matchExpressions is a list of label selector requirements. The requirements are ANDed.
1789											matchExpressions?: [...{
1790												// key is the label key that the selector applies to.
1791												key!: string
1792
1793												// operator represents a key's relationship to a set of values.
1794												// Valid operators are In, NotIn, Exists and DoesNotExist.
1795												operator!: string
1796
1797												// values is an array of string values. If the operator is In or NotIn,
1798												// the values array must be non-empty. If the operator is Exists or DoesNotExist,
1799												// the values array must be empty. This array is replaced during a strategic
1800												// merge patch.
1801												values?: [...string]
1802											}]
1803
1804											// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
1805											// map is equivalent to an element of matchExpressions, whose key field is "key", the
1806											// operator is "In", and the values array contains only "value". The requirements are ANDed.
1807											matchLabels?: [string]: string
1808										}
1809
1810										// MatchLabelKeys is a set of pod label keys to select which pods will
1811										// be taken into consideration. The keys are used to lookup values from the
1812										// incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (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 matchLabelKeys and labelSelector.
1817										// Also, matchLabelKeys cannot be set when labelSelector isn't set.
1818										matchLabelKeys?: [...string]
1819
1820										// MismatchLabelKeys is a set of pod label keys to select which pods will
1821										// be taken into consideration. The keys are used to lookup values from the
1822										// incoming pod labels, those key-value labels are merged with `labelSelector`
1823										// as `key notin (value)`
1824										// to select the group of existing pods which pods will be taken into consideration
1825										// for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
1826										// pod labels will be ignored. The default value is empty.
1827										// The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.
1828										// Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
1829										mismatchLabelKeys?: [...string]
1830
1831										// A label query over the set of namespaces that the term applies to.
1832										// The term is applied to the union of the namespaces selected by this field
1833										// and the ones listed in the namespaces field.
1834										// null selector and null or empty namespaces list means "this pod's namespace".
1835										// An empty selector ({}) matches all namespaces.
1836										namespaceSelector?: {
1837											// matchExpressions is a list of label selector requirements. The requirements are ANDed.
1838											matchExpressions?: [...{
1839												// key is the label key that the selector applies to.
1840												key!: string
1841
1842												// operator represents a key's relationship to a set of values.
1843												// Valid operators are In, NotIn, Exists and DoesNotExist.
1844												operator!: string
1845
1846												// values is an array of string values. If the operator is In or NotIn,
1847												// the values array must be non-empty. If the operator is Exists or DoesNotExist,
1848												// the values array must be empty. This array is replaced during a strategic
1849												// merge patch.
1850												values?: [...string]
1851											}]
1852
1853											// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
1854											// map is equivalent to an element of matchExpressions, whose key field is "key", the
1855											// operator is "In", and the values array contains only "value". The requirements are ANDed.
1856											matchLabels?: [string]: string
1857										}
1858
1859										// namespaces specifies a static list of namespace names that the term applies to.
1860										// The term is applied to the union of the namespaces listed in this field
1861										// and the ones selected by namespaceSelector.
1862										// null or empty namespaces list and null namespaceSelector means "this pod's namespace".
1863										namespaces?: [...string]
1864
1865										// This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
1866										// the labelSelector in the specified namespaces, where co-located is defined as running on a node
1867										// whose value of the label with key topologyKey matches that of any node on which any of the
1868										// selected pods is running.
1869										// Empty topologyKey is not allowed.
1870										topologyKey!: string
1871									}]
1872								}
1873							}
1874
1875							// If specified, the pod's imagePullSecrets
1876							imagePullSecrets?: [...{
1877								// Name of the referent.
1878								// This field is effectively required, but due to backwards compatibility is
1879								// allowed to be empty. Instances of this type with an empty value here are
1880								// almost certainly wrong.
1881								// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
1882								name?: string
1883							}]
1884
1885							// NodeSelector is a selector which must be true for the pod to fit on a node.
1886							// Selector which must match a node's labels for the pod to be scheduled on that node.
1887							// More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
1888							nodeSelector?: [string]: string
1889
1890							// If specified, the pod's priorityClassName.
1891							priorityClassName?: string
1892
1893							// If specified, the pod's resource requirements.
1894							// These values override the global resource configuration flags.
1895							// Note that when only specifying resource limits, ensure they are greater than or equal
1896							// to the corresponding global resource requests configured via controller flags
1897							// (--acme-http01-solver-resource-request-cpu, --acme-http01-solver-resource-request-memory).
1898							// Kubernetes will reject pod creation if limits are lower than requests,
1899							// causing challenge failures.
1900							resources?: {
1901								// Limits describes the maximum amount of compute resources allowed.
1902								// More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
1903								limits?: [string]: matchN(>=1, [int, string]) &
1904								(int |
1905									=~"^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$")
1906
1907								// Requests describes the minimum amount of compute resources required.
1908								// If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
1909								// otherwise to the global values configured via controller flags. Requests cannot exceed Limits.
1910								// More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
1911								requests?: [string]: matchN(>=1, [int, string]) &
1912								(int |
1913									=~"^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$")
1914							}
1915
1916							// If specified, the pod's security context
1917							securityContext?: {
1918								// A special supplemental group that applies to all containers in a pod.
1919								// Some volume types allow the Kubelet to change the ownership of that volume
1920								// to be owned by the pod:
1921								//
1922								// 1. The owning GID will be the FSGroup
1923								// 2. The setgid bit is set (new files created in the volume will be owned by FSGroup)
1924								// 3. The permission bits are OR'd with rw-rw----
1925								//
1926								// If unset, the Kubelet will not modify the ownership and permissions of any volume.
1927								// Note that this field cannot be set when spec.os.name is windows.
1928								fsGroup?: int64 & int
1929
1930								// fsGroupChangePolicy defines behavior of changing ownership and permission of the volume
1931								// before being exposed inside Pod. This field will only apply to
1932								// volume types which support fsGroup based ownership(and permissions).
1933								// It will have no effect on ephemeral volume types such as: secret, configmaps
1934								// and emptydir.
1935								// Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used.
1936								// Note that this field cannot be set when spec.os.name is windows.
1937								fsGroupChangePolicy?: string
1938
1939								// The GID to run the entrypoint of the container process.
1940								// Uses runtime default if unset.
1941								// May also be set in SecurityContext. If set in both SecurityContext and
1942								// PodSecurityContext, the value specified in SecurityContext takes precedence
1943								// for that container.
1944								// Note that this field cannot be set when spec.os.name is windows.
1945								runAsGroup?: int64 & int
1946
1947								// Indicates that the container must run as a non-root user.
1948								// If true, the Kubelet will validate the image at runtime to ensure that it
1949								// does not run as UID 0 (root) and fail to start the container if it does.
1950								// If unset or false, no such validation will be performed.
1951								// May also be set in SecurityContext. If set in both SecurityContext and
1952								// PodSecurityContext, the value specified in SecurityContext takes precedence.
1953								runAsNonRoot?: bool
1954
1955								// The UID to run the entrypoint of the container process.
1956								// Defaults to user specified in image metadata if unspecified.
1957								// May also be set in SecurityContext. If set in both SecurityContext and
1958								// PodSecurityContext, the value specified in SecurityContext takes precedence
1959								// for that container.
1960								// Note that this field cannot be set when spec.os.name is windows.
1961								runAsUser?: int64 & int
1962
1963								// The SELinux context to be applied to all containers.
1964								// If unspecified, the container runtime will allocate a random SELinux context for each
1965								// container. May also be set in SecurityContext. If set in
1966								// both SecurityContext and PodSecurityContext, the value specified in SecurityContext
1967								// takes precedence for that container.
1968								// Note that this field cannot be set when spec.os.name is windows.
1969								seLinuxOptions?: {
1970									// Level is SELinux level label that applies to the container.
1971									level?: string
1972
1973									// Role is a SELinux role label that applies to the container.
1974									role?: string
1975
1976									// Type is a SELinux type label that applies to the container.
1977									type?: string
1978
1979									// User is a SELinux user label that applies to the container.
1980									user?: string
1981								}
1982
1983								// The seccomp options to use by the containers in this pod.
1984								// Note that this field cannot be set when spec.os.name is windows.
1985								seccompProfile?: {
1986									// localhostProfile indicates a profile defined in a file on the node should be used.
1987									// The profile must be preconfigured on the node to work.
1988									// Must be a descending path, relative to the kubelet's configured seccomp profile location.
1989									// Must be set if type is "Localhost". Must NOT be set for any other type.
1990									localhostProfile?: string
1991
1992									// type indicates which kind of seccomp profile will be applied.
1993									// Valid options are:
1994									//
1995									// Localhost - a profile defined in a file on the node should be used.
1996									// RuntimeDefault - the container runtime default profile should be used.
1997									// Unconfined - no profile should be applied.
1998									type!: string
1999								}
2000
2001								// A list of groups applied to the first process run in each container, in addition
2002								// to the container's primary GID, the fsGroup (if specified), and group memberships
2003								// defined in the container image for the uid of the container process. If unspecified,
2004								// no additional groups are added to any container. Note that group memberships
2005								// defined in the container image for the uid of the container process are still effective,
2006								// even if they are not included in this list.
2007								// Note that this field cannot be set when spec.os.name is windows.
2008								supplementalGroups?: [...int64 & int]
2009
2010								// Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
2011								// sysctls (by the container runtime) might fail to launch.
2012								// Note that this field cannot be set when spec.os.name is windows.
2013								sysctls?: [...{
2014									// Name of a property to set
2015									name!: string
2016
2017									// Value of a property to set
2018									value!: string
2019								}]
2020							}
2021
2022							// If specified, the pod's service account
2023							serviceAccountName?: string
2024
2025							// If specified, the pod's tolerations.
2026							tolerations?: [...{
2027								// Effect indicates the taint effect to match. Empty means match all taint effects.
2028								// When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
2029								effect?: string
2030
2031								// Key is the taint key that the toleration applies to. Empty means match all taint keys.
2032								// If the key is empty, operator must be Exists; this combination means to match
2033								// all values and all keys.
2034								key?: string
2035
2036								// Operator represents a key's relationship to the value.
2037								// Valid operators are Exists, Equal, Lt, and Gt. Defaults to Equal.
2038								// Exists is equivalent to wildcard for value, so that a pod can
2039								// tolerate all taints of a particular category.
2040								// Lt and Gt perform numeric comparisons (requires feature gate TaintTolerationComparisonOperators).
2041								operator?: string
2042
2043								// TolerationSeconds represents the period of time the toleration (which must be
2044								// of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
2045								// it is not set, which means tolerate the taint forever (do not evict). Zero and
2046								// negative values will be treated as 0 (evict immediately) by the system.
2047								tolerationSeconds?: int64 & int
2048
2049								// Value is the taint value the toleration matches to.
2050								// If the operator is Exists, the value should be empty, otherwise just a regular string.
2051								value?: string
2052							}]
2053						}
2054					}
2055
2056					// Optional service type for Kubernetes solver service. Supported values
2057					// are NodePort or ClusterIP. If unset, defaults to NodePort.
2058					serviceType?: string
2059				}
2060			}
2061
2062			// Selector selects a set of DNSNames on the Certificate resource that
2063			// should be solved using this challenge solver.
2064			// If not specified, the solver will be treated as the 'default' solver
2065			// with the lowest priority, i.e. if any other solver has a more specific
2066			// match, it will be used instead.
2067			selector?: {
2068				// List of DNSNames that this solver will be used to solve.
2069				// If specified and a match is found, a dnsNames selector will take
2070				// precedence over a dnsZones selector.
2071				// If multiple solvers match with the same dnsNames value, the solver
2072				// with the most matching labels in matchLabels will be selected.
2073				// If neither has more matches, the solver defined earlier in the list
2074				// will be selected.
2075				dnsNames?: [...string]
2076
2077				// List of DNSZones that this solver will be used to solve.
2078				// The most specific DNS zone match specified here will take precedence
2079				// over other DNS zone matches, so a solver specifying sys.example.com
2080				// will be selected over one specifying example.com for the domain
2081				// www.sys.example.com.
2082				// If multiple solvers match with the same dnsZones value, the solver
2083				// with the most matching labels in matchLabels will be selected.
2084				// If neither has more matches, the solver defined earlier in the list
2085				// will be selected.
2086				dnsZones?: [...string]
2087
2088				// A label selector that is used to refine the set of certificate's that
2089				// this challenge solver will apply to.
2090				matchLabels?: [string]: string
2091			}
2092
2093			// WaitInsteadOfSelfCheck, if set, skips cert-manager's self-check and
2094			// instead waits this long after presentation before asking the ACME server
2095			// to validate the challenge.
2096			//
2097			// This is an advanced escape hatch for environments where cert-manager's
2098			// self-check cannot succeed from its own network or DNS viewpoint even
2099			// though the ACME server can still validate successfully, for example due
2100			// to split-horizon DNS or NAT hairpinning.
2101			//
2102			// A value of 0 skips the self-check and asks the ACME server to validate
2103			// immediately after presentation, relying on the ACME server's own
2104			// validation retries (RFC 8555 section 8.2) to succeed once the challenge
2105			// has propagated. A negative duration is rejected.
2106			// Value must be in units accepted by Go time.ParseDuration
2107			// https://golang.org/pkg/time/#ParseDuration,
2108			// for example `30s` or `2m`.
2109			waitInsteadOfSelfCheck?: string
2110		}
2111
2112		// The ACME challenge token for this challenge.
2113		// This is the raw value returned from the ACME server.
2114		token!: string
2115
2116		// The type of ACME challenge this resource represents.
2117		// One of "HTTP-01" or "DNS-01".
2118		type!: "HTTP-01" | "DNS-01"
2119
2120		// The URL of the ACME Challenge resource for this challenge.
2121		// This can be used to lookup details about the status of this challenge.
2122		url!: string
2123
2124		// wildcard will be true if this challenge is for a wildcard identifier,
2125		// for example '*.example.com'.
2126		wildcard?: bool
2127	}
2128	status?: {
2129		// Presented is true once cert-manager has configured the solver resources
2130		// needed to expose this challenge's validation material.
2131		// For example, the DNS01 TXT record has been created, or the HTTP01 solver
2132		// has been configured to serve the challenge token.
2133		// This does not imply the self check is passing, that the ACME server has
2134		// validated the challenge, or that cert-manager has already accepted the
2135		// challenge with the ACME server.
2136		presented?: bool
2137
2138		// PresentedAt records when cert-manager first configured the solver
2139		// resources for this challenge. This is used by the optional delay-based
2140		// readiness logic.
2141		presentedAt?: time.Time
2142
2143		// Used to denote whether this challenge should be processed or not.
2144		// This field will only be set to true by the 'scheduling' component.
2145		// It will only be set to false by the 'challenges' controller, after the
2146		// challenge has reached a final state or timed out.
2147		// If this field is set to false, the challenge controller will not take
2148		// any more action.
2149		processing?: bool
2150
2151		// Contains human readable information on why the Challenge is in the
2152		// current state.
2153		reason?: string
2154
2155		// Contains the current 'state' of the challenge.
2156		// If not set, the state of the challenge is unknown.
2157		state?: "valid" | "ready" | "pending" | "processing" | "invalid" | "expired" | "errored"
2158	}
2159
2160	_embeddedResource: {
2161		apiVersion!: string
2162		kind!:       string
2163		metadata?:   {...}
2164	}
2165	apiVersion: "acme.cert-manager.io/v1"
2166	kind:       "Challenge"
2167	metadata!: {
2168		name!:      string
2169		namespace!: string
2170		labels?: [string]:      string
2171		annotations?: [string]: string
2172		...
2173	}
2174}