create cluster ISO image

This commit is contained in:
Lukasz Zajaczkowski
2025-02-06 14:29:01 +01:00
parent 0ecfe9672a
commit 390891fa14
12 changed files with 305 additions and 60 deletions

14
pkg/helpers/env.go Normal file
View File

@@ -0,0 +1,14 @@
package helpers
import (
"os"
)
// GetEnv - Lookup the environment variable provided and set to default value if variable isn't found
func GetEnv(key, fallback string) string {
if value := os.Getenv(key); len(value) > 0 {
return value
}
return fallback
}