fix Certificate SANs

This commit is contained in:
kkb0318
2024-05-15 00:28:54 +09:00
parent 9f90f45b68
commit 0e56e4ffba
2 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ func myCertificate(base *baseManifestFactory) ([]client.Object, error) {
},
}
mutate := base.mutatingWebhookConfiguration()
mutate.Webhooks[0].ClientConfig.CABundle = []byte(tlsCredential.CaBundle())
mutate.Webhooks[0].ClientConfig.CABundle = tlsCredential.Certificate()
resources = append(resources,
secret,
deploy,