utils

package
v1.17.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextFromStopChannel

func ContextFromStopChannel(stopCh <-chan struct{}) context.Context

ContextFromStopChannel creates a new context from a given stop channel.

func CreateRecorder

func CreateRecorder(kubeClient k8s.Interface, eventSourceName string) record.EventRecorder

CreateRecorder creates a record.EventRecorder that is not limited to a namespace having a specific eventSourceName.

func DeduplicateWarnings added in v1.16.0

func DeduplicateWarnings()

DeduplicateWarnings configures a client-go warning handler that deduplicates API warnings in order to not spam production logs of gardener components.

func MakeLeaderElectionConfig

func MakeLeaderElectionConfig(cfg componentbaseconfig.LeaderElectionConfiguration, lockObjectNamespace string, lockObjectName string, client k8s.Interface, recorder record.EventRecorder) (*leaderelection.LeaderElectionConfig, error)

MakeLeaderElectionConfig creates a *leaderelection.LeaderElectionConfig from a set of configurations

Types

This section is empty.

Jump to

Keyboard shortcuts

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