v1alpha1

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

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

View Source
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

View Source
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 GetTypeLabel

func GetTypeLabel(t runtime.Object) (label string, err error)

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 Kind

type Kind string

+kubebuilder:validation:Enum=User;Group

func (Kind) String

func (k Kind) String() string

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 NamespaceQuota

type NamespaceQuota uint

+kubebuilder:validation:Minimum=1

type OwnerSpec

type OwnerSpec struct {
	Name string `json:"name"`
	Kind Kind   `json:"kind"`
}

OwnerSpec defines tenant owner name and kind

func (*OwnerSpec) DeepCopy

func (in *OwnerSpec) DeepCopy() *OwnerSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OwnerSpec.

func (*OwnerSpec) DeepCopyInto

func (in *OwnerSpec) DeepCopyInto(out *OwnerSpec)

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 (t *Tenant) AssignNamespaces(namespaces []corev1.Namespace)

func (*Tenant) DeepCopy

func (in *Tenant) DeepCopy() *Tenant

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Tenant.

func (*Tenant) DeepCopyInto

func (in *Tenant) DeepCopyInto(out *Tenant)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Tenant) DeepCopyObject

func (in *Tenant) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Tenant) IsFull

func (t *Tenant) IsFull() bool

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL