Skip to content

Allow changing extenal client image in Felix FVs#10742

Merged
mazdakn merged 1 commit intoprojectcalico:masterfrom
mazdakn:set-extclient-image
Jul 30, 2025
Merged

Allow changing extenal client image in Felix FVs#10742
mazdakn merged 1 commit intoprojectcalico:masterfrom
mazdakn:set-extclient-image

Conversation

@mazdakn
Copy link
Member

@mazdakn mazdakn commented Jul 29, 2025

Description

By default, Felix FVs use busybox image for external client container. However, in some cases, it's desirable to use another one. As an example, in this PR, I need to add iptables rules to external client container to drop packets based on DSCP value. However, busybox image does not contain iptables by default. Instead, it's possible to use calico node image for the external client since it already include iptables binary.

Related issues/PRs

Todos

  • Tests
  • Documentation
  • Release note

Release Note

TBD

Reminder for the reviewer

Make sure that this PR has the correct labels and milestone set.

Every PR needs one docs-* label.

  • docs-pr-required: This change requires a change to the documentation that has not been completed yet.
  • docs-completed: This change has all necessary documentation completed.
  • docs-not-required: This change has no user-facing impact and requires no docs.

Every PR needs one release-note-* label.

  • release-note-required: This PR has user-facing changes. Most PRs should have this label.
  • release-note-not-required: This PR has no user-facing changes.

Other optional labels:

  • cherry-pick-candidate: This PR should be cherry-picked to an earlier release. For bug fixes only.
  • needs-operator-pr: This PR is related to install and requires a corresponding change to the operator.

Copilot AI review requested due to automatic review settings July 29, 2025 20:59
@mazdakn mazdakn added the release-note-required Change has user-facing impact (no matter how small) label Jul 29, 2025
@mazdakn mazdakn requested a review from a team as a code owner July 29, 2025 20:59
@mazdakn mazdakn added the docs-not-required Docs not required for this change label Jul 29, 2025
@marvin-tigera marvin-tigera added this to the Calico v3.31.0 milestone Jul 29, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enables custom Docker images for external client containers in Felix Functional Verification (FV) tests. By default, these tests use a busybox image, but this change allows specifying alternative images like calico node which includes additional tools such as iptables.

Key changes:

  • Adds an Image field to ExtClientOpts struct for specifying custom container images
  • Updates RunExtClientWithOpts function to use the custom image when provided, falling back to the default busybox image

@mazdakn mazdakn force-pushed the set-extclient-image branch from a2f3384 to 3bb4cae Compare July 29, 2025 21:03
@mazdakn mazdakn added release-note-not-required Change has no user-facing impact and removed release-note-required Change has user-facing impact (no matter how small) labels Jul 29, 2025
Copy link
Contributor

@lucastigera lucastigera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mazdakn mazdakn merged commit c805e0f into projectcalico:master Jul 30, 2025
6 of 7 checks passed
@mazdakn mazdakn deleted the set-extclient-image branch July 30, 2025 00:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-not-required Docs not required for this change release-note-not-required Change has no user-facing impact

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants