# Packages
No description provided by the author
# Functions
ConfigWithPrincipal returns a new config with the principal set as the impersonated user or bearer token.
No description provided by the author
No description provided by the author
NewDefaultClientGetter creates a new DefaultClientGetter.
NewImpersonatingConfigGetter creates and returns a ConfigGetter with a known config.
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
ErrWegoConfigNotFound indicates weave gitops config could not be found.
InClusterConfig defines a function for checking if this code is executing in kubernetes.
# Structs
ClusterConfig is used to hold the default *rest.Config and the cluster name.
DefaultClientGetter implements the ClientGetter interface and uses a ConfigGetter to get a *rest.Config and create a Kubernetes client.
ImpersonatingConfigGetter is an implementation of the ConfigGetter interface that returns configs based on a base one.
This is a wrapper around the client.Client to provide extra information specifically designed to query the K8s API directly instead of relying on `kubectl` to be present in the PATH.
UserPrefixes contains the prefixes for the user and groups that will be used when impersonating a user.
No description provided by the author
# Interfaces
ClientGetter implementations should create a Kubernetes client from a context.
ConfigGetter implementations should extract the details from a context and create a *rest.Config for use in clients.
No description provided by the author