Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigManager ¶
type ConfigManager interface { HookAccessors() []WebhookAccessor HasSynced() bool }
ConfigManager can list dynamic webhooks.
func NewExploreConfigManager ¶
func NewExploreConfigManager(inform informermanager.SingleClusterInformerManager) ConfigManager
NewExploreConfigManager return a new interpreterConfigManager with resourceinterpreterwebhookconfigurations handlers.
type WebhookAccessor ¶
type WebhookAccessor interface { // GetUID gets a string that uniquely identifies the webhook. GetUID() string // GetConfigurationName gets the name of the webhook configuration that owns this webhook. GetConfigurationName() string // GetName gets the webhook Name field. GetName() string // GetClientConfig gets the webhook ClientConfig field. GetClientConfig() admissionregistrationv1.WebhookClientConfig // GetRules gets the webhook Rules field. GetRules() []configv1alpha1.RuleWithOperations // GetTimeoutSeconds gets the webhook TimeoutSeconds field. GetTimeoutSeconds() *int32 // GetInterpreterContextVersions gets the webhook InterpreterContextVersions field. GetInterpreterContextVersions() []string // GetRESTClient gets the webhook client. GetRESTClient(clientManager *webhookutil.ClientManager) (*rest.RESTClient, error) }
WebhookAccessor provides a common interface to get webhook configuration.
func NewResourceExploringAccessor ¶
func NewResourceExploringAccessor(uid, configurationName string, hook *configv1alpha1.ResourceInterpreterWebhook) WebhookAccessor
NewResourceExploringAccessor create an accessor for webhook.
Click to show internal directories.
Click to hide internal directories.