Skip to content

Commit

Permalink
Merge pull request teamhephy#8 from jianxiaoguo/master
Browse files Browse the repository at this point in the history
chore(Certificate):upgrade version cert-manager.io/v1alpha2
  • Loading branch information
duanhongyi authored Aug 6, 2020
2 parents d1ce991 + 11c3253 commit b5eed3c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
2 changes: 2 additions & 0 deletions charts/controller/templates/controller-certificate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ spec:
kind: ClusterIssuer
dnsNames:
- drycc.{{ .Values.platform_domain }}
# privateKey:
# rotationPolicy: Always
# acme:
# config:
# - http01:
Expand Down
25 changes: 14 additions & 11 deletions rootfs/scheduler/resources/certificate.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


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

def manifest(self, api_version, namespace, name, ingress_class, hosts, version=None):
Expand All @@ -21,16 +21,19 @@ def manifest(self, api_version, namespace, name, ingress_class, hosts, version=N
"kind": "ClusterIssuer"
},
"dnsNames": hosts,
"acme": {
"config": [
{
"http01": {
"ingressClass": ingress_class
},
"domains": hosts
}
]
}
# "privateKey": {
# "rotationPolicy": "Always"
# }
# "acme": {
# "config": [
# {
# "http01": {
# "ingressClass": ingress_class
# },
# "domains": hosts
# }
# ]
# }
}
}
if version:
Expand Down

0 comments on commit b5eed3c

Please sign in to comment.