v1alpha1

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the controller v1alpha1 API group +kubebuilder:object:generate=true +groupName=controller.kubeslice.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "controller.kubeslice.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

This section is empty.

Types

type Cluster

type Cluster struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ClusterSpec   `json:"spec,omitempty"`
	Status ClusterStatus `json:"status,omitempty"`
}

Cluster is the Schema for the clusters API

func (*Cluster) DeepCopy

func (in *Cluster) DeepCopy() *Cluster

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

func (*Cluster) DeepCopyInto

func (in *Cluster) DeepCopyInto(out *Cluster)

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

func (*Cluster) DeepCopyObject

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

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

func (*Cluster) Default

func (r *Cluster) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*Cluster) SetupWebhookWithManager

func (r *Cluster) SetupWebhookWithManager(mgr ctrl.Manager, validateCreate clusterValidation, validateUpdate clusterUpdateValidation, validateDelete clusterValidation) error

func (*Cluster) ValidateCreate

func (r *Cluster) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Cluster) ValidateDelete

func (r *Cluster) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Cluster) ValidateUpdate

func (r *Cluster) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type ClusterList

type ClusterList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Cluster `json:"items"`
}

ClusterList contains a list of Cluster

func (*ClusterList) DeepCopy

func (in *ClusterList) DeepCopy() *ClusterList

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

func (*ClusterList) DeepCopyInto

func (in *ClusterList) DeepCopyInto(out *ClusterList)

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

func (*ClusterList) DeepCopyObject

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

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

type ClusterProperty

type ClusterProperty struct {
	//Telemetry contains Telemetry information
	Telemetry Telemetry `json:"telemetry,omitempty"`
	//GeoLocation contains information regarding Geographical Location of the Cluster
	GeoLocation GeoLocation `json:"geoLocation,omitempty"`
	//Monitoring contains the Kubernetes Monitoring Dashboard
	Monitoring Monitoring `json:"monitoring,omitempty"`
}

func (*ClusterProperty) DeepCopy

func (in *ClusterProperty) DeepCopy() *ClusterProperty

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

func (*ClusterProperty) DeepCopyInto

func (in *ClusterProperty) DeepCopyInto(out *ClusterProperty)

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

type ClusterSpec

type ClusterSpec struct {
	//NodeIP is the IP address of the Node
	NodeIP string `json:"nodeIP,omitempty"`
	// NetworkInterface is the network interface attached with the cluster.
	NetworkInterface string `json:"networkInterface,omitempty"`
	//put in an object
	ClusterProperty ClusterProperty `json:"clusterProperty,omitempty"`
}

ClusterSpec defines the desired state of Cluster

func (*ClusterSpec) DeepCopy

func (in *ClusterSpec) DeepCopy() *ClusterSpec

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

func (*ClusterSpec) DeepCopyInto

func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec)

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

type ClusterStatus

type ClusterStatus struct {
	// SecretName is the name of the secret for the worker cluster.
	SecretName string `json:"secretName,omitempty"`
	//CniSubnet is the podip and service ip subnet of CNI
	CniSubnet []string `json:"cniSubnet,omitempty"`
	// Namespaces present in cluster
	Namespaces []NamespacesConfig `json:"namespaces,omitempty"`
}

ClusterStatus defines the observed state of Cluster

func (*ClusterStatus) DeepCopy

func (in *ClusterStatus) DeepCopy() *ClusterStatus

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

func (*ClusterStatus) DeepCopyInto

func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus)

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

type ExternalGatewayConfig

type ExternalGatewayConfig struct {
	Ingress   ExternalGatewayConfigOptions `json:"ingress,omitempty"`
	Egress    ExternalGatewayConfigOptions `json:"egress,omitempty"`
	NsIngress ExternalGatewayConfigOptions `json:"nsIngress,omitempty"`
	//+kubebuilder:validation:Enum:=none;istio
	GatewayType string   `json:"gatewayType,omitempty"`
	Clusters    []string `json:"clusters,omitempty"`
}

ExternalGatewayConfig is the configuration for external gateways like 'istio', etc/

func (*ExternalGatewayConfig) DeepCopy

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

func (*ExternalGatewayConfig) DeepCopyInto

