package
0.0.0-20241225032605-1bfd23e84885
Repository: https://github.com/lmxia/gaia.git
Documentation: pkg.go.dev
# Packages
Package cartesian: https://github.com/schwarmco/go-cartesian-product.
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ApplyServiceWithRetry create or update existed service.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ContainsPrefix checks if a given slice of strings start with the provided string.
ContainsString checks if a given slice of strings contains the provided string.
CopyStrings copies the contents of the specified string slice into a new slice.
No description provided by the author
CreateKubeConfigWithToken creates a KubeConfig object with access to the API server with a token.
No description provided by the author
No description provided by the author
No description provided by the author
DescToComponents reflect a description to Components.
No description provided by the author
EnsureClusterRole will make sure desired clusterrole exists and update it if available.
EnsureClusterRoleBinding will make sure desired clusterrolebinding exists and update it if available.
EnsureRole will make sure desired role exists and update it if available.
EnsureRoleBinding will make sure desired rolebinding exists and update it if available.
GenerateKubeConfigFromToken composes a kubeconfig from token.
GetDataFromPrometheus returns the result from Prometheus according to the specified metric in the cluster.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetNodeClusterName return clusterName from nodeLabels.
No description provided by the author
todo use getEachNodeResourceFromPrometheus.
GetNodeSNID return nodeID/resID from nodeLabels.
GetNonzeroRequestForResource returns the default resource request if none is found or what is provided on the request.
GetNonzeroRequests returns the default cpu and memory resource request if none is found or what is provided on the request.
GetSubStringWithSpecifiedDecimalPlace returns a sub string based on the specified number of decimal places.
GetWorkloadType get the standard workload type according to the workloadType of description Currently, only four types, deployment, serverless, userAPP and affinityDaemon, are supported.
GracefulStopWithContext registered for SIGTERM and SIGINT with a cancel context returned.
No description provided by the author
InitConfig returns the map and the keys list of a configMap file.
No description provided by the author
No description provided by the author
IsSystemNode return clusterName from nodeLabels.
LetItGoOn only accept LoadBalancer type service in public serverless cloud.
LoadsKubeConfig tries to load kubeconfig from specified kubeconfig file or in-cluster config.
No description provided by the author
No description provided by the author
NeedBindNetworkInCluster check if we should bind network path.
No description provided by the author
No description provided by the author
No description provided by the author
ParseBoundaries returns a map that the key is the boundary name and the value is the boundary itself.
ParseCondition parse desc.Spec.DeploymentCondition.Mandatory or desc.Spec.DeploymentCondition.BestEffort.
ParseDeploymentCondition parse desc.Spec.DeploymentCondition.
ParseExpectedPerformance parse desc.Spec.ExpectedPerformance.
No description provided by the author
ParseMaintenance reflect the boundaries and maintenance's trigger to serverless' threshold.
No description provided by the author
No description provided by the author
RemoveString returns a newly created []string that contains all items from slice that are not equal to s.
current is deployed resource, modified is changed resource.
SATokenAutoGenerated is used to indicate whether secret-based service account token can be auto generated.
No description provided by the author
SchedulePolicyReflect reflect the condition to MatchExpressions according to the different schedule policy.
No description provided by the author
No description provided by the author
No description provided by the author
SortStrings sorts the specified string slice in place.
No description provided by the author
No description provided by the author
No description provided by the author
WordSepNormalizeFunc changes all flags with separators from "_" to "-".
# Variables
KubeV1170Beta2 indicates the version of Kubernetes v1.17.0-beta.2.
KubeV1210Beta1 indicates the version of Kubernetes v1.21.0-beta.1.
KubeV1240Alpha4 indicates the version of Kubernetes v1.24.0-alpha.4.
# Structs
No description provided by the author