diff --git a/internal/flink/command_compute_pool.go b/internal/flink/command_compute_pool.go index e62f481b2d..99ebed4be5 100644 --- a/internal/flink/command_compute_pool.go +++ b/internal/flink/command_compute_pool.go @@ -10,7 +10,6 @@ type computePoolOut struct { Name string `human:"Name" serialized:"name"` CurrentCfu int32 `human:"Current CFU" serialized:"currrent_cfu"` MaxCfu int32 `human:"Max CFU" serialized:"max_cfu"` - Cloud string `human:"Cloud" serialized:"cloud"` Region string `human:"Region" serialized:"region"` Status string `human:"Status" serialized:"status"` } diff --git a/internal/flink/command_compute_pool_create.go b/internal/flink/command_compute_pool_create.go index 3afb77bca7..63e7b30915 100644 --- a/internal/flink/command_compute_pool_create.go +++ b/internal/flink/command_compute_pool_create.go @@ -86,7 +86,6 @@ func (c *command) computePoolCreate(cmd *cobra.Command, args []string) error { Name: computePool.Spec.GetDisplayName(), CurrentCfu: computePool.Status.GetCurrentCfu(), MaxCfu: computePool.Spec.GetMaxCfu(), - Cloud: computePool.Spec.GetCloud(), Region: computePool.Spec.GetRegion(), Status: computePool.Status.GetPhase(), }) diff --git a/internal/flink/command_compute_pool_describe.go b/internal/flink/command_compute_pool_describe.go index 3230f50b6f..e549147faa 100644 --- a/internal/flink/command_compute_pool_describe.go +++ b/internal/flink/command_compute_pool_describe.go @@ -52,7 +52,6 @@ func (c *command) computePoolDescribe(cmd *cobra.Command, args []string) error { Name: computePool.Spec.GetDisplayName(), CurrentCfu: computePool.Status.GetCurrentCfu(), MaxCfu: computePool.Spec.GetMaxCfu(), - Cloud: computePool.Spec.GetCloud(), Region: computePool.Spec.GetRegion(), Status: computePool.Status.GetPhase(), }) diff --git a/internal/flink/command_compute_pool_list.go b/internal/flink/command_compute_pool_list.go index 4c4fdcbb58..ca60fab504 100644 --- a/internal/flink/command_compute_pool_list.go +++ b/internal/flink/command_compute_pool_list.go @@ -46,7 +46,6 @@ func (c *command) computePoolList(cmd *cobra.Command, _ []string) error { Name: computePool.Spec.GetDisplayName(), CurrentCfu: computePool.Status.GetCurrentCfu(), MaxCfu: computePool.Spec.GetMaxCfu(), - Cloud: computePool.Spec.GetCloud(), Region: computePool.Spec.GetRegion(), Status: computePool.Status.GetPhase(), }) diff --git a/internal/flink/command_compute_pool_update.go b/internal/flink/command_compute_pool_update.go index 0ee962fec4..1ab9327819 100644 --- a/internal/flink/command_compute_pool_update.go +++ b/internal/flink/command_compute_pool_update.go @@ -103,7 +103,6 @@ func (c *command) computePoolUpdate(cmd *cobra.Command, args []string) error { Name: updatedComputePool.Spec.GetDisplayName(), CurrentCfu: computePool.Status.GetCurrentCfu(), MaxCfu: updatedComputePool.Spec.GetMaxCfu(), - Cloud: computePool.Spec.GetCloud(), Region: computePool.Spec.GetRegion(), Status: computePool.Status.GetPhase(), }) diff --git a/test/fixtures/output/flink/compute-pool/create.golden b/test/fixtures/output/flink/compute-pool/create.golden index 18c18127d8..6345ae84eb 100644 --- a/test/fixtures/output/flink/compute-pool/create.golden +++ b/test/fixtures/output/flink/compute-pool/create.golden @@ -4,7 +4,6 @@ | Name | my-compute-pool | | Current CFU | 0 | | Max CFU | 5 | -| Cloud | AWS | | Region | us-west-2 | | Status | PROVISIONING | +-------------+-----------------+ diff --git a/test/fixtures/output/flink/compute-pool/describe-after-use.golden b/test/fixtures/output/flink/compute-pool/describe-after-use.golden index a4561c9b07..4af2d74cd3 100644 --- a/test/fixtures/output/flink/compute-pool/describe-after-use.golden +++ b/test/fixtures/output/flink/compute-pool/describe-after-use.golden @@ -4,7 +4,6 @@ | Name | my-compute-pool-1 | | Current CFU | 0 | | Max CFU | 1 | -| Cloud | AWS | | Region | us-west-2 | | Status | PROVISIONED | +-------------+-------------------+ diff --git a/test/fixtures/output/flink/compute-pool/describe.golden b/test/fixtures/output/flink/compute-pool/describe.golden index 0622a41e80..b0fc62e1d2 100644 --- a/test/fixtures/output/flink/compute-pool/describe.golden +++ b/test/fixtures/output/flink/compute-pool/describe.golden @@ -4,7 +4,6 @@ | Name | my-compute-pool-1 | | Current CFU | 0 | | Max CFU | 1 | -| Cloud | AWS | | Region | us-west-2 | | Status | PROVISIONED | +-------------+-------------------+ diff --git a/test/fixtures/output/flink/compute-pool/list-after-use.golden b/test/fixtures/output/flink/compute-pool/list-after-use.golden index e37bf8d1f5..7a88a18eee 100644 --- a/test/fixtures/output/flink/compute-pool/list-after-use.golden +++ b/test/fixtures/output/flink/compute-pool/list-after-use.golden @@ -1,4 +1,4 @@ - Current | ID | Name | Current CFU | Max CFU | Cloud | Region | Status -----------+-------------+-------------------+-------------+---------+-------+-----------+-------------- - * | lfcp-123456 | my-compute-pool-1 | 0 | 1 | AWS | us-west-1 | PROVISIONED - | lfcp-222222 | my-compute-pool-2 | 0 | 2 | AWS | us-west-2 | PROVISIONED + Current | ID | Name | Current CFU | Max CFU | Region | Status +----------+-------------+-------------------+-------------+---------+-----------+-------------- + * | lfcp-123456 | my-compute-pool-1 | 0 | 1 | us-west-1 | PROVISIONED + | lfcp-222222 | my-compute-pool-2 | 0 | 2 | us-west-2 | PROVISIONED diff --git a/test/fixtures/output/flink/compute-pool/list-region.golden b/test/fixtures/output/flink/compute-pool/list-region.golden index 28d0e2d296..f5d9aaf072 100644 --- a/test/fixtures/output/flink/compute-pool/list-region.golden +++ b/test/fixtures/output/flink/compute-pool/list-region.golden @@ -1,3 +1,3 @@ - Current | ID | Name | Current CFU | Max CFU | Cloud | Region | Status -----------+-------------+-------------------+-------------+---------+-------+-----------+-------------- - | lfcp-222222 | my-compute-pool-2 | 0 | 2 | AWS | us-west-2 | PROVISIONED + Current | ID | Name | Current CFU | Max CFU | Region | Status +----------+-------------+-------------------+-------------+---------+-----------+-------------- + | lfcp-222222 | my-compute-pool-2 | 0 | 2 | us-west-2 | PROVISIONED diff --git a/test/fixtures/output/flink/compute-pool/list.golden b/test/fixtures/output/flink/compute-pool/list.golden index e5e2ac924a..6b3d53af6e 100644 --- a/test/fixtures/output/flink/compute-pool/list.golden +++ b/test/fixtures/output/flink/compute-pool/list.golden @@ -1,4 +1,4 @@ - Current | ID | Name | Current CFU | Max CFU | Cloud | Region | Status -----------+-------------+-------------------+-------------+---------+-------+-----------+-------------- - | lfcp-123456 | my-compute-pool-1 | 0 | 1 | AWS | us-west-1 | PROVISIONED - | lfcp-222222 | my-compute-pool-2 | 0 | 2 | AWS | us-west-2 | PROVISIONED + Current | ID | Name | Current CFU | Max CFU | Region | Status +----------+-------------+-------------------+-------------+---------+-----------+-------------- + | lfcp-123456 | my-compute-pool-1 | 0 | 1 | us-west-1 | PROVISIONED + | lfcp-222222 | my-compute-pool-2 | 0 | 2 | us-west-2 | PROVISIONED diff --git a/test/fixtures/output/flink/compute-pool/update-after-use.golden b/test/fixtures/output/flink/compute-pool/update-after-use.golden index 44e970043f..069dcae019 100644 --- a/test/fixtures/output/flink/compute-pool/update-after-use.golden +++ b/test/fixtures/output/flink/compute-pool/update-after-use.golden @@ -4,7 +4,6 @@ | Name | my-compute-pool-1 | | Current CFU | 0 | | Max CFU | 5 | -| Cloud | AWS | | Region | us-west-2 | | Status | PROVISIONED | +-------------+-------------------+ diff --git a/test/fixtures/output/flink/compute-pool/update.golden b/test/fixtures/output/flink/compute-pool/update.golden index 924aad38aa..373fabfdbb 100644 --- a/test/fixtures/output/flink/compute-pool/update.golden +++ b/test/fixtures/output/flink/compute-pool/update.golden @@ -4,7 +4,6 @@ | Name | my-compute-pool-1 | | Current CFU | 0 | | Max CFU | 5 | -| Cloud | AWS | | Region | us-west-2 | | Status | PROVISIONED | +-------------+-------------------+ diff --git a/test/test-server/fcpm_handlers.go b/test/test-server/fcpm_handlers.go index 1b62d49bc2..86d6396a2e 100644 --- a/test/test-server/fcpm_handlers.go +++ b/test/test-server/fcpm_handlers.go @@ -3,7 +3,6 @@ package testserver import ( "encoding/json" "net/http" - "strings" "testing" "github.com/gorilla/mux" @@ -24,7 +23,6 @@ func handleFcpmComputePools(t *testing.T) http.HandlerFunc { DisplayName: flinkv2.PtrString("my-compute-pool-1"), MaxCfu: flinkv2.PtrInt32(1), Region: flinkv2.PtrString("us-west-1"), - Cloud: flinkv2.PtrString("AWS"), }, Status: &flinkv2.FcpmV2ComputePoolStatus{Phase: "PROVISIONED"}, } @@ -34,7 +32,6 @@ func handleFcpmComputePools(t *testing.T) http.HandlerFunc { DisplayName: flinkv2.PtrString("my-compute-pool-2"), MaxCfu: flinkv2.PtrInt32(2), Region: flinkv2.PtrString("us-west-2"), - Cloud: flinkv2.PtrString("AWS"), }, Status: &flinkv2.FcpmV2ComputePoolStatus{Phase: "PROVISIONED"}, } @@ -48,7 +45,6 @@ func handleFcpmComputePools(t *testing.T) http.HandlerFunc { create := new(flinkv2.FcpmV2ComputePool) err := json.NewDecoder(r.Body).Decode(create) require.NoError(t, err) - create.Spec.Cloud = flinkv2.PtrString(strings.ToUpper(create.Spec.GetCloud())) v = flinkv2.FcpmV2ComputePool{ Id: flinkv2.PtrString("lfcp-123456"), @@ -79,7 +75,6 @@ func handleFcpmComputePoolsId(t *testing.T) http.HandlerFunc { DisplayName: flinkv2.PtrString("my-compute-pool-1"), HttpEndpoint: flinkv2.PtrString(TestFlinkGatewayUrl.String()), MaxCfu: flinkv2.PtrInt32(1), - Cloud: flinkv2.PtrString("AWS"), Region: flinkv2.PtrString("us-west-2"), }, Status: &flinkv2.FcpmV2ComputePoolStatus{Phase: "PROVISIONED"}, @@ -97,7 +92,6 @@ func handleFcpmComputePoolsId(t *testing.T) http.HandlerFunc { Spec: &flinkv2.FcpmV2ComputePoolSpec{ DisplayName: flinkv2.PtrString("my-compute-pool-1"), MaxCfu: flinkv2.PtrInt32(update.Spec.GetMaxCfu()), - Cloud: flinkv2.PtrString("AWS"), Region: flinkv2.PtrString("us-west-2"), }, Status: &flinkv2.FcpmV2ComputePoolStatus{Phase: "PROVISIONED"},