Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AdmitHandler ¶
func AdmitHandler(f admitv1Func) admitHandler
Types ¶
type Service ¶
type Service struct { Opts ServiceOpts Ctx context.Context Config *rest.Config Clientset *kubernetes.Clientset }
func NewService ¶
func NewService(opts ServiceOpts) (*Service, error)
func (*Service) Mutate ¶
func (s *Service) Mutate(ar admission.AdmissionReview) *admission.AdmissionResponse
func (*Service) ServeAdmitHandler ¶
func (s *Service) ServeAdmitHandler(w http.ResponseWriter, r *http.Request, admit admitHandler)
serve handles the http portion of a request prior to handing to an admit function
type ServiceOpts ¶
Click to show internal directories.
Click to hide internal directories.