keda

package
v0.3.32 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Repo          = getEnv("KEDA_REPO", "https://kedacore.github.io/charts")
	Version       = getEnv("KEDA_VERSION", "2.11.2")
	ChartName     = getEnv("KEDA_CHART_NAME", "keda")
	RepoShortName = getEnv("KEDA_REPO_SHORT_NAME", "keda")
	ReleaseName   = getEnv("KEDA_RELEASE_NAME", "keda-k8sgpt")
)

Functions

This section is empty.

Types

type DeploymentInfo

type DeploymentInfo struct {
	*appsv1.Deployment
}

func (DeploymentInfo) GetPodSpec

func (d DeploymentInfo) GetPodSpec() corev1.PodSpec

type Keda

type Keda struct {
	// contains filtered or unexported fields
}

func NewKeda

func NewKeda() *Keda

func (*Keda) AddAnalyzer

func (k *Keda) AddAnalyzer(mergedMap *map[string]common.IAnalyzer)

func (*Keda) Deploy

func (k *Keda) Deploy(namespace string) error

func (*Keda) GetAnalyzerName

func (k *Keda) GetAnalyzerName() []string

func (*Keda) GetNamespace

func (k *Keda) GetNamespace() (string, error)

func (*Keda) IsActivate

func (k *Keda) IsActivate() bool

func (*Keda) OwnsAnalyzer

func (k *Keda) OwnsAnalyzer(analyzer string) bool

func (*Keda) UnDeploy

func (k *Keda) UnDeploy(namespace string) error

type PodInfo

type PodInfo interface {
	GetPodSpec() corev1.PodSpec
}

type ReplicaSetInfo

type ReplicaSetInfo struct {
	*appsv1.ReplicaSet
}

define a structure for ReplicaSet

func (ReplicaSetInfo) GetPodSpec

func (rs ReplicaSetInfo) GetPodSpec() corev1.PodSpec

type ReplicationControllerInfo

type ReplicationControllerInfo struct {
	*corev1.ReplicationController
}

define a structure for ReplicationController

func (ReplicationControllerInfo) GetPodSpec

func (rc ReplicationControllerInfo) GetPodSpec() corev1.PodSpec

type ScaledObjectAnalyzer

type ScaledObjectAnalyzer struct{}

func (*ScaledObjectAnalyzer) Analyze

type StatefulSetInfo

type StatefulSetInfo struct {
	*appsv1.StatefulSet
}

define a structure for StatefulSet

func (StatefulSetInfo) GetPodSpec

func (ss StatefulSetInfo) GetPodSpec() corev1.PodSpec

implement PodInfo for StatefulSetInfo

Jump to

Keyboard shortcuts

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