webhooks

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFeatureFlagSourceSpec added in v0.4.0

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

func OpenFeatureEnabledAnnotationIndex added in v0.2.24

func OpenFeatureEnabledAnnotationIndex(o client.Object) []string

Types

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 added in v0.2.24

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 added in v0.2.29

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