Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdmitNoDefault ¶
func AdmitNoDefault(ar v1.AdmissionReview) *v1.AdmissionResponse
a bit of a silly function, really, but bar access to the `default` namespace for all requests; everyone should be in their own namespace rather than default
func DelegateV1beta1AdmitToV1 ¶
func DelegateV1beta1AdmitToV1(f admitv1Func) admitv1beta1Func
This method converst a v1beta1 admission request to a v1 admission request, which, again
is a slick way to achieve compliance between either type of requests with minimal handling by the prospective end user who is just trying to write a mutate/admit method for their webhook
func NoExternalIpLoadBalancers ¶
func NoExternalIpLoadBalancers(ar v1.AdmissionReview) *v1.AdmissionResponse
This function checks that any service of type LoadBalancer has the Azure-specific annotation preventing them from
generating a public IP address.
Types ¶
type AdmitHandler ¶
type AdmitHandler struct { V1beta1 admitv1beta1Func V1 admitv1Func }
The struct that each webhook that registers with the controller must provide - notice
that it takes two kinds of funcs, a v1beta1 function and a v1 function, as properties. Each webhook will have to define these things as part of registration.
func NewDelegateToV1AdmitHandler ¶
func NewDelegateToV1AdmitHandler(f admitv1Func) AdmitHandler
Click to show internal directories.
Click to hide internal directories.