Files
netbird-kubernetes-operator/pkg/applyconfigurations/api/v1alpha1/setupkeystatus.go
T

58 lines
2.4 KiB
Go
Raw Normal View History

2026-05-05 12:59:36 +02:00
// SPDX-License-Identifier: BSD-3-Clause
2026-04-13 12:20:35 +02:00
// Code generated by controller-gen. DO NOT EDIT.
package v1alpha1
import (
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
// SetupKeyStatusApplyConfiguration represents a declarative configuration of the SetupKeyStatus type for use
// with apply.
//
// SetupKeyStatus defines the observed state of SetupKey.
type SetupKeyStatusApplyConfiguration struct {
// ObservedGeneration is the last reconciled generation.
ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
// Conditions holds the conditions for the SetupKey.
2026-04-13 12:20:35 +02:00
Conditions []v1.ConditionApplyConfiguration `json:"conditions,omitempty"`
// SetupKeyID is the id of the created setup key.
SetupKeyID *string `json:"setupKeyID,omitempty"`
2026-04-13 12:20:35 +02:00
}
// SetupKeyStatusApplyConfiguration constructs a declarative configuration of the SetupKeyStatus type for use with
// apply.
func SetupKeyStatus() *SetupKeyStatusApplyConfiguration {
return &SetupKeyStatusApplyConfiguration{}
}
// WithObservedGeneration sets the ObservedGeneration field in the declarative configuration to the given value
2026-04-13 12:20:35 +02:00
// 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 *SetupKeyStatusApplyConfiguration) WithObservedGeneration(value int64) *SetupKeyStatusApplyConfiguration {
b.ObservedGeneration = &value
2026-04-13 12:20:35 +02:00
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 *SetupKeyStatusApplyConfiguration) WithConditions(values ...*v1.ConditionApplyConfiguration) *SetupKeyStatusApplyConfiguration {
for i := range values {
if values[i] == nil {
panic("nil value passed to WithConditions")
}
b.Conditions = append(b.Conditions, *values[i])
}
return b
}
// WithSetupKeyID sets the SetupKeyID 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 SetupKeyID field is set to the value of the last call.
func (b *SetupKeyStatusApplyConfiguration) WithSetupKeyID(value string) *SetupKeyStatusApplyConfiguration {
b.SetupKeyID = &value
return b
}