2026-05-05 12:59:36 +02:00
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
|
|
2026-04-23 08:55:49 +02:00
|
|
|
// Code generated by controller-gen. DO NOT EDIT.
|
|
|
|
|
|
|
|
|
|
package v1alpha1
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// NetworkRouterStatusApplyConfiguration represents a declarative configuration of the NetworkRouterStatus type for use
|
|
|
|
|
// with apply.
|
|
|
|
|
//
|
|
|
|
|
// NetworkRouterStatus defines the observed state of NetworkRouter.
|
|
|
|
|
type NetworkRouterStatusApplyConfiguration struct {
|
|
|
|
|
// ObservedGeneration is the last reconciled generation.
|
|
|
|
|
ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
|
|
|
|
|
// Conditions holds the conditions for the NetworkRouter.
|
|
|
|
|
Conditions []v1.ConditionApplyConfiguration `json:"conditions,omitempty"`
|
|
|
|
|
// RoutingPeerID is the id of the created routing peer.
|
|
|
|
|
RoutingPeerID *string `json:"routingPeerID,omitempty"`
|
|
|
|
|
// NetworkID is the id of the network the routing peer was created in.
|
|
|
|
|
NetworkID *string `json:"networkID,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NetworkRouterStatusApplyConfiguration constructs a declarative configuration of the NetworkRouterStatus type for use with
|
|
|
|
|
// apply.
|
|
|
|
|
func NetworkRouterStatus() *NetworkRouterStatusApplyConfiguration {
|
|
|
|
|
return &NetworkRouterStatusApplyConfiguration{}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// WithObservedGeneration sets the ObservedGeneration 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 ObservedGeneration field is set to the value of the last call.
|
|
|
|
|
func (b *NetworkRouterStatusApplyConfiguration) WithObservedGeneration(value int64) *NetworkRouterStatusApplyConfiguration {
|
|
|
|
|
b.ObservedGeneration = &value
|
|
|
|
|
return b
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// WithConditions adds the given value to the Conditions field in the declarative configuration
|
|
|
|
|
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
|
|
|
|
// If called multiple times, values provided by each call will be appended to the Conditions field.
|
|
|
|
|
func (b *NetworkRouterStatusApplyConfiguration) WithConditions(values ...*v1.ConditionApplyConfiguration) *NetworkRouterStatusApplyConfiguration {
|
|
|
|
|
for i := range values {
|
|
|
|
|
if values[i] == nil {
|
|
|
|
|
panic("nil value passed to WithConditions")
|
|
|
|
|
}
|
|
|
|
|
b.Conditions = append(b.Conditions, *values[i])
|
|
|
|
|
}
|
|
|
|
|
return b
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// WithRoutingPeerID sets the RoutingPeerID 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 RoutingPeerID field is set to the value of the last call.
|
|
|
|
|
func (b *NetworkRouterStatusApplyConfiguration) WithRoutingPeerID(value string) *NetworkRouterStatusApplyConfiguration {
|
|
|
|
|
b.RoutingPeerID = &value
|
|
|
|
|
return b
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// WithNetworkID sets the NetworkID 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 NetworkID field is set to the value of the last call.
|
|
|
|
|
func (b *NetworkRouterStatusApplyConfiguration) WithNetworkID(value string) *NetworkRouterStatusApplyConfiguration {
|
|
|
|
|
b.NetworkID = &value
|
|
|
|
|
return b
|
|
|
|
|
}
|