func (in *ExternalGatewayConfig) DeepCopyInto(out *ExternalGatewayConfig)

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

type ExternalGatewayConfigOptions

type ExternalGatewayConfigOptions struct {
	Enabled bool `json:"enabled,omitempty"`
}

func (*ExternalGatewayConfigOptions) DeepCopy

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

func (*ExternalGatewayConfigOptions) DeepCopyInto

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

type GeoLocation

type GeoLocation struct {
	//CloudProvider is the cloud service provider
	CloudProvider string `json:"cloudProvider,omitempty"`
	//CloudRegion is the region of the cloud
	CloudRegion string `json:"cloudRegion,omitempty"`
	//Latitude is the latitude of the cluster
	Latitude string `json:"latitude,omitempty"`
	//Longitude is the longitude of the cluster
	Longitude string `json:"longitude,omitempty"`
}

GeoLocation defines the field of ClusterSpec

func (*GeoLocation) DeepCopy

func (in *GeoLocation) DeepCopy() *GeoLocation

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

func (*GeoLocation) DeepCopyInto

func (in *GeoLocation) DeepCopyInto(out *GeoLocation)

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

type KubernetesDashboard

type KubernetesDashboard struct {
	//Enabled is the enable status of the KubernetesDashboard
	Enabled bool `json:"enabled,omitempty"`
	//AccessToken is the Access Token to access the KubernetesDashboard
	AccessToken string `json:"accessToken,omitempty"`
	//IngressPrefix is the prefix of ingress gateway for KubernetesDashboard
	IngressPrefix string `json:"ingressPrefix,omitempty"`
	//Endpoint is the base endpoint to access the kubernetes dashboard
	Endpoint string `json:"endpoint,omitempty"`
}

KubernetesDashboard defines the field of ClusterSpec

func (*KubernetesDashboard) DeepCopy

func (in *KubernetesDashboard) DeepCopy() *KubernetesDashboard

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

func (*KubernetesDashboard) DeepCopyInto

func (in *KubernetesDashboard) DeepCopyInto(out *KubernetesDashboard)

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

type Monitoring

type Monitoring struct {
	//KubernetesDashboard contains the information regarding Kubernetes Monitoring Dashboard
	KubernetesDashboard KubernetesDashboard `json:"kubernetesDashboard,omitempty"`
}

Monitoring defines the field of ClusterSpec

func (*Monitoring) DeepCopy

func (in *Monitoring) DeepCopy() *Monitoring

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

func (*Monitoring) DeepCopyInto

func (in *Monitoring) DeepCopyInto(out *Monitoring)

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

type NamespaceIsolationProfile

type NamespaceIsolationProfile struct {
	//+kubebuilder:default:=false
	//+kubebuilder:validation:Optional
	IsolationEnabled      bool                      `json:"isolationEnabled"`
	ApplicationNamespaces []SliceNamespaceSelection `json:"applicationNamespaces,omitempty"`
	AllowedNamespaces     []SliceNamespaceSelection `json:"allowedNamespaces,omitempty"`
}

func (*NamespaceIsolationProfile) DeepCopy

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

func (*NamespaceIsolationProfile) DeepCopyInto

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

type NamespacesConfig

type NamespacesConfig struct {
	Name      string `json:"name,omitempty"`
	SliceName string `json:"sliceName,omitempty"`
}

func (*NamespacesConfig) DeepCopy

func (in *NamespacesConfig) DeepCopy() *NamespacesConfig

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

func (*NamespacesConfig) DeepCopyInto

func (in *NamespacesConfig) DeepCopyInto(out *NamespacesConfig)

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

type Project

type Project struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ProjectSpec   `json:"spec,omitempty"`
	Status ProjectStatus `json:"status,omitempty"`
}

Project is the Schema for the projects API

func (*Project) DeepCopy

func (in *Project) DeepCopy() *Project

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

func (*Project) DeepCopyInto

func (in *Project) DeepCopyInto(out *Project)

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

func (*Project) DeepCopyObject

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

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

func (*Project) Default

func (r *Project) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*Project) SetupWebhookWithManager

func (r *Project) SetupWebhookWithManager(mgr ctrl.Manager, validateCreate customProjectValidation, validateUpdate customProjectValidation, validateDelete customProjectValidation) error

