mirror of
https://github.com/YuzuZensai/netbird-kubernetes-operator.git
synced 2026-09-13 10:49:15 +00:00
Implement group resource (#181)
This change implements a new group resource. It also sets the standard for a resource reference will be done through out the controller. A resource reference can either be done by ID or as a local named reference to the actual resource. This allows end users to chose if they want to manage things completely in the cluster or not. Part of #172 Signed-off-by: Philip Laine <philip.laine@gmail.com>
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
// Code generated by controller-gen. DO NOT EDIT.
|
||||
|
||||
package v1alpha1
|
||||
|
||||
// GroupSpecApplyConfiguration represents a declarative configuration of the GroupSpec type for use
|
||||
// with apply.
|
||||
//
|
||||
// GroupSpec defines the desired state of Group
|
||||
type GroupSpecApplyConfiguration struct {
|
||||
// name of the group.
|
||||
Name *string `json:"name,omitempty"`
|
||||
}
|
||||
|
||||
// GroupSpecApplyConfiguration constructs a declarative configuration of the GroupSpec type for use with
|
||||
// apply.
|
||||
func GroupSpec() *GroupSpecApplyConfiguration {
|
||||
return &GroupSpecApplyConfiguration{}
|
||||
}
|
||||
|
||||
// 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 *GroupSpecApplyConfiguration) WithName(value string) *GroupSpecApplyConfiguration {
|
||||
b.Name = &value
|
||||
return b
|
||||
}
|
||||
Reference in New Issue
Block a user