common

package
v0.8.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ReconcileErrorInterval                             = 10 * time.Second
	ReconcileSuccessInterval                           = 120 * time.Second
	FinalizerName                                      = "featureflag.core.openfeature.dev/finalizer"
	OpenFeatureAnnotationPath                          = "spec.template.metadata.annotations.openfeature.dev/openfeature.dev"
	OpenFeatureAnnotationRoot                          = "openfeature.dev"
	FlagdImagePullPolicy             corev1.PullPolicy = "Always"
	ClusterRoleBindingName           string            = "open-feature-operator-flagd-kubernetes-sync"
	AllowKubernetesSyncAnnotation                      = "allowkubernetessync"
	OpenFeatureAnnotationPrefix                        = "openfeature.dev"
	PodOpenFeatureAnnotationPath                       = "metadata.annotations.openfeature.dev"
	SourceConfigParam                                  = "--sources"
	ProbeReadiness                                     = "/readyz"
	ProbeLiveness                                      = "/healthz"
	ProbeInitialDelay                                  = 5
	FeatureFlagSourceAnnotation                        = "featureflagsource"
	EnabledAnnotation                                  = "enabled"
	ManagedByAnnotationKey                             = "app.kubernetes.io/managed-by"
	ManagedByAnnotationValue                           = "open-feature-operator"
	OperatorDeploymentName                             = "open-feature-operator-controller-manager"
	InProcessConfigurationAnnotation                   = "inprocessconfiguration"
)

Variables

View Source
var ErrFlagdProxyNotReady = errors.New("flagd-proxy is not ready, deferring pod admission")
View Source
var ErrUnrecognizedSyncProvider = errors.New("unrecognized sync provider")

Functions

func FeatureFlagSourceIndex

func FeatureFlagSourceIndex(o client.Object) []string

func FindFlagConfig

func FindFlagConfig(ctx context.Context, c client.Client, namespace string, name string) (*api.FeatureFlag, error)

func IsManagedByOFO added in v0.5.6

func IsManagedByOFO(obj client.Object) bool

func SharedOwnership

func SharedOwnership(ownerReferences1, ownerReferences2 []metav1.OwnerReference) bool

SharedOwnership returns true if any of the owner references match in the given slices

Types

This section is empty.

Directories

Path Synopsis
fake
Package commonmock is a generated GoMock package.
Package commonmock is a generated GoMock package.

Jump to

Keyboard shortcuts

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