mirror of https://github.com/kubernetes/kops.git
Remove unused function
This commit is contained in:
parent
3f43d047dd
commit
795373a499
|
@ -20,8 +20,6 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
|
||||||
"k8s.io/klog/v2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Architecture string
|
type Architecture string
|
||||||
|
@ -58,19 +56,3 @@ func GetSupported() []Architecture {
|
||||||
ArchitectureArm64,
|
ArchitectureArm64,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a Architecture) BuildTags() []string {
|
|
||||||
var t []string
|
|
||||||
|
|
||||||
switch a {
|
|
||||||
case ArchitectureAmd64:
|
|
||||||
t = []string{"_amd64"}
|
|
||||||
case ArchitectureArm64:
|
|
||||||
t = []string{"_arm64"}
|
|
||||||
default:
|
|
||||||
klog.Fatalf("unknown architecture: %s", a)
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
return t
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue