Skip to content

Commit 6b275f1

Browse files
committed
OCM-13522 | chore: Bump SDK 0.1.455 -> 0.1.456
1 parent cfd8354 commit 6b275f1

18 files changed

+602
-41
lines changed

cmd/describe/cluster/cmd.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,12 @@ func run(cmd *cobra.Command, argv []string) {
208208
if len(collection.Items().Items()) > 0 {
209209
migrationsToShow := map[string]string{}
210210
for _, migration := range collection.Items().Items() {
211-
if migration.State() != cmv1.ClusterMigrationStateCompleted {
212-
migrationsToShow[migration.ID()] = string(migration.State())
211+
state, ok := migration.State().GetValue()
212+
if !ok {
213+
r.Reporter.Errorf("Failed to get cluster migration state")
214+
}
215+
if state != cmv1.ClusterMigrationStateValueCompleted {
216+
migrationsToShow[migration.ID()] = string(state)
213217
}
214218
}
215219

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ require (
3232
github.com/onsi/ginkgo/v2 v2.17.1
3333
github.com/onsi/gomega v1.30.0
3434
github.com/openshift-online/ocm-common v0.0.16
35-
github.com/openshift-online/ocm-sdk-go v0.1.455
35+
github.com/openshift-online/ocm-sdk-go v0.1.456
3636
github.com/pkg/errors v0.9.1
3737
github.com/robfig/cron/v3 v3.0.1
3838
github.com/sirupsen/logrus v1.9.3

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ github.com/onsi/gomega v1.30.0 h1:hvMK7xYz4D3HapigLTeGdId/NcfQx1VHMJc60ew99+8=
270270
github.com/onsi/gomega v1.30.0/go.mod h1:9sxs+SwGrKI0+PWe4Fxa9tFQQBG5xSsSbMXOI8PPpoQ=
271271
github.com/openshift-online/ocm-common v0.0.16 h1:6R3g98VHK3v6imYZHD8XBieQUVFEBY3fPSv94fB/Zf4=
272272
github.com/openshift-online/ocm-common v0.0.16/go.mod h1:VEkuZp9aqbXtetZ5ycND6QpvhykvTuBF3oPsVM1X3vI=
273-
github.com/openshift-online/ocm-sdk-go v0.1.455 h1:rn2451frlJswFkSzKb+NyZeJbhTdWhiXtajq1PwknaA=
274-
github.com/openshift-online/ocm-sdk-go v0.1.455/go.mod h1:CiAu2jwl3ITKOxkeV0Qnhzv4gs35AmpIzVABQLtcI2Y=
273+
github.com/openshift-online/ocm-sdk-go v0.1.456 h1:N9AmVv8H+FSlld88iCsafy+8Lhykz/1XUrmVhww/BYM=
274+
github.com/openshift-online/ocm-sdk-go v0.1.456/go.mod h1:CiAu2jwl3ITKOxkeV0Qnhzv4gs35AmpIzVABQLtcI2Y=
275275
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
276276
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
277277
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=

vendor/github.com/openshift-online/ocm-sdk-go/CHANGES.md

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/openshift-online/ocm-sdk-go/Makefile

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1/cluster_migration_builder.go

Lines changed: 19 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1/cluster_migration_state_builder.go

Lines changed: 75 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1/cluster_migration_state_list_builder.go

Lines changed: 71 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1/cluster_migration_state_list_type_json.go

Lines changed: 7 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)