app

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadKubeconfig added in v0.6.0

func LoadKubeconfig(configPath string) (*rest.Config, error)

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.

func NewK8SyncerCommand

func NewK8SyncerCommand(ctx context.Context) *cobra.Command

NewK8SyncerCommand creates a new k8syncer command that runs the git sync controller.

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

func (*Options) AddFlags

func (o *Options) AddFlags(fs *flag.FlagSet)

func (*Options) Complete

func (o *Options) Complete() error

Complete parses all Options and flags and initializes the basic functions

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL