lifecycle

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Type is the type of Extension resource.
	Type = constants.ExtensionType
	// Name is the name of the lifecycle controller.
	Name = "shoot_networking_filter_lifecycle_controller"
	// FinalizerSuffix is the finalizer suffix for the Networking Policy Filter controller.
	FinalizerSuffix = constants.ExtensionType
)
View Source
const (
	// ActuatorName is the name of the Networking Policy Filter actuator.
	ActuatorName = constants.ServiceName + "-actuator"
)

Variables

View Source
var DefaultAddOptions = AddOptions{}

DefaultAddOptions contains configuration for the policy filter.

Functions

func AddToManager

func AddToManager(ctx context.Context, mgr manager.Manager) error

AddToManager adds a Networking Policy Filter Lifecycle controller to the given Controller Manager.

func GetShootResources

func GetShootResources(blackholingEnabled bool, sleepDuration, namespace string, secretData map[string][]byte) (map[string][]byte, error)

GetShootResources creates resources needed for the egress filter daemonset.

func NewActuator

func NewActuator(mgr manager.Manager, serviceConfig config.Configuration, oauth2secret *config.OAuth2Secret) (extension.Actuator, error)

NewActuator returns an actuator responsible for Extension resources.

func NewDownloaderFilterListProvider

func NewDownloaderFilterListProvider(ctx context.Context, client client.Client, logger logr.Logger,
	downloaderConfig *config.DownloaderConfig, oauth2Secret *config.OAuth2Secret) *downloaderFilterListProvider

func NewStaticFilterListProvider

func NewStaticFilterListProvider(ctx context.Context, client client.Client, logger logr.Logger,
	filterList []config.Filter) *staticFilterListProvider

Types

type AddOptions

type AddOptions struct {
	// ControllerOptions contains options for the controller.
	ControllerOptions controller.Options
	// ServiceConfig contains configuration for the policy filter.
	ServiceConfig controllerconfig.Config
	// IgnoreOperationAnnotation specifies whether to ignore the operation annotation or not.
	IgnoreOperationAnnotation bool
}

AddOptions are options to apply when adding the policy filter controller to the manager.

type FilterListProvider

type FilterListProvider interface {
	Setup() error
	ReadSecretData(ctx context.Context) (map[string][]byte, error)
}

Jump to

Keyboard shortcuts

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