Skip to content

fix(k8s): fix k8s get json output case #1477

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions internal/namespaces/k8s/v1/custom_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,16 @@ func clusterGetBuilder(c *core.Command) *core.Command {
}

type customPool struct {
ID string
Name string
Status k8s.PoolStatus
Version string
NodeType string
MinSize uint32
Size uint32
MaxSize uint32
Autoscaling bool
Autohealing bool
ID string `json:"id"`
Name string `json:"name"`
Status k8s.PoolStatus `json:"status"`
Version string `json:"version"`
NodeType string `json:"node_type"`
MinSize uint32 `json:"min_size"`
Size uint32 `json:"size"`
MaxSize uint32 `json:"max_size"`
Autoscaling bool `json:"autoscaling"`
Autohealing bool `json:"autohealing"`
}

customPools := []customPool{}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,16 @@ c610deed-139b-4950-aff7-8e2ccd895507 default scaling 1.17.3 dev1_m 0
"admission_plugins": [],
"pools": [
{
"ID": "c610deed-139b-4950-aff7-8e2ccd895507",
"Name": "default",
"Status": "scaling",
"Version": "1.17.3",
"NodeType": "dev1_m",
"MinSize": 0,
"Size": 1,
"MaxSize": 1,
"Autoscaling": false,
"Autohealing": false
"id": "c610deed-139b-4950-aff7-8e2ccd895507",
"name": "default",
"status": "scaling",
"version": "1.17.3",
"node_type": "dev1_m",
"min_size": 0,
"size": 1,
"max_size": 1,
"autoscaling": false,
"autohealing": false
}
]
}