Documentation ¶
Index ¶
Constants ¶
View Source
const ( // WebhookName is the name of the webhook acl ACL extension. WebhookName = "acl-webhook" // WebhookPath is the path where the webhook listen to. WebhookPath = "/mutate" )
View Source
const (
// ExtensionName contains the ACl extension name.
ExtensionName = "acl"
)
Variables ¶
View Source
var ( // DefaultAddOptions are the default AddOptions for AddToManager. DefaultAddOptions = AddOptions{} )
Functions ¶
func AddToManager ¶ added in v1.0.0
func AddToManager(mgr manager.Manager) (*extensionswebhook.Webhook, error)
AddToManager creates a webhook with the default options and adds it to the manager.
func AddToManagerWithOptions ¶ added in v1.0.0
func AddToManagerWithOptions( mgr manager.Manager, options AddOptions, ) error
AddToManagerWithOptions creates a webhook with the given options and adds it to the manager.
Types ¶
type AddOptions ¶ added in v1.0.0
type AddOptions struct {
AllowedCIDRs []string
}
AddOptions are options to apply when adding the webhook to the manager.
type EnvoyFilterWebhook ¶
type EnvoyFilterWebhook struct { Client client.Client Decoder *admission.Decoder AdditionalAllowedCIDRs []string }
EnvoyFilterWebhook is a service struct that defines functions to handle admission requests for EnvoyFilters.
Click to show internal directories.
Click to hide internal directories.