Documentation
¶
Index ¶
Constants ¶
View Source
const ( // HandlerName is the name of the webhook handler. HandlerName = "projected-token-mount" // WebhookPath is the path at which the handler should be registered. WebhookPath = "/webhooks/mount-projected-service-account-token" )
Variables ¶
This section is empty.
Functions ¶
func AddToManager ¶
AddToManager adds the webhook to a Manager using the default config.
func AddToManagerWithOptions ¶
func AddToManagerWithOptions(mgr manager.Manager, conf WebhookConfig) error
AddToManagerWithOptions adds the webhook to a Manager with the given config.
Types ¶
type WebhookConfig ¶
WebhookConfig is the completed configuration for the webhook.
type WebhookOptions ¶
type WebhookOptions struct {
// contains filtered or unexported fields
}
WebhookOptions are options for adding the webhook to a Manager.
func (*WebhookOptions) AddFlags ¶
func (o *WebhookOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds the needed command line flags to the given FlagSet.
func (*WebhookOptions) Complete ¶
func (o *WebhookOptions) Complete() error
Complete completes the given command line flags and set the defaultWebhookConfig accordingly.
func (*WebhookOptions) Completed ¶
func (o *WebhookOptions) Completed() *WebhookConfig
Completed returns the completed WebhookConfig.
Click to show internal directories.
Click to hide internal directories.