func (*Project) ValidateCreate

func (r *Project) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Project) ValidateDelete

func (r *Project) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Project) ValidateUpdate

func (r *Project) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type ProjectList

type ProjectList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Project `json:"items"`
}

ProjectList contains a list of Project

func (*ProjectList) DeepCopy

func (in *ProjectList) DeepCopy() *ProjectList

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

func (*ProjectList) DeepCopyInto

func (in *ProjectList) DeepCopyInto(out *ProjectList)

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

func (*ProjectList) DeepCopyObject

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

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

type ProjectSpec

type ProjectSpec struct {
	// ServiceAccount is a field of Project. Edit project_types.go to remove/update
	ServiceAccount ServiceAccount `json:"serviceAccount,omitempty"`
}

ProjectSpec defines the desired state of Project

func (*ProjectSpec) DeepCopy

func (in *ProjectSpec) DeepCopy() *ProjectSpec

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

func (*ProjectSpec) DeepCopyInto

func (in *ProjectSpec) DeepCopyInto(out *ProjectSpec)

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

type ProjectStatus

type ProjectStatus struct {
}

ProjectStatus defines the observed state of Project

func (*ProjectStatus) DeepCopy

func (in *ProjectStatus) DeepCopy() *ProjectStatus

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

func (*ProjectStatus) DeepCopyInto

func (in *ProjectStatus) DeepCopyInto(out *ProjectStatus)

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

type QOSProfile

type QOSProfile struct {
	//+kubebuilder:default:=HTB
	// +kubebuilder:validation:Required
	QueueType string `json:"queueType"`

	// +kubebuilder:validation:Required
	Priority int `json:"priority"`

	//+kubebuilder:default:=BANDWIDTH_CONTROL
	// +kubebuilder:validation:Required
	TcType string `json:"tcType"`

	//+kubebuilder:validation:Required
	BandwidthCeilingKbps int `json:"bandwidthCeilingKbps"` //FIXME: Need research for unlimited

	//+kubebuilder:validation:Required
	BandwidthGuaranteedKbps int `json:"bandwidthGuaranteedKbps"`

	//+kubebuilder:validation:Enum:=Default;AF11;AF12;AF13;AF21;AF22;AF23;AF31;AF32;AF33;AF41;AF42;AF43;EF
	//+kubebuilder:validation:Required
	DscpClass string `json:"dscpClass"`
}

QOSProfile is the QOS Profile configuration from backend

func (*QOSProfile) DeepCopy

func (in *QOSProfile) DeepCopy() *QOSProfile

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

func (*QOSProfile) DeepCopyInto

func (in *QOSProfile) DeepCopyInto(out *QOSProfile)

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

type ServiceAccount

type ServiceAccount struct {
	ReadOnly  []string `json:"readOnly,omitempty"`
	ReadWrite []string `json:"readWrite,omitempty"`
}

ServiceAccount defines the field of ProjectSpec

func (*ServiceAccount) DeepCopy

func (in *ServiceAccount) DeepCopy() *ServiceAccount

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

func (*ServiceAccount) DeepCopyInto

func (in *ServiceAccount) DeepCopyInto(out *ServiceAccount)

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

type ServiceDiscoveryEndpoint

type ServiceDiscoveryEndpoint struct {
	// The name of the pod.
	PodName string `json:"podName,omitempty"`
	// The ID of the cluster.
	Cluster string `json:"cluster,omitempty"`
	// The NSM IP address.
	NsmIp string `json:"nsmIp,omitempty"`
	// the dns_name of the service
	DnsName string `json:"dnsName,omitempty"`
	// port of the service
	Port int32 `json:"port,omitempty"`
}

func (*ServiceDiscoveryEndpoint) DeepCopy

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

func (*ServiceDiscoveryEndpoint) DeepCopyInto

func (in *ServiceDiscoveryEndpoint) DeepCopyInto(out *ServiceDiscoveryEndpoint)

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

type ServiceDiscoveryPort

type ServiceDiscoveryPort struct {
	// The name of the port.
	Name string `json:"name,omitempty"`
	// The port number.
	Port int32 `json:"port,omitempty"`
	// The protocol.
	Protocol string `json:"protocol,omitempty"`
}

