3030 of : Certificate
3131 - equal :
3232 path : spec.secretName
33- value : imp-webhook-tls
33+ value : RELEASE-NAME- imp-webhook-tls
3434 - contains :
3535 path : spec.dnsNames
3636 content : RELEASE-NAME-imp-operator.NAMESPACE.svc
4545 of : MutatingWebhookConfiguration
4646 - equal :
4747 path : metadata.annotations["cert-manager.io/inject-ca-from"]
48- value : NAMESPACE/imp-webhook-tls
48+ value : NAMESPACE/RELEASE-NAME- imp-webhook-tls
4949
5050 - it : ValidatingWebhookConfiguration has cainjector annotation
5151 template : templates/webhook/validatingwebhook.yaml
@@ -54,11 +54,37 @@ tests:
5454 of : ValidatingWebhookConfiguration
5555 - equal :
5656 path : metadata.annotations["cert-manager.io/inject-ca-from"]
57- value : NAMESPACE/imp-webhook-tls
57+ value : NAMESPACE/RELEASE-NAME- imp-webhook-tls
5858
5959 - it : ValidatingWebhookConfiguration has three webhooks
6060 template : templates/webhook/validatingwebhook.yaml
6161 asserts :
6262 - lengthEqual :
6363 path : webhooks
6464 count : 3
65+
66+ - it : Certificate uses custom issuerRef when provided
67+ template : templates/webhook/certificate.yaml
68+ set :
69+ webhook.certManager.issuerRef.name : my-issuer
70+ webhook.certManager.issuerRef.kind : ClusterIssuer
71+ webhook.certManager.issuerRef.group : cert-manager.io
72+ asserts :
73+ - equal :
74+ path : spec.issuerRef.name
75+ value : my-issuer
76+ - equal :
77+ path : spec.issuerRef.kind
78+ value : ClusterIssuer
79+
80+ - it : MutatingWebhookConfiguration has one webhook with correct path
81+ template : templates/webhook/mutatingwebhook.yaml
82+ asserts :
83+ - isKind :
84+ of : MutatingWebhookConfiguration
85+ - lengthEqual :
86+ path : webhooks
87+ count : 1
88+ - equal :
89+ path : webhooks[0].clientConfig.service.path
90+ value : /mutate-imp-dev-v1alpha1-impvm
0 commit comments