Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the org v1alpha1 API group +kubebuilder:object:generate=true +groupName=org.ethzero.cloud
Index ¶
- Variables
- type Team
- func (in *Team) DeepCopy() *Team
- func (in *Team) DeepCopyInto(out *Team)
- func (in *Team) DeepCopyObject() runtime.Object
- func (r *Team) Default()
- func (r *Team) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Team) ValidateCreate() error
- func (r *Team) ValidateDelete() error
- func (r *Team) ValidateUpdate(old runtime.Object) error
- type TeamList
- type TeamSpec
- type TeamStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "org.ethzero.cloud", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type Team ¶
type Team struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec TeamSpec `json:"spec,omitempty"` Status TeamStatus `json:"status,omitempty"` }
Team is the Schema for the teams API
func (*Team) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Team.
func (*Team) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Team) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Team) Default ¶
func (r *Team) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*Team) SetupWebhookWithManager ¶
func (*Team) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Team) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type TeamList ¶
type TeamList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Team `json:"items"` }
TeamList contains a list of Team
func (*TeamList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamList.
func (*TeamList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TeamList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TeamSpec ¶
type TeamSpec struct { // Name of the Role for this Team object // +kubebuilder:validation:MaxLength=15 // +kubebuilder:validation:MinLength=1 RoleName string `json:"roleName,omitempty"` // Name of the Group for the RoleBinding // +kubebuilder:validation:MaxLength=15 // +kubebuilder:validation:MinLength=1 GroupName string `json:"groupName,omitempty"` // +kubebuilder:validation:MaxItems=500 // +kubebuilder:validation:MinItems=1 // +optional RoleBindings []additionalRoleBindings `json:"roleBindings,omitempty"` }
TeamSpec defines the desired state of Team
func (*TeamSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamSpec.
func (*TeamSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TeamStatus ¶
type TeamStatus struct { // A list of pointers to RoleBindings // +optional ActiveRoleBindings []corev1.ObjectReference `json:"activeRoleBindings,omitempty"` }
TeamStatus defines the observed state of Team
func (*TeamStatus) DeepCopy ¶
func (in *TeamStatus) DeepCopy() *TeamStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamStatus.
func (*TeamStatus) DeepCopyInto ¶
func (in *TeamStatus) DeepCopyInto(out *TeamStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.