v1alpha1

package
v0.0.0-...-b4e5a94 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

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

type CNIConfigDefinition struct {
	// +kubebuilder:validation:MinLength=1
	LoadBalancerURL         string `json:"loadBalancerURL"`
	VRSEndpoint             string `json:"vrsEndpoint,omitempty"`
	VRSBridge               string `json:"vrsBridge,omitempty"`
	CNIVersion              string `json:"cniVersion,omitempty"`
	LogLevel                string `json:"logLevel,omitempty"`
	MTU                     int    `json:"mtu,omitempty"`
	NuageSiteID             int    `json:"nuageSiteID,omitempty"`
	LogFileSize             int    `json:"logFileSize,omitempty"`
	MonitorInterval         int    `json:"monitorInterval,omitempty"`
	PortResolveTimer        int    `json:"portResolveTimer,omitempty"`
	VRSConnectionCheckTimer int    `json:"vrsConnectionCheckTimer,omitempty"`
	StaleEntryTimeout       int    `json:"staleEntryTimeout,omitempty"`
	ServiceAccountName      string `json:"serviceAccountName,omitempty"`
	ClusterRoleName         string `json:"clusterRoleName,omitempty"`
	ClusterRoleBindingName  string `json:"clusterRoleBindingName,omitempty"`
	KubeConfig              string `json:"kubeConfig,omitempty"`
}

CNIConfigDefinition holds user specified config for CNI

func (*CNIConfigDefinition) DeepCopy

func (in *CNIConfigDefinition) DeepCopy() *CNIConfigDefinition

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

func (*CNIConfigDefinition) DeepCopyInto

func (in *CNIConfigDefinition) DeepCopyInto(out *CNIConfigDefinition)

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

type CertGenConfig

type CertGenConfig struct {
	ECDSACurve *string
	ValidFrom  *string
	ValidFor   time.Duration
	RSABits    int
}

CertGenConfig certificate data for input generation

func (*CertGenConfig) DeepCopy

func (in *CertGenConfig) DeepCopy() *CertGenConfig

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

func (*CertGenConfig) DeepCopyInto

func (in *CertGenConfig) DeepCopyInto(out *CertGenConfig)

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

type ClusterNetworkConfigDefinition

type ClusterNetworkConfigDefinition struct {
	ClusterNetworkCIDR         string
	ServiceNetworkCIDR         string
	ClusterNetworkSubnetLength uint32
}

ClusterNetworkConfigDefinition contains the network configuration of cluster

func (*ClusterNetworkConfigDefinition) DeepCopy

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

func (*ClusterNetworkConfigDefinition) DeepCopyInto

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

type Flags

type Flags struct {
	EncryptionEnabled bool `json:"encryptionEnabled,omitempty"`
	UnderlayEnabled   bool `json:"underlayEnabled,omitempty"`
	StatsEnabled      bool `json:"statsEnabled,omitempty"`
	AutoScaleSubnets  bool `json:"autoScaleSubnets,omitempty"`
}

Flags hold the flags for VSD behaviors

func (*Flags) DeepCopy

func (in *Flags) DeepCopy() *Flags

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

func (*Flags) DeepCopyInto

func (in *Flags) DeepCopyInto(out *Flags)

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

type InfraPodConfigDefenition

type InfraPodConfigDefenition struct {
	VSPEnterprise  string `json:"enterprise"`
	VSPDomain      string `json:"domain"`
	VSPUser        string `json:"user"`
	VSPPodCIDR     string `json:"podNetwork"`
	VRSPersonality string `json:"personality,omitempty"`
}

InfraPodConfigDefenition holds user specified config for InfraPodConfigDefenition

func (*InfraPodConfigDefenition) DeepCopy

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

func (*InfraPodConfigDefenition) DeepCopyInto

func (in *InfraPodConfigDefenition) DeepCopyInto(out *InfraPodConfigDefenition)

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

type Metadata

