Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the claim v1alpha1 API group +kubebuilder:object:generate=true +groupName=claim.tmax.io
Index ¶
- Constants
- Variables
- type CustomHard
- type NamespaceClaim
- func (in *NamespaceClaim) DeepCopy() *NamespaceClaim
- func (in *NamespaceClaim) DeepCopyInto(out *NamespaceClaim)
- func (in *NamespaceClaim) DeepCopyObject() runtime.Object
- func (r *NamespaceClaim) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *NamespaceClaim) ValidateCreate() error
- func (r *NamespaceClaim) ValidateDelete() error
- func (r *NamespaceClaim) ValidateUpdate(old runtime.Object) error
- type NamespaceClaimList
- type NamespaceClaimStatus
- type ResourceQuotaClaim
- func (in *ResourceQuotaClaim) DeepCopy() *ResourceQuotaClaim
- func (in *ResourceQuotaClaim) DeepCopyInto(out *ResourceQuotaClaim)
- func (in *ResourceQuotaClaim) DeepCopyObject() runtime.Object
- func (r *ResourceQuotaClaim) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *ResourceQuotaClaim) ValidateCreate() error
- func (r *ResourceQuotaClaim) ValidateDelete() error
- func (r *ResourceQuotaClaim) ValidateUpdate(old runtime.Object) error
- type ResourceQuotaClaimList
- type ResourceQuotaClaimStatus
- type RoleBindingClaim
- func (in *RoleBindingClaim) DeepCopy() *RoleBindingClaim
- func (in *RoleBindingClaim) DeepCopyInto(out *RoleBindingClaim)
- func (in *RoleBindingClaim) DeepCopyObject() runtime.Object
- func (r *RoleBindingClaim) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *RoleBindingClaim) ValidateCreate() error
- func (r *RoleBindingClaim) ValidateDelete() error
- func (r *RoleBindingClaim) ValidateUpdate(old runtime.Object) error
- type RoleBindingClaimList
- type RoleBindingClaimStatus
Constants ¶
const ( NamespaceClaimStatusTypeAwaiting = "Awaiting" NamespaceClaimStatusTypeSuccess = "Approved" NamespaceClaimStatusTypeReject = "Rejected" NamespaceClaimStatusTypeError = "Error" NamespaceClaimStatusTypeDeleted = "Namespace Deleted" )
const ( ResourceQuotaClaimStatusTypeAwaiting = "Awaiting" ResourceQuotaClaimStatusTypeSuccess = "Approved" ResourceQuotaClaimStatusTypeReject = "Rejected" ResourceQuotaClaimStatusTypeError = "Error" ResourceQuotaClaimStatusTypeDeleted = "Resource Quota Deleted" )
const ( RoleBindingClaimStatusTypeAwaiting = "Awaiting" RoleBindingClaimStatusTypeSuccess = "Approved" RoleBindingClaimStatusTypeReject = "Rejected" RoleBindingClaimStatusTypeError = "Error" RoleBindingClaimStatusTypeDeleted = "Role Binding Deleted" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "claim.tmax.io", 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 )
var ResourceNameList = []string{ string(v1.ResourceCPU), string(v1.ResourceMemory), string(v1.ResourceEphemeralStorage), string(v1.ResourceRequestsCPU), string(v1.ResourceRequestsMemory), string(v1.ResourceRequestsEphemeralStorage), string(v1.ResourceLimitsCPU), string(v1.ResourceLimitsMemory), string(v1.ResourceLimitsEphemeralStorage), string(v1.ResourcePods), string(v1.ResourceQuotas), string(v1.ResourceServices), string(v1.ResourceReplicationControllers), string(v1.ResourceSecrets), string(v1.ResourceConfigMaps), string(v1.ResourcePersistentVolumeClaims), string(v1.ResourceStorage), string(v1.ResourceRequestsStorage), string(v1.ResourceServicesNodePorts), string(v1.ResourceServicesLoadBalancers), "count/" + string(v1.ResourcePersistentVolumeClaims), "count/" + string(v1.ResourceServices), "count/" + string(v1.ResourceConfigMaps), "count/" + string(v1.ResourceReplicationControllers), "count/deployments.apps", "count/replicasets.apps", "count/statefulsets.apps", "count/jobs.batch", "count/cronjobs.batch", "count/deployments.extensions", "requests.nvidia.com/gpu", "ssd-ceph-fs.storageclass.storage.k8s.io/requests.storage", "hdd-ceph-fs.storageclass.storage.k8s.io/requests.storage", "ssd-ceph-block.storageclass.storage.k8s.io/requests.storage", "hdd-ceph-block.storageclass.storage.k8s.io/requests.storage", }
Functions ¶
This section is empty.
Types ¶
type CustomHard ¶
type CustomHard struct { // LimitCpu limits the value of CPU LimitCpu string `json:"limitCpu"` // LimitCpu limits the value of Memory LimitMemory string `json:"limitMemory"` }
+kubebuilder:validation:Required +required CustomHard limits the value of CPU and Memory
func (*CustomHard) DeepCopy ¶
func (in *CustomHard) DeepCopy() *CustomHard
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomHard.
func (*CustomHard) DeepCopyInto ¶
func (in *CustomHard) DeepCopyInto(out *CustomHard)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NamespaceClaim ¶
type NamespaceClaim struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // namespaceName is name of the namespace which will be created ResourceName string `json:"resourceName"` // Spec is ResourceQuotaSpec of NamespaceClaim Spec v1.ResourceQuotaSpec `json:"spec"` // Status shows the present status of the NamespaceClaim Status NamespaceClaimStatus `json:"status,omitempty"` }
+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,shortName=nsc +kubebuilder:printcolumn:name="ResourceName",type=string,JSONPath=`.resourceName` +kubebuilder:printcolumn:name="Status",type=string,JSONPath=`.status.status` +kubebuilder:printcolumn:name="Reason",type=string,JSONPath=`.status.reason` NamespaceClaim is the Schema for the namespaceclaims API
func (*NamespaceClaim) DeepCopy ¶
func (in *NamespaceClaim) DeepCopy() *NamespaceClaim
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceClaim.
func (*NamespaceClaim) DeepCopyInto ¶
func (in *NamespaceClaim) DeepCopyInto(out *NamespaceClaim)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NamespaceClaim) DeepCopyObject ¶
func (in *NamespaceClaim) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*NamespaceClaim) SetupWebhookWithManager ¶
func (r *NamespaceClaim) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*NamespaceClaim) ValidateCreate ¶
func (r *NamespaceClaim) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*NamespaceClaim) ValidateDelete ¶
func (r *NamespaceClaim) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*NamespaceClaim) ValidateUpdate ¶
func (r *NamespaceClaim) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type NamespaceClaimList ¶
type NamespaceClaimList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []NamespaceClaim `json:"items"` }
NamespaceClaimList contains a list of NamespaceClaim
func (*NamespaceClaimList) DeepCopy ¶
func (in *NamespaceClaimList) DeepCopy() *NamespaceClaimList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceClaimList.
func (*NamespaceClaimList) DeepCopyInto ¶
func (in *NamespaceClaimList) DeepCopyInto(out *NamespaceClaimList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NamespaceClaimList) DeepCopyObject ¶
func (in *NamespaceClaimList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NamespaceClaimStatus ¶
type NamespaceClaimStatus struct { // Message shows log when the status changed in last Message string `json:"message,omitempty" protobuf:"bytes,2,opt,name=message"` // Reason shows why the status changed in last Reason string `json:"reason,omitempty" protobuf:"bytes,3,opt,name=reason"` // LastTransitionTime shows the time when the status changed in last LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,3,opt,name=lastTransitionTime"` // +kubebuilder:validation:Enum=Awaiting;Approved;Rejected;Error;Namespace Deleted; // Status shows the present status of the NamespaceClaim Status string `json:"status,omitempty" protobuf:"bytes,4,opt,name=status"` }
NamespaceClaimStatus defines the observed state of NamespaceClaim
func (*NamespaceClaimStatus) DeepCopy ¶
func (in *NamespaceClaimStatus) DeepCopy() *NamespaceClaimStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceClaimStatus.
func (*NamespaceClaimStatus) DeepCopyInto ¶
func (in *NamespaceClaimStatus) DeepCopyInto(out *NamespaceClaimStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceQuotaClaim ¶
type ResourceQuotaClaim struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=.metadata"` // Spec is ResourceQuotaSpec of NamespaceClaim Spec v1.ResourceQuotaSpec `json:"spec"` // Status shows the present status of the ResourceQuotaClaim Status ResourceQuotaClaimStatus `json:"status,omitempty"` }
+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:shortName=rqc +kubebuilder:printcolumn:name="Status",type=string,JSONPath=`.status.status` +kubebuilder:printcolumn:name="Reason",type=string,JSONPath=`.status.reason` ResourceQuotaClaim is the Schema for the resourcequotaclaims API
func (*ResourceQuotaClaim) DeepCopy ¶
func (in *ResourceQuotaClaim) DeepCopy() *ResourceQuotaClaim
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceQuotaClaim.
func (*ResourceQuotaClaim) DeepCopyInto ¶
func (in *ResourceQuotaClaim) DeepCopyInto(out *ResourceQuotaClaim)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResourceQuotaClaim) DeepCopyObject ¶
func (in *ResourceQuotaClaim) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ResourceQuotaClaim) SetupWebhookWithManager ¶
func (r *ResourceQuotaClaim) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*ResourceQuotaClaim) ValidateCreate ¶
func (r *ResourceQuotaClaim) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*ResourceQuotaClaim) ValidateDelete ¶
func (r *ResourceQuotaClaim) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*ResourceQuotaClaim) ValidateUpdate ¶
func (r *ResourceQuotaClaim) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type ResourceQuotaClaimList ¶
type ResourceQuotaClaimList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ResourceQuotaClaim `json:"items"` }
ResourceQuotaClaimList contains a list of ResourceQuotaClaim
func (*ResourceQuotaClaimList) DeepCopy ¶
func (in *ResourceQuotaClaimList) DeepCopy() *ResourceQuotaClaimList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceQuotaClaimList.
func (*ResourceQuotaClaimList) DeepCopyInto ¶
func (in *ResourceQuotaClaimList) DeepCopyInto(out *ResourceQuotaClaimList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResourceQuotaClaimList) DeepCopyObject ¶
func (in *ResourceQuotaClaimList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ResourceQuotaClaimStatus ¶
type ResourceQuotaClaimStatus struct { // Message shows log when the status changed in last Message string `json:"message,omitempty" protobuf:"bytes,1,opt,name=message"` // Reason shows why the status changed in last Reason string `json:"reason,omitempty" protobuf:"bytes,2,opt,name=reason"` // LastTransitionTime shows the time when the status changed in last LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,3,opt,name=lastTransitionTime"` // +kubebuilder:validation:Enum=Awaiting;Approved;Rejected;Error;Resource Quota Deleted; // Status shows the present status of the NamespaceClaim Status string `json:"status,omitempty" protobuf:"bytes,4,opt,name=status"` }
ResourceQuotaClaimStatus defines the observed state of ResourceQuotaClaim
func (*ResourceQuotaClaimStatus) DeepCopy ¶
func (in *ResourceQuotaClaimStatus) DeepCopy() *ResourceQuotaClaimStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceQuotaClaimStatus.
func (*ResourceQuotaClaimStatus) DeepCopyInto ¶
func (in *ResourceQuotaClaimStatus) DeepCopyInto(out *ResourceQuotaClaimStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RoleBindingClaim ¶
type RoleBindingClaim struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=.metadata"` // Subjects contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, // or a value for non-objects such as user and group names. Subjects []rbacApi.Subject `json:"subjects,omitempty" protobuf:"bytes,2,rep,name=subjects"` // RoleRef contains information that points to the role being used RoleRef rbacApi.RoleRef `json:"roleRef" protobuf:"bytes,3,opt,name=roleRef"` // Status shows the present status of the RoleBindingClaim Status RoleBindingClaimStatus `json:"status,omitempty"` }
+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:shortName=rbc +kubebuilder:printcolumn:name="Status",type=string,JSONPath=`.status.status` +kubebuilder:printcolumn:name="Reason",type=string,JSONPath=`.status.reason` RoleBindingClaim is the Schema for the rolebindingclaims API
func (*RoleBindingClaim) DeepCopy ¶
func (in *RoleBindingClaim) DeepCopy() *RoleBindingClaim
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleBindingClaim.
func (*RoleBindingClaim) DeepCopyInto ¶
func (in *RoleBindingClaim) DeepCopyInto(out *RoleBindingClaim)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RoleBindingClaim) DeepCopyObject ¶
func (in *RoleBindingClaim) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*RoleBindingClaim) SetupWebhookWithManager ¶
func (r *RoleBindingClaim) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*RoleBindingClaim) ValidateCreate ¶
func (r *RoleBindingClaim) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*RoleBindingClaim) ValidateDelete ¶
func (r *RoleBindingClaim) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*RoleBindingClaim) ValidateUpdate ¶
func (r *RoleBindingClaim) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type RoleBindingClaimList ¶
type RoleBindingClaimList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []RoleBindingClaim `json:"items"` }
RoleBindingClaimList contains a list of RoleBindingClaim
func (*RoleBindingClaimList) DeepCopy ¶
func (in *RoleBindingClaimList) DeepCopy() *RoleBindingClaimList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleBindingClaimList.
func (*RoleBindingClaimList) DeepCopyInto ¶
func (in *RoleBindingClaimList) DeepCopyInto(out *RoleBindingClaimList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RoleBindingClaimList) DeepCopyObject ¶
func (in *RoleBindingClaimList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RoleBindingClaimStatus ¶
type RoleBindingClaimStatus struct { // Message shows log when the status changed in last Message string `json:"message,omitempty" protobuf:"bytes,1,opt,name=message"` // Reason shows why the status changed in last Reason string `json:"reason,omitempty" protobuf:"bytes,2,opt,name=reason"` // LastTransitionTime shows the time when the status changed in last LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,3,opt,name=lastTransitionTime"` // +kubebuilder:validation:Enum=Awaiting;Approved;Rejected;Error;Role Binding Deleted; // Status shows the present status of the NamespaceClaim Status string `json:"status,omitempty" protobuf:"bytes,4,opt,name=status"` }
RoleBindingClaimStatus defines the observed state of RoleBindingClaim
func (*RoleBindingClaimStatus) DeepCopy ¶
func (in *RoleBindingClaimStatus) DeepCopy() *RoleBindingClaimStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleBindingClaimStatus.
func (*RoleBindingClaimStatus) DeepCopyInto ¶
func (in *RoleBindingClaimStatus) DeepCopyInto(out *RoleBindingClaimStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.