Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HPA ¶
type HPA struct { Metadata Metadata `json:"metadata"` Spec Spec `json:"spec"` Status Status `json:"status"` }
HPA represents a kubernetes HPA
func GetAllByPrefix ¶ added in v0.36.0
GetAllByPrefix will return all pods in a given namespace that match a prefix
type LoadBalancer ¶
type LoadBalancer struct { CurrentCPUUtilizationPercentage int `json:"currentCPUUtilizationPercentage"` CurrentReplicas int `json:"currentReplicas"` DesiredReplicas int `json:"desiredReplicas"` }
LoadBalancer holds the ingress definitions
type Metadata ¶
type Metadata struct { CreatedAt time.Time `json:"creationTimestamp"` Name string `json:"name"` Namespace string `json:"namespace"` }
Metadata holds information like name, namespace, and labels
type Spec ¶
type Spec struct { MinReplicas int `json:"minReplicas"` MaxReplicas int `json:"maxReplicas"` TargetCPUUtilizationPercentage int `json:"targetCPUUtilizationPercentage"` }
Spec holds information like clusterIP and port
type Status ¶
type Status struct {
LoadBalancer LoadBalancer `json:"loadBalancer"`
}
Status holds the load balancer definition
Click to show internal directories.
Click to hide internal directories.