← Back to Pull requests

gocli, net-res-inj: Support readiness probe #1822

Merged
nirdothan merged 6 files (33 lines) on Oct 29, 2026 11:44 UTC
View on GitHub
nirdothan nirdothan commented on Aug 24, 2026 16:30 UTC
Author

<!-- Thanks for sending a pull request! Here are some tips for you:
1. Consider creating this PR as draft: https://github.com/kubevirt/kubevirt/blob/main/CONTRIBUTING.md#consider-opening-your-pull-request-as-draft
2. Follow the instructions for writing a release note from k8s: https://git.k8s.io/community/contributors/guide/release-notes.md
-->

What this PR does / why we need it:
Add readiness and liveness probes to deployment.
Bump image to the lastest image that includes [1], where readiness
probe was enhanced to actually test the mutating server status.

To date there is no tagged release that includes that functionality
therefore a commit tag is used as a temporary alternative
until network-reousrces-injector releases a 1.11 release.

Note: hack/bump-net-resources-injector.sh is not applicable
for this bump since it is not bumping to latest.
It is expected to work (and should be tested) in the next
bump to a tagged release.

Note: The discussion in [1] surfaced different opinions about how to implement a readiness probe for a TLS service endpoint: [2] suggested a TCP probe directly to the /mutate endpoint while the maintainers of the u/s project suggested a separate HTTP endpoint, but instead of dummy, have it fed with statuses from the real server.
The reader is welcome to asses both methods to determine which one is proffered.
The author of this PR is happy with both.

[1] https://github.com/k8snetworkplumbingwg/network-resources-injector/commit/33ab42f3854594227576ae1e2767f4aa4552b8ac
[2] https://github.com/kubevirt/kubevirtci/pull/1822#issuecomment-5436369483

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:
Using untagged upstream image because a tagged release is not expected soon.
Checklist

