Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RetrieveKubeConfig ¶ added in v0.54.0
func RetrieveKubeConfig(log logrus.FieldLogger) (*rest.Config, error)
Types ¶
type ClusterControllerVersion ¶
type ClusterControllerVersion struct {
GitCommit, GitRef, Version string
}
func (*ClusterControllerVersion) String ¶
func (a *ClusterControllerVersion) String() string
type Config ¶
type Config struct {
Log Log
API API
TLS TLS
Kubeconfig string
KubeClient KubeClient
ClusterID string
PprofPort int
Metrics Metrics
LeaderElection LeaderElection
// AutoscalingDisabled is a flag to disable approving csr.
AutoscalingDisabled bool `mapstructure:"autoscaling_disabled"`
// MaxActionsInProgress serves as a safeguard to limit the number of Goroutines in progress.
MaxActionsInProgress int
MonitorMetadataPath string `mapstructure:"monitor_metadata"`
SelfPod Pod `mapstructure:"self_pod"`
}
type KubeClient ¶
type KubeClient struct {
// K8S client rate limiter allows bursts of up to 'burst' to exceed the QPS, while still maintaining a
// smoothed qps rate of 'qps'.
// The bucket is initially filled with 'burst' tokens, and refills at a rate of 'qps'.
// The maximum number of tokens in the bucket is capped at 'burst'.
QPS int
Burst int
}
type LeaderElection ¶
Click to show internal directories.
Click to hide internal directories.