Documentation ¶
Index ¶
- Constants
- type Solver
- func (s *Solver) CleanUp(ctx context.Context, crt *v1alpha1.Certificate, domain, token, key string) error
- func (s *Solver) Present(ctx context.Context, crt *v1alpha1.Certificate, domain, token, key string) error
- func (s *Solver) Wait(ctx context.Context, crt *v1alpha1.Certificate, domain, token, key string) error
Constants ¶
View Source
const ( // HTTP01Timeout is the max amount of time to wait for an HTTP01 challenge // to succeed HTTP01Timeout = time.Minute * 15 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Solver ¶
type Solver struct {
// contains filtered or unexported fields
}
Solver is an implementation of the acme http-01 challenge solver protocol
func NewSolver ¶
func NewSolver(issuer v1alpha1.GenericIssuer, client kubernetes.Interface, secretLister corev1listers.SecretLister, solverImage string) *Solver
NewSolver returns a new ACME HTTP01 solver for the given Issuer and client.
func (*Solver) CleanUp ¶
func (s *Solver) CleanUp(ctx context.Context, crt *v1alpha1.Certificate, domain, token, key string) error
CleanUp will ensure the created service and ingress are clean/deleted of any cert-manager created data.
func (*Solver) Present ¶
func (s *Solver) Present(ctx context.Context, crt *v1alpha1.Certificate, domain, token, key string) error
Present will create the required service, update/create the required ingress and created a Kubernetes Pod to solve the HTTP01 challenge
func (*Solver) Wait ¶
func (s *Solver) Wait(ctx context.Context, crt *v1alpha1.Certificate, domain, token, key string) error
Wait will continuously test if the ingress controller has updated it's routes to include the HTTP01 challenge path, or return with an error if the context deadline is exceeded.
Click to show internal directories.
Click to hide internal directories.