change annotations to certimage.

This commit is contained in:
Roy 2024-10-24 17:06:57 +07:00 committed by GitHub
parent 9f6ea410af
commit 5411b9cb92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -74,9 +74,9 @@ func (d *K8sSecretDeployer) Deploy(ctx context.Context) error {
ObjectMeta: k8sMetaV1.ObjectMeta{ ObjectMeta: k8sMetaV1.ObjectMeta{
Name: secretName, Name: secretName,
Annotations: map[string]string{ Annotations: map[string]string{
"cert-manager.io/alt-names": d.option.Domain, "certimage/alt-names": d.option.Domain,
"cert-manager.io/common-name": d.option.Domain, "certimage/common-name": d.option.Domain,
"cert-manager.io/issuer-name": d.option.DeployConfig.Id, "certimage/issuer-name": d.option.DeployConfig.Id,
}, },
}, },
Type: corev1.SecretType("kubernetes.io/tls"), Type: corev1.SecretType("kubernetes.io/tls"),