Added DirectPV mode to Operator console (#2203)

Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
This commit is contained in:
Alex
2022-08-01 12:57:31 -05:00
committed by GitHub
parent 1deb6371ed
commit ad4b9c050a
32 changed files with 1332 additions and 49 deletions

View File

@@ -69,3 +69,10 @@ func getK8sSAToken() string {
func getMarketplace() string {
return env.Get(ConsoleMarketplace, "")
}
// Get DirectPVMode
func getDirectPVEnabled() bool {
currentMode := env.Get(DirectPVMode, "off")
return currentMode == "on"
}