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 HardQuotaFor(resource fmt.Stringer) string
- func UsedQuotaFor(resource fmt.Stringer) string
- type AdditionalMetadata
- type AdditionalRoleBindings
- type AllowedIP
- type AllowedListSpec
- type ExternalServiceIPs
- type IngressHostnamesList
- func (in IngressHostnamesList) DeepCopy() IngressHostnamesList
- func (in IngressHostnamesList) DeepCopyInto(out *IngressHostnamesList)
- func (hostnames IngressHostnamesList) IsStringInList(value string) (ok bool)
- func (hostnames IngressHostnamesList) Len() int
- func (hostnames IngressHostnamesList) Less(i, j int) bool
- func (hostnames IngressHostnamesList) Swap(i, j int)
- type IngressHostnamesSpec
- type Kind
- type OwnerSpec
- 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" AllowedRegistriesAnnotation = "capsule.clastix.io/allowed-registries" AllowedRegistriesRegexpAnnotation = "capsule.clastix.io/allowed-registries-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 HardQuotaFor ¶ added in v0.0.4
func UsedQuotaFor ¶
Types ¶
type AdditionalMetadata ¶
type AdditionalMetadata struct {
AdditionalLabels map[string]string `json:"additionalLabels,omitempty"`
AdditionalAnnotations map[string]string `json:"additionalAnnotations,omitempty"`
}
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 AdditionalRoleBindings ¶ added in v0.0.3
type AdditionalRoleBindings struct {
ClusterRoleName string `json:"clusterRoleName"`
// kubebuilder:validation:Minimum=1
Subjects []rbacv1.Subject `json:"subjects"`
}
func (*AdditionalRoleBindings) DeepCopy ¶ added in v0.0.3
func (in *AdditionalRoleBindings) DeepCopy() *AdditionalRoleBindings
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AdditionalRoleBindings.
func (*AdditionalRoleBindings) DeepCopyInto ¶ added in v0.0.3
func (in *AdditionalRoleBindings) DeepCopyInto(out *AdditionalRoleBindings)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AllowedIP ¶ added in v0.0.4
type AllowedIP string
+kubebuilder:validation:Pattern="^([0-9]{1,3}.){3}[0-9]{1,3}(/([0-9]|[1-2][0-9]|3[0-2]))?$"
type AllowedListSpec ¶ added in v0.0.4
type AllowedListSpec struct {
Exact []string `json:"allowed,omitempty"`
Regex string `json:"allowedRegex,omitempty"`
}
func (*AllowedListSpec) DeepCopy ¶ added in v0.0.4
func (in *AllowedListSpec) DeepCopy() *AllowedListSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AllowedListSpec.
func (*AllowedListSpec) DeepCopyInto ¶ added in v0.0.4
func (in *AllowedListSpec) DeepCopyInto(out *AllowedListSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AllowedListSpec) ExactMatch ¶ added in v0.0.4
func (in *AllowedListSpec) ExactMatch(value string) (ok bool)
func (AllowedListSpec) RegexMatch ¶ added in v0.0.4
func (in AllowedListSpec) RegexMatch(value string) (ok bool)
type ExternalServiceIPs ¶ added in v0.0.4
type ExternalServiceIPs struct {
Allowed []AllowedIP `json:"allowed"`
}
func (*ExternalServiceIPs) DeepCopy ¶ added in v0.0.4
func (in *ExternalServiceIPs) DeepCopy() *ExternalServiceIPs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalServiceIPs.
func (*ExternalServiceIPs) DeepCopyInto ¶ added in v0.0.4
func (in *ExternalServiceIPs) DeepCopyInto(out *ExternalServiceIPs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IngressHostnamesList ¶ added in v0.0.4
type IngressHostnamesList []string
func (IngressHostnamesList) DeepCopy ¶ added in v0.0.4
func (in IngressHostnamesList) DeepCopy() IngressHostnamesList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressHostnamesList.
func (IngressHostnamesList) DeepCopyInto ¶ added in v0.0.4
func (in IngressHostnamesList) DeepCopyInto(out *IngressHostnamesList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (IngressHostnamesList) IsStringInList ¶ added in v0.0.4
func (hostnames IngressHostnamesList) IsStringInList(value string) (ok bool)
func (IngressHostnamesList) Len ¶ added in v0.0.4
func (hostnames IngressHostnamesList) Len() int
func (IngressHostnamesList) Less ¶ added in v0.0.4
func (hostnames IngressHostnamesList) Less(i, j int) bool
func (IngressHostnamesList) Swap ¶ added in v0.0.4
func (hostnames IngressHostnamesList) Swap(i, j int)
type IngressHostnamesSpec ¶ added in v0.0.4
type IngressHostnamesSpec struct {
Allowed IngressHostnamesList `json:"allowed"`
AllowedRegex string `json:"allowedRegex"`
}
func (*IngressHostnamesSpec) DeepCopy ¶ added in v0.0.4
func (in *IngressHostnamesSpec) DeepCopy() *IngressHostnamesSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressHostnamesSpec.
func (*IngressHostnamesSpec) DeepCopyInto ¶ added in v0.0.4
func (in *IngressHostnamesSpec) DeepCopyInto(out *IngressHostnamesSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 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:Minimum=1
NamespaceQuota *int32 `json:"namespaceQuota,omitempty"`
NamespacesMetadata AdditionalMetadata `json:"namespacesMetadata,omitempty"`
ServicesMetadata AdditionalMetadata `json:"servicesMetadata,omitempty"`
StorageClasses *AllowedListSpec `json:"storageClasses,omitempty"`
IngressClasses *AllowedListSpec `json:"ingressClasses,omitempty"`
IngressHostnames *AllowedListSpec `json:"ingressHostnames,omitempty"`
ContainerRegistries *AllowedListSpec `json:"containerRegistries,omitempty"`
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
NetworkPolicies []networkingv1.NetworkPolicySpec `json:"networkPolicies,omitempty"`
LimitRanges []corev1.LimitRangeSpec `json:"limitRanges,omitempty"`
ResourceQuota []corev1.ResourceQuotaSpec `json:"resourceQuotas,omitempty"`
AdditionalRoleBindings []AdditionalRoleBindings `json:"additionalRoleBindings,omitempty"`
ExternalServiceIPs *ExternalServiceIPs `json:"externalServiceIPs,omitempty"`
}
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 []string `json:"namespaces,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.