util

package
v0.0.0-...-7897655 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AreMultipleOdfOperatorCsvsPresent

func AreMultipleOdfOperatorCsvsPresent(csvs *opv1a1.ClusterServiceVersionList) bool

func CheckCSVPhase

func CheckCSVPhase(c client.Client, namespace string, csvNames ...string) healthz.Checker

func DetermineOpenShiftVersion

func DetermineOpenShiftVersion(client client.Client) (string, error)

func Find

func Find[T any](list []T, f func(item *T) bool) *T

Find returns the first entry matching the function "f" or else return nil

func FindInSlice

func FindInSlice(slice []string, s string) bool

FindInSlice find given string in given slice

func GetConditionName

func GetConditionName(client client.Client) (string, error)

func GetOperatorNamespace

func GetOperatorNamespace() (string, error)

GetOperatorNamespace returns the namespace where the operator is deployed.

func NewUpgradeableCondition

func NewUpgradeableCondition(client client.Client) (conditions.Condition, error)

func RemoveFromSlice

func RemoveFromSlice(slice []string, s string) (result []string)

RemoveFromSlice removes given string from given slice

Types

This section is empty.

Jump to

Keyboard shortcuts

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