webhook

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFeatureFlagSourceSpec

func NewFeatureFlagSourceSpec(env types.EnvConfig) *api.FeatureFlagSourceSpec

func NewInProcessConfigurationSpec

func NewInProcessConfigurationSpec(env types.EnvConfig) *api.InProcessConfigurationSpec

func OpenFeatureEnabledAnnotationIndex

func OpenFeatureEnabledAnnotationIndex(o client.Object) []string

Types

type FeatureFlagCustomValidator

type FeatureFlagCustomValidator struct {
}

func (*FeatureFlagCustomValidator) SetupWebhookWithManager

func (v *FeatureFlagCustomValidator) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*FeatureFlagCustomValidator) ValidateCreate

func (v *FeatureFlagCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (warnings admission.Warnings, err error)

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*FeatureFlagCustomValidator) ValidateDelete

func (v *FeatureFlagCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (warnings admission.Warnings, err error)

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*FeatureFlagCustomValidator) ValidateUpdate

func (v *FeatureFlagCustomValidator) ValidateUpdate(ctx context.Context, oldObj runtime.Object, newObj runtime.Object) (warnings admission.Warnings, err error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type PodMutator

type PodMutator struct {
	Client client.Client

	Log logr.Logger

	FlagdProxyConfig *flagdproxy.FlagdProxyConfiguration
	FlagdInjector    flagdinjector.IFlagdContainerInjector
	Env              types.EnvConfig
	// contains filtered or unexported fields
}

PodMutator annotates Pods

func (*PodMutator) BackfillPermissions

func (m *PodMutator) BackfillPermissions(ctx context.Context) error

BackfillPermissions recovers the state of the flagd-kubernetes-sync role binding in the event of upgrade

func (*PodMutator) Handle

Handle injects the flagd sidecar (if the prerequisites are all met)

func (*PodMutator) InjectDecoder

func (m *PodMutator) InjectDecoder(d admission.Decoder) error

InjectDecoder injects the decoder.

func (*PodMutator) IsReady

func (m *PodMutator) IsReady(_ *http.Request) error

Jump to

Keyboard shortcuts

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