mirror of
https://github.com/YuzuZensai/netbird-kubernetes-operator.git
synced 2026-09-13 18:59:09 +00:00
This change adds two new resources, NetworkRouter and NetworkResource, which enable clusters to expose Kubernetes services to Netbird. The NetworkRouter is responsible for creating the network, group, setup key and routing peer all of which are unique to the isntance. Along with the deployment of the client in the cluster. The NetworkResource exposes a service by linking to the specific router it wants to expose to. This makes coupling between the resource and network easy to understand. Routers also set a DNS zone which is used to give names to resources based on the name and namespace of the service being exposed. Part of #172 Signed-off-by: Philip Laine <philip.laine@gmail.com>
27 lines
1.1 KiB
Go
27 lines
1.1 KiB
Go
// Code generated by controller-gen. DO NOT EDIT.
|
|
|
|
package v1alpha1
|
|
|
|
// DNSZoneReferenceApplyConfiguration represents a declarative configuration of the DNSZoneReference type for use
|
|
// with apply.
|
|
//
|
|
// DNSZoneReference references a Netbird DNS zone by domain name.
|
|
type DNSZoneReferenceApplyConfiguration struct {
|
|
// Name is the domain name of an existing Netbird DNS zone, e.g. "example.com".
|
|
Name *string `json:"name,omitempty"`
|
|
}
|
|
|
|
// DNSZoneReferenceApplyConfiguration constructs a declarative configuration of the DNSZoneReference type for use with
|
|
// apply.
|
|
func DNSZoneReference() *DNSZoneReferenceApplyConfiguration {
|
|
return &DNSZoneReferenceApplyConfiguration{}
|
|
}
|
|
|
|
// WithName sets the Name 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 Name field is set to the value of the last call.
|
|
func (b *DNSZoneReferenceApplyConfiguration) WithName(value string) *DNSZoneReferenceApplyConfiguration {
|
|
b.Name = &value
|
|
return b
|
|
}
|