utils

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2020 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 13 Imported by: 4

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 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