Skip to content

Commit

Permalink
Revert "API: Add podman version to status result"
Browse files Browse the repository at this point in the history
This reverts commit b7a922a.
It is missed during 095fb5 one
  • Loading branch information
praveenkumar committed May 21, 2024
1 parent 46d6014 commit 482ba87
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion pkg/crc/api/api_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion pkg/crc/api/api_http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion pkg/crc/api/client/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion pkg/crc/api/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 482ba87

Please sign in to comment.