mirror of
https://github.com/YuzuZensai/netbird-kubernetes-operator.git
synced 2026-09-13 10:49:15 +00:00
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>
30 lines
1.1 KiB
Go
30 lines
1.1 KiB
Go
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
// Code generated by controller-gen. DO NOT EDIT.
|
|
|
|
package v1alpha1
|
|
|
|
// IPAddressTargetApplyConfiguration represents a declarative configuration of the IPAddressTarget type for use
|
|
// with apply.
|
|
//
|
|
// IPAddressTarget is a single IPv4 or IPv6 address.
|
|
type IPAddressTargetApplyConfiguration struct {
|
|
// Address is a single IP address, e.g. "10.0.0.5" or "2001:db8::1".
|
|
// CIDR notation (e.g. "10.0.0.0/24") is rejected.
|
|
Address *string `json:"address,omitempty"`
|
|
}
|
|
|
|
// IPAddressTargetApplyConfiguration constructs a declarative configuration of the IPAddressTarget type for use with
|
|
// apply.
|
|
func IPAddressTarget() *IPAddressTargetApplyConfiguration {
|
|
return &IPAddressTargetApplyConfiguration{}
|
|
}
|
|
|
|
// WithAddress sets the Address 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 Address field is set to the value of the last call.
|
|
func (b *IPAddressTargetApplyConfiguration) WithAddress(value string) *IPAddressTargetApplyConfiguration {
|
|
b.Address = &value
|
|
return b
|
|
}
|