func (*ServiceDiscoveryPort) DeepCopy

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

func (*ServiceDiscoveryPort) DeepCopyInto

func (in *ServiceDiscoveryPort) DeepCopyInto(out *ServiceDiscoveryPort)

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

type ServiceExportConfig

type ServiceExportConfig struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ServiceExportConfigSpec   `json:"spec,omitempty"`
	Status ServiceExportConfigStatus `json:"status,omitempty"`
}

ServiceExportConfig is the Schema for the serviceexportconfigs API

func (*ServiceExportConfig) DeepCopy

func (in *ServiceExportConfig) DeepCopy() *ServiceExportConfig

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

func (*ServiceExportConfig) DeepCopyInto

func (in *ServiceExportConfig) DeepCopyInto(out *ServiceExportConfig)

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

func (*ServiceExportConfig) DeepCopyObject

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

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

func (*ServiceExportConfig) Default

func (r *ServiceExportConfig) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*ServiceExportConfig) SetupWebhookWithManager

func (r *ServiceExportConfig) SetupWebhookWithManager(mgr ctrl.Manager, validateCreate customValidationServiceExport, updateUpdate customValidationServiceExport) error

func (*ServiceExportConfig) ValidateCreate

func (r *ServiceExportConfig) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*ServiceExportConfig) ValidateDelete

func (r *ServiceExportConfig) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*ServiceExportConfig) ValidateUpdate

func (r *ServiceExportConfig) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type ServiceExportConfigList

type ServiceExportConfigList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ServiceExportConfig `json:"items"`
}

ServiceExportConfigList contains a list of ServiceExportConfig

func (*ServiceExportConfigList) DeepCopy

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

func (*ServiceExportConfigList) DeepCopyInto

func (in *ServiceExportConfigList) DeepCopyInto(out *ServiceExportConfigList)

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

func (*ServiceExportConfigList) DeepCopyObject

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

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

type ServiceExportConfigSpec

type ServiceExportConfigSpec struct {
	//ServiceName is the name of the service
	// +kubebuilder:validation:Required
	ServiceName      string `json:"serviceName"`
	ServiceNamespace string `json:"serviceNamespace,omitempty"`
	// clusterId is the id of the cluster where the service is available.
	// +kubebuilder:validation:Required
	SourceCluster string `json:"sourceCluster"`
	// The name of the slice.
	// +kubebuilder:validation:Required
	SliceName string `json:"sliceName"`
	// the service discovery endpoint array
	ServiceDiscoveryEndpoints []ServiceDiscoveryEndpoint `json:"serviceDiscoveryEndpoints,omitempty"`
	// The ports for the given service.
	ServiceDiscoveryPorts []ServiceDiscoveryPort `json:"serviceDiscoveryPorts,omitempty"`
}

ServiceExportConfigSpec defines the desired state of ServiceExportConfig

func (*ServiceExportConfigSpec) DeepCopy

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

func (*ServiceExportConfigSpec) DeepCopyInto

func (in *ServiceExportConfigSpec) DeepCopyInto(out *ServiceExportConfigSpec)

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

type ServiceExportConfigStatus

type ServiceExportConfigStatus struct {
}

func (*ServiceExportConfigStatus) DeepCopy

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

func (*ServiceExportConfigStatus) DeepCopyInto

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

type SliceConfig

type SliceConfig struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   SliceConfigSpec   `json:"spec,omitempty"`
	Status SliceConfigStatus `json:"status,omitempty"`
}

SliceConfig is the Schema for the sliceconfig API

func (*SliceConfig) DeepCopy

func (in *SliceConfig) DeepCopy() *SliceConfig

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

func (*SliceConfig) DeepCopyInto

func (in *SliceConfig) DeepCopyInto(out *SliceConfig)

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

func (*SliceConfig) DeepCopyObject

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

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

func (*SliceConfig) Default

func (r *SliceConfig) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*SliceConfig) SetupWebhookWithManager

func (r *SliceConfig) SetupWebhookWithManager(mgr ctrl.Manager, validateCreate sliceConfigValidation, validateUpdate sliceConfigUpdateValidation, validateDelete sliceConfigValidation) error

func (*SliceConfig) ValidateCreate

