resourcehelper

package
v0.0.0-...-e158d5a Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatResourceForCLI

func FormatResourceForCLI(obj runtime.Object) string

FormatResourceForCLI generates a string that can be copy/pasted for use with oc get.

func FormatResourceForCLIWithNamespace

func FormatResourceForCLIWithNamespace(obj runtime.Object) string

FormatResourceForCLIWithNamespace generates a string that can be copy/pasted for use with oc get that includes specifying the namespace with the -n option (e.g., `ConfigMap/cluster-config-v1 -n kube-system`).

func GuessObjectGroupVersionKind

func GuessObjectGroupVersionKind(object runtime.Object) schema.GroupVersionKind

GuessObjectGroupVersionKind returns a human readable for the passed runtime object.

func ReportCreateEvent

func ReportCreateEvent(recorder events.Recorder, obj runtime.Object, originalErr error)

func ReportDeleteEvent

func ReportDeleteEvent(recorder events.Recorder, obj runtime.Object, originalErr error, details ...string)

func ReportUpdateEvent

func ReportUpdateEvent(recorder events.Recorder, obj runtime.Object, originalErr error, details ...string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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