util

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolPointer added in v1.1.0

func BoolPointer(b bool) *bool

func GetConditionByType

func GetConditionByType(condType string, conditions []metav1.Condition) metav1.Condition

GetConditionByType returns condition of type condType if it exists in conditions, otherwise return empty condition struct.

func GetConfigMapValue added in v1.4.1

func GetConfigMapValue(ctx context.Context, cfgKey, cfgName, ns string, client client.Client, log logr.Logger) (error, string)

GetConfigMapValue fetches the value for the provided configmap mapped to a given key

func GetConfigMapValues added in v1.6.3

func GetConfigMapValues(ctx context.Context, cfgName, ns string, client client.Client) (error, []string)

GetConfigMapValues fetches the value for the provided configmap mapped to a given key

func IsX509UnknownAuthorityError added in v1.4.1

func IsX509UnknownAuthorityError(err error) bool

IsX509UnknownAuthorityError checks whether an error is of type x509.UnknownAuthorityError.

Types

This section is empty.

Jump to

Keyboard shortcuts

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