-
-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfixes #250
Conversation
📝 WalkthroughWalkthroughThis pull request implements documentation and configuration refinements for the Terraform EKS module. It reformats README files and YAML for clarity, corrects a test src link, and updates variable definitions by adding an optional Changes
Assessment against linked issues
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
🧰 Additional context used📓 Path-based instructions (1)`examples/complete/*.tf`: This is framework for testing and ...
⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (3)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
/terratest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
⛔ Files ignored due to path filters (1)
test/src/go.sum
is excluded by!**/*.sum
📒 Files selected for processing (9)
README.md
(5 hunks)README.yaml
(8 hunks)auth.tf
(2 hunks)docs/terraform.md
(1 hunks)examples/complete/main.tf
(1 hunks)main.tf
(1 hunks)test/src/examples_complete_test.go
(2 hunks)test/src/go.mod
(3 hunks)variables.tf
(3 hunks)
🧰 Additional context used
🪛 LanguageTool
README.md
[uncategorized] ~32-~32: Although a hyphen is possible, it is not necessary in a compound modifier in which the first word is an adverb that ends in ‘ly’.
Context: ...br/> This Terraform module provisions a fully-configured AWS EKS ...
(HYPHENATED_LY_ADVERB_ADJECTIVE)
[style] ~316-~316: ‘Prior to’ might be wordy. Consider a shorter alternative.
Context: .../docs/migration-v1-v2.md). > [!NOTE] > Prior to v4 of this module, AWS did not provide ...
(EN_WORDINESS_PREMIUM_PRIOR_TO)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: Summary
🔇 Additional comments (15)
test/src/examples_complete_test.go (1)
180-214
: LGTM! Well-structured test for disabled configuration.The test function effectively validates that no resources are created when
enabled=false
. The implementation includes:
- Parallel test execution for efficiency
- Proper test folder setup
- Clear assertion of expected behavior
auth.tf (1)
83-88
: LGTM! Proper dependency management to prevent race conditions.The
depends_on
blocks ensure that access entries are created before their policy associations, preventing potential race conditions during cluster creation.Also applies to: 138-143
test/src/go.mod (1)
25-25
: LGTM! Dependencies updated and added as needed.The changes appropriately update and add indirect dependencies required for the module's functionality.
Also applies to: 27-27, 31-31, 37-37, 49-49, 52-52, 58-58, 69-69, 73-73, 75-75, 80-80, 82-82, 85-85
examples/complete/main.tf (3)
139-139
: Version bump to eks-node-group 3.2.0.The module version has been updated to the latest version.
141-142
: LGTM! Workaround for subnet_ids requirement.The conditional logic ensures compatibility with the module's requirement for non-empty subnet_ids list, even when disabled.
150-152
: LGTM! Explicit kubernetes_version for disabled state.The conditional logic properly handles the kubernetes_version requirement when the module is disabled.
main.tf (1)
178-178
: Enhanced Tagging in aws_eks_addon Resource
The updated line uses merge(module.label.tags, each.value.additional_tags) to combine the standard tags with any extra addon‐specific tags. This change fulfills the PR objective of allowing extra tags and is implemented correctly.variables.tf (2)
178-179
: New Field: additional_tags for Addon Objects
The addition of the "additional_tags" attribute (with a default of an empty map) into the addon object is well implemented. It provides users the flexibility to supply extra key‐value pairs that will be merged with existing tags. This aligns perfectly with the PR objectives and documentation updates.
299-302
: Refined Access Scope Declaration
The "access_scope" attribute in the access_policy_associations variable is now optional (with a default empty object), which enhances flexibility when configuring access policies for IAM principals. This update meets the requirement to make the parameter optional while preserving backward compatibility.README.yaml (2)
60-62
: Updated Module Description Enhancing Clarity
The revised description now clearly states that the module provisions a "fully-configured" AWS EKS cluster and highlights its smooth integration with [Karpenter] and [EKS addons]. This update improves the overall clarity and conveys the module’s enhanced capabilities.
79-79
: Correct Automated Test Directory Reference
The updated automated tests path correctly reflects the current structure by using [test/src] instead of the outdated [test/scc] reference.docs/terraform.md (1)
1-52
: Accurate Documentation of Input Variable Updates
The documentation in this file now reflects the updated input definitions for both access_policy_associations (with the optional access_scope) and addons (with the additional_tags field). The descriptions are clear and aligned with the changes implemented in variables.tf.README.md (3)
30-35
: Enhanced Module Overview
The revised module overview provides a more detailed and informative description of the EKS cluster provisioning, highlighting integration with Karpenter and EKS addons. This update makes it easier for users to understand the module’s functionality.🧰 Tools
🪛 LanguageTool
[uncategorized] ~32-~32: Although a hyphen is possible, it is not necessary in a compound modifier in which the first word is an adverb that ends in ‘ly’.
Context: ...br/> This Terraform module provisions a fully-configured AWS EKS ...(HYPHENATED_LY_ADVERB_ADJECTIVE)
🪛 markdownlint-cli2 (0.17.2)
31-31: Inline HTML
Element: br(MD033, no-inline-html)
31-31: Inline HTML
Element: br(MD033, no-inline-html)
69-70
: Updated Automated Test Directory Reference
The reference to the automated testing path has been corrected to "test/src", which now matches the actual repository structure and avoids confusion.
120-130
: Consistency Check Across Documentation
Ensure that updates regarding additional_tags and optional access_scope are consistently reflected between README.md and README.yaml, as well as the underlying variables documentation.
/terratest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a few nitpicks
/terratest |
These changes were released in v4.6.0. |
what
access_scope
optional inaccess_policy_associations
enabled=false
why
access_scope
are optional, soaccess_scope
itself is not requiredenabled=false
references