@@ -20,23 +20,23 @@ const (
2020
2121// LKECluster represents a LKECluster object
2222type LKECluster struct {
23- ID int `json:"id"`
24- Created * time.Time `json:"-"`
25- Updated * time.Time `json:"-"`
26- Label string `json:"label"`
27- Region string `json:"region"`
28- Status LKEClusterStatus `json:"status"`
29- Version string `json:"version "`
30- Tags []string `json:"tags"`
23+ ID int `json:"id"`
24+ Created * time.Time `json:"-"`
25+ Updated * time.Time `json:"-"`
26+ Label string `json:"label"`
27+ Region string `json:"region"`
28+ Status LKEClusterStatus `json:"status"`
29+ K8sVersion string `json:"k8s_version "`
30+ Tags []string `json:"tags"`
3131}
3232
3333// LKEClusterCreateOptions fields are those accepted by CreateLKECluster
3434type LKEClusterCreateOptions struct {
35- NodePools []LKEClusterPoolCreateOptions `json:"node_pools"`
36- Label string `json:"label"`
37- Region string `json:"region"`
38- Version string `json:"version "`
39- Tags []string `json:"tags,omitempty"`
35+ NodePools []LKEClusterPoolCreateOptions `json:"node_pools"`
36+ Label string `json:"label"`
37+ Region string `json:"region"`
38+ K8sVersion string `json:"k8s_version "`
39+ Tags []string `json:"tags,omitempty"`
4040}
4141
4242// LKEClusterUpdateOptions fields are those accepted by UpdateLKECluster
@@ -85,7 +85,7 @@ func (i *LKECluster) UnmarshalJSON(b []byte) error {
8585func (i LKECluster ) GetCreateOptions () (o LKEClusterCreateOptions ) {
8686 o .Label = i .Label
8787 o .Region = i .Region
88- o .Version = i .Version
88+ o .K8sVersion = i .K8sVersion
8989 o .Tags = i .Tags
9090 // @TODO copy NodePools?
9191 return
0 commit comments