util

package
v1.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRancherCACert added in v1.2.3

func GetRancherCACert(ctx context.Context, cli client.Client) string

GetRancherCACert returns the cacerts included within Rancher settings. If not configured returns an empty string

func GetSettingsValue added in v1.2.3

func GetSettingsValue(ctx context.Context, cli client.Client, name string) (string, error)

GetSettingsValue find the given name in Rancher settings and returns its value if found

func IsHTTP added in v1.2.3

func IsHTTP(uri string) bool

func IsObjectOwned added in v1.2.3

func IsObjectOwned(obj *metav1.ObjectMeta, uid types.UID) bool

func MarshalCloudConfig added in v1.2.0

func MarshalCloudConfig(cloudConfig map[string]runtime.RawExtension) ([]byte, error)

func PlanChecksum added in v1.3.1

func PlanChecksum(input []byte) string

func RemoveInvalidConditions added in v1.1.0

func RemoveInvalidConditions(conditions []metav1.Condition) []metav1.Condition

Types

This section is empty.

Jump to

Keyboard shortcuts

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