Documentation
¶
Overview ¶
Package v1 contains API Schema definitions for the infra v1 API group. +kubebuilder:object:generate=true +groupName=infra.exalsius.ai
Index ¶
- Variables
- type Colony
- type ColonyCluster
- func (in *ColonyCluster) DeepCopy() *ColonyCluster
- func (in *ColonyCluster) DeepCopyInto(out *ColonyCluster)
- func (cc *ColonyCluster) GetClusterDeploymentSpec() (*k0rdentv1beta1.ClusterDeploymentSpec, error)
- func (cc *ColonyCluster) SetClusterDeploymentSpec(spec *k0rdentv1beta1.ClusterDeploymentSpec) error
- type ColonyList
- type ColonySpec
- type ColonyStatus
- type User
- type UserList
- type UserSpec
- type UserStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: "infra.exalsius.ai", Version: "v1"} // 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 Colony ¶
type Colony struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ColonySpec `json:"spec,omitempty"`
Status ColonyStatus `json:"status,omitempty"`
}
Colony is the Schema for the colonies API.
func (*Colony) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Colony.
func (*Colony) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Colony) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ColonyCluster ¶
type ColonyCluster struct {
// Name is the name of the cluster.
ClusterName string `json:"clusterName"`
// ClusterDeployment is the specification for the cluster deployment.
// This is stored as RawExtension to avoid CRD validation issues with k0rdent types
ClusterDeploymentSpec *runtime.RawExtension `json:"clusterDeploymentSpec,omitempty"`
// ClusterLabels are the labels to be applied to the ClusterDeployment resource
ClusterLabels map[string]string `json:"clusterLabels,omitempty"`
}
func (*ColonyCluster) DeepCopy ¶
func (in *ColonyCluster) DeepCopy() *ColonyCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ColonyCluster.
func (*ColonyCluster) DeepCopyInto ¶
func (in *ColonyCluster) DeepCopyInto(out *ColonyCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ColonyCluster) GetClusterDeploymentSpec ¶ added in v0.3.4
func (cc *ColonyCluster) GetClusterDeploymentSpec() (*k0rdentv1beta1.ClusterDeploymentSpec, error)
GetClusterDeploymentSpec returns the ClusterDeploymentSpec as a typed object
func (*ColonyCluster) SetClusterDeploymentSpec ¶ added in v0.3.4
func (cc *ColonyCluster) SetClusterDeploymentSpec(spec *k0rdentv1beta1.ClusterDeploymentSpec) error
SetClusterDeploymentSpec sets the ClusterDeploymentSpec from a typed object
type ColonyList ¶
type ColonyList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Colony `json:"items"`
}
ColonyList contains a list of Colony.
func (*ColonyList) DeepCopy ¶
func (in *ColonyList) DeepCopy() *ColonyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ColonyList.
func (*ColonyList) DeepCopyInto ¶
func (in *ColonyList) DeepCopyInto(out *ColonyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ColonyList) DeepCopyObject ¶
func (in *ColonyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ColonySpec ¶
type ColonySpec struct {
// ColonyClusters is the list of clusters to create.
ColonyClusters []ColonyCluster `json:"colonyClusters,omitempty"`
}
ColonySpec defines the desired state of Colony.
func (*ColonySpec) DeepCopy ¶
func (in *ColonySpec) DeepCopy() *ColonySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ColonySpec.
func (*ColonySpec) DeepCopyInto ¶
func (in *ColonySpec) DeepCopyInto(out *ColonySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ColonyStatus ¶
type ColonyStatus struct {
Phase string `json:"phase,omitempty"`
Conditions []metav1.Condition `json:"conditions,omitempty"`
ClusterDeploymentRefs []*corev1.ObjectReference `json:"clusterDeploymentRefs,omitempty"`
TotalClusters int32 `json:"totalClusters,omitempty"`
ReadyClusters int32 `json:"readyClusters,omitempty"`
}
ColonyStatus defines the observed state of Colony.
func (*ColonyStatus) DeepCopy ¶
func (in *ColonyStatus) DeepCopy() *ColonyStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ColonyStatus.
func (*ColonyStatus) DeepCopyInto ¶
func (in *ColonyStatus) DeepCopyInto(out *ColonyStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type User ¶ added in v0.3.4
type User struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec UserSpec `json:"spec,omitempty"`
Status UserStatus `json:"status,omitempty"`
}
+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Name",type=string,JSONPath=`.spec.userName` +kubebuilder:printcolumn:name="Email",type=string,JSONPath=`.spec.userEmail` +kubebuilder:printcolumn:name="Namespace",type=string,JSONPath=`.spec.userNamespace` +kubebuilder:printcolumn:name="Role",type=string,JSONPath=`.spec.userRole` +kubebuilder:printcolumn:name="Ready",type=boolean,JSONPath=`.status.ready`
func (*User) DeepCopy ¶ added in v0.3.4
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new User.
func (*User) DeepCopyInto ¶ added in v0.3.4
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*User) DeepCopyObject ¶ added in v0.3.4
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type UserList ¶ added in v0.3.4
type UserList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []User `json:"items"`
}
UserList contains a list of User.
func (*UserList) DeepCopy ¶ added in v0.3.4
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserList.
func (*UserList) DeepCopyInto ¶ added in v0.3.4
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*UserList) DeepCopyObject ¶ added in v0.3.4
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type UserSpec ¶ added in v0.3.4
type UserSpec struct {
UserId string `json:"userId,omitempty"`
UserName string `json:"userName,omitempty"`
UserEmail string `json:"userEmail,omitempty"`
UserNamespace string `json:"userNamespace,omitempty"`
UserRoles []string `json:"userRoles,omitempty"`
}
UserSpec defines the desired state of User.
func (*UserSpec) DeepCopy ¶ added in v0.3.4
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserSpec.
func (*UserSpec) DeepCopyInto ¶ added in v0.3.4
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UserStatus ¶ added in v0.3.4
type UserStatus struct {
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
// Important: Run "make" to regenerate code after modifying this file
Ready bool `json:"ready,omitempty"`
}
UserStatus defines the observed state of User.
func (*UserStatus) DeepCopy ¶ added in v0.3.4
func (in *UserStatus) DeepCopy() *UserStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserStatus.
func (*UserStatus) DeepCopyInto ¶ added in v0.3.4
func (in *UserStatus) DeepCopyInto(out *UserStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.