mirror of https://github.com/kubernetes/kops.git
Merge pull request #6127 from justinsb/remove_duplicate_dedup
machine-types: remove duplicate dedup
This commit is contained in:
commit
0f26f2bb5a
|
|
@ -262,14 +262,7 @@ func run() error {
|
||||||
|
|
||||||
for _, f := range sortedFamilies {
|
for _, f := range sortedFamilies {
|
||||||
output = output + fmt.Sprintf("\n// %s family", f)
|
output = output + fmt.Sprintf("\n// %s family", f)
|
||||||
previousMachine := ""
|
|
||||||
for _, m := range machines {
|
for _, m := range machines {
|
||||||
// Ignore duplicates
|
|
||||||
if m.Name == previousMachine {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
previousMachine = m.Name
|
|
||||||
|
|
||||||
if family := strings.Split(m.Name, ".")[0]; family == f {
|
if family := strings.Split(m.Name, ".")[0]; family == f {
|
||||||
var ecu string
|
var ecu string
|
||||||
if m.Burstable {
|
if m.Burstable {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue