mirror of
https://github.com/YuzuZensai/netbird-kubernetes-operator.git
synced 2026-09-13 18:59:09 +00:00
This change adds SPDX license headers to all files and eforces it with the linter. Signed-off-by: Philip Laine <philip.laine@gmail.com>
51 lines
2.0 KiB
Go
51 lines
2.0 KiB
Go
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
// Code generated by controller-gen. DO NOT EDIT.
|
|
|
|
package v1alpha1
|
|
|
|
import (
|
|
v1 "k8s.io/api/core/v1"
|
|
)
|
|
|
|
// GroupReferenceApplyConfiguration represents a declarative configuration of the GroupReference type for use
|
|
// with apply.
|
|
type GroupReferenceApplyConfiguration struct {
|
|
// Name is the name of the group.
|
|
Name *string `json:"name,omitempty"`
|
|
// ID is the id of the group.
|
|
ID *string `json:"id,omitempty"`
|
|
// LocalReference is a reference to a group in the same namespace.
|
|
LocalRef *v1.LocalObjectReference `json:"localRef,omitempty"`
|
|
}
|
|
|
|
// GroupReferenceApplyConfiguration constructs a declarative configuration of the GroupReference type for use with
|
|
// apply.
|
|
func GroupReference() *GroupReferenceApplyConfiguration {
|
|
return &GroupReferenceApplyConfiguration{}
|
|
}
|
|
|
|
// 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 *GroupReferenceApplyConfiguration) WithName(value string) *GroupReferenceApplyConfiguration {
|
|
b.Name = &value
|
|
return b
|
|
}
|
|
|
|
// WithID sets the ID 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 ID field is set to the value of the last call.
|
|
func (b *GroupReferenceApplyConfiguration) WithID(value string) *GroupReferenceApplyConfiguration {
|
|
b.ID = &value
|
|
return b
|
|
}
|
|
|
|
// WithLocalRef sets the LocalRef 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 LocalRef field is set to the value of the last call.
|
|
func (b *GroupReferenceApplyConfiguration) WithLocalRef(value v1.LocalObjectReference) *GroupReferenceApplyConfiguration {
|
|
b.LocalRef = &value
|
|
return b
|
|
}
|