admission

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(clientset *kubernetes.Clientset, namespace string, caFile string) (bool, error)

Register registers the validatingWebhookConfiguration to kube-apiserver Note: always return err as nil, it will be used by wait.PollUntil().

func Serve

Serve handles the http portion of a request prior to handing to an admit function

func ToAdmissionResponse

func ToAdmissionResponse(err error) *v1beta1.AdmissionResponse

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

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server will start a https server for admitting.

func NewServer

func NewServer(listenAddress, certFile, keyFile string) (*Server, error)

NewServer create a new Server for admitting.

func (*Server) Run

func (ws *Server) Run(stopCh <-chan struct{})

Run starts informers, and listens for accepting request.

Jump to

Keyboard shortcuts

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