type Metadata struct {
	// +kubebuilder:validation:MinLength=1
	Enterprise string `json:"enterprise"`
	// +kubebuilder:validation:MinLength=1
	Domain string `json:"domain"`
	// +kubebuilder:validation:MinLength=1
	User string `json:"user"`
	// +kubebuilder:validation:MinLength=1
	UserCert string `json:"userCert"`
	// +kubebuilder:validation:MinLength=1
	UserKey string `json:"userKey"`
}

Metadata holds the VSD metadata info

func (*Metadata) DeepCopy

func (in *Metadata) DeepCopy() *Metadata

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

func (*Metadata) DeepCopyInto

func (in *Metadata) DeepCopyInto(out *Metadata)

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

type MonitorConfigDefinition

type MonitorConfigDefinition struct {
	// +kubebuilder:validation:MinLength=1
	VSDAddress string `json:"vsdAddress"`
	// +kubebuilder:validation:Minimum=0
	VSDPort                int      `json:"vsdPort"`
	VSDMetadata            Metadata `json:"vsdMetadata"`
	VSDFlags               Flags    `json:"vsdFlags"`
	RestServerAddress      string   `json:"restServerAddress,omitempty"`
	RestServerPort         int      `json:"restServerPort,omitempty"`
	ServiceAccountName     string   `json:"ServiceAccountName,omitempty"`
	ClusterRoleName        string   `json:"ClusterRoleName,omitempty"`
	ClusterRoleBindingName string   `json:"ClusterRoleBindingName,omitempty"`
	MasterNodeSelector     string   `json:"MasterNodeSelector,omitempty"`
}

MonitorConfigDefinition holds user specified config for monitor

func (*MonitorConfigDefinition) DeepCopy

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

func (*MonitorConfigDefinition) DeepCopyInto

func (in *MonitorConfigDefinition) DeepCopyInto(out *MonitorConfigDefinition)

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

type NuageCNIConfig

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

	Spec   NuageCNIConfigSpec   `json:"spec,omitempty"`
	Status NuageCNIConfigStatus `json:"status,omitempty"`
}

NuageCNIConfig is the Schema for the networks API +k8s:openapi-gen=true +kubebuilder:subresource:status +genclient:nonNamespaced

func (*NuageCNIConfig) DeepCopy

func (in *NuageCNIConfig) DeepCopy() *NuageCNIConfig

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

func (*NuageCNIConfig) DeepCopyInto

func (in *NuageCNIConfig) DeepCopyInto(out *NuageCNIConfig)

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

func (*NuageCNIConfig) DeepCopyObject

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

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

type NuageCNIConfigList

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

NuageCNIConfigList contains a list of NuageCNIConfig

func (*NuageCNIConfigList) DeepCopy

func (in *NuageCNIConfigList) DeepCopy() *NuageCNIConfigList

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

func (*NuageCNIConfigList) DeepCopyInto

func (in *NuageCNIConfigList) DeepCopyInto(out *NuageCNIConfigList)

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

func (*NuageCNIConfigList) DeepCopyObject

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

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

type NuageCNIConfigSpec

type NuageCNIConfigSpec struct {
	VRSConfig        VRSConfigDefinition        `json:"vrsConfig"`
	CNIConfig        CNIConfigDefinition        `json:"cniConfig"`
	MonitorConfig    MonitorConfigDefinition    `json:"monitorConfig"`
	ReleaseConfig    ReleaseConfigDefinition    `json:"releaseConfig"`
	PodNetworkConfig PodNetworkConfigDefinition `json:"podNetworkConfig"`
}

NuageCNIConfigSpec defines the desired state of NuageCNIConfig +k8s:openapi-gen=true

func (*NuageCNIConfigSpec) DeepCopy

func (in *NuageCNIConfigSpec) DeepCopy() *NuageCNIConfigSpec

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

func (*NuageCNIConfigSpec) DeepCopyInto

func (in *NuageCNIConfigSpec) DeepCopyInto(out *NuageCNIConfigSpec)

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

type NuageCNIConfigStatus

type NuageCNIConfigStatus struct {
}

