configmanager

package
v1.9.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

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 genericmanager.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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL