mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 16:06:56 +00:00
15 lines
239 B
Go
15 lines
239 B
Go
package experimental
|
|
|
|
import (
|
|
"os"
|
|
"strconv"
|
|
)
|
|
|
|
const experimentalEnv = "KYVERNO_EXPERIMENTAL"
|
|
|
|
func IsExperimentalEnabled() bool {
|
|
if b, err := strconv.ParseBool(os.Getenv(experimentalEnv)); err == nil {
|
|
return b
|
|
}
|
|
return false
|
|
}
|