mirror of https://git.rancher.io/charts
12 lines
334 B
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
|
|
}
|