Documentation ¶
Index ¶
Constants ¶
View Source
const ( NodeExternalIP corev1.NodeAddressType = "ExternalIP" NodeInternalIP corev1.NodeAddressType = "InternalIP" )
Variables ¶
This section is empty.
Functions ¶
func GetNodeExternalIpList ¶
func GetNodeExternalIpList() []string
Types ¶
type Cluster ¶
func (*Cluster) GetClusterInfo ¶
func (c *Cluster) GetClusterInfo(ctx context.Context) (*ClusterInfo, error)
type ClusterInfo ¶
type ClusterInfo struct { Name string `json:"clusterName,omitempty"` ClusterProperty ClusterProperty `json:"clusterProperty,omitempty"` }
type ClusterInterface ¶
type ClusterInterface interface { GetClusterInfo(ctx context.Context) (*ClusterInfo, error) GetNsmExcludedPrefix(ctx context.Context, configmap, namespace string) ([]string, error) }
func NewCluster ¶
func NewCluster(client client.Client, clusterName string) ClusterInterface
NewCluster returns ClusterInterface
type ClusterProperty ¶
type ClusterProperty struct { //GeoLocation contains information regarding Geographical Location of the Cluster GeoLocation GeoLocation `json:"geoLocation,omitempty"` }
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"` }
GeoLocation defines the field of ClusterSpec
type NodeInfo ¶
Node info structure. Protected by a mutex and contains information about the kubeslice gateway nodes in the cluster.
type NodeReconciler ¶
func (*NodeReconciler) SetupWithManager ¶
func (r *NodeReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.