Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AddToManagerFuncs []func(manager.Manager) error
AddToManagerFuncs is a list of functions to add all Controllers to the Manager
Functions ¶
func AddGenericWebhooks ¶
func AddGenericWebhooks(server GenericHandler, opa opa.Query)
AddGenericWebhooks adds all handlers that handle raw HTTP requests.
func AddPolicyWebhook ¶
AddPolicyWebhook registers the policy webhook server with the manager below: notations add permissions kube-mgmt needs. Access cannot yet be restricted on a namespace-level granularity +kubebuilder:rbac:groups=*,resources=*,verbs=get;list;watch +kubebuilder:rbac:groups=,resources=configmaps,verbs=get;list;watch;create;update;patch;delete
func AddToManager ¶
AddToManager adds all Controllers to the Manager +kubebuilder:rbac:groups=admissionregistration.k8s.io,resources=mutatingwebhookconfigurations;validatingwebhookconfigurations,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups="",resources=secrets,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups="",resources=services,verbs=get;list;watch;create;update;patch;delete
Types ¶
type GenericHandler ¶
GenericHandler is any object that supports the webhook server's Handle() method.
type GenericWebhook ¶
type GenericWebhook struct {
// contains filtered or unexported fields
}
func (GenericWebhook) ServeHTTP ¶
func (gw GenericWebhook) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements the net/http server handler interface and recovers from panics.