webhooks

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAdmissionReview

func GetAdmissionReview(r *http.Request) (*v1beta1.AdmissionReview, error)

GetAdmissionReview

func SetupPromTLS added in v0.29.0

func SetupPromTLS(certManager certificate.Manager) *tls.Config

func SetupTLSForVirtHandlerClients added in v0.29.0

func SetupTLSForVirtHandlerClients(caManager ClientCAManager, certManager certificate.Manager) *tls.Config

func SetupTLSForVirtHandlerServer added in v0.29.0

func SetupTLSForVirtHandlerServer(caManager ClientCAManager, certManager certificate.Manager) *tls.Config

func SetupTLSWithCertManager added in v0.29.0

func SetupTLSWithCertManager(caManager ClientCAManager, certManager certificate.Manager, clientAuth tls.ClientAuthType) *tls.Config

func ToAdmissionResponse

func ToAdmissionResponse(causes []v1.StatusCause) *v1beta1.AdmissionResponse

func ToAdmissionResponseError

func ToAdmissionResponseError(err error) *v1beta1.AdmissionResponse

ToAdmissionResponseError

func ValidateRequestResource

func ValidateRequestResource(request v1.GroupVersionResource, group string, resource string) bool

func ValidateSchema

func ValidateSchema(gvk schema.GroupVersionKind, data []byte) *v1beta1.AdmissionResponse

func ValidationErrorsToAdmissionResponse

func ValidationErrorsToAdmissionResponse(errs []error) *v1beta1.AdmissionResponse

Types

type ClientCAManager

type ClientCAManager interface {
	GetCurrent() (*x509.CertPool, error)
}

func NewCAManager added in v0.29.0

func NewCAManager(configMapCache cache.Store, namespace string) ClientCAManager

func NewKubernetesClientCAManager added in v0.29.0

func NewKubernetesClientCAManager(configMapCache cache.Store) ClientCAManager

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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