Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the cloud.redhat.com v1alpha1 API group +kubebuilder:object:generate=true +groupName=cloud.redhat.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "cloud.redhat.com", 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 ¶
Types ¶
type NamespacePool ¶
type NamespacePool struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec NamespacePoolSpec `json:"spec,omitempty"`
Status NamespacePoolStatus `json:"status,omitempty"`
}
NamespacePool is the Schema for the pools API
func (*NamespacePool) DeepCopy ¶
func (in *NamespacePool) DeepCopy() *NamespacePool
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespacePool.
func (*NamespacePool) DeepCopyInto ¶
func (in *NamespacePool) DeepCopyInto(out *NamespacePool)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NamespacePool) DeepCopyObject ¶
func (in *NamespacePool) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*NamespacePool) MakeOwnerReference ¶
func (i *NamespacePool) MakeOwnerReference() metav1.OwnerReference
MakeOwnerReference defines the owner reference pointing to the Pool resource.
type NamespacePoolList ¶
type NamespacePoolList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []NamespacePool `json:"items"`
}
PoolList contains a list of Pool
func (*NamespacePoolList) DeepCopy ¶
func (in *NamespacePoolList) DeepCopy() *NamespacePoolList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespacePoolList.
func (*NamespacePoolList) DeepCopyInto ¶
func (in *NamespacePoolList) DeepCopyInto(out *NamespacePoolList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NamespacePoolList) DeepCopyObject ¶
func (in *NamespacePoolList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NamespacePoolSpec ¶
type NamespacePoolSpec struct {
// Number of namespaces to have ready in the pool
Size int `json:"size"`
// Optional max number of namespaces for a pool
SizeLimit *int `json:"sizeLimit,omitempty"`
// Determine whether the project uses a project or a namespace
Local bool `json:"local"`
// Clowdenvironment template for the namespace
ClowdEnvironment clowder.ClowdEnvironmentSpec `json:"clowdenvironment"`
// Resource limits for containers and pods for the deployed namespace
LimitRange core.LimitRange `json:"limitrange"`
// Defined resource quotas for specific states for the deployed namespace
ResourceQuotas core.ResourceQuotaList `json:"resourcequotas"`
// Description for the namespace pool
Description string `json:"description,omitempty"`
}
NamespacePoolSpec defines the desired state of Pool
func (*NamespacePoolSpec) DeepCopy ¶
func (in *NamespacePoolSpec) DeepCopy() *NamespacePoolSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespacePoolSpec.
func (*NamespacePoolSpec) DeepCopyInto ¶
func (in *NamespacePoolSpec) DeepCopyInto(out *NamespacePoolSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NamespacePoolStatus ¶
type NamespacePoolStatus struct {
Ready int `json:"ready"`
Creating int `json:"creating"`
Reserved int `json:"reserved"`
}
NamespacePoolStatus defines the observed state of Pool
func (*NamespacePoolStatus) DeepCopy ¶
func (in *NamespacePoolStatus) DeepCopy() *NamespacePoolStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespacePoolStatus.
func (*NamespacePoolStatus) DeepCopyInto ¶
func (in *NamespacePoolStatus) DeepCopyInto(out *NamespacePoolStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NamespaceReservation ¶
type NamespaceReservation struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec NamespaceReservationSpec `json:"spec,omitempty"`
Status NamespaceReservationStatus `json:"status,omitempty"`
}
NamespaceReservation is the Schema for the namespacereservations API
func (*NamespaceReservation) DeepCopy ¶
func (in *NamespaceReservation) DeepCopy() *NamespaceReservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceReservation.
func (*NamespaceReservation) DeepCopyInto ¶
func (in *NamespaceReservation) DeepCopyInto(out *NamespaceReservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NamespaceReservation) DeepCopyObject ¶
func (in *NamespaceReservation) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*NamespaceReservation) MakeOwnerReference ¶
func (i *NamespaceReservation) MakeOwnerReference() metav1.OwnerReference
MakeOwnerReference defines the owner reference pointing to the NamespaceReservation resource.
type NamespaceReservationList ¶
type NamespaceReservationList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []NamespaceReservation `json:"items"`
}
NamespaceReservationList contains a list of NamespaceReservation
func (*NamespaceReservationList) DeepCopy ¶
func (in *NamespaceReservationList) DeepCopy() *NamespaceReservationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceReservationList.
func (*NamespaceReservationList) DeepCopyInto ¶
func (in *NamespaceReservationList) DeepCopyInto(out *NamespaceReservationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NamespaceReservationList) DeepCopyObject ¶
func (in *NamespaceReservationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NamespaceReservationSpec ¶
type NamespaceReservationSpec struct {
// Duration is how long the reservation will last
Duration *string `json:"duration,omitempty"`
// Requester is the entity (bot or human) requesting the namespace
Requester string `json:"requester"`
// PoolType is the pool resource specified to reserve a namespace from
// +kubebuilder:default:=default
Pool string `json:"pool,omitempty"`
}
NamespaceReservationSpec defines the desired state of NamespaceReservation
func (*NamespaceReservationSpec) DeepCopy ¶
func (in *NamespaceReservationSpec) DeepCopy() *NamespaceReservationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceReservationSpec.
func (*NamespaceReservationSpec) DeepCopyInto ¶
func (in *NamespaceReservationSpec) DeepCopyInto(out *NamespaceReservationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NamespaceReservationStatus ¶
type NamespaceReservationStatus struct {
// Expiration of reservation
Expiration metav1.Time `json:"expiration"`
// State determines whether a reservation is active, waiting, or in error
State string `json:"state"`
// Name of the namespace associated with the reservation
Namespace string `json:"namespace"`
// Specifies the pool type that the reservation was requested with
Pool string `json:"pool,omitempty"`
}
NamespaceReservationStatus defines the observed state of NamespaceReservation
func (*NamespaceReservationStatus) DeepCopy ¶
func (in *NamespaceReservationStatus) DeepCopy() *NamespaceReservationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceReservationStatus.
func (*NamespaceReservationStatus) DeepCopyInto ¶
func (in *NamespaceReservationStatus) DeepCopyInto(out *NamespaceReservationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.