util

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateApplyAnnotation

func CreateApplyAnnotation(obj runtime.Object) error

func FormatTime

func FormatTime(t time.Time) string

func GetGroupVersionKind added in v1.2.0

func GetGroupVersionKind(obj runtime.Object) (*schema.GroupVersionKind, error)

func GetModifiedConfiguration

func GetModifiedConfiguration(obj runtime.Object) ([]byte, error)

func GetOriginalConfiguration added in v1.2.0

func GetOriginalConfiguration(obj runtime.Object) ([]byte, error)

GetOriginalConfiguration retrieves the original configuration of the object from the annotation, or nil if no annotation was found.

func GetSvcNamesFromManifest added in v1.9.9

func GetSvcNamesFromManifest(manifest string) ([]string, error)

func IgnoreNotFoundError added in v1.9.9

func IgnoreNotFoundError(err error) error

func ParseTime

func ParseTime(s string) (time.Time, error)

func SetGroupVersionKind added in v1.2.0

func SetGroupVersionKind(obj runtime.Object, gvk *schema.GroupVersionKind) (runtime.Object, error)

Types

type ObjGVK added in v1.9.9

type ObjGVK struct {
	Object runtime.Object
	GVK    *schema.GroupVersionKind
}

func ParseManifest added in v1.9.9

func ParseManifest(manifest string) ([]ObjGVK, error)

Jump to

Keyboard shortcuts

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