kubeslice / worker-operator

Kubeslice Worker Operator Opensource Repository: The KubeSlice Worker Operator is a Kubernetes operator that manages the lifecycle of KubeSlice worker clusters.
Apache License 2.0
60 stars 19 forks source link

Add support for feature flags #138

Closed kmjayadeep closed 1 year ago

kmjayadeep commented 1 year ago

Signed-off-by: Jayadeep KM kmjayadeep@gmail.com

A simple implementation of feature flags using env variables.

usage:

import (
  "github.com/kubeslice/worker-operator/pkg/featureflag"
)

...

if featureflag.IsEnabled("nodeaffinity") {
 // your code
}
NishantSingh10 commented 1 year ago

report link 'https://kubeslice.github.io/e2e-allure-reports/Kind-worker-operator-2022-11-22T09:11:03-master-237/index.html'