func (r *SliceConfig) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*SliceConfig) ValidateDelete

func (r *SliceConfig) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*SliceConfig) ValidateUpdate

func (r *SliceConfig) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type SliceConfigList

type SliceConfigList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []SliceConfig `json:"items"`
}

SliceConfigList contains a list of SliceConfig

func (*SliceConfigList) DeepCopy

func (in *SliceConfigList) DeepCopy() *SliceConfigList

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

func (*SliceConfigList) DeepCopyInto

func (in *SliceConfigList) DeepCopyInto(out *SliceConfigList)

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

func (*SliceConfigList) DeepCopyObject

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

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

type SliceConfigSpec

type SliceConfigSpec struct {
	SliceSubnet string `json:"sliceSubnet,omitempty"`
	//+kubebuilder:default:=Application
	SliceType string `json:"sliceType,omitempty"`
	// +kubebuilder:validation:Required
	SliceGatewayProvider WorkerSliceGatewayProvider `json:"sliceGatewayProvider"`
	//+kubebuilder:default:=Local
	SliceIpamType          string   `json:"sliceIpamType,omitempty"`
	Clusters               []string `json:"clusters,omitempty"`
	StandardQosProfileName string   `json:"standardQosProfileName,omitempty"` // FIXME: Add OneOf StandardQosProfileName vs QosProfileDetails
	// The custom QOS Profile Details
	QosProfileDetails         *QOSProfile               `json:"qosProfileDetails,omitempty"` // FIXME: Add OneOf StandardQosProfileName vs QosProfileDetails
	NamespaceIsolationProfile NamespaceIsolationProfile `json:"namespaceIsolationProfile,omitempty"`
	ExternalGatewayConfig     []ExternalGatewayConfig   `json:"externalGatewayConfig,omitempty"`
	//+kubebuilder:validation:Minimum=2
	//+kubebuilder:validation:Maximum=32
	//+kubebuilder:default:=16
	MaxClusters int `json:"maxClusters,omitempty"`
}

SliceConfigSpec defines the desired state of SliceConfig

func (*SliceConfigSpec) DeepCopy

func (in *SliceConfigSpec) DeepCopy() *SliceConfigSpec

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

func (*SliceConfigSpec) DeepCopyInto

func (in *SliceConfigSpec) DeepCopyInto(out *SliceConfigSpec)

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

type SliceConfigStatus

type SliceConfigStatus struct {
}

SliceConfigStatus defines the observed state of SliceConfig

func (*SliceConfigStatus) DeepCopy

func (in *SliceConfigStatus) DeepCopy() *SliceConfigStatus

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

func (*SliceConfigStatus) DeepCopyInto

func (in *SliceConfigStatus) DeepCopyInto(out *SliceConfigStatus)

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

type SliceNamespaceSelection

type SliceNamespaceSelection struct {
	Namespace string   `json:"namespace,omitempty"`
	Clusters  []string `json:"clusters,omitempty"`
}

func (*SliceNamespaceSelection) DeepCopy

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

func (*SliceNamespaceSelection) DeepCopyInto

func (in *SliceNamespaceSelection) DeepCopyInto(out *SliceNamespaceSelection)

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

type SliceQoSConfig added in v0.2.1

type SliceQoSConfig struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   SliceQoSConfigSpec   `json:"spec,omitempty"`
	Status SliceQoSConfigStatus `json:"status,omitempty"`
}

SliceQoSConfig is the Schema for the sliceqosconfigs API

func (*SliceQoSConfig) DeepCopy added in v0.2.1

func (in *SliceQoSConfig) DeepCopy() *SliceQoSConfig

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

func (*SliceQoSConfig) DeepCopyInto added in v0.2.1

func (in *SliceQoSConfig) DeepCopyInto(out *SliceQoSConfig)

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

func (*SliceQoSConfig) DeepCopyObject added in v0.2.1

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

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

func (*SliceQoSConfig) Default added in v0.2.1

func (r *SliceQoSConfig) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*SliceQoSConfig) SetupWebhookWithManager added in v0.2.1

func (r *SliceQoSConfig) SetupWebhookWithManager(mgr ctrl.Manager, validateCreate customSliceqosconfigValidation, validateUpdate customSliceqosconfigValidation, validateDelete customSliceqosconfigValidation) error

