Commit d653c92
committed
frr-k8s: Only render ValidatingWebhookConfiguration when CA is available
The ValidatingWebhookConfiguration requires a valid caBundle to verify
the webhook's TLS certificate. The caBundle comes from a ConfigMap
created by the OperatorPKI controller.
On the first reconcile, the OperatorPKI CR is created but the CA
ConfigMap doesn't exist yet. If we render the VWC with an empty
caBundle, the API server will reject all webhook calls with:
x509: certificate signed by unknown authority
Fix this by only rendering the VWC when the CA bundle is available.
CNO will keep reconciling, and once the OperatorPKI generates the CA
ConfigMap, the next reconcile will render the VWC with the correct
caBundle.
Signed-off-by: Riccardo Ravaioli <rravaiol@redhat.com>1 parent a0abdd6 commit d653c92
File tree
2 files changed
+4
-1
lines changed- bindata/network/frr-k8s
- pkg/network
2 files changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| 40 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
638 | 638 | | |
639 | 639 | | |
640 | 640 | | |
641 | | - | |
| 641 | + | |
| 642 | + | |
642 | 643 | | |
643 | 644 | | |
644 | 645 | | |
| |||
0 commit comments