Skip to content

Commit c93dd50

Browse files
yfodilLaure-di
authored andcommitted
feat(vpcgw) support v2 (scaleway#4615)
1 parent d84e246 commit c93dd50

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

internal/namespaces/vpcgw/v1/custom.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,18 @@ import (
88

99
func GetCommands() *core.Commands {
1010
cmds := GetGeneratedCommands()
11+
for _, cmd := range cmds.GetAll() {
12+
if cmd.Resource == "" || cmd.Verb == "" {
13+
continue
14+
}
15+
if cmd.Verb == "migrate-to-v2" {
16+
continue
17+
}
18+
if cmd.Resource == "dhcp" || cmd.Resource == "dhcp-entry" {
19+
continue
20+
}
21+
cmd.Hidden = true
22+
}
1123

1224
cmds.MustFind("vpc-gw").Groups = []string{"network"}
1325

0 commit comments

Comments
 (0)