Files
netbird-kubernetes-operator/pkg/applyconfigurations/api/v1alpha1/networkrouterspec.go
T
Philip LaineandGitHub 37d48b5ca8 Set best practice defaults for network router deployment (#214)
This change sets some Kubernetes best practices as defaults. Such as
topology spread and pod disruption budget.

It also exposes log level and image settings in the root struct to make
it easier to override commonly configured settings.

Fixes #77 
Fixes #162

Signed-off-by: Philip Laine <philip.laine@gmail.com>
2026-04-28 15:18:15 +02:00

57 lines
2.8 KiB
Go

// Code generated by controller-gen. DO NOT EDIT.
package v1alpha1
// NetworkRouterSpecApplyConfiguration represents a declarative configuration of the NetworkRouterSpec type for use
// with apply.
//
// NetworkRouterSpec defines the desired state of NetworkRouter.
type NetworkRouterSpecApplyConfiguration struct {
// DNSZoneRef is a reference to the DNS zone used to create records for resources.
DNSZoneRef *DNSZoneReferenceApplyConfiguration `json:"dnsZoneRef,omitempty"`
// Netbird client image.
Image *string `json:"image,omitempty"`
// Log level for Netbird client.
LogLevel *string `json:"logLevel,omitempty"`
// WorkloadOverride contains configuration that will override the default workload.
WorkloadOverride *WorkloadOverrideApplyConfiguration `json:"workloadOverride,omitempty"`
}
// NetworkRouterSpecApplyConfiguration constructs a declarative configuration of the NetworkRouterSpec type for use with
// apply.
func NetworkRouterSpec() *NetworkRouterSpecApplyConfiguration {
return &NetworkRouterSpecApplyConfiguration{}
}
// WithDNSZoneRef sets the DNSZoneRef 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 DNSZoneRef field is set to the value of the last call.
func (b *NetworkRouterSpecApplyConfiguration) WithDNSZoneRef(value *DNSZoneReferenceApplyConfiguration) *NetworkRouterSpecApplyConfiguration {
b.DNSZoneRef = value
return b
}
// WithImage sets the Image 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 Image field is set to the value of the last call.
func (b *NetworkRouterSpecApplyConfiguration) WithImage(value string) *NetworkRouterSpecApplyConfiguration {
b.Image = &value
return b
}
// WithLogLevel sets the LogLevel 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 LogLevel field is set to the value of the last call.
func (b *NetworkRouterSpecApplyConfiguration) WithLogLevel(value string) *NetworkRouterSpecApplyConfiguration {
b.LogLevel = &value
return b
}
// WithWorkloadOverride sets the WorkloadOverride 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 WorkloadOverride field is set to the value of the last call.
func (b *NetworkRouterSpecApplyConfiguration) WithWorkloadOverride(value *WorkloadOverrideApplyConfiguration) *NetworkRouterSpecApplyConfiguration {
b.WorkloadOverride = value
return b
}