added repo

This commit is contained in:
Your Name
2026-08-26 03:39:42 +05:30
parent 45c25a95af
commit b8575bb8b9
6889 changed files with 1217125 additions and 0 deletions
@@ -0,0 +1,47 @@
suite: test operator webhook
templates:
- templates/webhook.yaml
tests:
- it: should render clientConfig.caBundle when certs are managed by the user
set:
webhook:
manageCerts: false
caBundle: Y2VydGlmaWNhdGU=
asserts:
- documentIndex: 0
isKind:
of: ValidatingWebhookConfiguration
- documentIndex: 0
equal:
path: webhooks[0].clientConfig.caBundle
value: Y2VydGlmaWNhdGU=
- documentIndex: 0
equal:
path: webhooks[12].clientConfig.caBundle
value: Y2VydGlmaWNhdGU=
- it: should NOT render clientConfig.caBundle when certs are managed by the operator
set:
webhook:
manageCerts: true
caBundle: Cg==
asserts:
- documentIndex: 0
isKind:
of: ValidatingWebhookConfiguration
- documentIndex: 0
notExists:
path: webhooks[0].clientConfig.caBundle
- it: should NOT render webhook clientConfig.caBundle when certs are managed by the cert manager
set:
webhook:
manageCerts: false
certManagerCert: "cert-manager-cert"
caBundle: Cg==
asserts:
- documentIndex: 0
isKind:
of: ValidatingWebhookConfiguration
- documentIndex: 0
notExists:
path: webhooks[0].clientConfig.caBundle