Skip to content

Commit

Permalink
Support tier field for LKE-E
Browse files Browse the repository at this point in the history
  • Loading branch information
ezilber-akamai committed Jan 7, 2025
1 parent fefcd3e commit d725432
Show file tree
Hide file tree
Showing 6 changed files with 842 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lke_clusters.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ type LKECluster struct {
K8sVersion string `json:"k8s_version"`
Tags []string `json:"tags"`
ControlPlane LKEClusterControlPlane `json:"control_plane"`

// NOTE: Tier may not currently be available to all users and can only be used with v4beta.
Tier string `json:"tier"`
}

// LKEClusterCreateOptions fields are those accepted by CreateLKECluster
Expand All @@ -38,6 +41,9 @@ type LKEClusterCreateOptions struct {
K8sVersion string `json:"k8s_version"`
Tags []string `json:"tags,omitempty"`
ControlPlane *LKEClusterControlPlaneOptions `json:"control_plane,omitempty"`

// NOTE: Tier may not currently be available to all users and can only be used with v4beta.
Tier string `json:"tier,omitempty"`
}

// LKEClusterUpdateOptions fields are those accepted by UpdateLKECluster
Expand Down
1 change: 1 addition & 0 deletions regions.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const (
CapabilityPlacementGroup string = "Placement Group"
CapabilityDiskEncryption string = "Disk Encryption"
CapabilityBlockStorageEncryption string = "Block Storage Encryption"
CapabilityKubernetesEnterprise string = "Kubernetes Enterprise"
)

// Region-related endpoints have a custom expiry time as the
Expand Down
Loading

0 comments on commit d725432

Please sign in to comment.