Kubernetes implements a plugin that connects to a Kubernetes cluster.
| 32 | |
| 33 | // Kubernetes implements a plugin that connects to a Kubernetes cluster. |
| 34 | type Kubernetes struct { |
| 35 | Next plugin.Handler |
| 36 | Zones []string |
| 37 | Upstream Upstreamer |
| 38 | APIServerList []string |
| 39 | APICertAuth string |
| 40 | APIClientCert string |
| 41 | APIClientKey string |
| 42 | ClientConfig clientcmd.ClientConfig |
| 43 | APIConn dnsController |
| 44 | Namespaces map[string]struct{} |
| 45 | podMode string |
| 46 | endpointNameMode bool |
| 47 | Fall fall.F |
| 48 | ttl uint32 |
| 49 | opts dnsControlOpts |
| 50 | primaryZoneIndex int |
| 51 | localIPs []net.IP |
| 52 | autoPathSearch []string // Local search path from /etc/resolv.conf. Needed for autopath. |
| 53 | startupTimeout time.Duration // startupTimeout set timeout of startup |
| 54 | apiQPS float32 // Maximum queries per second from the client to the API server |
| 55 | apiBurst int // Maximum burst for throttle |
| 56 | apiMaxInflight int // Maximum number of concurrent requests in flight to the API server |
| 57 | } |
| 58 | |
| 59 | // Upstreamer is used to resolve CNAME or other external targets |
| 60 | type Upstreamer interface { |
nothing calls this directly
no outgoing calls
no test coverage detected