forked from jetstack/kube-lego
-
Notifications
You must be signed in to change notification settings - Fork 0
/
consts.go
28 lines (23 loc) · 1.15 KB
/
consts.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package kubelego
import (
k8sApi "k8s.io/client-go/pkg/api/v1"
)
const RsaKeySize = 2048
const AcmeRegistration = "acme-registration.json"
const AcmeRegistrationUrl = "acme-registration-url"
const AcmePrivateKey = k8sApi.TLSPrivateKeyKey
const AcmeHttpChallengePath = "/.well-known/acme-challenge"
const AcmeHttpSelfTest = "/.well-known/acme-challenge/_selftest"
const TLSCertKey = k8sApi.TLSCertKey
const TLSPrivateKeyKey = k8sApi.TLSPrivateKeyKey
const TLSCaKey = "ca.crt"
const AnnotationIngressChallengeEndpoints = "kubernetes.io/tls-acme-challenge-endpoints"
const AnnotationIngressChallengeEndpointsHash = "kubernetes.io/tls-acme-challenge-endpoints-hash"
const AnnotationIngressClass = "kubernetes.io/ingress.class"
const AnnotationIngressProvider = "kubernetes.io/ingress.provider"
const AnnotationSslRedirect = "ingress.kubernetes.io/ssl-redirect"
const AnnotationKubeLegoManaged = "kubernetes.io/kube-lego-managed"
const AnnotationWhitelistSourceRange = "ingress.kubernetes.io/whitelist-source-range"
var SupportedIngressClasses = []string{"nginx", "gce"}
var SupportedIngressProviders = []string{"nginx", "gce"}
var AnnotationEnabled = "kubernetes.io/tls-acme"