sriov webhooks to reload the renewed certificate. #348
Reference in New Issue
Block a user
Delete Branch "antaloala/Factory:edge-1759"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR provides patches for each of the 2 rpms used to build the 2 sriov related webhooks, so these webhooks can automatically detect and reload renewed certificates; these patches are based on already merged but not-yet-released commits in the related upstream related repos:
Resulting webhook images (built from those 2 patched rpms) have been tested in a suse-edge 3.4 release running on top of an SLM6.2 instance and with a pre-3.5 sriov-network-operator deployed Helm chart (so using the bumped sriov images planned for 3.5)
cmctltool to force the cert renewal); the operator-webhook is invoked through akubectl applycommand trying to create a wrongSriovNetworkAPI object (what invokes this webhook in its role of Validating webhook) and the network-resources-injector webhook is invoked through akubectl applycommand trying to create a pod which refers to multus NADs reated to some (previously created) SRIOV VF networks but not asking for the related VFs in the.spec.resources.request|limitsstanza (so expecting this mutating webhook to add them).kubectl logs -fcommands are being run in parallel for each of these webhook pods to see the logs reporting, after the cert renewal, thatbad TLS certsare being received at invokation.kubectl edit-ing thesriov-network-operatordeployment API object (re-setting the value of the two involved env vars to now point to the new webhook container images just built) I repeated the same test, seeing (through the logs) that now the 2 sriov-related webook processes can automatically detect and reload the updated/renewed tls material (once kubelet detects the updated cert-related secret and re-bind_mount them in the webhook pods' mount namespace).WIP: sriov webhooks to reload the renewed certificate.to sriov webhooks to reload the renewed certificate.LGTM, some nits for better clarity.
@@ -24,6 +24,8 @@ License: Apache-2.0URL: https://github.com/k8snetworkplumbingwg/network-resources-injectorSource: %{name}-%{version}.tarSource1: vendor.tar.gz# Patch1 below added as we wait for next upstrean release v1.9.0 (providing it) to comenit: can you add a link to the PR you are backporting here ?
@@ -24,6 +24,8 @@ License: Apache-2.0URL: https://github.com/k8snetworkplumbingwg/sriov-network-operatorSource: sriov-network-operator-%{version}.tarSource1: vendor.tar.gz# Patch1 below added as we wait for next upstrean release v1.7.0 (providing it) to comenit: can you add a link to the PR you are backporting here ?
0ca79320f9toa164be3522