Skip to content

Commit

Permalink
remove unneeded tests
Browse files Browse the repository at this point in the history
Signed-off-by: odubajDT <[email protected]>
  • Loading branch information
odubajDT committed Nov 8, 2023
1 parent b9706d0 commit ded5674
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 853 deletions.
14 changes: 14 additions & 0 deletions webhooks/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,20 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"
)

// we likely want these to be configurable, eventually
const (
FlagDImagePullPolicy corev1.PullPolicy = "Always"
clusterRoleBindingName string = "open-feature-operator-flagd-kubernetes-sync"
OpenFeatureAnnotationPath = "metadata.annotations.openfeature.dev"
OpenFeatureAnnotationPrefix = "openfeature.dev"
AllowKubernetesSyncAnnotation = "allowkubernetessync"
FeatureFlagSourceAnnotation = "featureflagsource"
EnabledAnnotation = "enabled"
ProbeReadiness = "/readyz"
ProbeLiveness = "/healthz"
SourceConfigParam = "--sources"
)

func OpenFeatureEnabledAnnotationIndex(o client.Object) []string {
pod := o.(*corev1.Pod)
if pod.ObjectMeta.Annotations == nil {
Expand Down
14 changes: 0 additions & 14 deletions webhooks/pod_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,6 @@ import (
"sigs.k8s.io/controller-runtime/pkg/webhook/admission"
)

// we likely want these to be configurable, eventually
const (
FlagDImagePullPolicy corev1.PullPolicy = "Always"
clusterRoleBindingName string = "open-feature-operator-flagd-kubernetes-sync"
OpenFeatureAnnotationPath = "metadata.annotations.openfeature.dev"
OpenFeatureAnnotationPrefix = "openfeature.dev"
AllowKubernetesSyncAnnotation = "allowkubernetessync"
FeatureFlagSourceAnnotation = "featureflagsource"
EnabledAnnotation = "enabled"
ProbeReadiness = "/readyz"
ProbeLiveness = "/healthz"
SourceConfigParam = "--sources"
)

// NOTE: RBAC not needed here.

//+kubebuilder:rbac:groups="",resources=pods,verbs=get;list;watch;create;update;patch;delete
Expand Down
Loading

0 comments on commit ded5674

Please sign in to comment.