Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support setting failsafepolicy net #689

Merged
merged 1 commit into from
Apr 18, 2024
Merged

Support setting failsafepolicy net #689

merged 1 commit into from
Apr 18, 2024

Conversation

sknat
Copy link
Collaborator

@sknat sknat commented Apr 9, 2024

This patch adds support for setting the .net property when defining
the failsafepolicies in felixconfig. This is a not so well documented
feature that slipped through when aiming for feature parity.

For reference, here is the documentation for [0] felixconfig.

  • setting failsafeInboundHostPorts to e.g. {Net: "10.0.0.0/24", ...}
    will add a filter for inbound packets for their source prefix to match 10.0.0/24.
  • setting failsafeOutboundHostPorts to e.g. {Net: "20.0.0.0/24". ...}
    will add a filter for outbound packets for their destination prefix to match 20.0.0/24

[0] https://docs.tigera.io/calico/latest/reference/resources/felixconfig#spec

This patch adds support for setting the .net property when defining
the failsafepolicies in felixconfig. This is a not so well documented
feature that slipped through when aiming for feature parity.

For reference, here is the documentation for [0] felixconfig.
- setting failsafeInboundHostPorts to e.g. {Net: "10.0.0.0/24", ...}
will add a filter for inbound packets for their source prefix to match 10.0.0/24.
- setting failsafeOutboundHostPorts to e.g. {Net: "20.0.0.0/24". ...}
will add a filter for outbound packets for their destination prefix to match 20.0.0/24

[0] https://docs.tigera.io/calico/latest/reference/resources/felixconfig#spec

Signed-off-by: Nathan Skrzypczak <[email protected]>
@sknat sknat merged commit 0fd0781 into master Apr 18, 2024
5 checks passed
@sknat sknat deleted the dev/nsk-failsafe-net branch April 18, 2024 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants