util

package
v1.1.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ARFail

func ARFail(err error) *admission.AdmissionResponse

ARFail is a helper function to create an AdmissionResponse with an embedded error

func ARPatch added in v1.1.0

func ARPatch(patch []byte) *admission.AdmissionResponse

ARPatch return admission response that contains a patch to mutate the object

func ARSuccess

func ARSuccess() *admission.AdmissionResponse

ARSuccess return allow to action

func ConfigTLS

func ConfigTLS(certFile string, keyFile string) (*tls.Config, error)

config tls cert for server

func CreateJsonPatch added in v1.1.0

func CreateJsonPatch(original, current runtime.Object) ([]byte, error)

func GetCodec

func GetCodec() runtime.Decoder

Types

This section is empty.

Jump to

Keyboard shortcuts

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