util

package
v0.2.1-0...-66e6d1f Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(list []string, strToSearch string) bool

Contains returns true if a list contains a string.

func Filter

func Filter(list []string, strToFilter string) (newList []string)

Filter filters a list for a string.

func GetLeaderElectionConfig

func GetLeaderElectionConfig(restcfg *rest.Config, leaderElection configv1.LeaderElection) configv1.LeaderElection

GetLeaderElectionConfig returns leader election configs defaults based on the cluster topology

func MergeCommaSeparatedKeyValuePairs

func MergeCommaSeparatedKeyValuePairs(lists ...string) string

MergeCommaSeparatedKeyValuePairs merges multiple comma separated lists of key=value pairs into a single, comma-separated, list of key=value pairs. If a key is present in multiple lists, the value from the last list is used.

func Poll

func Poll(interval, timeout time.Duration, condition wait.ConditionFunc) error

func PollImmediate

func PollImmediate(interval, timeout time.Duration, condition wait.ConditionFunc) error

func Retry

func Retry(fn wait.ConditionFunc, initialBackoffSec int) error

Types

This section is empty.

Directories

Path Synopsis
Package annotations implements annotation helper functions.
Package annotations implements annotation helper functions.

Jump to

Keyboard shortcuts

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