-
Notifications
You must be signed in to change notification settings - Fork 785
/
resources.go
57 lines (55 loc) · 1.22 KB
/
resources.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package certmanager
var (
Cert_manager_certificate = `
apiVersion: certmanager.k8s.io/v1alpha1
kind: Certificate
metadata:
name: %s
spec:
secretName: tls-jx-cert
issuerRef:
name: %s
kind: Issuer
commonName: %s
acme:
config:
- http01:
ingressClass: nginx
domains:
- %s
`
Cert_manager_issuer_prod = `
apiVersion: certmanager.k8s.io/v1alpha1
kind: Issuer
metadata:
name: letsencrypt-prod
spec:
acme:
# The ACME server URL
server: https://acme-v02.api.letsencrypt.org/directory
# Email address used for ACME registration
email: %s
# Name of a secret used to store the ACME account private key
privateKeySecretRef:
name: letsencrypt-prod
# Enable the HTTP-01 challenge provider
http01: {}
`
Cert_manager_issuer_stage = `
apiVersion: certmanager.k8s.io/v1alpha1
kind: Issuer
metadata:
name: letsencrypt-staging
spec:
acme:
# The ACME server URL
server: https://acme-staging-v02.api.letsencrypt.org/directory
# Email address used for ACME registration
email: %s
# Name of a secret used to store the ACME account private key
privateKeySecretRef:
name: letsencrypt-staging
# Enable the HTTP-01 challenge provider
http01: {}
`
)