This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR.
Approvers are expected to review this list.

  • Design: A design document was considered and is present (link) or not required

  • PR: The PR description is expressive enough and will help future contributors

  • Code: Write code that humans can understand and Keep it simple

  • Refactor: You have left the code cleaner than you found it (Boy Scout Rule)

  • Upgrade: Impact of this change on upgrade flows was considered and addressed if required

  • Testing: New code requires new unit tests. New features and bug fixes require at least on e2e test

  • Documentation: A user-guide update was considered and is present (link) or not required. You want a user-guide update if it's a user facing feature / API change.

  • Community: Announcement to kubevirt-dev was considered
  • Release note:
    <!-- Write your release note:
    1. Enter your extended release note in the below block. If the PR requires additional action from users switching to the new release, include the string "action required".
    2. If no release note is required, just write "NONE".
    -->
    ``release-note
    NONE
    ``

    Diff: 33 lines (+25 / -8) across 6 files Reviewer: oshoval Review duration: 94753m
    All Vouch review confidence checks passed
    Residual risk 0.03 = Change Risk (0.31) × (1 − Review Confidence (0.89)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.31 · 33 lines diff across 6 files
    0.31
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.86 · 5 substantive comment(s)
    0.86
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    89%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.211
    Real PR Conversation Timeline
    53 items
    nirdothan nirdothan commented on Aug 24, 2026 16:32 UTC
    Author

    /cc @orelmisan @frenzyfriday @oshoval

    dollierp dollierp commented on code on Aug 24, 2026 16:58 UTC
    Code Review
    cluster-provision/gocli/opts/network_resources_injector/manifests/server.yaml:1
    @@ -32,7 +32,7 @@ spec:
           serviceAccount: network-resources-injector-sa
           containers:
           - name: webhook-server
    -        image: ghcr.io/k8snetworkplumbingwg/network-resources-injector:v1.9.0
    +        image: ghcr.io/k8snetworkplumbingwg/network-resources-injector:603fe81f57fb9886388a0fd58901bf33380a34c2

    Files cluster-provision/k8s/1.3{4..7}/pre-pull-images need to be updated accordingly.

    nirdothan nirdothan commented on code on Aug 25, 2026 07:38 UTC
    Code Review
    cluster-provision/gocli/opts/network_resources_injector/manifests/server.yaml:1
    @@ -32,7 +32,7 @@ spec:
           serviceAccount: network-resources-injector-sa
           containers:
           - name: webhook-server
    -        image: ghcr.io/k8snetworkplumbingwg/network-resources-injector:v1.9.0
    +        image: ghcr.io/k8snetworkplumbingwg/network-resources-injector:603fe81f57fb9886388a0fd58901bf33380a34c2

    Done. Thanks.

    nirdothan nirdothan commented on Aug 25, 2026 11:27 UTC
    Author

    /retest-required

    oshoval oshoval commented on Aug 25, 2026 11:30 UTC
    Contributor

    Thanks

    worth to compare the values to the other network repos probes, unless you did that already,
    and to ask Ram / Quique to review as they found out some bugs while developing it

    nirdothan nirdothan commented on Aug 26, 2026 08:52 UTC
    Author

    /retest-required

    nirdothan nirdothan commented on Aug 26, 2026 08:55 UTC
    Author

    Thanks

    > worth to compare the values to the other network repos probes, unless you did that already, and to ask Ram / Quique to review as they found out some bugs while developing it

    I copied the values from https://github.com/k8snetworkplumbingwg/network-resources-injector/blob/603fe81f57fb9886388a0fd58901bf33380a34c2/deployments/server.yaml#L84.

    @RamLavi, @qinqon do you have any insights?

    dollierp dollierp commented on Aug 26, 2026 19:24 UTC
    Contributor

    /retest

    orelmisan orelmisan commented on code on Aug 27, 2026 07:38 UTC
    Code Review
    cluster-provision/gocli/opts/network_resources_injector/manifests/server.yaml:1
    @@ -32,7 +32,7 @@ spec:
           serviceAccount: network-resources-injector-sa
           containers:
           - name: webhook-server
    -        image: ghcr.io/k8snetworkplumbingwg/network-resources-injector:v1.9.0

    Commit message has a dangling footnote:

    Following [1] network-resourcs-injector now

    [1] is missing.

    nit: There is at least one typo.

    orelmisan orelmisan commented on code on Aug 27, 2026 07:46 UTC
    Code Review
    cluster-provision/gocli/opts/network_resources_injector/manifests/server.yaml:1
    @@ -32,7 +32,7 @@ spec:
           serviceAccount: network-resources-injector-sa
           containers:
           - name: webhook-server
    -        image: ghcr.io/k8snetworkplumbingwg/network-resources-injector:v1.9.0
    +        image: ghcr.io/k8snetworkplumbingwg/network-resources-injector:603fe81f57fb9886388a0fd58901bf33380a34c2

    Any reason for the commit tag over a digest? A digest is immutable, so the pre-pulled image stays exactly what CI validated, and it would match the other digest-pinned entries in pre-pull-images files.

            image: ghcr.io/k8snetworkplumbingwg/network-resources-injector@sha256:e8cae03bb83ab65f134315a57bb076b25121cc4635342fad1a4714c811639b59
    

    orelmisan orelmisan commented on Aug 27, 2026 07:55 UTC
    Reviewer

    Thank you for the PR @nirdothan!
    This is great!

    oshoval oshoval commented on code on Aug 27, 2026 08:14 UTC
    Code Review
    cluster-provision/gocli/opts/network_resources_injector/manifests/server.yaml:1
    @@ -32,7 +32,7 @@ spec:
           serviceAccount: network-resources-injector-sa
           containers:
           - name: webhook-server
    -        image: ghcr.io/k8snetworkplumbingwg/network-resources-injector:v1.9.0
    +        image: ghcr.io/k8snetworkplumbingwg/network-resources-injector:603fe81f57fb9886388a0fd58901bf33380a34c2

    note that CI uses imagePullPolicy: IfNotPresent
    so even if the image behind the tag is changed it won't help, moreover a tag shouldn't be overridden
    it is just nicer

    RamLavi RamLavi commented on Aug 27, 2026 08:22 UTC
    Contributor

    > Thanks

    > worth to compare the values to the other network repos probes, unless you did that already, and to ask Ram / Quique to review as they found out some bugs while developing it

    > I copied the values from https://github.com/k8snetworkplumbingwg/network-resources-injector/blob/603fe81f57fb9886388a0fd58901bf33380a34c2/deployments/server.yaml#L84.

    > @RamLavi, @qinqon do you have any insights?

    The timings matching CNAO (readiness 5/10, liveness 15/20) seem fine.

    The issue I have with this is in the endpoint, not the numbers. In the image this PR pins, /readyz is on the health server (:8444), always returns 200, and that server starts before TLS load / NAD cache / ListenAndServeTLS on :8443:

    https://github.com/k8snetworkplumbingwg/network-resources-injector/blob/603fe81f57fb9886388a0fd58901bf33380a34c2/cmd/webhook/main.go#L102-L116
    https://github.com/k8snetworkplumbingwg/network-resources-injector/blob/603fe81f57fb9886388a0fd58901bf33380a34c2/cmd/webhook/main.go#L162-L205

    The Service still targets 8443, so /readyz can succeed while apiserver still gets connection-refused on /mutate. initialDelaySeconds: 5 may hide that race; it does not close it.

    If kubevirtci needs a probe that actually means “webhook is listening”, a tcpSocket readiness probe on 8443 would match the admission port. Copying upstream /readyz as-is does not.

    orelmisan orelmisan commented on code on Aug 27, 2026 09:33 UTC
    Code Review
    cluster-provision/gocli/opts/network_resources_injector/manifests/server.yaml:1
    @@ -32,7 +32,7 @@ spec:
           serviceAccount: network-resources-injector-sa
           containers:
           - name: webhook-server
    -        image: ghcr.io/k8snetworkplumbingwg/network-resources-injector:v1.9.0
    +        image: ghcr.io/k8snetworkplumbingwg/network-resources-injector:603fe81f57fb9886388a0fd58901bf33380a34c2

    note that CI uses imagePullPolicy: IfNotPresent so even if the image behind the tag is changed it won't help, moreover a tag shouldn't be overridden it is just nicer

    @oshoval this specific manifest uses imagePullPolicy: Always.

    nirdothan nirdothan commented on Aug 27, 2026 09:56 UTC
    Author

    >If kubevirtci needs a probe that actually means “webhook is listening”, a tcpSocket readiness probe on 8443 would match the admission port. Copying upstream /readyz as-is does not.

    @RamLavi this is pure gold. Thanks!

    nirdothan nirdothan commented on Aug 27, 2026 09:57 UTC
    Author

    Addressed reviews from @RamLavi @oshoval and @orelmisan

    nirdothan nirdothan commented on code on Aug 27, 2026 09:58 UTC
    Code Review
    cluster-provision/gocli/opts/network_resources_injector/manifests/server.yaml:1
    @@ -32,7 +32,7 @@ spec:
           serviceAccount: network-resources-injector-sa
           containers:
           - name: webhook-server
    -        image: ghcr.io/k8snetworkplumbingwg/network-resources-injector:v1.9.0

    Changes commit message since the solution has changed.

    orelmisan orelmisan commented on code on Aug 27, 2026 10:00 UTC
    Code Review
    cluster-provision/k8s/1.35/pre-pull-images:1
    @@ -7,7 +7,7 @@ ghcr.io/flannel-io/flannel:v0.27.2
     ghcr.io/k8snetworkplumbingwg/multus-cni:v3.8
     ghcr.io/k8snetworkplumbingwg/multus-cni@sha256:a60a21ee1d00c9f215b0b2fa03b3d5e384ab7ddb9ea0d231d36aef220e95a69c
     ghcr.io/k8snetworkplumbingwg/multus-dynamic-networks-controller@sha256:2a2bb32c0ea8b232b3dbe81c0323a107e8b05f8cad06704fca2efd0d993a87be
    -ghcr.io/k8snetworkplumbingwg/network-resources-injector:v1.9.0
    +ghcr.io/k8snetworkplumbingwg/network-resources-injector:603fe81f57fb9886388a0fd58901bf33380a34c2

    SHA?
    Same bellow.

    oshoval oshoval commented on Aug 27, 2026 10:01 UTC
    Contributor

    there is a script that bumps net-res-inj
    worth to adapt it to do those changes as well please

    not sure why you changed the pullPolicy

    nirdothan nirdothan commented on code on Aug 27, 2026 10:01 UTC
    Code Review
    cluster-provision/gocli/opts/network_resources_injector/manifests/server.yaml:1
    @@ -32,7 +32,7 @@ spec:
           serviceAccount: network-resources-injector-sa
           containers:
           - name: webhook-server
    -        image: ghcr.io/k8snetworkplumbingwg/network-resources-injector:v1.9.0
    +        image: ghcr.io/k8snetworkplumbingwg/network-resources-injector:603fe81f57fb9886388a0fd58901bf33380a34c2

    @orelmisan I used the hash but not that one ^, because I fell back to v1.9.0 since the new readyz endpoint is redundant and we don't need it per https://github.com/kubevirt/kubevirtci/pull/1822#issuecomment-5436369483.

    @oshoval I misread your comment and changed the policy to IfNotPresent although that's not what you meant :) but I find it better anyway.

    orelmisan orelmisan commented on code on Aug 27, 2026 10:04 UTC
    Code Review
    cluster-provision/gocli/opts/network_resources_injector/manifests/server.yaml:1
    @@ -32,7 +32,7 @@ spec:
           serviceAccount: network-resources-injector-sa
           containers:
           - name: webhook-server
    -        image: ghcr.io/k8snetworkplumbingwg/network-resources-injector:v1.9.0
    +        image: ghcr.io/k8snetworkplumbingwg/network-resources-injector:603fe81f57fb9886388a0fd58901bf33380a34c2

    @orelmisan I used the hash but not that one ^, because I fell back to v1.9.0 since the new readyz endpoint is redundant and we don't need it per #1822 (comment).

    > @oshoval I misread your comment and changed the policy to IfNotPresent although that's not what you meant :) but I find it better anyway.

    If that is the case, I suggest retaining the released version tag.

    oshoval oshoval commented on code on Aug 27, 2026 10:05 UTC
    Code Review
    cluster-provision/gocli/opts/network_resources_injector/manifests/server.yaml:1
    @@ -32,7 +32,7 @@ spec:
           serviceAccount: network-resources-injector-sa
           containers:
           - name: webhook-server
    -        image: ghcr.io/k8snetworkplumbingwg/network-resources-injector:v1.9.0
    +        image: ghcr.io/k8snetworkplumbingwg/network-resources-injector:603fe81f57fb9886388a0fd58901bf33380a34c2

    Always doesnt pull if the image is there already and match the sha, so always is better
    a tag that is changed behind the scene (wrong if happens), doesnt repull with IfnotPresent

    i think the PR should do the minimal changes anyhow,
    please also update the bump script, else it becomes outdated

    nirdothan nirdothan commented on code on Aug 27, 2026 10:37 UTC
    Code Review
    cluster-provision/k8s/1.35/pre-pull-images:1
    @@ -7,7 +7,7 @@ ghcr.io/flannel-io/flannel:v0.27.2
     ghcr.io/k8snetworkplumbingwg/multus-cni:v3.8
     ghcr.io/k8snetworkplumbingwg/multus-cni@sha256:a60a21ee1d00c9f215b0b2fa03b3d5e384ab7ddb9ea0d231d36aef220e95a69c
     ghcr.io/k8snetworkplumbingwg/multus-dynamic-networks-controller@sha256:2a2bb32c0ea8b232b3dbe81c0323a107e8b05f8cad06704fca2efd0d993a87be
    -ghcr.io/k8snetworkplumbingwg/network-resources-injector:v1.9.0
    +ghcr.io/k8snetworkplumbingwg/network-resources-injector:603fe81f57fb9886388a0fd58901bf33380a34c2

    Aligned now with tags per @oshoval's request (which I don't see anymore) but is consistent with the bump script.

    nirdothan nirdothan commented on Aug 27, 2026 10:38 UTC
    Author

    there is a script that bumps net-res-inj worth to adapt it to do those changes as well please


    Reverted the hashes back to tags so bump script should work.

    not sure why you changed the pullPolicy

    Reverted back to Always

    oshoval oshoval commented on Aug 27, 2026 10:44 UTC
    Contributor

    Reverted the hashes back to tags so bump script should work.

    can you test it please ?
    any change that you did to the manifest must appear there, else it will lose on bump

    nirdothan nirdothan commented on Aug 31, 2026 15:45 UTC
    Author

    Fixed wrong port in readinessProbe.

    nirdothan nirdothan commented on code on Sep 01, 2026 08:57 UTC
    Code Review
    cluster-provision/gocli/opts/network_resources_injector/manifests/server.yaml:1
    @@ -32,7 +32,7 @@ spec:
           serviceAccount: network-resources-injector-sa
           containers:
           - name: webhook-server
    -        image: ghcr.io/k8snetworkplumbingwg/network-resources-injector:v1.9.0
    +        image: ghcr.io/k8snetworkplumbingwg/network-resources-injector:603fe81f57fb9886388a0fd58901bf33380a34c2

    @oshoval

  • SHA replaced with a tag

  • AFAIU Bump script does not need update since the image tag was eventually unchanged.

  • Please LMK if you are asking for any other changes

    nirdothan nirdothan commented on Sep 01, 2026 09:13 UTC
    Author

    > Reverted the hashes back to tags so bump script should work.

    > can you test it please ? any change that you did to the manifest must appear there, else it will lose on bump

    Having trouble ATM testing it due to ./cluster-provision/k8s/update-pre-pull-images.sh: line 36: rg: command not found and installation of rg is failing.
    Would appreciate if you could test it otherwise will install it later (need a reboot).

    oshoval oshoval commented on Sep 01, 2026 09:19 UTC
    Contributor

    > > Reverted the hashes back to tags so bump script should work.

    >

    >

    > can you test it please ? any change that you did to the manifest must appear there, else it will lose on bump

    > Having trouble ATM testing it due to ./cluster-provision/k8s/update-pre-pull-images.sh: line 36: rg: command not found and installation of rg is failing. Would appreciate if you could test it otherwise will install it later (need a reboot).

    i mean to test the bumper script
    the reason is not just the sha, it is all the other fields

    oshoval oshoval commented on code on Sep 01, 2026 09:19 UTC
    Code Review
    cluster-provision/gocli/opts/network_resources_injector/manifests/server.yaml:1
    @@ -32,7 +32,7 @@ spec:
           serviceAccount: network-resources-injector-sa
           containers:
           - name: webhook-server
    -        image: ghcr.io/k8snetworkplumbingwg/network-resources-injector:v1.9.0
    +        image: ghcr.io/k8snetworkplumbingwg/network-resources-injector:603fe81f57fb9886388a0fd58901bf33380a34c2

    * AFAIU Bump script does not need update since the image tag was eventually unchanged.

    Please LMK if you are asking for any other changes

    see please https://github.com/kubevirt/kubevirtci/pull/1822#issuecomment-5491770666

    nirdothan nirdothan commented on Sep 01, 2026 09:21 UTC
    Author

    > > > Reverted the hashes back to tags so bump script should work.

    > >

    > >

    > > can you test it please ? any change that you did to the manifest must appear there, else it will lose on bump

    >

    >

    > Having trouble ATM testing it due to ./cluster-provision/k8s/update-pre-pull-images.sh: line 36: rg: command not found and installation of rg is failing. Would appreciate if you could test it otherwise will install it later (need a reboot).

    > i mean to test the bumper script the reason is not just the sha, it is all the other fields

    The error above is from the bumper script. It calls update-pre-pull-images.sh.

    oshoval oshoval commented on Sep 01, 2026 09:24 UTC
    Contributor

    diff --git a/cluster-provision/gocli/opts/network_resources_injector/manifests/server.yaml b/cluster-provision/gocli/opts/network_resources_injector/manifests/server.yaml
    index 32bdb194..ffdb74bc 100644
    --- a/cluster-provision/gocli/opts/network_resources_injector/manifests/server.yaml
    +++ b/cluster-provision/gocli/opts/network_resources_injector/manifests/server.yaml
    @@ -29,7 +29,7 @@ spec:
           labels:
             app: network-resources-injector
         spec:
    -      serviceAccountName: network-resources-injector-sa
    +      serviceAccount: network-resources-injector-sa
           containers:
           - name: webhook-server
             image: ghcr.io/k8snetworkplumbingwg/network-resources-injector:v1.9.0
    @@ -42,6 +42,10 @@ spec:
             - -tls-private-key-file=/etc/tls/tls.key
             - -tls-cert-file=/etc/tls/tls.crt
             - -health-check-port=8444
    +        # Optional TLS hardening flags:
    +        # - -tls-min-version=VersionTLS13
    +        # - -tls-cipher-suites=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
    +        # - -tls-curve-preferences=29,23,24
             - -logtostderr
             - -v=2
             - -insecure
    @@ -70,23 +74,11 @@ spec:
                 memory: "200Mi"
                 cpu: "500m"
             livenessProbe:
    -          failureThreshold: 3
               httpGet:
                 path: /healthz
                 port: 8444
    -            scheme: HTTP
    -          initialDelaySeconds: 15
    -          periodSeconds: 20
    -          successThreshold: 1
    -          timeoutSeconds: 1
    -        readinessProbe:
    -          failureThreshold: 3
    -          tcpSocket:
    -            port: 8443
    -          initialDelaySeconds: 5
    -          periodSeconds: 10
    -          successThreshold: 1
    -          timeoutSeconds: 1
    +          initialDelaySeconds: 10
    +          periodSeconds: 5
           initContainers:
           - name: installer
             image: ghcr.io/k8snetworkplumbingwg/network-resources-injector:v1.9.0
    

    it is wrong, it strips the fields, since you need to add them to the script please

    nirdothan nirdothan commented on Sep 01, 2026 09:55 UTC
    Author

    > diff --git a/cluster-provision/gocli/opts/network_resources_injector/manifests/server.yaml b/cluster-provision/gocli/opts/network_resources_injector/manifests/server.yaml
    > index 32bdb194..ffdb74bc 100644
    > --- a/cluster-provision/gocli/opts/network_resources_injector/manifests/server.yaml
    > +++ b/cluster-provision/gocli/opts/network_resources_injector/manifests/server.yaml
    > @@ -29,7 +29,7 @@ spec:
    >        labels:
    >          app: network-resources-injector
    >      spec:
    > -      serviceAccountName: network-resources-injector-sa
    > +      serviceAccount: network-resources-injector-sa
    >        containers:
    >        - name: webhook-server
    >          image: ghcr.io/k8snetworkplumbingwg/network-resources-injector:v1.9.0
    > @@ -42,6 +42,10 @@ spec:
    >          - -tls-private-key-file=/etc/tls/tls.key
    >          - -tls-cert-file=/etc/tls/tls.crt
    >          - -health-check-port=8444
    > +        # Optional TLS hardening flags:
    > +        # - -tls-min-version=VersionTLS13
    > +        # - -tls-cipher-suites=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
    > +        # - -tls-curve-preferences=29,23,24
    >          - -logtostderr
    >          - -v=2
    >          - -insecure
    > @@ -70,23 +74,11 @@ spec:
    >              memory: "200Mi"
    >              cpu: "500m"
    >          livenessProbe:
    > -          failureThreshold: 3
    >            httpGet:
    >              path: /healthz
    >              port: 8444
    > -            scheme: HTTP
    > -          initialDelaySeconds: 15
    > -          periodSeconds: 20
    > -          successThreshold: 1
    > -          timeoutSeconds: 1
    > -        readinessProbe:
    > -          failureThreshold: 3
    > -          tcpSocket:
    > -            port: 8443
    > -          initialDelaySeconds: 5
    > -          periodSeconds: 10
    > -          successThreshold: 1
    > -          timeoutSeconds: 1
    > +          initialDelaySeconds: 10
    > +          periodSeconds: 5
    >        initContainers:
    >        - name: installer
    >          image: ghcr.io/k8snetworkplumbingwg/network-resources-injector:v1.9.0
    > 

    > it is wrong, it strips the fields, since you need to add them to the script please

    This script relies too much on the correctness of the upstream manifest. I'll try to change the manifest upstream.

    kubevirt-bot kubevirt-bot commented on Oct 23, 2026 23:48 UTC
    Bot

    There has been no activity on this PR for 45 days.
    To protect limited CI resources, it has been automatically labelled 'stale'.
    This PR will automatically rot after an additional 14 days of inactivity, and will be closed shortly after that.

    What you can do:

    If the PR is waiting on you to respond to a question or feedback and/or update the PR, please do so.
    You can mark the PR as fresh and remove the label with the following command: /remove-lifecycle stale
    If this PR is safe to close now, please help the project by closing it with: /close
    If you need attention on this PR from a reviewer, you can raise it on the agenda of the relevant SIG meeting or KubeVirt Community meeting, or ping the kubevirt-dev slack channel.

    /lifecycle stale

    nirdothan nirdothan commented on Oct 25, 2026 09:42 UTC
    Author

    /remove-lifecycle stale

    nirdothan nirdothan commented on Oct 25, 2026 16:41 UTC
    Author
    nirdothan nirdothan commented on Oct 28, 2026 14:22 UTC
    Author

    Last push disables network-resources-injector in check-cluster-up.sh in single stack flow. Since multus is disabled, net-res-inj must be disabled too.

    oshoval oshoval commented on code on Oct 28, 2026 15:19 UTC
    Code Review
    cluster-provision/gocli/opts/network_resources_injector/manifests/server.yaml:1
    @@ -70,15 +74,29 @@ spec:
                 memory: "200Mi"
                 cpu: "500m"
             livenessProbe:
    +          failureThreshold: 3
               httpGet:
                 path: /healthz
                 port: 8444
    -          initialDelaySeconds: 10
    -          periodSeconds: 5
    +            scheme: HTTP
    +          initialDelaySeconds: 15
    +          periodSeconds: 20
    +          successThreshold: 1
    +          timeoutSeconds: 1
    +        readinessProbe:
    +          failureThreshold: 3
    +          httpGet:
    +            path: /readyz
    +            port: 8444
    +            scheme: HTTP
    +          initialDelaySeconds: 5
    +          periodSeconds: 10
    +          successThreshold: 1
    +          timeoutSeconds: 1
           initContainers:
           - name: installer
    -        image: ghcr.io/k8snetworkplumbingwg/network-resources-injector:v1.9.0
    -        imagePullPolicy: Always
    +        image: ghcr.io/k8snetworkplumbingwg/network-resources-injector:239ce933a74cfcc0843dd64e514a4b72146634d7
    +        imagePullPolicy: IfNotPresent

    please keep Always, all over

    there is no reason to change it, and not related to this PR

    nirdothan nirdothan commented on code on Oct 28, 2026 15:32 UTC
    Code Review
    cluster-provision/gocli/opts/network_resources_injector/manifests/server.yaml:1
    @@ -70,15 +74,29 @@ spec:
                 memory: "200Mi"
                 cpu: "500m"
             livenessProbe:
    +          failureThreshold: 3
               httpGet:
                 path: /healthz
                 port: 8444
    -          initialDelaySeconds: 10
    -          periodSeconds: 5
    +            scheme: HTTP
    +          initialDelaySeconds: 15
    +          periodSeconds: 20
    +          successThreshold: 1
    +          timeoutSeconds: 1
    +        readinessProbe:
    +          failureThreshold: 3
    +          httpGet:
    +            path: /readyz
    +            port: 8444
    +            scheme: HTTP
    +          initialDelaySeconds: 5
    +          periodSeconds: 10
    +          successThreshold: 1
    +          timeoutSeconds: 1
           initContainers:
           - name: installer
    -        image: ghcr.io/k8snetworkplumbingwg/network-resources-injector:v1.9.0
    -        imagePullPolicy: Always
    +        image: ghcr.io/k8snetworkplumbingwg/network-resources-injector:239ce933a74cfcc0843dd64e514a4b72146634d7
    +        imagePullPolicy: IfNotPresent

    Sure. Missed it. Fixed.

    oshoval oshoval commented on code on Oct 28, 2026 15:42 UTC
    Code Review
    cluster-provision/gocli/opts/network_resources_injector/manifests/server.yaml:1
    @@ -42,6 +42,10 @@ spec:
             - -tls-private-key-file=/etc/tls/tls.key
             - -tls-cert-file=/etc/tls/tls.crt
             - -health-check-port=8444
    +        # Optional TLS hardening flags:
    +        # - -tls-min-version=VersionTLS13
    +        # - -tls-cipher-suites=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
    +        # - -tls-curve-preferences=29,23,24

    please drop, just comments
    unless there is a reason to have it

    oshoval oshoval commented on Oct 28, 2026 15:43 UTC
    Contributor

    worth to add please few words about the path that was taken on PR desc, wrt https://github.com/kubevirt/kubevirtci/pull/1822#issuecomment-5437368581

    nirdothan nirdothan commented on code on Oct 28, 2026 16:09 UTC
    Code Review
    cluster-provision/gocli/opts/network_resources_injector/manifests/server.yaml:1
    @@ -42,6 +42,10 @@ spec:
             - -tls-private-key-file=/etc/tls/tls.key
             - -tls-cert-file=/etc/tls/tls.crt
             - -health-check-port=8444
    +        # Optional TLS hardening flags:
    +        # - -tls-min-version=VersionTLS13
    +        # - -tls-cipher-suites=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
    +        # - -tls-curve-preferences=29,23,24

    Removed. I actually left in in place for the bump script, because it will "bring it back" once it runs and I wanted the diffs to be thinner.

    nirdothan nirdothan commented on Oct 28, 2026 16:11 UTC
    Author

    worth to add please few words about the path that was taken on PR desc, wrt #1822 (comment)

    I added it because you requested, even-though I think that its an upstream project consideration and kubevirtci should just be concerned with deploying it.

    nirdothan nirdothan commented on Oct 28, 2026 16:12 UTC
    Author

    Changes address @oshoval's last review.

    kubevirt-prow[bot] kubevirt-prow[bot] commented on Oct 28, 2026 17:39 UTC
    Bot

    @nirdothan: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

    Test name | Commit | Details | Required | Rerun command
    --- | --- | --- | --- | ---
    check-provision-k8s-1.34 | 3eff19e784c79396d38091de7ce1b7d151976802 | link | false | /test check-provision-k8s-1.34

    <details>

    Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.
    </details>
    <!-- test report -->

    oshoval oshoval commented on Oct 29, 2026 05:27 UTC
    Contributor

    > worth to add please few words about the path that was taken on PR desc, wrt #1822 (comment)

    > I added it because you requested, even-though I think that its an upstream project consideration and kubevirtci should just be concerned with deploying it.

    meant on PR desc please, not commit msg, it is more visable,
    and not for the "review" flow, that it was "hacky" but for focusing on what was learned before it and is the gist of the how to do it correct, anyhow whatever you prefer, it is just good history for learning purpose

    oshoval oshoval commented on code on Oct 29, 2026 05:28 UTC
    Code Review
    cluster-provision/gocli/opts/network_resources_injector/manifests/server.yaml:1
    @@ -42,6 +42,10 @@ spec:
             - -tls-private-key-file=/etc/tls/tls.key
             - -tls-cert-file=/etc/tls/tls.crt
             - -health-check-port=8444
    +        # Optional TLS hardening flags:
    +        # - -tls-min-version=VersionTLS13
    +        # - -tls-cipher-suites=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
    +        # - -tls-curve-preferences=29,23,24

    thanks, so we will need indeed the bump to skip it as well, or to return it,
    sorry for the back and forth, anyhow can be done in the future when there is a tag

    oshoval oshoval approved these changes on Oct 29, 2026 05:28 UTC
    Approved Reviewer

    Approved these changes.

    nirdothan nirdothan commented on Oct 29, 2026 10:18 UTC
    Author

    > > worth to add please few words about the path that was taken on PR desc, wrt #1822 (comment)

    >

    >

    > I added it because you requested, even-though I think that its an upstream project consideration and kubevirtci should just be concerned with deploying it.

    > meant on PR desc please, not commit msg, it is more visable, and not for the "review" flow, that it was "hacky" but for focusing on what was learned before it and is the gist of the how to do it correct, anyhow whatever you prefer, it is just good history for learning purpose

    I honestly don't think that this solution is better than @RamLavi's proposed solution. However I can add a dew words in the description.

    oshoval oshoval commented on Oct 29, 2026 10:22 UTC
    Contributor

    I honestly don't think that this solution is better than @RamLavi's proposed solution. However I can add a dew words in the description.

    thought you did as Ram suggested at least in the direction of it, and the gist of it is what i meant worth to have in the PR desc

    dhiller dhiller commented on Oct 29, 2026 11:42 UTC
    Reviewer

    /approve

    Thank you @nirdothan - would you mind creating a follow up issue so we don't forget to bump after release of network-resources-injector?

    Reviewers
    Assignees
    nirdothan nirdothan
    Labels
    risk: low confidence: 89.2% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 31.4% (LOW) · Higher = larger blast radius
    31.4%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 89.2% · Lower = rushed or shallow review
    89.2%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 3.4% · Safe to merge
    3.4%