Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the operator v1alpha1 API group +kubebuilder:object:generate=true +groupName=operator.nuage.io
Index ¶
- Variables
- type CNIConfigDefinition
- type CertGenConfig
- type ClusterNetworkConfigDefinition
- type Flags
- type InfraPodConfigDefenition
- type Metadata
- type MonitorConfigDefinition
- type NuageCNIConfig
- type NuageCNIConfigList
- type NuageCNIConfigSpec
- type NuageCNIConfigStatus
- type PodNetworkConfigDefinition
- type RegistryConfig
- type ReleaseConfigDefinition
- type RenderConfig
- type TLSCertificates
- type VRSConfigDefinition
Constants ¶
This section is empty.
Variables ¶
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 ¶
func (in *ClusterNetworkConfigDefinition) DeepCopy() *ClusterNetworkConfigDefinition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterNetworkConfigDefinition.
func (*ClusterNetworkConfigDefinition) DeepCopyInto ¶
func (in *ClusterNetworkConfigDefinition) DeepCopyInto(out *ClusterNetworkConfigDefinition)
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Flags.
func (*Flags) DeepCopyInto ¶
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 ¶
func (in *InfraPodConfigDefenition) DeepCopy() *InfraPodConfigDefenition
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Metadata.
func (*Metadata) DeepCopyInto ¶
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 ¶
func (in *MonitorConfigDefinition) DeepCopy() *MonitorConfigDefinition
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 ¶
func (in *NuageCNIConfigStatus) DeepCopy() *NuageCNIConfigStatus
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 ¶
func (in *PodNetworkConfigDefinition) DeepCopy() *PodNetworkConfigDefinition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodNetworkConfigDefinition.
func (*PodNetworkConfigDefinition) DeepCopyInto ¶
func (in *PodNetworkConfigDefinition) DeepCopyInto(out *PodNetworkConfigDefinition)
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 ¶
func (in *ReleaseConfigDefinition) DeepCopy() *ReleaseConfigDefinition
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.