sharedmain

package
v0.0.0-...-7cc1d6a Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2019 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig(masterURL, kubeconfig string) (*rest.Config, error)

GetConfig returns a rest.Config to be used for kubernetes client creation. It does so in the following order:

  1. Use the passed kubeconfig/masterURL.
  2. Fallback to the KUBECONFIG environment variable.
  3. Fallback to in-cluster config.
  4. Fallback to the ~/.kube/config.

func GetLoggingConfig

func GetLoggingConfig(ctx context.Context) (*logging.Config, error)

GetLoggingConfig gets the logging config from either the file system if present or via reading a configMap from the API. The context is expected to be initialized with injection.

func Main

func Main(component string, ctors ...injection.ControllerConstructor)

func MainWithConfig

func MainWithConfig(ctx context.Context, component string, cfg *rest.Config, ctors ...injection.ControllerConstructor)

func MainWithContext

func MainWithContext(ctx context.Context, component string, ctors ...injection.ControllerConstructor)

Types

This section is empty.

Jump to

Keyboard shortcuts

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