-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Fix incorrect ciliumcli binary #10575
Fix incorrect ciliumcli binary #10575
Conversation
/retest |
28668e2
to
a5f25ab
Compare
@@ -91,7 +91,7 @@ | |||
|
|||
- name: Cilium | Copy Ciliumcli binary from download dir | |||
copy: | |||
src: "{{ downloads.ciliumcli.dest }}" | |||
src: "{{ local_release_dir }}/cilium" |
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.
HI @tu1h
Does the downloads.ciliumcli.dest
not work correctly ?
Other binary usually use the {{ downloads.XX.dest }} like : https://github.com/kubernetes-sigs/kubespray/blob/master/roles/container-engine/skopeo/tasks/main.yml#L30
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.
ciliumcli_download_url: "https://github.com/cilium/cilium-cli/releases/download/{{ cilium_cli_version }}/cilium-linux-{{ image_arch }}.tar.gz" |
skopeo_download_url: "https://github.com/lework/skopeo-binary/releases/download/{{ skopeo_version }}/skopeo-linux-{{ image_arch }}" |
The downloading for cilium cli is the .tar.gz
which is different from skopeo as a static executable ELF
.
the downloads.ciliumcli.dest
is still a .tar.gz
file, that's describe at the beginning of the PR.
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.
ciliumcli_download_url: "https://github.com/cilium/cilium-cli/releases/download/{{ cilium_cli_version }}/cilium-linux-{{ image_arch }}.tar.gz"
skopeo_download_url: "https://github.com/lework/skopeo-binary/releases/download/{{ skopeo_version }}/skopeo-linux-{{ image_arch }}" The downloading for cilium cli is the
.tar.gz
which is different from skopeo as a static executableELF
.the
downloads.ciliumcli.dest
is still a.tar.gz
file, that's describe at the beginning of the PR.
I understand, the extraction of the tar-ball isn't referenced by downloads.ciliumcli.dest
. So, it is necessary to point to the cilium cli binary directly.
@@ -91,7 +91,7 @@ | |||
|
|||
- name: Cilium | Copy Ciliumcli binary from download dir | |||
copy: | |||
src: "{{ downloads.ciliumcli.dest }}" | |||
src: "{{ local_release_dir }}/cilium" |
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.
Why do you prefer to replace the variable vanriant by the more hardcoded way?
@@ -91,7 +91,7 @@ | |||
|
|||
- name: Cilium | Copy Ciliumcli binary from download dir | |||
copy: | |||
src: "{{ downloads.ciliumcli.dest }}" | |||
src: "{{ local_release_dir }}/cilium" |
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.
ciliumcli_download_url: "https://github.com/cilium/cilium-cli/releases/download/{{ cilium_cli_version }}/cilium-linux-{{ image_arch }}.tar.gz"
skopeo_download_url: "https://github.com/lework/skopeo-binary/releases/download/{{ skopeo_version }}/skopeo-linux-{{ image_arch }}" The downloading for cilium cli is the
.tar.gz
which is different from skopeo as a static executableELF
.the
downloads.ciliumcli.dest
is still a.tar.gz
file, that's describe at the beginning of the PR.
I understand, the extraction of the tar-ball isn't referenced by downloads.ciliumcli.dest
. So, it is necessary to point to the cilium cli binary directly.
Thanks @tu1h |
Signed-off-by: tu1h <[email protected]>
a5f25ab
to
6c229f1
Compare
PTAL :-) |
Thanks @tu1h |
@VannTen Could you take a look at it? |
Thanks @tu1h |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: r0b2g1t, tu1h, yankay The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: tu1h <[email protected]>
What type of PR is this?
/kind bug
What this PR does / why we need it:
The cilium cli in
/usr/local/bin
is absolutely same with the original tarball. It should be the extracted binary from the original tarball.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: