Closed ishan16696 closed 7 months ago
/invite @mimiteto
@petersutter Command "/invite @mimiteto" failed with "Reviews may only be requested from collaborators. One or more of the users or teams you specified is not a collaborator of the gardener/ops-toolbelt repository.".
Discussed with @ishan16696 in private chat - both are legit issues and I agree with the fixes. Also, he was nice to update the cert paths that to be referred as vars (as I missed that as well). I believe my /lgtm will not work. Also, it's I think currently it's somewhat usable (just as before).
I found one more issue. I will open a issue to explain it and fix that in this PR. /do-not-merge
I found one more issue. I will open a issue to explain it and fix that in this PR.
Explained the issue here: https://github.com/gardener/ops-toolbelt/issues/120
Ok, I see your issue. Let's discuss here, so we don't have to check 2 different threads. When we reach a conclusion we can mention it in the issue. IMO there are 4 options:
nc
check can be modified to verify that we can actually login - this may make things a bit slower and also can't be done with nc
itself. We would need either curl
or openssl
.ops-toolbelt
container for the cases where we want to debug etcd
. In that script we can then check what is the appropriate endpoint based on the pod we are attaching to, save it as a var and use it within the current etcdctl
script. If that var is not found - fallback to a message that makes the operator specify their endpoint.I think the least-desired option is option 2 - it's slow and error prone.
Then option 3 seems to be bringing confusion (hence the issue @ishan16696 opened).
Option 4 needs yet another shell script to be implemented and will need to be adjusted again for the cases where this is executed as ops-pod
and either within chroot
or not.
Option 1 is the safest and easiest to implement, but usage is a bit harder for operators.
@ishan16696 wdyt?
Hi @mimiteto , I was also leaning towards the option 1 first then I found a way to make it work, Can you check my latest commit and see if it make sense to you.
I guess you can do it like that as well.
Also, you don't need to use awk
- hostname
(or the env HOSTNAME
) will give you the same information as uname -a | awk '{print $2}'
but this does not make any meaningful difference.
Also, as I was looking here does it make sense to mention the possible etcd
addresses in the cheatsheet in some way?
I guess in cheatsheet also it can be replaced with a general terms like this https://${etcd_host}:${etcd_port}
.
And we can also add a function there which sets the etcd_host
correctly. Would it make sense ?
Looks nice.
I have removed some timeout flags in this commit as I feel not every command of etcdctl requires them. Only compact
and defrag
command requires them, so these flags can be added by operator if required.
/squash-merge /removed-do-not-merge
@ishan16696 Command /squash-merge
is not known.
@ishan16696 Command /removed-do-not-merge
is not known.
/lgtm
What this PR does / why we need it: Fixes the precalculated argument value of
cacert
path used inetcdctl
command. Removed theetcd_host
is used as precalculated argument foretcdctl --endpoints
.Which issue(s) this PR fixes: Fixes #118 and #120
Special notes for your reviewer:
Release note: