featuretoggle

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: Apache-2.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeatureToggleHandler

type FeatureToggleHandler interface {
	Name() string
	IsEnabled() bool
	PreManagerSetupHandle(ctx context.Context) error
	PostManagerSetupHandle(ctx context.Context, mgr manager.Manager) error
	TestableFeatureToggleHandler
}

func GetAvailableFeatureToggles

func GetAvailableFeatureToggles(opts ...availableFeatureTogglesGetterOpts) []FeatureToggleHandler

type MonitoringStackFeatureToggle

type MonitoringStackFeatureToggle struct {
	Client                      client.Client
	FeatureTogglesInCluster     addonsv1alpha1.AddonOperatorFeatureToggles
	SchemeToUpdate              *runtime.Scheme
	AddonReconcilerOptsToUpdate *[]addoncontroller.AddonReconcilerOptions
}

func (*MonitoringStackFeatureToggle) Disable

func (*MonitoringStackFeatureToggle) Enable

func (MonitoringStackFeatureToggle) IsEnabled

func (m MonitoringStackFeatureToggle) IsEnabled() bool

func (MonitoringStackFeatureToggle) IsEnabledOnTestEnv

func (m MonitoringStackFeatureToggle) IsEnabledOnTestEnv() bool

func (MonitoringStackFeatureToggle) Name

func (*MonitoringStackFeatureToggle) PostClusterCreationSetup

func (m *MonitoringStackFeatureToggle) PostClusterCreationSetup(ctx context.Context, clusterCreated *dev.Cluster) error

func (*MonitoringStackFeatureToggle) PostManagerSetupHandle

func (m *MonitoringStackFeatureToggle) PostManagerSetupHandle(ctx context.Context, mgr manager.Manager) error

func (*MonitoringStackFeatureToggle) PreClusterCreationSetup

func (m *MonitoringStackFeatureToggle) PreClusterCreationSetup(ctx context.Context) error

func (*MonitoringStackFeatureToggle) PreManagerSetupHandle

func (m *MonitoringStackFeatureToggle) PreManagerSetupHandle(ctx context.Context) error

type TestableFeatureToggleHandler

type TestableFeatureToggleHandler interface {
	PreClusterCreationSetup(ctx context.Context) error
	PostClusterCreationSetup(ctx context.Context, clusterCreated *dev.Cluster) error
	Enable(ctx context.Context) error
	Disable(ctx context.Context) error
	IsEnabledOnTestEnv() bool
}

to be used by tests / magefile to setup envs with / without feature toggles

type WithAddonReconcilerOptsToUpdate

type WithAddonReconcilerOptsToUpdate struct {
	AddonReconcilerOptsToUpdate *[]addoncontroller.AddonReconcilerOptions
}

type WithClient

type WithClient struct {
	client.Client
}

type WithSchemeToUpdate

type WithSchemeToUpdate struct {
	*runtime.Scheme
}

Jump to

Keyboard shortcuts

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