Documentation ¶
Index ¶
- func DeleteKubeClusterLabelsDB(ctx context.Context, provider, cluster string) error
- func FilterClusters(ctx context.Context, appContextID string) error
- func GetKubeClusterLabels(ctx context.Context, provider, cluster string) (map[string](map[string]string), error)
- func PopulateClustersResources(ctx context.Context, hpaResource *hpaModel.HpaResourceRequirement, ...) error
- func Publish(ctx context.Context, req *clmcontrollerpb.ClmControllerEventRequest) error
- func SaveClusterLabelsDB(ctx context.Context, provider string, cluster string) error
- type KubeClusterInfo
- type PlacementClusterKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteKubeClusterLabelsDB ¶
DeleteKubeClusterLabelsDB .. delete cluster Labels from db
func FilterClusters ¶
FilterClusters .. Filter clusters based on hpa-intents attached to the AppContext ID
func GetKubeClusterLabels ¶
func GetKubeClusterLabels(ctx context.Context, provider, cluster string) (map[string](map[string]string), error)
GetKubeClusterLabels .. returns the Cluster Labels of K8s cluster
func PopulateClustersResources ¶
func PopulateClustersResources(ctx context.Context, hpaResource *hpaModel.HpaResourceRequirement, clusters *intentRs.ClusterResourceInfoMap, clusterResourceObjMap *intentRs.ClusterResourceObjMap) error
PopulateClustersResources ... Populate model with cluster resource info
func Publish ¶
func Publish(ctx context.Context, req *clmcontrollerpb.ClmControllerEventRequest) error
Publish ... Publish event
Types ¶
type KubeClusterInfo ¶
type KubeClusterInfo struct {
NodeNames []string `json:"cluster-nodes"`
}
KubeClusterInfo .. structure for storing kubernetes cluster info
type PlacementClusterKey ¶
type PlacementClusterKey struct { ClusterProviderName string `json:"hpaPlcClusterProvider"` ClusterName string `json:"hpaPlcCluster"` ClusterControllerData string `json:"hpaPlcClusterControllerData"` }
PlacementClusterKey is the key structure that is used in the database
Click to show internal directories.
Click to hide internal directories.