File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,10 @@ var clusterVersionsTmplSrc = `Supported Kubernetes distributions and versions ar
21
21
DISTRIBUTION: {{ $d.Name }}
22
22
• VERSIONS: {{ range $i, $v := $d.Versions -}}{{if $i}}, {{end}}{{ $v }}{{ end }}
23
23
• INSTANCE TYPES: {{ range $i, $it := $d.InstanceTypes -}}{{if $i}}, {{end}}{{ $it }}{{ end }}
24
- • MAX NODES: {{ $d.NodesMax }}
24
+ • MAX NODES: {{ $d.NodesMax }}{{if $d.Status}}
25
+ • ENABLED: {{ $d.Status.Enabled }}
26
+ • STATUS: {{ $d.Status.Status }}
27
+ • DETAILS: {{ $d.Status.StatusMessage }}{{end}}
25
28
26
29
{{ end }}`
27
30
Original file line number Diff line number Diff line change @@ -37,9 +37,16 @@ type Cluster struct {
37
37
Tags []ClusterTag `json:"tags"`
38
38
}
39
39
40
+ type ClusterDistributionStatus struct {
41
+ Enabled bool `json:"enabled"`
42
+ Status string `json:"status"`
43
+ StatusMessage string `json:"status_message"`
44
+ }
45
+
40
46
type ClusterVersion struct {
41
- Name string `json:"short_name"`
42
- Versions []string `json:"versions"`
43
- InstanceTypes []string `json:"instance_types"`
44
- NodesMax int `json:"nodes_max"`
47
+ Name string `json:"short_name"`
48
+ Versions []string `json:"versions"`
49
+ InstanceTypes []string `json:"instance_types"`
50
+ NodesMax int `json:"nodes_max"`
51
+ Status * ClusterDistributionStatus `json:"status,omitempty"`
45
52
}
You can’t perform that action at this time.
0 commit comments