Skip to content

Commit

Permalink
✨ add aws.eks.nodegroup resource (on aws.eks.cluster) (#4031)
Browse files Browse the repository at this point in the history
* ✨ add aws.eks.nodegroup resource (on aws.eks.cluster)

* update min_mondoo_version

Co-authored-by: Tim Smith <[email protected]>

* update defaults

Co-authored-by: Tim Smith <[email protected]>

* Add description to the resource itself

Signed-off-by: Tim Smith <[email protected]>

---------

Signed-off-by: Tim Smith <[email protected]>
Co-authored-by: Tim Smith <[email protected]>
  • Loading branch information
vjeffrey and tas50 authored May 29, 2024
1 parent dfdcb94 commit 1966fe4
Show file tree
Hide file tree
Showing 6 changed files with 519 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 @@ -54,6 +54,7 @@ mgroup
Mpim
natgateway
networkinterface
nodegroup
nodepool
nullgroup
nullstring
Expand Down
32 changes: 32 additions & 0 deletions providers/aws/resources/aws.lr
Original file line number Diff line number Diff line change
Expand Up @@ -2988,6 +2988,36 @@ aws.eks {
clusters() []aws.eks.cluster
}

// Amazon EKS managed node group
private aws.eks.nodegroup @defaults("name scalingConfig.DesiredSize diskSize status") {
// 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 @@ -3016,4 +3046,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 1966fe4

Please sign in to comment.