postgres-operator/pkg/apis/acid.zalan.do/register.go

19 lines
350 B
Go

package acidzalando
import "os"
var (
// GroupName is the group name for the operator CRDs
GroupName = getEnvWithDefault("POSTGRES_OPERATOR_API_GROUP", "ost.cloud.rakuten.com")
)
func getEnvWithDefault(key, defaultValue string) string {
if value := os.Getenv(key); value != "" {
return value
}
return defaultValue
}