Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the capsule.clastix.io v1alpha1 API group +kubebuilder:object:generate=true +groupName=capsule.clastix.io
Index ¶
- Constants
- Variables
- func GetTypeLabel(t runtime.Object) (label string, err error)
- func UsedQuotaFor(resource corev1.ResourceName) string
- type AdditionalMetadata
- type IngressClassList
- func (in IngressClassList) DeepCopy() IngressClassList
- func (in IngressClassList) DeepCopyInto(out *IngressClassList)
- func (n IngressClassList) IsStringInList(value string) (ok bool)
- func (n IngressClassList) Len() int
- func (n IngressClassList) Less(i, j int) bool
- func (n IngressClassList) Swap(i, j int)
- type IngressClassesSpec
- type Kind
- type NamespaceList
- type NamespaceQuota
- type OwnerSpec
- type StorageClassList
- func (in StorageClassList) DeepCopy() StorageClassList
- func (in StorageClassList) DeepCopyInto(out *StorageClassList)
- func (n StorageClassList) IsStringInList(value string) (ok bool)
- func (n StorageClassList) Len() int
- func (n StorageClassList) Less(i, j int) bool
- func (n StorageClassList) Swap(i, j int)
- type StorageClassesSpec
- type Tenant
- type TenantList
- type TenantSpec
- type TenantStatus
Constants ¶
const ( AvailableIngressClassesAnnotation = "capsule.clastix.io/ingress-classes" AvailableIngressClassesRegexpAnnotation = "capsule.clastix.io/ingress-classes-regexp" AvailableStorageClassesAnnotation = "capsule.clastix.io/storage-classes" AvailableStorageClassesRegexpAnnotation = "capsule.clastix.io/storage-classes-regexp" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "capsule.clastix.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 )
Functions ¶
func UsedQuotaFor ¶
func UsedQuotaFor(resource corev1.ResourceName) string
Types ¶
type AdditionalMetadata ¶
type AdditionalMetadata struct { // +nullable AdditionalLabels map[string]string `json:"additionalLabels"` // +nullable AdditionalAnnotations map[string]string `json:"additionalAnnotations"` }
func (*AdditionalMetadata) DeepCopy ¶
func (in *AdditionalMetadata) DeepCopy() *AdditionalMetadata
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AdditionalMetadata.
func (*AdditionalMetadata) DeepCopyInto ¶
func (in *AdditionalMetadata) DeepCopyInto(out *AdditionalMetadata)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IngressClassList ¶
type IngressClassList []string
func (IngressClassList) DeepCopy ¶
func (in IngressClassList) DeepCopy() IngressClassList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressClassList.
func (IngressClassList) DeepCopyInto ¶
func (in IngressClassList) DeepCopyInto(out *IngressClassList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (IngressClassList) IsStringInList ¶
func (n IngressClassList) IsStringInList(value string) (ok bool)
func (IngressClassList) Len ¶
func (n IngressClassList) Len() int
func (IngressClassList) Less ¶
func (n IngressClassList) Less(i, j int) bool
func (IngressClassList) Swap ¶
func (n IngressClassList) Swap(i, j int)
type IngressClassesSpec ¶
type IngressClassesSpec struct { // +nullable Allowed IngressClassList `json:"allowed"` // +nullable AllowedRegex string `json:"allowedRegex"` }
func (*IngressClassesSpec) DeepCopy ¶
func (in *IngressClassesSpec) DeepCopy() *IngressClassesSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressClassesSpec.
func (*IngressClassesSpec) DeepCopyInto ¶
func (in *IngressClassesSpec) DeepCopyInto(out *IngressClassesSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NamespaceList ¶
type NamespaceList []string
func (NamespaceList) DeepCopy ¶
func (in NamespaceList) DeepCopy() NamespaceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceList.
func (NamespaceList) DeepCopyInto ¶
func (in NamespaceList) DeepCopyInto(out *NamespaceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (NamespaceList) IsStringInList ¶
func (n NamespaceList) IsStringInList(value string) (ok bool)
func (NamespaceList) Len ¶
func (n NamespaceList) Len() int
func (NamespaceList) Less ¶
func (n NamespaceList) Less(i, j int) bool
func (NamespaceList) Swap ¶
func (n NamespaceList) Swap(i, j int)
type OwnerSpec ¶
OwnerSpec defines tenant owner name and kind
func (*OwnerSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OwnerSpec.
func (*OwnerSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StorageClassList ¶
type StorageClassList []string
func (StorageClassList) DeepCopy ¶
func (in StorageClassList) DeepCopy() StorageClassList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageClassList.
func (StorageClassList) DeepCopyInto ¶
func (in StorageClassList) DeepCopyInto(out *StorageClassList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (StorageClassList) IsStringInList ¶
func (n StorageClassList) IsStringInList(value string) (ok bool)
func (StorageClassList) Len ¶
func (n StorageClassList) Len() int
func (StorageClassList) Less ¶
func (n StorageClassList) Less(i, j int) bool
func (StorageClassList) Swap ¶
func (n StorageClassList) Swap(i, j int)
type StorageClassesSpec ¶
type StorageClassesSpec struct { // +nullable Allowed StorageClassList `json:"allowed"` // +nullable AllowedRegex string `json:"allowedRegex"` }
func (*StorageClassesSpec) DeepCopy ¶
func (in *StorageClassesSpec) DeepCopy() *StorageClassesSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageClassesSpec.
func (*StorageClassesSpec) DeepCopyInto ¶
func (in *StorageClassesSpec) DeepCopyInto(out *StorageClassesSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Tenant ¶
type Tenant struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec TenantSpec `json:"spec,omitempty"` Status TenantStatus `json:"status,omitempty"` }
Tenant is the Schema for the tenants API
func (*Tenant) AssignNamespaces ¶
func (*Tenant) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Tenant.
func (*Tenant) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Tenant) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TenantList ¶
type TenantList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Tenant `json:"items"` }
TenantList contains a list of Tenant
func (*TenantList) DeepCopy ¶
func (in *TenantList) DeepCopy() *TenantList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TenantList.
func (*TenantList) DeepCopyInto ¶
func (in *TenantList) DeepCopyInto(out *TenantList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TenantList) DeepCopyObject ¶
func (in *TenantList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TenantSpec ¶
type TenantSpec struct { Owner OwnerSpec `json:"owner"` // +kubebuilder:validation:Optional NamespacesMetadata AdditionalMetadata `json:"namespacesMetadata"` // +kubebuilder:validation:Optional ServicesMetadata AdditionalMetadata `json:"servicesMetadata"` StorageClasses StorageClassesSpec `json:"storageClasses"` IngressClasses IngressClassesSpec `json:"ingressClasses"` // +kubebuilder:validation:Optional NodeSelector map[string]string `json:"nodeSelector"` NamespaceQuota NamespaceQuota `json:"namespaceQuota"` NetworkPolicies []networkingv1.NetworkPolicySpec `json:"networkPolicies,omitempty"` LimitRanges []corev1.LimitRangeSpec `json:"limitRanges"` // +kubebuilder:validation:Optional ResourceQuota []corev1.ResourceQuotaSpec `json:"resourceQuotas"` }
TenantSpec defines the desired state of Tenant
func (*TenantSpec) DeepCopy ¶
func (in *TenantSpec) DeepCopy() *TenantSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TenantSpec.
func (*TenantSpec) DeepCopyInto ¶
func (in *TenantSpec) DeepCopyInto(out *TenantSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TenantStatus ¶
type TenantStatus struct { Size uint `json:"size"` Namespaces NamespaceList `json:"namespaces,omitempty"` Users []string `json:"users,omitempty"` Groups []string `json:"groups,omitempty"` }
TenantStatus defines the observed state of Tenant
func (*TenantStatus) DeepCopy ¶
func (in *TenantStatus) DeepCopy() *TenantStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TenantStatus.
func (*TenantStatus) DeepCopyInto ¶
func (in *TenantStatus) DeepCopyInto(out *TenantStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.