Documentation
¶
Overview ¶
Package connect reaches the in-cluster Burrow control plane from a developer's machine using their ambient kubeconfig and the Kubernetes API server's service proxy — no port-forward, no ingress (ADR-0014). It reads the API token from the install Secret, so a developer with kubectl access configures nothing else.
It is Apache-2.0 (the client surface): it imports client-go to talk to the API server but not the FSL controlplane packages — it reaches Burrow over HTTP, like any client.
Index ¶
Constants ¶
const ( DefaultNamespace = "burrow" DefaultService = "burrowd" DefaultPort = 8080 DefaultTokenSecret = "burrowd-api-token" DefaultTokenKey = "token" )
Defaults for a standard `burrow install`.
Variables ¶
This section is empty.
Functions ¶
func Client ¶
Client returns a control-plane API client that reaches burrowd through the API-server service proxy, authenticated by the kubeconfig, with the API token read from the install Secret.
func RESTConfig ¶
RESTConfig prefers in-cluster config (when burrow runs inside Kubernetes) and otherwise loads the kubeconfig at path, or the ambient KUBECONFIG / ~/.kube/config when path is empty. It is exported so the CLI can build a clientset from the same config logic.
Types ¶
type Options ¶
type Options struct {
Kubeconfig string // explicit kubeconfig path; empty = in-cluster, else ambient
Namespace string
Service string
Port int
TokenSecret string
TokenKey string
}
Options configures how to find the control plane. The zero value uses the defaults and the ambient kubeconfig.