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