From 482ba876da8806f384d5dbe143f442d8550cf056 Mon Sep 17 00:00:00 2001 From: Praveen Kumar Date: Wed, 15 May 2024 18:13:30 +0530 Subject: [PATCH] Revert "API: Add podman version to status result" This reverts commit b7a922a6f17e9c783a3b2c108c943353599e6a11. It is missed during 095fb5 one --- pkg/crc/api/api_client_test.go | 1 - pkg/crc/api/api_http_test.go | 2 +- pkg/crc/api/client/types.go | 1 - pkg/crc/api/handlers.go | 1 - 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/crc/api/api_client_test.go b/pkg/crc/api/api_client_test.go index 4f38098743..ad485e617e 100644 --- a/pkg/crc/api/api_client_test.go +++ b/pkg/crc/api/api_client_test.go @@ -68,7 +68,6 @@ func TestStatus(t *testing.T) { CrcStatus: "Running", OpenshiftStatus: "Running", OpenshiftVersion: "4.5.1", - PodmanVersion: "3.3.1", DiskUse: int64(10000000000), DiskSize: int64(20000000000), RAMUse: int64(1000), diff --git a/pkg/crc/api/api_http_test.go b/pkg/crc/api/api_http_test.go index f7aaa8e853..859bccc3e6 100644 --- a/pkg/crc/api/api_http_test.go +++ b/pkg/crc/api/api_http_test.go @@ -227,7 +227,7 @@ var testCases = []testCase{ // status { request: get("status"), - response: jSon(`{"CrcStatus":"Running","OpenshiftStatus":"Running","OpenshiftVersion":"4.5.1","PodmanVersion":"3.3.1","DiskUse":10000000000,"DiskSize":20000000000,"RAMUse":1000,"RAMSize":2000,"Preset":"openshift"}`), + response: jSon(`{"CrcStatus":"Running","OpenshiftStatus":"Running","OpenshiftVersion":"4.5.1","DiskUse":10000000000,"DiskSize":20000000000,"RAMUse":1000,"RAMSize":2000,"Preset":"openshift"}`), }, // status with failure diff --git a/pkg/crc/api/client/types.go b/pkg/crc/api/client/types.go index 7516facf75..d7c2ac75a5 100644 --- a/pkg/crc/api/client/types.go +++ b/pkg/crc/api/client/types.go @@ -23,7 +23,6 @@ type ClusterStatusResult struct { CrcStatus string OpenshiftStatus string OpenshiftVersion string `json:"OpenshiftVersion,omitempty"` - PodmanVersion string `json:"PodmanVersion,omitempty"` DiskUse int64 DiskSize int64 RAMUse int64 diff --git a/pkg/crc/api/handlers.go b/pkg/crc/api/handlers.go index 0ac9fd4ece..04ecedf042 100644 --- a/pkg/crc/api/handlers.go +++ b/pkg/crc/api/handlers.go @@ -66,7 +66,6 @@ func (h *Handler) Status(c *context) error { CrcStatus: string(res.CrcStatus), OpenshiftStatus: string(res.OpenshiftStatus), OpenshiftVersion: res.OpenshiftVersion, - PodmanVersion: res.PodmanVersion, DiskUse: res.DiskUse, DiskSize: res.DiskSize, RAMSize: res.RAMSize,