util

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorRequeueTime      = 30 * time.Second
	NotStartedRequeueTime = 15 * time.Second
	InProgressRequeueTime = 30 * time.Second
	CompletedRequeueTime  = 30 * time.Second
	SuccessfulRequeueTime = 60 * time.Second
	PendingRequeueTime    = 30 * time.Second
	FailedRequeueTime     = 120 * time.Second
)

Define constants for the requeue timings

Variables

This section is empty.

Functions

func Deduplicate

func Deduplicate(input []types.EligibleResource, log logr.Logger) []types.EligibleResource

func FromConfig

func FromConfig(objConfig FromObjectConfig) (client.Object, error)

func IsStringInSlice

func IsStringInSlice(a string, b []string) bool

func SimilarityScore

func SimilarityScore(text1 string, text2 string) float64

Types

type FromObjectConfig

type FromObjectConfig struct {
	Config    string
	GvkStr    string
	Kind      string
	Name      string
	Namespace string
}

Jump to

Keyboard shortcuts

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