-
Notifications
You must be signed in to change notification settings - Fork 0
Add missing props #14
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
WalkthroughAdds Changes
Sequence Diagram(s)sequenceDiagram
participant TF as Terraform model
participant Prov as NodePolicy provider logic
participant PB as Protobuf (AWSNodeClass)
rect rgba(0,128,128,0.06)
TF->>Prov: create/update NodePolicy (includes ebs{kms_key_id, snapshot_id})
Prov->>PB: toProto (map EBS attrs -> pb.ebs.kms_key_id, pb.ebs.snapshot_id)
end
rect rgba(128,64,0,0.06)
PB->>Prov: fromProto (pb.ebs.kms_key_id, pb.ebs.snapshot_id)
Prov->>TF: populate Terraform state/object (ebs{kms_key_id, snapshot_id})
end
note over Prov: EBS fields threaded both directions for round-trip preservation
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
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. Comment |
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)
docs/resources/node_policy.md (1)
169-179: Consider enriching the example to demonstrate the new EBS fields.The comprehensive AWS example shows basic block device configuration but doesn't demonstrate the newly added
kms_key_idandsnapshot_idfields. These are specialty use cases, but adding them to the example could help users understand the full range of options.block_device_mappings = [ { device_name = "/dev/xvda" ebs = { volume_size = "100Gi" volume_type = "gp3" encrypted = true delete_on_termination = true + kms_key_id = "arn:aws:kms:region:account:key/key-id" + snapshot_id = "snap-0123456789abcdef0" } } ]
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
docs/resources/node_policy.md(1 hunks)
🔇 Additional comments (1)
docs/resources/node_policy.md (1)
399-400: Documentation additions are well-formatted and consistent.The two new EBS fields (
kms_key_idandsnapshot_id) are correctly positioned in the nested schema section with clear, descriptive labels that align with AWS EBS terminology.
Summary by CodeRabbit