Files
Philip LaineandGitHub ea2dafd5a3 Add network egress resource (#357)
This change adds a new import resource which enables exposing Netbird
resources as Kubernetes services. This remove the need to add sidecars
to every pod.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Added a new `NetworkEgress` custom resource (`netbird.io/v1alpha1`)
with CRD, schema validation, and status/conditions.
* Extended controller functionality to create egress services and
translate egress rules into import `EndpointSlice` resources; egress
pods now include a kube-egress-forwarder sidecar.
* **Bug Fixes**
* Added missing deep-copy and declarative apply support for the new
`NetworkEgress` API types.
* **Documentation**
* Updated README/API reference and added example manifests for
`NetworkEgress` (including IP/FQDN target usage).
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Signed-off-by: Philip Laine <philip.laine@gmail.com>
2026-07-17 08:06:53 +02:00

29 lines
1.0 KiB
Go

// SPDX-License-Identifier: BSD-3-Clause
// Code generated by controller-gen. DO NOT EDIT.
package v1alpha1
// FQDNTargetApplyConfiguration represents a declarative configuration of the FQDNTarget type for use
// with apply.
//
// FQDNTarget matches traffic by an exact domain name (no wildcards).
type FQDNTargetApplyConfiguration struct {
// Hostname is a fully qualified domain name to match exactly.
Hostname *string `json:"hostname,omitempty"`
}
// FQDNTargetApplyConfiguration constructs a declarative configuration of the FQDNTarget type for use with
// apply.
func FQDNTarget() *FQDNTargetApplyConfiguration {
return &FQDNTargetApplyConfiguration{}
}
// WithHostname sets the Hostname field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Hostname field is set to the value of the last call.
func (b *FQDNTargetApplyConfiguration) WithHostname(value string) *FQDNTargetApplyConfiguration {
b.Hostname = &value
return b
}