MCPcopy Index your code
hub / github.com/devspace-sh/devspace / ValidContainerArch

Function ValidContainerArch

pkg/devspace/config/versions/validate.go:33–37  ·  view source on GitHub ↗

ValidContainerArch checks if the target container arch is valid

(arch latest.ContainerArchitecture)

Source from the content-addressed store, hash-verified

31
32// ValidContainerArch checks if the target container arch is valid
33func ValidContainerArch(arch latest.ContainerArchitecture) bool {
34 return arch == "" ||
35 arch == latest.ContainerArchitectureAmd64 ||
36 arch == latest.ContainerArchitectureArm64
37}
38
39func Validate(config *latest.Config) error {
40 if config.Name == "" {

Callers 1

validateDevContainerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected