Skip to content

Commit baf81c0

Browse files
fix(apple_silicon): disable runner_configuration from ReinstallServer (scaleway#5056)
Co-authored-by: Jonathan Remy <[email protected]>
1 parent 85f2d80 commit baf81c0

File tree

3 files changed

+3
-40
lines changed

3 files changed

+3
-40
lines changed

cmd/scw/testdata/test-all-usage-apple-silicon-server-reinstall-usage.golden

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,9 @@ USAGE:
66
scw apple-silicon server reinstall <server-id ...> [arg=value ...]
77

88
ARGS:
9-
server-id UUID of the server you want to reinstall
10-
[os-id] Reinstall the server with the OS corresponding to the os_id
11-
[runner-configuration.name]
12-
[runner-configuration.url]
13-
[runner-configuration.token]
14-
[runner-configuration.provider] (unknown_provider | github | gitlab)
15-
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-3)
9+
server-id UUID of the server you want to reinstall
10+
[os-id] Reinstall the server with the OS corresponding to the os_id
11+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-3)
1612

1713
FLAGS:
1814
-h, --help help for reinstall

docs/commands/apple-silicon.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,6 @@ scw apple-silicon server reinstall <server-id ...> [arg=value ...]
304304
|------|---|-------------|
305305
| server-id | Required | UUID of the server you want to reinstall |
306306
| os-id | | Reinstall the server with the OS corresponding to the os_id |
307-
| runner-configuration.name | | |
308-
| runner-configuration.url | | |
309-
| runner-configuration.token | | |
310-
| runner-configuration.provider | One of: `unknown_provider`, `github`, `gitlab` | |
311307
| zone | Default: `fr-par-1`<br />One of: `fr-par-3` | Zone to target. If none is passed will use default zone from the config |
312308

313309

internal/namespaces/applesilicon/v1alpha1/applesilicon_cli.go

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -574,35 +574,6 @@ func appleSiliconServerReinstall() *core.Command {
574574
Deprecated: false,
575575
Positional: false,
576576
},
577-
{
578-
Name: "runner-configuration.name",
579-
Required: false,
580-
Deprecated: false,
581-
Positional: false,
582-
},
583-
{
584-
Name: "runner-configuration.url",
585-
Required: false,
586-
Deprecated: false,
587-
Positional: false,
588-
},
589-
{
590-
Name: "runner-configuration.token",
591-
Required: false,
592-
Deprecated: false,
593-
Positional: false,
594-
},
595-
{
596-
Name: "runner-configuration.provider",
597-
Required: false,
598-
Deprecated: false,
599-
Positional: false,
600-
EnumValues: []string{
601-
"unknown_provider",
602-
"github",
603-
"gitlab",
604-
},
605-
},
606577
core.ZoneArgSpec(scw.ZoneFrPar3),
607578
},
608579
Run: func(ctx context.Context, args any) (i any, e error) {

0 commit comments

Comments
 (0)