Skip to content

Commit b5eed3c

Browse files
authored
Merge pull request #8 from jianxiaoguo/master
chore(Certificate):upgrade version cert-manager.io/v1alpha2
2 parents d1ce991 + 11c3253 commit b5eed3c

2 files changed

Lines changed: 16 additions & 11 deletions

File tree

charts/controller/templates/controller-certificate.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ spec:
1111
kind: ClusterIssuer
1212
dnsNames:
1313
- drycc.{{ .Values.platform_domain }}
14+
# privateKey:
15+
# rotationPolicy: Always
1416
# acme:
1517
# config:
1618
# - http01:

rootfs/scheduler/resources/certificate.py

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44

55
class Certificate(Resource):
6-
api_version = 'certmanager.k8s.io/v1alpha1'
6+
api_version = 'cert-manager.io/v1alpha2'
77
api_prefix = 'apis'
88

99
def manifest(self, api_version, namespace, name, ingress_class, hosts, version=None):
@@ -21,16 +21,19 @@ def manifest(self, api_version, namespace, name, ingress_class, hosts, version=N
2121
"kind": "ClusterIssuer"
2222
},
2323
"dnsNames": hosts,
24-
"acme": {
25-
"config": [
26-
{
27-
"http01": {
28-
"ingressClass": ingress_class
29-
},
30-
"domains": hosts
31-
}
32-
]
33-
}
24+
# "privateKey": {
25+
# "rotationPolicy": "Always"
26+
# }
27+
# "acme": {
28+
# "config": [
29+
# {
30+
# "http01": {
31+
# "ingressClass": ingress_class
32+
# },
33+
# "domains": hosts
34+
# }
35+
# ]
36+
# }
3437
}
3538
}
3639
if version:

0 commit comments

Comments
 (0)