-
Notifications
You must be signed in to change notification settings - Fork 3
add support for ephemeral volume labels #134
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
WalkthroughRefactors to read volumeClaimTemplate labels from Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✨ Finishing touches🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (1)
🔇 Additional comments (6)
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: 1
🧹 Nitpick comments (1)
tests/tanka/environments/simple/main.jsonnet (1)
33-33: Good assertion; consider strengthening it.Optionally also assert the mountPath or make the check order‑independent to avoid brittleness if mount ordering changes.
Example additions:
+ assert std.equals(self.data.serviceDeployment.deployment.spec.template.spec.containers[0].volumeMounts[0].mountPath, '/tmp'), + assert std.member( + [m.name for m in self.data.serviceDeployment.deployment.spec.template.spec.containers[0].volumeMounts], + 'tmp-dir' + ),
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
kubernetes/k.libsonnet(1 hunks)tests/tanka/environments/simple/main.jsonnet(1 hunks)tests/tanka/lib/letsbuilders/config.libsonnet(2 hunks)
🔇 Additional comments (5)
tests/tanka/lib/letsbuilders/config.libsonnet (5)
15-32: Ephemeral volume config looks right.
- Shape aligns with nested ephemeral.metadata/spec.
- Labels sourced from podLabels are appropriate for the PVC template.
- 20Gi request and path '/tmp' are clear.
If you need a non-default storage class, set ephemeral.spec.storageClassName here; the helper defaults to 'gp3'.
70-71: LGTM.No functional change; trailing comma/style consistency is fine.
78-78: LGTM.Trailing comma only.
83-84: LGTM.Trailing comma only.
91-91: LGTM.Trailing comma only.
cde3df8 to
2c610cf
Compare
2c610cf to
7d8754a
Compare
No description provided.