Documentation ¶
Index ¶
- func GetConfig(masterURL, kubeconfig string) (*rest.Config, error)
- func GetLoggingConfig(ctx context.Context) (*logging.Config, error)
- func Main(component string, ctors ...injection.ControllerConstructor)
- func MainWithConfig(ctx context.Context, component string, cfg *rest.Config, ...)
- func MainWithContext(ctx context.Context, component string, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfig ¶
GetConfig returns a rest.Config to be used for kubernetes client creation. It does so in the following order:
- Use the passed kubeconfig/masterURL.
- Fallback to the KUBECONFIG environment variable.
- Fallback to in-cluster config.
- Fallback to the ~/.kube/config.
func GetLoggingConfig ¶
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 MainWithContext ¶
func MainWithContext(ctx context.Context, component string, ctors ...injection.ControllerConstructor)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.