config

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: Apache-2.0 Imports: 16 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogger

func GetLogger(operatorName string, opts ...zap.Opts) logr.Logger

GetLogger get the logger instance to use

func GetManagerParams

func GetManagerParams(scheme *runtime.Scheme, operatorName, domainName string) (*rest.Config, ctrl.Options)

GetManagerParams get the manager options to use

func GetWebHookCertDir

func GetWebHookCertDir() string

GetWebHookCertDir returns the directory of the webhook certificates

func LeaderElectionEnabled

func LeaderElectionEnabled() bool

LeaderElectionEnabled checks if leader election is enabled

func LeaderElectionNamespace

func LeaderElectionNamespace(operatorName string) string

LeaderElectionNamespace get the leader election namespace

func NamespacesToWatch

func NamespacesToWatch() []string

NamespacesToWatch get the array of namespaces to watch

func NewRestConfig

func NewRestConfig() *rest.Config

NewRestConfig creates new rest config or panic

func RequireClientset

func RequireClientset() *kubernetes.Clientset

RequireClientset creates a singleton client set

func RequireRestClient

func RequireRestClient() rest.Interface

RequireRestClient creates a singleton rest interface

func RequireRootLogger

func RequireRootLogger() logr.Logger

RequireRootLogger get the root logger or panic if not yet created

func WebHooksEnabled

func WebHooksEnabled() bool

WebHooksEnabled checks if webhook is enabled

Types

This section is empty.

Jump to

Keyboard shortcuts

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