Documentation ¶
Index ¶
Constants ¶
View Source
const ( ConfigMethodUnknown = iota ConfigMethodKubernetesConfigMap ConfigMethodCommandLineOrEnv )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigMethod ¶
type ConfigMethod int
type Globals ¶
type Globals struct { Port int `help:"HTTP Port to listen for hook requests." env:"PORT" default:"8080"` Kubeconfig string `help:"Kubeconfig file." env:"KUBECONFIG"` ObservabilityConfig string `help:"JSON representation of observability configuration." env:"OBSERVABILITY_CONFIG"` // Kubernetes parameters KubernetesNamespace string `help:"Namespace where the hook is running." env:"KUBERNETES_NAMESPACE"` KubernetesObservabilityConfigMapName string `help:"ConfigMap object name that contains the observability configuration." env:"KUBERNETES_OBSERVABILITY_CONFIGMAP_NAME"` Context context.Context `kong:"-"` Logger *zap.SugaredLogger `kong:"-"` LogLevel zap.AtomicLevel `kong:"-"` KubeClient kclient.Interface `kong:"-"` DynClient kdclient.Interface `kong:"-"` ConfigMethod ConfigMethod `kong:"-"` }
func (*Globals) Initialize ¶
Click to show internal directories.
Click to hide internal directories.