Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GetWorkloads = map[string]getResourceFunc{
"deployments": getDeployments,
"statefulsets": getStatefulSets,
"cronjobs": getCronJobs,
"jobs": getJobs,
"daemonsets": getDaemonSets,
"poddisruptionbudgets": getPodDisruptionBudgets,
"horizontalpodautoscalers": getHorizontalPodAutoscalers,
"scaledobjects": getScaledObjects,
"rollouts": getRollouts,
"stacks": getStacks,
"prometheuses": getPrometheuses,
}
GetWorkloads maps the resource name to an implementation specific getResourceFunc
Functions ¶
This section is empty.
Types ¶
type Clientsets ¶
type Clientsets struct { Kubernetes *kubernetes.Clientset Keda *keda.Clientset Argo *argo.Clientset Zalando *zalando.Clientset Monitoring *monitoring.Clientset }
type Workload ¶
type Workload interface { // Update updates the resource with all changes made to it. It should only be called once on a resource Update(clientsets *Clientsets, ctx context.Context) error // ScaleUp scales up the workload ScaleUp() error // ScaleDown scales down the workload ScaleDown(downscaleReplicas int32) error // contains filtered or unexported methods }
Workload provides all functions needed to scale the workload
Click to show internal directories.
Click to hide internal directories.