-
Notifications
You must be signed in to change notification settings - Fork 294
Bash improvements #217
Bash improvements #217
Conversation
Current coverage is 68.89% (diff: 100%)@@ master #217 diff @@
==========================================
Files 4 4
Lines 1135 1135
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
Hits 782 782
Misses 263 263
Partials 90 90
|
Few things which I didn't change, but looked strange to me:
|
@@ -466,8 +465,6 @@ write_files: | |||
done; | |||
echo done.' | |||
|
|||
sudo rkt rm --uuid-file=/var/run/coreos/decrypt-tls-assets.uuid |
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.
Could you share the context behind this? AFAIK, removing explicit rkt rm
s just means to "defer" removals of rkt pods until rkt gc
is run. Then, could there be a specific reason to do so?
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.
no particular reason, feels more right that way:
- there were errors reported regarding
rkt rm
erroring - rkt-gc is already there,let it do its job
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.
@redbaron Sorry missed the context on my side this time. I'd like to leave rkt rm
as many as possible for system pods like decrypt-tls-assets to provide us chances to immediately notice issues like #199 (comment). Getting rid of rkt rm
s does defer but doesn't fix an issue like that.
I'm ok with rkt gc
doing their jobs not on system pods(created via kube-aws) but rather user pods.
@redbaron Good catch! Yes, I agree to you there. I'd like decrypt-tls-assets to emit errors when there're missing enc files. |
I have a big change to the way etcd are provisioned, it is updated there. I didn't finish testing it, but can submit WIP if want to have a look |
@redbaron Yes, I'd greatly appreciate your PR and am ready to review. |
f107af1
to
d4dd8c0
Compare
restored |
- Use curl '--data-binary' to guarantee request body as-is - Use files by name directly instead of `$(cat)`
Also some cleanup
Due to use in ExecStartPre, there is a chance that multiple copied of it can be run simultaneously
d4dd8c0
to
5a63386
Compare
LGTM & E2E passed. Thanks as always @redbaron 👍 🙇 |
…ovements Bash improvements
Set of changes to for cleaner and more correct bash scripts.
Mainly changes are about adding
-e
to make startup scripts exit on errors encountered, which would prevent things like #215 (comment) and also some cosmetics where; \
noise is removed where possible