refactor: 1

master
xiaojunnuo 2021-01-08 15:45:31 +08:00
parent 30cd62664b
commit 4739d75f4a
3 changed files with 5 additions and 4 deletions

View File

@ -85,7 +85,7 @@ export class DeployCertToTencentCDN extends AbstractTencentPlugin {
buildParams (props, context, cert) {
const { domainName, from } = props
const { tencentCertId } = context
this.logger.info('部署腾讯云证书ID:', tencentCertId)
const params = {
Https: {
Switch: 'on',

View File

@ -128,7 +128,7 @@ export class DeployCertToTencentCLB extends AbstractTencentPlugin {
buildProps (props, context, cert) {
const { certName } = props
const { tencentCertId } = context
this.logger.info('部署腾讯云证书ID:', tencentCertId)
const params = {
Certificate: {
SSLMode: 'UNIDIRECTIONAL', // 单向认证

View File

@ -123,6 +123,7 @@ export class DeployCertToTencentTKEIngress extends AbstractTencentPlugin {
if (tencentCertId == null) {
throw new Error('请先将【上传证书到腾讯云】作为前置任务')
}
this.logger.info('腾讯云证书ID:', tencentCertId)
const certIdBase64 = Buffer.from(tencentCertId).toString('base64')
const { namespace, secretName } = props