Documentation ¶
Overview ¶
Package v1alpha2 is the v1alpha2 version of the API. +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/jetstack/cert-manager/pkg/apis/acme +k8s:openapi-gen=true +k8s:defaulter-gen=TypeMeta +groupName=acme.cert-manager.io
Index ¶
- Constants
- Variables
- func Resource(resource string) schema.GroupResource
- type ACMEAuthorization
- type ACMEChallenge
- type ACMEChallengeSolver
- type ACMEChallengeSolverDNS01
- type ACMEChallengeSolverHTTP01
- type ACMEChallengeSolverHTTP01GatewayHTTPRoute
- type ACMEChallengeSolverHTTP01Ingress
- type ACMEChallengeSolverHTTP01IngressObjectMeta
- type ACMEChallengeSolverHTTP01IngressPodObjectMeta
- type ACMEChallengeSolverHTTP01IngressPodSpec
- type ACMEChallengeSolverHTTP01IngressPodTemplate
- type ACMEChallengeSolverHTTP01IngressTemplate
- type ACMEChallengeType
- type ACMEExternalAccountBinding
- type ACMEIssuer
- type ACMEIssuerDNS01ProviderAcmeDNS
- type ACMEIssuerDNS01ProviderAkamai
- type ACMEIssuerDNS01ProviderAzureDNS
- type ACMEIssuerDNS01ProviderCloudDNS
- type ACMEIssuerDNS01ProviderCloudflare
- type ACMEIssuerDNS01ProviderDigitalOcean
- type ACMEIssuerDNS01ProviderRFC2136
- type ACMEIssuerDNS01ProviderRoute53
- type ACMEIssuerDNS01ProviderWebhook
- type ACMEIssuerStatus
- type AzureDNSEnvironment
- type CNAMEStrategy
- type CertificateDNSNameSelector
- type Challenge
- type ChallengeList
- type ChallengeSpec
- type ChallengeStatus
- type HMACKeyAlgorithm
- type Order
- type OrderList
- type OrderSpec
- type OrderStatus
- type State
Constants ¶
const ( // If this annotation is specified on a Certificate or Order resource when // using the HTTP01 solver type, the ingress.name field of the HTTP01 // solver's configuration will be set to the value given here. // This is especially useful for users of Ingress controllers that maintain // a 1:1 mapping between endpoint IP and Ingress resource. ACMECertificateHTTP01IngressNameOverride = "acme.cert-manager.io/http01-override-ingress-name" // If this annotation is specified on a Certificate or Order resource when // using the HTTP01 solver type, the ingress.class field of the HTTP01 // solver's configuration will be set to the value given here. // This is especially useful for users deploying many different ingress // classes into a single cluster that want to be able to re-use a single // solver for each ingress class. ACMECertificateHTTP01IngressClassOverride = "acme.cert-manager.io/http01-override-ingress-class" // IngressEditInPlaceAnnotation is used to toggle the use of ingressClass instead // of ingress on the created Certificate resource IngressEditInPlaceAnnotationKey = "acme.cert-manager.io/http01-edit-in-place" )
const ( // NoneStrategy indicates that no CNAME resolution strategy should be used // when determining which DNS zone to update during DNS01 challenges. NoneStrategy = "None" // FollowStrategy will cause cert-manager to recurse through CNAMEs in // order to determine which DNS zone to update during DNS01 challenges. // This is useful if you do not want to grant cert-manager access to your // root DNS zone, and instead delegate the _acme-challenge.example.com // subdomain to some other, less privileged domain. FollowStrategy = "Follow" )
const (
ACMEFinalizer = "finalizer.acme.cert-manager.io"
)
Variables ¶
var ( SchemeBuilder runtime.SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: acme.GroupName, Version: "v1alpha2"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type ACMEAuthorization ¶
type ACMEAuthorization struct { // URL is the URL of the Authorization that must be completed URL string `json:"url"` // Identifier is the DNS name to be validated as part of this authorization // +optional Identifier string `json:"identifier,omitempty"` // Wildcard will be true if this authorization is for a wildcard DNS name. // If this is true, the identifier will be the *non-wildcard* version of // the DNS name. // For example, if '*.example.com' is the DNS name being validated, this // field will be 'true' and the 'identifier' field will be 'example.com'. // +optional Wildcard *bool `json:"wildcard,omitempty"` // InitialState is the initial state of the ACME authorization when first // fetched from the ACME server. // If an Authorization is already 'valid', the Order controller will not // create a Challenge resource for the authorization. This will occur when // working with an ACME server that enables 'authz reuse' (such as Let's // Encrypt's production endpoint). // If not set and 'identifier' is set, the state is assumed to be pending // and a Challenge will be created. // +optional InitialState State `json:"initialState,omitempty"` // Challenges specifies the challenge types offered by the ACME server. // One of these challenge types will be selected when validating the DNS // name and an appropriate Challenge resource will be created to perform // the ACME challenge process. // +optional Challenges []ACMEChallenge `json:"challenges,omitempty"` }
ACMEAuthorization contains data returned from the ACME server on an authorization that must be completed in order validate a DNS name on an ACME Order resource.
func (*ACMEAuthorization) DeepCopy ¶
func (in *ACMEAuthorization) DeepCopy() *ACMEAuthorization
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ACMEAuthorization.
func (*ACMEAuthorization) DeepCopyInto ¶
func (in *ACMEAuthorization) DeepCopyInto(out *ACMEAuthorization)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ACMEChallenge ¶
type ACMEChallenge struct { // URL is the URL of this challenge. It can be used to retrieve additional // metadata about the Challenge from the ACME server. URL string `json:"url"` // Token is the token that must be presented for this challenge. // This is used to compute the 'key' that must also be presented. Token string `json:"token"` // Type is the type of challenge being offered, e.g. 'http-01', 'dns-01', // 'tls-sni-01', etc. // This is the raw value retrieved from the ACME server. // Only 'http-01' and 'dns-01' are supported by cert-manager, other values // will be ignored. Type string `json:"type"` }
Challenge specifies a challenge offered by the ACME server for an Order. An appropriate Challenge resource can be created to perform the ACME challenge process.
func (*ACMEChallenge) DeepCopy ¶
func (in *ACMEChallenge) DeepCopy() *ACMEChallenge
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ACMEChallenge.
func (*ACMEChallenge) DeepCopyInto ¶
func (in *ACMEChallenge) DeepCopyInto(out *ACMEChallenge)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ACMEChallengeSolver ¶
type ACMEChallengeSolver struct { // Selector selects a set of DNSNames on the Certificate resource that // should be solved using this challenge solver. // If not specified, the solver will be treated as the 'default' solver // with the lowest priority, i.e. if any other solver has a more specific // match, it will be used instead. // +optional Selector *CertificateDNSNameSelector `json:"selector,omitempty"` // Configures cert-manager to attempt to complete authorizations by // performing the HTTP01 challenge flow. // It is not possible to obtain certificates for wildcard domain names // (e.g. `*.example.com`) using the HTTP01 challenge mechanism. // +optional HTTP01 *ACMEChallengeSolverHTTP01 `json:"http01,omitempty"` // Configures cert-manager to attempt to complete authorizations by // performing the DNS01 challenge flow. // +optional DNS01 *ACMEChallengeSolverDNS01 `json:"dns01,omitempty"` }
Configures an issuer to solve challenges using the specified options. Only one of HTTP01 or DNS01 may be provided.
func (*ACMEChallengeSolver) DeepCopy ¶
func (in *ACMEChallengeSolver) DeepCopy() *ACMEChallengeSolver
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ACMEChallengeSolver.
func (*ACMEChallengeSolver) DeepCopyInto ¶
func (in *ACMEChallengeSolver) DeepCopyInto(out *ACMEChallengeSolver)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ACMEChallengeSolverDNS01 ¶
type ACMEChallengeSolverDNS01 struct { // CNAMEStrategy configures how the DNS01 provider should handle CNAME // records when found in DNS zones. // +optional CNAMEStrategy CNAMEStrategy `json:"cnameStrategy,omitempty"` // Use the Akamai DNS zone management API to manage DNS01 challenge records. // +optional Akamai *ACMEIssuerDNS01ProviderAkamai `json:"akamai,omitempty"` // Use the Google Cloud DNS API to manage DNS01 challenge records. // +optional CloudDNS *ACMEIssuerDNS01ProviderCloudDNS `json:"clouddns,omitempty"` // Use the Cloudflare API to manage DNS01 challenge records. // +optional Cloudflare *ACMEIssuerDNS01ProviderCloudflare `json:"cloudflare,omitempty"` // Use the AWS Route53 API to manage DNS01 challenge records. // +optional Route53 *ACMEIssuerDNS01ProviderRoute53 `json:"route53,omitempty"` // Use the Microsoft Azure DNS API to manage DNS01 challenge records. // +optional AzureDNS *ACMEIssuerDNS01ProviderAzureDNS `json:"azuredns,omitempty"` // Use the DigitalOcean DNS API to manage DNS01 challenge records. // +optional DigitalOcean *ACMEIssuerDNS01ProviderDigitalOcean `json:"digitalocean,omitempty"` // Use the 'ACME DNS' (https://github.com/joohoi/acme-dns) API to manage // DNS01 challenge records. // +optional AcmeDNS *ACMEIssuerDNS01ProviderAcmeDNS `json:"acmedns,omitempty"` // Use RFC2136 ("Dynamic Updates in the Domain Name System") (https://datatracker.ietf.org/doc/rfc2136/) // to manage DNS01 challenge records. // +optional RFC2136 *ACMEIssuerDNS01ProviderRFC2136 `json:"rfc2136,omitempty"` // Configure an external webhook based DNS01 challenge solver to manage // DNS01 challenge records. // +optional Webhook *ACMEIssuerDNS01ProviderWebhook `json:"webhook,omitempty"` }
Used to configure a DNS01 challenge provider to be used when solving DNS01 challenges. Only one DNS provider may be configured per solver.
func (*ACMEChallengeSolverDNS01) DeepCopy ¶
func (in *ACMEChallengeSolverDNS01) DeepCopy() *ACMEChallengeSolverDNS01
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ACMEChallengeSolverDNS01.
func (*ACMEChallengeSolverDNS01) DeepCopyInto ¶
func (in *ACMEChallengeSolverDNS01) DeepCopyInto(out *ACMEChallengeSolverDNS01)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ACMEChallengeSolverHTTP01 ¶
type ACMEChallengeSolverHTTP01 struct { // The ingress based HTTP01 challenge solver will solve challenges by // creating or modifying Ingress resources in order to route requests for // '/.well-known/acme-challenge/XYZ' to 'challenge solver' pods that are // provisioned by cert-manager for each Challenge to be completed. // +optional Ingress *ACMEChallengeSolverHTTP01Ingress `json:"ingress,omitempty"` // The Gateway API is a sig-network community API that models service networking // in Kubernetes (https://gateway-api.sigs.k8s.io/). The Gateway solver will // create HTTPRoutes with the specified labels in the same namespace as the challenge. // This solver is experimental, and fields / behaviour may change in the future. // +optional GatewayHTTPRoute *ACMEChallengeSolverHTTP01GatewayHTTPRoute `json:"gatewayHTTPRoute,omitempty"` }
ACMEChallengeSolverHTTP01 contains configuration detailing how to solve HTTP01 challenges within a Kubernetes cluster. Typically this is accomplished through creating 'routes' of some description that configure ingress controllers to direct traffic to 'solver pods', which are responsible for responding to the ACME server's HTTP requests. Only one of Ingress / Gateway can be specified.
func (*ACMEChallengeSolverHTTP01) DeepCopy ¶
func (in *ACMEChallengeSolverHTTP01) DeepCopy() *ACMEChallengeSolverHTTP01
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ACMEChallengeSolverHTTP01.
func (*ACMEChallengeSolverHTTP01) DeepCopyInto ¶
func (in *ACMEChallengeSolverHTTP01) DeepCopyInto(out *ACMEChallengeSolverHTTP01)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ACMEChallengeSolverHTTP01GatewayHTTPRoute ¶ added in v1.5.1
type ACMEChallengeSolverHTTP01GatewayHTTPRoute struct { // Optional service type for Kubernetes solver service. Supported values // are NodePort or ClusterIP (default). // +optional ServiceType corev1.ServiceType `json:"serviceType,omitempty"` // The labels that cert-manager will use when creating the temporary // HTTPRoute needed for solving the HTTP-01 challenge. These labels // must match the label selector of at least one Gateway. Labels map[string]string `json:"labels,omitempty"` }
func (*ACMEChallengeSolverHTTP01GatewayHTTPRoute) DeepCopy ¶ added in v1.5.1
func (in *ACMEChallengeSolverHTTP01GatewayHTTPRoute) DeepCopy() *ACMEChallengeSolverHTTP01GatewayHTTPRoute
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ACMEChallengeSolverHTTP01GatewayHTTPRoute.
func (*ACMEChallengeSolverHTTP01GatewayHTTPRoute) DeepCopyInto ¶ added in v1.5.1
func (in *ACMEChallengeSolverHTTP01GatewayHTTPRoute) DeepCopyInto(out *ACMEChallengeSolverHTTP01GatewayHTTPRoute)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ACMEChallengeSolverHTTP01Ingress ¶
type ACMEChallengeSolverHTTP01Ingress struct { // Optional service type for Kubernetes solver service. Supported values // are NodePort or ClusterIP (default). // +optional ServiceType corev1.ServiceType `json:"serviceType,omitempty"` // The ingress class to use when creating Ingress resources to solve ACME // challenges that use this challenge solver. // Only one of 'class' or 'name' may be specified. // +optional Class *string `json:"class,omitempty"` // The name of the ingress resource that should have ACME challenge solving // routes inserted into it in order to solve HTTP01 challenges. // This is typically used in conjunction with ingress controllers like // ingress-gce, which maintains a 1:1 mapping between external IPs and // ingress resources. // +optional Name string `json:"name,omitempty"` // Optional pod template used to configure the ACME challenge solver pods // used for HTTP01 challenges. // +optional PodTemplate *ACMEChallengeSolverHTTP01IngressPodTemplate `json:"podTemplate,omitempty"` // Optional ingress template used to configure the ACME challenge solver // ingress used for HTTP01 challenges // +optional IngressTemplate *ACMEChallengeSolverHTTP01IngressTemplate `json:"ingressTemplate,omitempty"` }
func (*ACMEChallengeSolverHTTP01Ingress) DeepCopy ¶
func (in *ACMEChallengeSolverHTTP01Ingress) DeepCopy() *ACMEChallengeSolverHTTP01Ingress
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ACMEChallengeSolverHTTP01Ingress.
func (*ACMEChallengeSolverHTTP01Ingress) DeepCopyInto ¶
func (in *ACMEChallengeSolverHTTP01Ingress) DeepCopyInto(out *ACMEChallengeSolverHTTP01Ingress)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ACMEChallengeSolverHTTP01IngressObjectMeta ¶ added in v0.15.0
type ACMEChallengeSolverHTTP01IngressObjectMeta struct { // Annotations that should be added to the created ACME HTTP01 solver ingress. // +optional Annotations map[string]string `json:"annotations,omitempty"` // Labels that should be added to the created ACME HTTP01 solver ingress. // +optional Labels map[string]string `json:"labels,omitempty"` }
func (*ACMEChallengeSolverHTTP01IngressObjectMeta) DeepCopy ¶ added in v0.15.0
func (in *ACMEChallengeSolverHTTP01IngressObjectMeta) DeepCopy() *ACMEChallengeSolverHTTP01IngressObjectMeta
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ACMEChallengeSolverHTTP01IngressObjectMeta.
func (*ACMEChallengeSolverHTTP01IngressObjectMeta) DeepCopyInto ¶ added in v0.15.0
func (in *ACMEChallengeSolverHTTP01IngressObjectMeta) DeepCopyInto(out *ACMEChallengeSolverHTTP01IngressObjectMeta)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ACMEChallengeSolverHTTP01IngressPodObjectMeta ¶ added in v0.12.0
type ACMEChallengeSolverHTTP01IngressPodObjectMeta struct { // Annotations that should be added to the create ACME HTTP01 solver pods. // +optional Annotations map[string]string `json:"annotations,omitempty"` // Labels that should be added to the created ACME HTTP01 solver pods. // +optional Labels map[string]string `json:"labels,omitempty"` }
func (*ACMEChallengeSolverHTTP01IngressPodObjectMeta) DeepCopy ¶ added in v0.12.0
func (in *ACMEChallengeSolverHTTP01IngressPodObjectMeta) DeepCopy() *ACMEChallengeSolverHTTP01IngressPodObjectMeta
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ACMEChallengeSolverHTTP01IngressPodObjectMeta.
func (*ACMEChallengeSolverHTTP01IngressPodObjectMeta) DeepCopyInto ¶ added in v0.12.0
func (in *ACMEChallengeSolverHTTP01IngressPodObjectMeta) DeepCopyInto(out *ACMEChallengeSolverHTTP01IngressPodObjectMeta)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ACMEChallengeSolverHTTP01IngressPodSpec ¶
type ACMEChallengeSolverHTTP01IngressPodSpec struct { // NodeSelector is a selector which must be true for the pod to fit on a node. // Selector which must match a node's labels for the pod to be scheduled on that node. // More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ // +optional NodeSelector map[string]string `json:"nodeSelector,omitempty"` // If specified, the pod's scheduling constraints // +optional Affinity *corev1.Affinity `json:"affinity,omitempty"` // If specified, the pod's tolerations. // +optional Tolerations []corev1.Toleration `json:"tolerations,omitempty"` // If specified, the pod's priorityClassName. // +optional PriorityClassName string `json:"priorityClassName,omitempty"` // If specified, the pod's service account // +optional ServiceAccountName string `json:"serviceAccountName,omitempty"` }
func (*ACMEChallengeSolverHTTP01IngressPodSpec) DeepCopy ¶
func (in *ACMEChallengeSolverHTTP01IngressPodSpec) DeepCopy() *ACMEChallengeSolverHTTP01IngressPodSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ACMEChallengeSolverHTTP01IngressPodSpec.
func (*ACMEChallengeSolverHTTP01IngressPodSpec) DeepCopyInto ¶
func (in *ACMEChallengeSolverHTTP01IngressPodSpec) DeepCopyInto(out *ACMEChallengeSolverHTTP01IngressPodSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ACMEChallengeSolverHTTP01IngressPodTemplate ¶
type ACMEChallengeSolverHTTP01IngressPodTemplate struct { // ObjectMeta overrides for the pod used to solve HTTP01 challenges. // Only the 'labels' and 'annotations' fields may be set. // If labels or annotations overlap with in-built values, the values here // will override the in-built values. // +optional ACMEChallengeSolverHTTP01IngressPodObjectMeta `json:"metadata"` // PodSpec defines overrides for the HTTP01 challenge solver pod. // Only the 'priorityClassName', 'nodeSelector', 'affinity', // 'serviceAccountName' and 'tolerations' fields are supported currently. // All other fields will be ignored. // +optional Spec ACMEChallengeSolverHTTP01IngressPodSpec `json:"spec"` }
func (*ACMEChallengeSolverHTTP01IngressPodTemplate) DeepCopy ¶
func (in *ACMEChallengeSolverHTTP01IngressPodTemplate) DeepCopy() *ACMEChallengeSolverHTTP01IngressPodTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ACMEChallengeSolverHTTP01IngressPodTemplate.
func (*ACMEChallengeSolverHTTP01IngressPodTemplate) DeepCopyInto ¶
func (in *ACMEChallengeSolverHTTP01IngressPodTemplate) DeepCopyInto(out *ACMEChallengeSolverHTTP01IngressPodTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ACMEChallengeSolverHTTP01IngressTemplate ¶ added in v0.15.0
type ACMEChallengeSolverHTTP01IngressTemplate struct { // ObjectMeta overrides for the ingress used to solve HTTP01 challenges. // Only the 'labels' and 'annotations' fields may be set. // If labels or annotations overlap with in-built values, the values here // will override the in-built values. // +optional ACMEChallengeSolverHTTP01IngressObjectMeta `json:"metadata"` }
func (*ACMEChallengeSolverHTTP01IngressTemplate) DeepCopy ¶ added in v0.15.0
func (in *ACMEChallengeSolverHTTP01IngressTemplate) DeepCopy() *ACMEChallengeSolverHTTP01IngressTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ACMEChallengeSolverHTTP01IngressTemplate.
func (*ACMEChallengeSolverHTTP01IngressTemplate) DeepCopyInto ¶ added in v0.15.0
func (in *ACMEChallengeSolverHTTP01IngressTemplate) DeepCopyInto(out *ACMEChallengeSolverHTTP01IngressTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ACMEChallengeType ¶
type ACMEChallengeType string
The type of ACME challenge. Only http-01 and dns-01 are supported. +kubebuilder:validation:Enum=http-01;dns-01
const ( // ACMEChallengeTypeHTTP01 denotes a Challenge is of type http-01 // More info: https://letsencrypt.org/docs/challenge-types/#http-01-challenge ACMEChallengeTypeHTTP01 ACMEChallengeType = "http-01" // ACMEChallengeTypeDNS01 denotes a Challenge is of type dns-01 // More info: https://letsencrypt.org/docs/challenge-types/#dns-01-challenge ACMEChallengeTypeDNS01 ACMEChallengeType = "dns-01" )
type ACMEExternalAccountBinding ¶ added in v0.13.0
type ACMEExternalAccountBinding struct { // keyID is the ID of the CA key that the External Account is bound to. KeyID string `json:"keyID"` // keySecretRef is a Secret Key Selector referencing a data item in a Kubernetes // Secret which holds the symmetric MAC key of the External Account Binding. // The `key` is the index string that is paired with the key data in the // Secret and should not be confused with the key data itself, or indeed with // the External Account Binding keyID above. // The secret key stored in the Secret **must** be un-padded, base64 URL // encoded data. Key cmmeta.SecretKeySelector `json:"keySecretRef"` // Deprecated: keyAlgorithm field exists for historical compatibility // reasons and should not be used. The algorithm is now hardcoded to HS256 // in golang/x/crypto/acme. // +optional KeyAlgorithm HMACKeyAlgorithm `json:"keyAlgorithm,omitempty"` }
ACMEExternalAccountBinding is a reference to a CA external account of the ACME server.
func (*ACMEExternalAccountBinding) DeepCopy ¶ added in v0.13.0
func (in *ACMEExternalAccountBinding) DeepCopy() *ACMEExternalAccountBinding
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ACMEExternalAccountBinding.
func (*ACMEExternalAccountBinding) DeepCopyInto ¶ added in v0.13.0
func (in *ACMEExternalAccountBinding) DeepCopyInto(out *ACMEExternalAccountBinding)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ACMEIssuer ¶
type ACMEIssuer struct { // Email is the email address to be associated with the ACME account. // This field is optional, but it is strongly recommended to be set. // It will be used to contact you in case of issues with your account or // certificates, including expiry notification emails. // This field may be updated after the account is initially registered. // +optional Email string `json:"email,omitempty"` // Server is the URL used to access the ACME server's 'directory' endpoint. // For example, for Let's Encrypt's staging endpoint, you would use: // "https://acme-staging-v02.api.letsencrypt.org/directory". // Only ACME v2 endpoints (i.e. RFC 8555) are supported. Server string `json:"server"` // PreferredChain is the chain to use if the ACME server outputs multiple. // PreferredChain is no guarantee that this one gets delivered by the ACME // endpoint. // For example, for Let's Encrypt's DST crosssign you would use: // "DST Root CA X3" or "ISRG Root X1" for the newer Let's Encrypt root CA. // This value picks the first certificate bundle in the ACME alternative // chains that has a certificate with this value as its issuer's CN // +optional // +kubebuilder:validation:MaxLength=64 PreferredChain string `json:"preferredChain"` // Enables or disables validation of the ACME server TLS certificate. // If true, requests to the ACME server will not have their TLS certificate // validated (i.e. insecure connections will be allowed). // Only enable this option in development environments. // The cert-manager system installed roots will be used to verify connections // to the ACME server if this is false. // Defaults to false. // +optional SkipTLSVerify bool `json:"skipTLSVerify,omitempty"` // ExternalAccountBinding is a reference to a CA external account of the ACME // server. // If set, upon registration cert-manager will attempt to associate the given // external account credentials with the registered ACME account. // +optional ExternalAccountBinding *ACMEExternalAccountBinding `json:"externalAccountBinding,omitempty"` // PrivateKey is the name of a Kubernetes Secret resource that will be used to // store the automatically generated ACME account private key. // Optionally, a `key` may be specified to select a specific entry within // the named Secret resource. // If `key` is not specified, a default of `tls.key` will be used. PrivateKey cmmeta.SecretKeySelector `json:"privateKeySecretRef"` // Solvers is a list of challenge solvers that will be used to solve // ACME challenges for the matching domains. // Solver configurations must be provided in order to obtain certificates // from an ACME server. // For more information, see: https://cert-manager.io/docs/configuration/acme/ // +optional Solvers []ACMEChallengeSolver `json:"solvers,omitempty"` // Enables or disables generating a new ACME account key. // If true, the Issuer resource will *not* request a new account but will expect // the account key to be supplied via an existing secret. // If false, the cert-manager system will generate a new ACME account key // for the Issuer. // Defaults to false. // +optional DisableAccountKeyGeneration bool `json:"disableAccountKeyGeneration,omitempty"` // Enables requesting a Not After date on certificates that matches the // duration of the certificate. This is not supported by all ACME servers // like Let's Encrypt. If set to true when the ACME server does not support // it it will create an error on the Order. // Defaults to false. // +optional EnableDurationFeature bool `json:"enableDurationFeature,omitempty"` }
ACMEIssuer contains the specification for an ACME issuer. This uses the RFC8555 specification to obtain certificates by completing 'challenges' to prove ownership of domain identifiers. Earlier draft versions of the ACME specification are not supported.
func (*ACMEIssuer) DeepCopy ¶
func (in *ACMEIssuer) DeepCopy() *ACMEIssuer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ACMEIssuer.
func (*ACMEIssuer) DeepCopyInto ¶
func (in *ACMEIssuer) DeepCopyInto(out *ACMEIssuer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ACMEIssuerDNS01ProviderAcmeDNS ¶
type ACMEIssuerDNS01ProviderAcmeDNS struct { Host string `json:"host"` AccountSecret cmmeta.SecretKeySelector `json:"accountSecretRef"` }
ACMEIssuerDNS01ProviderAcmeDNS is a structure containing the configuration for ACME-DNS servers
func (*ACMEIssuerDNS01ProviderAcmeDNS) DeepCopy ¶
func (in *ACMEIssuerDNS01ProviderAcmeDNS) DeepCopy() *ACMEIssuerDNS01ProviderAcmeDNS
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ACMEIssuerDNS01ProviderAcmeDNS.
func (*ACMEIssuerDNS01ProviderAcmeDNS) DeepCopyInto ¶
func (in *ACMEIssuerDNS01ProviderAcmeDNS) DeepCopyInto(out *ACMEIssuerDNS01ProviderAcmeDNS)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ACMEIssuerDNS01ProviderAkamai ¶
type ACMEIssuerDNS01ProviderAkamai struct { ServiceConsumerDomain string `json:"serviceConsumerDomain"` ClientToken cmmeta.SecretKeySelector `json:"clientTokenSecretRef"` ClientSecret cmmeta.SecretKeySelector `json:"clientSecretSecretRef"` AccessToken cmmeta.SecretKeySelector `json:"accessTokenSecretRef"` }
ACMEIssuerDNS01ProviderAkamai is a structure containing the DNS configuration for Akamai DNS—Zone Record Management API
func (*ACMEIssuerDNS01ProviderAkamai) DeepCopy ¶
func (in *ACMEIssuerDNS01ProviderAkamai) DeepCopy() *ACMEIssuerDNS01ProviderAkamai
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ACMEIssuerDNS01ProviderAkamai.
func (*ACMEIssuerDNS01ProviderAkamai) DeepCopyInto ¶
func (in *ACMEIssuerDNS01ProviderAkamai) DeepCopyInto(out *ACMEIssuerDNS01ProviderAkamai)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ACMEIssuerDNS01ProviderAzureDNS ¶
type ACMEIssuerDNS01ProviderAzureDNS struct { // if both this and ClientSecret are left unset MSI will be used // +optional ClientID string `json:"clientID,omitempty"` // if both this and ClientID are left unset MSI will be used // +optional ClientSecret *cmmeta.SecretKeySelector `json:"clientSecretSecretRef,omitempty"` SubscriptionID string `json:"subscriptionID"` // when specifying ClientID and ClientSecret then this field is also needed // +optional TenantID string `json:"tenantID,omitempty"` ResourceGroupName string `json:"resourceGroupName"` // +optional HostedZoneName string `json:"hostedZoneName,omitempty"` // +optional Environment AzureDNSEnvironment `json:"environment,omitempty"` }
ACMEIssuerDNS01ProviderAzureDNS is a structure containing the configuration for Azure DNS
func (*ACMEIssuerDNS01ProviderAzureDNS) DeepCopy ¶
func (in *ACMEIssuerDNS01ProviderAzureDNS) DeepCopy() *ACMEIssuerDNS01ProviderAzureDNS
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ACMEIssuerDNS01ProviderAzureDNS.
func (*ACMEIssuerDNS01ProviderAzureDNS) DeepCopyInto ¶
func (in *ACMEIssuerDNS01ProviderAzureDNS) DeepCopyInto(out *ACMEIssuerDNS01ProviderAzureDNS)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ACMEIssuerDNS01ProviderCloudDNS ¶
type ACMEIssuerDNS01ProviderCloudDNS struct { // +optional ServiceAccount *cmmeta.SecretKeySelector `json:"serviceAccountSecretRef,omitempty"` Project string `json:"project"` // HostedZoneName is an optional field that tells cert-manager in which // Cloud DNS zone the challenge record has to be created. // If left empty cert-manager will automatically choose a zone. // +optional HostedZoneName string `json:"hostedZoneName,omitempty"` }
ACMEIssuerDNS01ProviderCloudDNS is a structure containing the DNS configuration for Google Cloud DNS
func (*ACMEIssuerDNS01ProviderCloudDNS) DeepCopy ¶
func (in *ACMEIssuerDNS01ProviderCloudDNS) DeepCopy() *ACMEIssuerDNS01ProviderCloudDNS
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ACMEIssuerDNS01ProviderCloudDNS.
func (*ACMEIssuerDNS01ProviderCloudDNS) DeepCopyInto ¶
func (in *ACMEIssuerDNS01ProviderCloudDNS) DeepCopyInto(out *ACMEIssuerDNS01ProviderCloudDNS)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ACMEIssuerDNS01ProviderCloudflare ¶
type ACMEIssuerDNS01ProviderCloudflare struct { // Email of the account, only required when using API key based authentication. // +optional Email string `json:"email,omitempty"` // API key to use to authenticate with Cloudflare. // Note: using an API token to authenticate is now the recommended method // as it allows greater control of permissions. // +optional APIKey *cmmeta.SecretKeySelector `json:"apiKeySecretRef,omitempty"` // API token used to authenticate with Cloudflare. // +optional APIToken *cmmeta.SecretKeySelector `json:"apiTokenSecretRef,omitempty"` }
ACMEIssuerDNS01ProviderCloudflare is a structure containing the DNS configuration for Cloudflare. One of `apiKeySecretRef` or `apiTokenSecretRef` must be provided.
func (*ACMEIssuerDNS01ProviderCloudflare) DeepCopy ¶
func (in *ACMEIssuerDNS01ProviderCloudflare) DeepCopy() *ACMEIssuerDNS01ProviderCloudflare
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ACMEIssuerDNS01ProviderCloudflare.
func (*ACMEIssuerDNS01ProviderCloudflare) DeepCopyInto ¶
func (in *ACMEIssuerDNS01ProviderCloudflare) DeepCopyInto(out *ACMEIssuerDNS01ProviderCloudflare)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ACMEIssuerDNS01ProviderDigitalOcean ¶
type ACMEIssuerDNS01ProviderDigitalOcean struct {
Token cmmeta.SecretKeySelector `json:"tokenSecretRef"`
}
ACMEIssuerDNS01ProviderDigitalOcean is a structure containing the DNS configuration for DigitalOcean Domains
func (*ACMEIssuerDNS01ProviderDigitalOcean) DeepCopy ¶
func (in *ACMEIssuerDNS01ProviderDigitalOcean) DeepCopy() *ACMEIssuerDNS01ProviderDigitalOcean
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ACMEIssuerDNS01ProviderDigitalOcean.
func (*ACMEIssuerDNS01ProviderDigitalOcean) DeepCopyInto ¶
func (in *ACMEIssuerDNS01ProviderDigitalOcean) DeepCopyInto(out *ACMEIssuerDNS01ProviderDigitalOcean)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ACMEIssuerDNS01ProviderRFC2136 ¶
type ACMEIssuerDNS01ProviderRFC2136 struct { // The IP address or hostname of an authoritative DNS server supporting // RFC2136 in the form host:port. If the host is an IPv6 address it must be // enclosed in square brackets (e.g [2001:db8::1]) ; port is optional. // This field is required. Nameserver string `json:"nameserver"` // The name of the secret containing the TSIG value. // If “tsigKeyName“ is defined, this field is required. // +optional TSIGSecret cmmeta.SecretKeySelector `json:"tsigSecretSecretRef,omitempty"` // The TSIG Key name configured in the DNS. // If “tsigSecretSecretRef“ is defined, this field is required. // +optional TSIGKeyName string `json:"tsigKeyName,omitempty"` // The TSIG Algorithm configured in the DNS supporting RFC2136. Used only // when “tsigSecretSecretRef“ and “tsigKeyName“ are defined. // Supported values are (case-insensitive): “HMACMD5“ (default), // “HMACSHA1“, “HMACSHA256“ or “HMACSHA512“. // +optional TSIGAlgorithm string `json:"tsigAlgorithm,omitempty"` }
ACMEIssuerDNS01ProviderRFC2136 is a structure containing the configuration for RFC2136 DNS
func (*ACMEIssuerDNS01ProviderRFC2136) DeepCopy ¶
func (in *ACMEIssuerDNS01ProviderRFC2136) DeepCopy() *ACMEIssuerDNS01ProviderRFC2136
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ACMEIssuerDNS01ProviderRFC2136.
func (*ACMEIssuerDNS01ProviderRFC2136) DeepCopyInto ¶
func (in *ACMEIssuerDNS01ProviderRFC2136) DeepCopyInto(out *ACMEIssuerDNS01ProviderRFC2136)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ACMEIssuerDNS01ProviderRoute53 ¶
type ACMEIssuerDNS01ProviderRoute53 struct { // The AccessKeyID is used for authentication. If not set we fall-back to using env vars, shared credentials file or AWS Instance metadata // see: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials // +optional AccessKeyID string `json:"accessKeyID,omitempty"` // The SecretAccessKey is used for authentication. If not set we fall-back to using env vars, shared credentials file or AWS Instance metadata // https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials // +optional SecretAccessKey cmmeta.SecretKeySelector `json:"secretAccessKeySecretRef"` // Role is a Role ARN which the Route53 provider will assume using either the explicit credentials AccessKeyID/SecretAccessKey // or the inferred credentials from environment variables, shared credentials file or AWS Instance metadata // +optional Role string `json:"role,omitempty"` // If set, the provider will manage only this zone in Route53 and will not do an lookup using the route53:ListHostedZonesByName api call. // +optional HostedZoneID string `json:"hostedZoneID,omitempty"` // Always set the region when using AccessKeyID and SecretAccessKey Region string `json:"region"` }
ACMEIssuerDNS01ProviderRoute53 is a structure containing the Route 53 configuration for AWS
func (*ACMEIssuerDNS01ProviderRoute53) DeepCopy ¶
func (in *ACMEIssuerDNS01ProviderRoute53) DeepCopy() *ACMEIssuerDNS01ProviderRoute53
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ACMEIssuerDNS01ProviderRoute53.
func (*ACMEIssuerDNS01ProviderRoute53) DeepCopyInto ¶
func (in *ACMEIssuerDNS01ProviderRoute53) DeepCopyInto(out *ACMEIssuerDNS01ProviderRoute53)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ACMEIssuerDNS01ProviderWebhook ¶
type ACMEIssuerDNS01ProviderWebhook struct { // The API group name that should be used when POSTing ChallengePayload // resources to the webhook apiserver. // This should be the same as the GroupName specified in the webhook // provider implementation. GroupName string `json:"groupName"` // The name of the solver to use, as defined in the webhook provider // implementation. // This will typically be the name of the provider, e.g. 'cloudflare'. SolverName string `json:"solverName"` // Additional configuration that should be passed to the webhook apiserver // when challenges are processed. // This can contain arbitrary JSON data. // Secret values should not be specified in this stanza. // If secret values are needed (e.g. credentials for a DNS service), you // should use a SecretKeySelector to reference a Secret resource. // For details on the schema of this field, consult the webhook provider // implementation's documentation. // +optional Config *apiextensionsv1.JSON `json:"config,omitempty"` }
ACMEIssuerDNS01ProviderWebhook specifies configuration for a webhook DNS01 provider, including where to POST ChallengePayload resources.
func (*ACMEIssuerDNS01ProviderWebhook) DeepCopy ¶
func (in *ACMEIssuerDNS01ProviderWebhook) DeepCopy() *ACMEIssuerDNS01ProviderWebhook
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ACMEIssuerDNS01ProviderWebhook.
func (*ACMEIssuerDNS01ProviderWebhook) DeepCopyInto ¶
func (in *ACMEIssuerDNS01ProviderWebhook) DeepCopyInto(out *ACMEIssuerDNS01ProviderWebhook)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ACMEIssuerStatus ¶
type ACMEIssuerStatus struct { // URI is the unique account identifier, which can also be used to retrieve // account details from the CA // +optional URI string `json:"uri,omitempty"` // LastRegisteredEmail is the email associated with the latest registered // ACME account, in order to track changes made to registered account // associated with the Issuer // +optional LastRegisteredEmail string `json:"lastRegisteredEmail,omitempty"` }
func (*ACMEIssuerStatus) DeepCopy ¶
func (in *ACMEIssuerStatus) DeepCopy() *ACMEIssuerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ACMEIssuerStatus.
func (*ACMEIssuerStatus) DeepCopyInto ¶
func (in *ACMEIssuerStatus) DeepCopyInto(out *ACMEIssuerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AzureDNSEnvironment ¶
type AzureDNSEnvironment string
+kubebuilder:validation:Enum=AzurePublicCloud;AzureChinaCloud;AzureGermanCloud;AzureUSGovernmentCloud
const ( AzurePublicCloud AzureDNSEnvironment = "AzurePublicCloud" AzureChinaCloud AzureDNSEnvironment = "AzureChinaCloud" AzureGermanCloud AzureDNSEnvironment = "AzureGermanCloud" AzureUSGovernmentCloud AzureDNSEnvironment = "AzureUSGovernmentCloud" )
type CNAMEStrategy ¶
type CNAMEStrategy string
CNAMEStrategy configures how the DNS01 provider should handle CNAME records when found in DNS zones. By default, the None strategy will be applied (i.e. do not follow CNAMEs). +kubebuilder:validation:Enum=None;Follow
type CertificateDNSNameSelector ¶
type CertificateDNSNameSelector struct { // A label selector that is used to refine the set of certificate's that // this challenge solver will apply to. // +optional MatchLabels map[string]string `json:"matchLabels,omitempty"` // List of DNSNames that this solver will be used to solve. // If specified and a match is found, a dnsNames selector will take // precedence over a dnsZones selector. // If multiple solvers match with the same dnsNames value, the solver // with the most matching labels in matchLabels will be selected. // If neither has more matches, the solver defined earlier in the list // will be selected. // +optional DNSNames []string `json:"dnsNames,omitempty"` // List of DNSZones that this solver will be used to solve. // The most specific DNS zone match specified here will take precedence // over other DNS zone matches, so a solver specifying sys.example.com // will be selected over one specifying example.com for the domain // www.sys.example.com. // If multiple solvers match with the same dnsZones value, the solver // with the most matching labels in matchLabels will be selected. // If neither has more matches, the solver defined earlier in the list // will be selected. // +optional DNSZones []string `json:"dnsZones,omitempty"` }
CertificateDomainSelector selects certificates using a label selector, and can optionally select individual DNS names within those certificates. If both MatchLabels and DNSNames are empty, this selector will match all certificates and DNS names within them.
func (*CertificateDNSNameSelector) DeepCopy ¶
func (in *CertificateDNSNameSelector) DeepCopy() *CertificateDNSNameSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateDNSNameSelector.
func (*CertificateDNSNameSelector) DeepCopyInto ¶
func (in *CertificateDNSNameSelector) DeepCopyInto(out *CertificateDNSNameSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Challenge ¶
type Challenge struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec ChallengeSpec `json:"spec,omitempty"` Status ChallengeStatus `json:"status,omitempty"` }
Challenge is a type to represent a Challenge request with an ACME server +k8s:openapi-gen=true +kubebuilder:printcolumn:name="State",type="string",JSONPath=".status.state" +kubebuilder:printcolumn:name="Domain",type="string",JSONPath=".spec.dnsName" +kubebuilder:printcolumn:name="Reason",type="string",JSONPath=".status.reason",description="",priority=1 +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC." +kubebuilder:subresource:status +kubebuilder:resource:path=challenges
func (*Challenge) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Challenge.
func (*Challenge) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Challenge) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ChallengeList ¶
type ChallengeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Challenge `json:"items"` }
ChallengeList is a list of Challenges
func (*ChallengeList) DeepCopy ¶
func (in *ChallengeList) DeepCopy() *ChallengeList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChallengeList.
func (*ChallengeList) DeepCopyInto ¶
func (in *ChallengeList) DeepCopyInto(out *ChallengeList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ChallengeList) DeepCopyObject ¶
func (in *ChallengeList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ChallengeSpec ¶
type ChallengeSpec struct { // URL is the URL of the ACME Challenge resource for this challenge. // This can be used to lookup details about the status of this challenge. URL string `json:"url"` // AuthzURL is the URL to the ACME Authorization resource that this // challenge is a part of. AuthzURL string `json:"authzURL"` // DNSName is the identifier that this challenge is for, e.g. example.com. // If the requested DNSName is a 'wildcard', this field MUST be set to the // non-wildcard domain, e.g. for `*.example.com`, it must be `example.com`. DNSName string `json:"dnsName"` // Wildcard will be true if this challenge is for a wildcard identifier, // for example '*.example.com'. // +optional Wildcard bool `json:"wildcard"` // Type is the type of ACME challenge this resource represents. // One of "http-01" or "dns-01". Type ACMEChallengeType `json:"type"` // Token is the ACME challenge token for this challenge. // This is the raw value returned from the ACME server. Token string `json:"token"` // Key is the ACME challenge key for this challenge // For HTTP01 challenges, this is the value that must be responded with to // complete the HTTP01 challenge in the format: // `<private key JWK thumbprint>.<key from acme server for challenge>`. // For DNS01 challenges, this is the base64 encoded SHA256 sum of the // `<private key JWK thumbprint>.<key from acme server for challenge>` // text that must be set as the TXT record content. Key string `json:"key"` // Solver contains the domain solving configuration that should be used to // solve this challenge resource. Solver ACMEChallengeSolver `json:"solver"` // IssuerRef references a properly configured ACME-type Issuer which should // be used to create this Challenge. // If the Issuer does not exist, processing will be retried. // If the Issuer is not an 'ACME' Issuer, an error will be returned and the // Challenge will be marked as failed. IssuerRef cmmeta.ObjectReference `json:"issuerRef"` }
func (*ChallengeSpec) DeepCopy ¶
func (in *ChallengeSpec) DeepCopy() *ChallengeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChallengeSpec.
func (*ChallengeSpec) DeepCopyInto ¶
func (in *ChallengeSpec) DeepCopyInto(out *ChallengeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ChallengeStatus ¶
type ChallengeStatus struct { // Processing is used to denote whether this challenge should be processed // or not. // This field will only be set to true by the 'scheduling' component. // It will only be set to false by the 'challenges' controller, after the // challenge has reached a final state or timed out. // If this field is set to false, the challenge controller will not take // any more action. // +optional Processing bool `json:"processing"` // Presented will be set to true if the challenge values for this challenge // are currently 'presented'. // This *does not* imply the self check is passing. Only that the values // have been 'submitted' for the appropriate challenge mechanism (i.e. the // DNS01 TXT record has been presented, or the HTTP01 configuration has been // configured). // +optional Presented bool `json:"presented"` // Reason contains human readable information on why the Challenge is in the // current state. // +optional Reason string `json:"reason,omitempty"` // State contains the current 'state' of the challenge. // If not set, the state of the challenge is unknown. // +optional State State `json:"state,omitempty"` }
func (*ChallengeStatus) DeepCopy ¶
func (in *ChallengeStatus) DeepCopy() *ChallengeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChallengeStatus.
func (*ChallengeStatus) DeepCopyInto ¶
func (in *ChallengeStatus) DeepCopyInto(out *ChallengeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HMACKeyAlgorithm ¶ added in v0.13.0
type HMACKeyAlgorithm string
HMACKeyAlgorithm is the name of a key algorithm used for HMAC encryption +kubebuilder:validation:Enum=HS256;HS384;HS512
const ( HS256 HMACKeyAlgorithm = "HS256" HS384 HMACKeyAlgorithm = "HS384" HS512 HMACKeyAlgorithm = "HS512" )
type Order ¶
type Order struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec OrderSpec `json:"spec,omitempty"` Status OrderStatus `json:"status,omitempty"` }
Order is a type to represent an Order with an ACME server +k8s:openapi-gen=true
func (*Order) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Order.
func (*Order) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Order) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type OrderList ¶
type OrderList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Order `json:"items"` }
OrderList is a list of Orders
func (*OrderList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OrderList.
func (*OrderList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*OrderList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type OrderSpec ¶
type OrderSpec struct { // Certificate signing request bytes in DER encoding. // This will be used when finalizing the order. // This field must be set on the order. CSR []byte `json:"csr"` // IssuerRef references a properly configured ACME-type Issuer which should // be used to create this Order. // If the Issuer does not exist, processing will be retried. // If the Issuer is not an 'ACME' Issuer, an error will be returned and the // Order will be marked as failed. IssuerRef cmmeta.ObjectReference `json:"issuerRef"` // CommonName is the common name as specified on the DER encoded CSR. // If specified, this value must also be present in `dnsNames` or `ipAddresses`. // This field must match the corresponding field on the DER encoded CSR. // +optional CommonName string `json:"commonName,omitempty"` // DNSNames is a list of DNS names that should be included as part of the Order // validation process. // This field must match the corresponding field on the DER encoded CSR. //+optional DNSNames []string `json:"dnsNames,omitempty"` // IPAddresses is a list of IP addresses that should be included as part of the Order // validation process. // This field must match the corresponding field on the DER encoded CSR. // +optional IPAddresses []string `json:"ipAddresses,omitempty"` // Duration is the duration for the not after date for the requested certificate. // this is set on order creation as pe the ACME spec. // +optional Duration *metav1.Duration `json:"duration,omitempty"` }
func (*OrderSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OrderSpec.
func (*OrderSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OrderStatus ¶
type OrderStatus struct { // URL of the Order. // This will initially be empty when the resource is first created. // The Order controller will populate this field when the Order is first processed. // This field will be immutable after it is initially set. // +optional URL string `json:"url,omitempty"` // FinalizeURL of the Order. // This is used to obtain certificates for this order once it has been completed. // +optional FinalizeURL string `json:"finalizeURL,omitempty"` // Authorizations contains data returned from the ACME server on what // authorizations must be completed in order to validate the DNS names // specified on the Order. // +optional Authorizations []ACMEAuthorization `json:"authorizations,omitempty"` // Certificate is a copy of the PEM encoded certificate for this Order. // This field will be populated after the order has been successfully // finalized with the ACME server, and the order has transitioned to the // 'valid' state. // +optional Certificate []byte `json:"certificate,omitempty"` // State contains the current state of this Order resource. // States 'success' and 'expired' are 'final' // +optional State State `json:"state,omitempty"` // Reason optionally provides more information about a why the order is in // the current state. // +optional Reason string `json:"reason,omitempty"` // FailureTime stores the time that this order failed. // This is used to influence garbage collection and back-off. // +optional FailureTime *metav1.Time `json:"failureTime,omitempty"` }
func (*OrderStatus) DeepCopy ¶
func (in *OrderStatus) DeepCopy() *OrderStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OrderStatus.
func (*OrderStatus) DeepCopyInto ¶
func (in *OrderStatus) DeepCopyInto(out *OrderStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type State ¶
type State string
State represents the state of an ACME resource, such as an Order. The possible options here map to the corresponding values in the ACME specification. Full details of these values can be found here: https://tools.ietf.org/html/draft-ietf-acme-acme-15#section-7.1.6 Clients utilising this type must also gracefully handle unknown values, as the contents of this enumeration may be added to over time. +kubebuilder:validation:Enum=valid;ready;pending;processing;invalid;expired;errored
const ( // Unknown is not a real state as part of the ACME spec. // It is used to represent an unrecognised value. Unknown State = "" // Valid signifies that an ACME resource is in a valid state. // If an order is 'valid', it has been finalized with the ACME server and // the certificate can be retrieved from the ACME server using the // certificate URL stored in the Order's status subresource. // This is a final state. Valid State = "valid" // Ready signifies that an ACME resource is in a ready state. // If an order is 'ready', all of its challenges have been completed // successfully and the order is ready to be finalized. // Once finalized, it will transition to the Valid state. // This is a transient state. Ready State = "ready" // Pending signifies that an ACME resource is still pending and is not yet ready. // If an Order is marked 'Pending', the validations for that Order are still in progress. // This is a transient state. Pending State = "pending" // Processing signifies that an ACME resource is being processed by the server. // If an Order is marked 'Processing', the validations for that Order are currently being processed. // This is a transient state. Processing State = "processing" // Invalid signifies that an ACME resource is invalid for some reason. // If an Order is marked 'invalid', one of its validations be have invalid for some reason. // This is a final state. Invalid State = "invalid" // Expired signifies that an ACME resource has expired. // If an Order is marked 'Expired', one of its validations may have expired or the Order itself. // This is a final state. Expired State = "expired" // Errored signifies that the ACME resource has errored for some reason. // This is a catch-all state, and is used for marking internal cert-manager // errors such as validation failures. // This is a final state. Errored State = "errored" )