Skip to content

Commit 1deda4d

Browse files
Auto: sync API from tigera/calico-private [master] (#263)
Automated sync of API files from `tigera/calico-private` `master` branch into this repo via `make -f Makefile.local update`. Triggered by scheduled workflow.
2 parents bcd9d6c + e53fd4b commit 1deda4d

6 files changed

Lines changed: 58 additions & 0 deletions

File tree

config/crd/projectcalico.org_felixconfigurations.yaml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/apis/projectcalico/v3/felixconfig.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,14 @@ const (
152152
BPFConnectTimeLBDisabled BPFConnectTimeLBType = "Disabled"
153153
)
154154

155+
// +kubebuilder:validation:Enum=TunnelAddress;HostAddress
156+
type BPFOverlayHostSourceIPType string
157+
158+
const (
159+
BPFOverlayHostSourceIPTunnelAddress BPFOverlayHostSourceIPType = "TunnelAddress"
160+
BPFOverlayHostSourceIPHostAddress BPFOverlayHostSourceIPType = "HostAddress"
161+
)
162+
155163
// +kubebuilder:validation:Enum=Auto;Userspace;BPFProgram
156164
type BPFConntrackMode string
157165

@@ -786,6 +794,14 @@ type FelixConfigurationSpec struct {
786794
// BPFEnabled, if enabled Felix will use the BPF dataplane. [Default: false]
787795
BPFEnabled *bool `json:"bpfEnabled,omitempty" validate:"omitempty"`
788796

797+
// BPFOverlayHostSourceIP controls the source IP that Felix uses in BPF mode for host-networked
798+
// (node-originated) traffic egressing over an IPIP/VXLAN overlay tunnel. "TunnelAddress" (the default)
799+
// assigns an IP address to the overlay tunnel device and uses it as the source, preserving the behaviour
800+
// of clusters upgraded from earlier releases. "HostAddress" uses the node's own IP directly and does not
801+
// assign a tunnel device IP. This option has no effect on WireGuard tunnels, which always use a tunnel
802+
// device IP. [Default: TunnelAddress]
803+
BPFOverlayHostSourceIP *BPFOverlayHostSourceIPType `json:"bpfOverlayHostSourceIP,omitempty" validate:"omitempty,oneof=TunnelAddress HostAddress"`
804+
789805
// BPFDisableUnprivileged, if enabled, Felix sets the kernel.unprivileged_bpf_disabled sysctl to disable
790806
// unprivileged use of BPF. This ensures that unprivileged users cannot access Calico's BPF maps and
791807
// cannot insert their own BPF programs to interfere with Calico's. [Default: true]

pkg/apis/projectcalico/v3/zz_generated.deepcopy.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/client/applyconfiguration_generated/internal/internal.go

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/client/applyconfiguration_generated/projectcalico/v3/felixconfigurationspec.go

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/openapi/generated.openapi.go

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)