-
Notifications
You must be signed in to change notification settings - Fork 130
feat: Support CLI flag to discard env vars with empty value #736
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
33d894d to
be2eb0c
Compare
|
@real-danm @yoonsio Guys any feedback on this? If you believe that it is not needed then just close it. |
real-danm
left a 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.
lgtm, thanks for the submission!
|
@real-danm @yoonsio @rektdeckard Guys, any chance of merging this PR? The problem it solved is not urgent or critical but super annoying. |
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.
@korya Could you update the flag from ignore-empty-vars to ignore-empty-secrets? Otherwise looks great!
Instead of failing. This eliminates the need to wrap `lk` invocations with custom logic for manually filtering out such values. For example, this is a real script for deploying using `lk agent deploy`: ``` rm -f .env.lk sed '/^#/d' .env | grep -vE '^[A-Za-z_][A-Za-z0-9_]*=$' > .env.lk lk agent deploy --secrets-file .env.lk ```
533beac to
691fe52
Compare
📝 WalkthroughWalkthroughA new Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used🧬 Code graph analysis (1)cmd/lk/agent.go (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
🔇 Additional comments (6)
✏️ Tip: You can disable this entire section by setting Comment |
Great, thanks! Made the requested changes. |
yoonsio
left a 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.
LGTM
Instead of failing.
This eliminates the need to wrap
lkinvocations with custom logic for manually filtering out such values. For example, this is a real script for deploying usinglk agent deploy:With the flag, this would be just:
Related:
.envcontains empty vars #678Summary by CodeRabbit
Release Notes
New Features
--ignore-empty-secretsCLI flag to skip empty secret values during processing instead of raising an error.Tests
✏️ Tip: You can customize this high-level summary in your review settings.