util

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 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

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

func GetModifiedConfiguration

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

func GetOriginalConfiguration

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

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

func IgnoreNotFoundError

func IgnoreNotFoundError(err error) error

func ParseTime

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

func SetGroupVersionKind

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

Types

type ObjGVK

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

func ParseManifest

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

Jump to

Keyboard shortcuts

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