Documentation ¶
Index ¶
Constants ¶
View Source
const (
NodeReaperResultMetricName = "governor_node_reaper_result"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AgeDrainReapableInstance ¶
AgeDrainReapableInstances holds an age-reapable node
type AgeSorter ¶
type AgeSorter []AgeDrainReapableInstance
AgeSorter sorts age-reapable nodes by their AgeMinutes
type Args ¶
type Args struct { K8sConfigPath string ReaperConfigFilePath string KubectlLocalPath string EC2Region string ReapUnjoinedKey string ReapUnjoinedValue string DryRun bool SoftReap bool LocalMode bool ReapUnknown bool ReapUnready bool ReapGhost bool ReapUnjoined bool ReapFlappy bool AsgValidation bool ReapOld bool FlapCount int32 ReapOldThresholdMinutes int32 ReapUnjoinedThresholdMinutes int32 MaxKill int ReapThrottle int64 AgeReapThrottle int64 ReapAfter float64 ReapTainted []string ReconsiderUnreapableAfter float64 DrainTimeoutSeconds int64 IgnoreFailure bool PromPushgateway string }
Args is the argument struct for node-reaper
type ReapableInstance ¶
type ReaperAwsAuth ¶
type ReaperAwsAuth struct { EC2 ec2iface.EC2API ASG autoscalingiface.AutoScalingAPI }
ReaperAwsAuth is an AWS client-set
type ReaperContext ¶
type ReaperContext struct { // clients KubernetesClient kubernetes.Interface KubernetesConfigPath string // validated arguments ReaperConfigFilePath string EC2Region string KubectlLocalPath string ReapUnjoinedKey string ReapUnjoinedValue string DryRun bool SoftReap bool ReapUnknown bool ReapUnready bool ReapGhost bool ReapUnjoined bool ReapFlappy bool AsgValidation bool ReapOld bool ReapThrottle int64 AgeReapThrottle int64 ReapOldThresholdMinutes int32 ReapUnjoinedThresholdMinutes int32 FlapCount int32 MaxKill int TimeToReap float64 ReapTainted []v1.Taint ReconsiderUnreapableAfter float64 DrainTimeoutSeconds int64 IgnoreFailure bool // runtime UnreadyNodes []v1.Node AllNodes []v1.Node AllPods []v1.Pod AllEvents []v1.Event AllInstances []*ec2.Instance ClusterInstances []*ec2.Instance ClusterInstancesData map[string]float64 GhostInstances map[string]string NodeInstanceIDs map[string]string SelfNode string SelfNamespace string SelfName string AgeKillOrder []string AgeDrainReapableInstances []AgeDrainReapableInstance ReapableInstances []ReapableInstance DrainableInstances map[string]string TerminatedInstances int DrainedInstances int MetricsAPI common.MetricsAPI }
ReaperContext holds the context of the node-reaper and target cluster
Click to show internal directories.
Click to hide internal directories.