conf
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package conf contains code to load, manipulate, and access config filesettings for k8s-proxy.
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeAPIServerProxyConfig¶
type APIServerProxyConfig struct {Enabledopt.Bool `json:",omitempty"`// Whether to enable the API Server proxy.Mode *kubetypes.APIServerProxyMode `json:",omitempty"`// "auth" or "noauth" mode.ServiceName *tailcfg.ServiceName `json:",omitempty"`// Name of the Tailscale Service to advertise.IssueCertsopt.Bool `json:",omitempty"`// Whether this replica should issue TLS certs for the Tailscale Service.}typeConfig¶
type Config struct {Raw []byte// raw bytes, in HuJSON formStd []byte// standardized JSON formVersionstring// "v1alpha1"// Parsed is the parsed config, converted from its raw bytes version to the// latest known format.ParsedConfigV1Alpha1}Config describes a config file.
func (*Config)GetLocalAddr¶
func (*Config)GetLocalPort¶
typeConfigV1Alpha1¶
type ConfigV1Alpha1 struct {AuthKey *string `json:",omitempty"`// Tailscale auth key to use.State *string `json:",omitempty"`// Path to the Tailscale state.LogLevel *string `json:",omitempty"`// "debug", "info". Defaults to "info".App *string `json:",omitempty"`// e.g. kubetypes.AppProxyGroupKubeAPIServerServerURL *string `json:",omitempty"`// URL of the Tailscale coordination server.LocalAddr *string `json:",omitempty"`// The address to use for serving HTTP health checks and metrics (defaults to all interfaces).LocalPort *uint16 `json:",omitempty"`// The port to use for serving HTTP health checks and metrics (defaults to 9002).MetricsEnabledopt.Bool `json:",omitempty"`// Serve metrics on <LocalAddr>:<LocalPort>/metrics.HealthCheckEnabledopt.Bool `json:",omitempty"`// Serve health check on <LocalAddr>:<LocalPort>/metrics.// TODO(tomhjp): The remaining fields should all be reloadable during// runtime, but currently missing most of the APIServerProxy fields.Hostname *string `json:",omitempty"`// Tailscale device hostname.AcceptRoutesopt.Bool `json:",omitempty"`// Accepts routes advertised by other Tailscale nodes.AdvertiseServices []string `json:",omitempty"`// Tailscale Services to advertise.APIServerProxy *APIServerProxyConfig `json:",omitempty"`// Config specific to the API Server proxy.StaticEndpoints []netip.AddrPort `json:",omitempty"`// StaticEndpoints are additional, user-defined endpoints that this node should advertise amongst its wireguard endpoints.}typeVersionedConfig¶
type VersionedConfig struct {Versionstring `json:",omitempty"`// "v1alpha1"// Latest version of the config.*ConfigV1Alpha1// Backwards compatibility version(s) of the config. Fields and sub-fields// from here should only be added to, never changed in place.V1Alpha1 *ConfigV1Alpha1 `json:",omitempty"`}VersionedConfig allows specifying config at the root of the object, or ina versioned sub-object.e.g. {"version": "v1alpha1", "authKey": "abc123"}or {"version": "v1beta1", "a-beta-config": "a-beta-value", "v1alpha1": {"authKey": "abc123"}}