common

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: 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"
	FlagdGrpcService                                   = "flagd.evaluation.v1.Service"
	FlagdGrpcServicePath                               = "/" + FlagdGrpcService
	SyncGrpcService                                    = "flagd.sync.v1.Service"
	SyncGrpcServicePath                                = "/" + SyncGrpcService
	OFREPHttpServicePath                               = "/ofrep"
)

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

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.
mock
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
JackTT - Gopher 🇻🇳