NuageCNIConfigStatus defines the observed state of NuageCNIConfig +k8s:openapi-gen=true

func (*NuageCNIConfigStatus) DeepCopy

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

func (*NuageCNIConfigStatus) DeepCopyInto

func (in *NuageCNIConfigStatus) DeepCopyInto(out *NuageCNIConfigStatus)

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

type PodNetworkConfigDefinition

type PodNetworkConfigDefinition struct {
	ClusterNetworkCIDR        string `json:"podNetwork"`
	SubnetLength              uint32 `json:"subnetLength"`
	ClusterServiceNetworkCIDR string `json:"ClusterServiceNetworkCIDR"`
}

PodNetworkConfigDefinition hold the pod network to be only used for k8s

func (*PodNetworkConfigDefinition) DeepCopy

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

func (*PodNetworkConfigDefinition) DeepCopyInto

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

type RegistryConfig

type RegistryConfig struct {
	// +kubebuilder:validation:MinLength=1
	URL string `json:"url"`
	// +kubebuilder:validation:MinLength=1
	Username string `json:"username"`
	// +kubebuilder:validation:MinLength=1
	Password string `json:"password"`
}

RegistryConfig holds the registry information

func (*RegistryConfig) DeepCopy

func (in *RegistryConfig) DeepCopy() *RegistryConfig

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

func (*RegistryConfig) DeepCopyInto

func (in *RegistryConfig) DeepCopyInto(out *RegistryConfig)

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

type ReleaseConfigDefinition

type ReleaseConfigDefinition struct {
	Registry RegistryConfig `json:"registry"`
	// +kubebuilder:validation:MinLength=1
	VRSTag string `json:"vrsTag"`
	// +kubebuilder:validation:MinLength=1
	CNITag string `json:"cniTag"`
	// +kubebuilder:validation:MinLength=1
	MonitorTag string `json:"monitorTag"`
	// +kubebuilder:validation:MinLength=1
	InfraTag string `json:"infraTag"`
}

ReleaseConfigDefinition holds the release tag for each component and registry details

func (*ReleaseConfigDefinition) DeepCopy

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

func (*ReleaseConfigDefinition) DeepCopyInto

func (in *ReleaseConfigDefinition) DeepCopyInto(out *ReleaseConfigDefinition)

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

type RenderConfig

type RenderConfig struct {
	NuageCNIConfigSpec
	K8SAPIServerURL      string
	ServiceAccountToken  string
	Certificates         *TLSCertificates
	ClusterNetworkConfig *ClusterNetworkConfigDefinition
}

RenderConfig container to hold config data that is passed to rendering logic

func (*RenderConfig) DeepCopy

func (in *RenderConfig) DeepCopy() *RenderConfig

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

func (*RenderConfig) DeepCopyInto

func (in *RenderConfig) DeepCopyInto(out *RenderConfig)

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

type TLSCertificates

type TLSCertificates struct {
	CA             *string
	Certificate    *string
	PrivateKey     *string
	CertificateDir *string
}

TLSCertificates contains certificates for CNI and Monitor

func (*TLSCertificates) DeepCopy

func (in *TLSCertificates) DeepCopy() *TLSCertificates

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

func (*TLSCertificates) DeepCopyInto

func (in *TLSCertificates) DeepCopyInto(out *TLSCertificates)

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

type VRSConfigDefinition

type VRSConfigDefinition struct {
	// +kubebuilder:validation:MinItems=1
	Controllers []string `json:"controllers"`
	// +kubebuilder:validation:MinLength=1
	UnderlayUplink string `json:"underlayUplink"`
	Platform       string `json:"platform,omitempty"`
}

VRSConfigDefinition holds user specified config for VRS

func (*VRSConfigDefinition) DeepCopy

func (in *VRSConfigDefinition) DeepCopy() *VRSConfigDefinition

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

func (*VRSConfigDefinition) DeepCopyInto

func (in *VRSConfigDefinition) DeepCopyInto(out *VRSConfigDefinition)

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