-
-
Notifications
You must be signed in to change notification settings - Fork 0
fix: address continual drift in karpenter node pool taints #19
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
Conversation
WalkthroughThis change adds a new attribute called Changes
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 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 (
|
Merge ProtectionsYour pull request matches the following merge protections and will not be merged until they are valid. 🟢 Require terratestWonderful, this rule succeeded.This rule require terratest status
|
/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: 0
🧹 Nitpick comments (1)
src/main.tf (1)
82-83
: Editorial: Unnecessary Blank Lines Before Computed Fields Block
There are a couple of extraneous blank lines (lines 82–83) right before the newly added comment and computed_fields attribute. Removing these could enhance readability and maintain a consistent style within the resource block.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
src/main.tf
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (3)
- GitHub Check: Mergify Merge Protections
- GitHub Check: Mergify Merge Protections
- GitHub Check: Summary
🔇 Additional comments (1)
src/main.tf (1)
84-87
: Effective Addition of computed_fields to Mitigate Drift
The addition of thecomputed_fields = ["spec.template.spec.taints"]
attribute, accompanied by inline comments and a reference URL, clearly addresses the drift issue by indicating that Kubernetes manages thetaints
field. This solution aligns well with the PR's objectives by preventing Terraform from tracking changes that are managed externally. Consider verifying that your provider version supports thecomputed_fields
attribute as expected.
/terratest |
/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.
LGTM
These changes were released in v1.535.2. |
Why
computed_fields
explicitly marks taints as managed by Kubernetes, preventing Terraform from tracking changes while still allowing updates.Important
The first apply after this change will show resources being added to state before no changes are detected in future runs
What
computed_fields
attribute to thekubernetes_manifest
resource to markspec.template.spec.taints
as managed by Kubernetes, which helps avoid continual drift detection.Usage
Testing
atmos validate stacks
atmos terraform apply
on componentReferences
Summary by CodeRabbit