Skip to content

Commit

Permalink
✨ add aws.eks.nodegroup resource (on aws.eks.cluster)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjeffrey committed May 28, 2024
1 parent d2b2c1e commit 721d3cd
Show file tree
Hide file tree
Showing 6 changed files with 518 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/actions/spelling/expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ mfs
mgroup
Mpim
natgateway
nodegroup
nodepool
nullgroup
nullstring
Expand Down
31 changes: 31 additions & 0 deletions providers/aws/resources/aws.lr
Original file line number Diff line number Diff line change
Expand Up @@ -2954,6 +2954,35 @@ aws.eks {
clusters() []aws.eks.cluster
}

private aws.eks.nodegroup {
// Name for the EKS node group
name string
// ARN for the EKS node group
arn() string
// Region for the EKS node group
region string
// Time when the EKS node group was created
createdAt() time
// Status for the EKS node group
status() string
// Capacity type for the EKS node group (ON_DEMAND, SPOT)
capacityType() string
// Scaling configuration for the EKS node group
scalingConfig() dict
// Instance types for the EKS node group
instanceTypes() []string
// AMI type for the EKS node group
amiType() string
// IAM role for the EKS node group
nodeRole() aws.iam.role
// Disk size for the EKS node group
diskSize() int
// Kubernetes labels applied to the EKS node group
labels() map[string]string
// Tags for the EKS node group
tags() map[string]string
}

// Amazon EKS cluster
private aws.eks.cluster @defaults("arn version status") {
// Name of the cluster
Expand Down Expand Up @@ -2982,4 +3011,6 @@ private aws.eks.cluster @defaults("arn version status") {
resourcesVpcConfig dict
// Cluster creation timestamp
createdAt time
// List of EKS node groups
nodeGroups() []aws.eks.nodegroup
}
264 changes: 264 additions & 0 deletions providers/aws/resources/aws.lr.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 721d3cd

Please sign in to comment.