helpers

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetK8sObjType

func GetK8sObjType(obj metav1.Object) reflect.Type

GetK8sObjType returns the type (not the pointer type) of a kubernetes object.

func GroupVersionResourceToString

func GroupVersionResourceToString(gvr metav1.GroupVersionResource) string

GroupVersionResourceToString returns a string representation. It differs from the original stringer of the object itself.

func NewK8sObj

func NewK8sObj(t reflect.Type) metav1.Object

NewK8sObj returns a new object of a Kubernetes type based on the type.

func ToAdmissionErrorResponse

func ToAdmissionErrorResponse(uid types.UID, err error, logger log.Logger) *admissionv1beta1.AdmissionResponse

ToAdmissionErrorResponse transforms an error into a admission response with error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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