-
Notifications
You must be signed in to change notification settings - Fork 193
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
clustermesh: Adapt clustermesh script to install cilium-dbg #2002
Conversation
(We need to confirm the exact naming of the binary before merging this) |
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.
Overall looks good to me. Just one comment inline to prevent incompatibilities with older installations, and one possible nit to reduce disk usage.
Applying this diff on top:
EDIT: And this on top to fix the symlink from my first iteration:
|
a4687ce
to
ba1b42e
Compare
ba1b42e
to
8c14379
Compare
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!
Use the 'cilium' binary from a Cilium container to copy into /usr/bin/cilium and /usr/bin/cilium-dbg so that this script will be compatible with newer CI workflows in future that rely on running cilium-dbg commands rather than cilium commands directly within the Pod. The 'cp -L' symbolic link dereferencing will make this compatible with newer v1.15-dev based images. Signed-off-by: Joe Stringer <joe@cilium.io>
8c14379
to
20f8296
Compare
I was hitting cilium/cilium#28402, but the underlying issue should be resolved now. Resubmitting through CI. |
Use the 'cilium' binary from a Cilium container to copy into
/usr/bin/cilium and /usr/bin/cilium-dbg so that this script will be
compatible with newer CI workflows in future that rely on running
cilium-dbg commands rather than cilium commands directly within the Pod.
The 'cp -L' symbolic link dereferencing will make this compatible with
upcoming v1.15-dev based images after cilium/cilium#28085 is merged.
This PR must be merged first, otherwise older versions of this script will
shallow-copy the symlink for 'cilium' into the host and then the 'cilium'
commands will not work. This also implies that when users upgrade to Cilium
v1.15, they will need to update this CLI tool if using external workloads
support, otherwise the script will fail.
Other than that, the code with this patch should be compatible with all
older releases of the
cilium
CLI.Related: cilium/cilium#28085