Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadKubeconfig ¶ added in v0.6.0
LoadKubeconfig loads a cluster configuration from the given path. If the path points to a single file, this file is expected to contain a kubeconfig which is then loaded. If the path points to a directory which contains a file named "kubeconfig", that file is used. If the path points to a directory which does not contain a "kubeconfig" file, there must be "host", "token", and "ca.crt" files present, which are used to configure cluster access based on an OIDC trust relationship. If the path is empty, the in-cluster config is returned.
Types ¶
type Options ¶
type Options struct { MetricsAddr string ProbeAddr string ConfigPath string ClusterConfigPath string Log logging.Logger Config *config.K8SyncerConfiguration ClusterConfig *rest.Config }
Options describes the options to configure the Landscaper controller.
func NewOptions ¶
func NewOptions() *Options
Click to show internal directories.
Click to hide internal directories.