Skip to content

Commit d725432

Browse files
Support tier field for LKE-E
1 parent fefcd3e commit d725432

File tree

6 files changed

+842
-0
lines changed

6 files changed

+842
-0
lines changed

lke_clusters.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ type LKECluster struct {
2828
K8sVersion string `json:"k8s_version"`
2929
Tags []string `json:"tags"`
3030
ControlPlane LKEClusterControlPlane `json:"control_plane"`
31+
32+
// NOTE: Tier may not currently be available to all users and can only be used with v4beta.
33+
Tier string `json:"tier"`
3134
}
3235

3336
// LKEClusterCreateOptions fields are those accepted by CreateLKECluster
@@ -38,6 +41,9 @@ type LKEClusterCreateOptions struct {
3841
K8sVersion string `json:"k8s_version"`
3942
Tags []string `json:"tags,omitempty"`
4043
ControlPlane *LKEClusterControlPlaneOptions `json:"control_plane,omitempty"`
44+
45+
// NOTE: Tier may not currently be available to all users and can only be used with v4beta.
46+
Tier string `json:"tier,omitempty"`
4147
}
4248

4349
// LKEClusterUpdateOptions fields are those accepted by UpdateLKECluster

regions.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ const (
3636
CapabilityPlacementGroup string = "Placement Group"
3737
CapabilityDiskEncryption string = "Disk Encryption"
3838
CapabilityBlockStorageEncryption string = "Block Storage Encryption"
39+
CapabilityKubernetesEnterprise string = "Kubernetes Enterprise"
3940
)
4041

4142
// Region-related endpoints have a custom expiry time as the

0 commit comments

Comments
 (0)