rancher-charts/tests/common/helpers.go

12 lines
334 B
Go

package common
import "github.com/rancher/hull/pkg/checker"
func GetSystemDefaultRegistry(tc *checker.TestContext) string {
systemDefaultRegistry, _ := checker.RenderValue[string](tc, ".Values.global.cattle.systemDefaultRegistry")
if systemDefaultRegistry != "" {
systemDefaultRegistry += "/"
}
return systemDefaultRegistry
}