config

package
v0.52.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Key string
	URL string
}

type ClusterControllerVersion added in v0.4.2

type ClusterControllerVersion struct {
	GitCommit, GitRef, Version string
}

func (*ClusterControllerVersion) String added in v0.4.2

func (a *ClusterControllerVersion) String() string

type Config

type Config struct {
	Log            Log
	API            API
	TLS            TLS
	Kubeconfig     string
	KubeClient     KubeClient
	ClusterID      string
	PprofPort      int
	LeaderElection LeaderElection
	PodName        string
	NodeName       string
	AutoApproveCSR bool
}

func Get

func Get() Config

Get configuration bound to environment variables.

type KubeClient added in v0.19.0

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 added in v0.12.0

type LeaderElection struct {
	Enabled            bool
	Namespace          string
	LockName           string
	LeaseDuration      time.Duration
	LeaseRenewDeadline time.Duration
}

type Log

type Log struct {
	Level int
}

type TLS added in v0.45.0

type TLS struct {
	CACert string
}

Jump to

Keyboard shortcuts

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