Skip to content

Commit 6348eeb

Browse files
committed
move v1alpha1 to v1alpha2
1 parent f37b269 commit 6348eeb

5 files changed

Lines changed: 253 additions & 207 deletions

File tree

commands/commands.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import (
3232
interlink "github.com/scaleway/scaleway-cli/v2/internal/namespaces/interlink/v1beta1"
3333
"github.com/scaleway/scaleway-cli/v2/internal/namespaces/iot/v1"
3434
"github.com/scaleway/scaleway-cli/v2/internal/namespaces/ipam/v1"
35-
jobs "github.com/scaleway/scaleway-cli/v2/internal/namespaces/jobs/v1alpha1"
35+
jobs "github.com/scaleway/scaleway-cli/v2/internal/namespaces/jobs/v1alpha2"
3636
"github.com/scaleway/scaleway-cli/v2/internal/namespaces/k8s/v1"
3737
keymanager "github.com/scaleway/scaleway-cli/v2/internal/namespaces/key_manager/v1alpha1"
3838
"github.com/scaleway/scaleway-cli/v2/internal/namespaces/lb/v1"

internal/namespaces/jobs/v1alpha1/custom.go renamed to internal/namespaces/jobs/v1alpha2/custom.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,19 @@ import (
44
"github.com/fatih/color"
55
"github.com/scaleway/scaleway-cli/v2/core"
66
"github.com/scaleway/scaleway-cli/v2/core/human"
7-
jobs "github.com/scaleway/scaleway-sdk-go/api/jobs/v1alpha1"
7+
jobs "github.com/scaleway/scaleway-sdk-go/api/jobs/v1alpha2"
88
)
99

1010
var jobRunStateMarshalSpecs = human.EnumMarshalSpecs{
1111
jobs.JobRunStateUnknownState: &human.EnumMarshalSpec{Attribute: color.Faint},
1212
jobs.JobRunStateQueued: &human.EnumMarshalSpec{Attribute: color.FgBlue},
13-
jobs.JobRunStateScheduled: &human.EnumMarshalSpec{Attribute: color.FgBlue},
13+
jobs.JobRunStateInitialized: &human.EnumMarshalSpec{Attribute: color.FgBlue},
14+
jobs.JobRunStateValidated: &human.EnumMarshalSpec{Attribute: color.FgBlue},
1415
jobs.JobRunStateRunning: &human.EnumMarshalSpec{Attribute: color.FgBlue},
15-
jobs.JobRunStateSucceeded: &human.EnumMarshalSpec{Attribute: color.FgBlue},
16+
jobs.JobRunStateSucceeded: &human.EnumMarshalSpec{Attribute: color.FgGreen},
1617
jobs.JobRunStateFailed: &human.EnumMarshalSpec{Attribute: color.FgRed},
17-
jobs.JobRunStateCanceled: &human.EnumMarshalSpec{Attribute: color.FgRed},
18+
jobs.JobRunStateInterrupting: &human.EnumMarshalSpec{Attribute: color.FgBlue},
19+
jobs.JobRunStateInterrupted: &human.EnumMarshalSpec{Attribute: color.FgRed},
1820
}
1921

2022
func GetCommands() *core.Commands {

internal/namespaces/jobs/v1alpha1/custom_job_definition.go renamed to internal/namespaces/jobs/v1alpha2/custom_job_definition.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"fmt"
77

88
"github.com/scaleway/scaleway-cli/v2/core"
9-
jobs "github.com/scaleway/scaleway-sdk-go/api/jobs/v1alpha1"
9+
jobs "github.com/scaleway/scaleway-sdk-go/api/jobs/v1alpha2"
1010
"github.com/scaleway/scaleway-sdk-go/scw"
1111
)
1212

internal/namespaces/jobs/v1alpha1/custom_job_run.go renamed to internal/namespaces/jobs/v1alpha2/custom_job_run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"reflect"
66

77
"github.com/scaleway/scaleway-cli/v2/core"
8-
jobs "github.com/scaleway/scaleway-sdk-go/api/jobs/v1alpha1"
8+
jobs "github.com/scaleway/scaleway-sdk-go/api/jobs/v1alpha2"
99
"github.com/scaleway/scaleway-sdk-go/scw"
1010
)
1111

0 commit comments

Comments
 (0)