func (*SliceQoSConfig) ValidateCreate added in v0.2.1

func (r *SliceQoSConfig) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*SliceQoSConfig) ValidateDelete added in v0.2.1

func (r *SliceQoSConfig) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*SliceQoSConfig) ValidateUpdate added in v0.2.1

func (r *SliceQoSConfig) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type SliceQoSConfigList added in v0.2.1

type SliceQoSConfigList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []SliceQoSConfig `json:"items"`
}

SliceQoSConfigList contains a list of SliceQoSConfig

func (*SliceQoSConfigList) DeepCopy added in v0.2.1

func (in *SliceQoSConfigList) DeepCopy() *SliceQoSConfigList

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

func (*SliceQoSConfigList) DeepCopyInto added in v0.2.1

func (in *SliceQoSConfigList) DeepCopyInto(out *SliceQoSConfigList)

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

func (*SliceQoSConfigList) DeepCopyObject added in v0.2.1

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

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

type SliceQoSConfigSpec added in v0.2.1

type SliceQoSConfigSpec struct {
	//+kubebuilder:validation:Enum:=HTB
	// +kubebuilder:validation:Required
	QueueType string `json:"queueType"`

	// +kubebuilder:validation:Required
	Priority int `json:"priority"`

	//+kubebuilder:validation:Enum:=BANDWIDTH_CONTROL
	// +kubebuilder:validation:Required
	TcType string `json:"tcType"`

	//+kubebuilder:validation:Required
	BandwidthCeilingKbps int `json:"bandwidthCeilingKbps"` //FIXME: Need research for unlimited

	//+kubebuilder:validation:Required
	BandwidthGuaranteedKbps int `json:"bandwidthGuaranteedKbps"`

	//+kubebuilder:validation:Enum:=Default;AF11;AF12;AF13;AF21;AF22;AF23;AF31;AF32;AF33;AF41;AF42;AF43;EF
	//+kubebuilder:validation:Required
	DscpClass string `json:"dscpClass"`
}

SliceQoSConfigSpec defines the desired state of SliceQoSConfig

func (*SliceQoSConfigSpec) DeepCopy added in v0.2.1

func (in *SliceQoSConfigSpec) DeepCopy() *SliceQoSConfigSpec

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

func (*SliceQoSConfigSpec) DeepCopyInto added in v0.2.1

func (in *SliceQoSConfigSpec) DeepCopyInto(out *SliceQoSConfigSpec)

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

type SliceQoSConfigStatus added in v0.2.1

type SliceQoSConfigStatus struct {
}

SliceQoSConfigStatus defines the observed state of SliceQoSConfig

func (*SliceQoSConfigStatus) DeepCopy added in v0.2.1

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

func (*SliceQoSConfigStatus) DeepCopyInto added in v0.2.1

func (in *SliceQoSConfigStatus) DeepCopyInto(out *SliceQoSConfigStatus)

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

type Telemetry

type Telemetry struct {
	//Enabled is the enable status of the Telemetry
	Enabled bool `json:"enabled,omitempty"`
	//TelemetryProvider is the Telemetry Provider information
	TelemetryProvider string `json:"telemetryProvider,omitempty"`
	//Endpoint is the Telemetry Endpoint
	Endpoint string `json:"endpoint,omitempty"`
}

Telemetry defines the field of ClusterSpec

func (*Telemetry) DeepCopy

func (in *Telemetry) DeepCopy() *Telemetry

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

func (*Telemetry) DeepCopyInto

func (in *Telemetry) DeepCopyInto(out *Telemetry)

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

type WorkerSliceGatewayProvider

type WorkerSliceGatewayProvider struct {
	//+kubebuilder:default:=OpenVPN
	// +kubebuilder:validation:Required
	SliceGatewayType string `json:"sliceGatewayType"`

	//+kubebuilder:default:=Local
	// +kubebuilder:validation:Required
	SliceCaType string `json:"sliceCaType"`
}

WorkerSliceGatewayProvider defines the configuration for slicegateway

func (*WorkerSliceGatewayProvider) DeepCopy

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

func (*WorkerSliceGatewayProvider) DeepCopyInto

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

Jump to

Keyboard shortcuts

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