action

package
v0.0.0-...-bb2f907 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteKubeClusterLabelsDB

func DeleteKubeClusterLabelsDB(ctx context.Context, provider, cluster string) error

DeleteKubeClusterLabelsDB .. delete cluster Labels from db

func FilterClusters

func FilterClusters(ctx context.Context, appContextID string) error

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

Publish ... Publish event

func SaveClusterLabelsDB

func SaveClusterLabelsDB(ctx context.Context, provider string, cluster string) error

SaveClusterLabelsDB - save Cluster Labels to DB

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

Jump to

Keyboard shortcuts

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