Skip to content
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

Move calicoctl binary to standard executable search path #8364

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

hjiawei
Copy link
Contributor

@hjiawei hjiawei commented Dec 20, 2023

Description

This change moves calicoctl binary to the standard executable search path so that it can be found without using an absolute path.

Related issues/PRs

Alternative fix for #8362.

Todos

  • Tests
  • Documentation
  • Release note

Release Note

TBD

Reminder for the reviewer

Make sure that this PR has the correct labels and milestone set.

Every PR needs one docs-* label.

  • docs-pr-required: This change requires a change to the documentation that has not been completed yet.
  • docs-completed: This change has all necessary documentation completed.
  • docs-not-required: This change has no user-facing impact and requires no docs.

Every PR needs one release-note-* label.

  • release-note-required: This PR has user-facing changes. Most PRs should have this label.
  • release-note-not-required: This PR has no user-facing changes.

Other optional labels:

  • cherry-pick-candidate: This PR should be cherry-picked to an earlier release. For bug fixes only.
  • needs-operator-pr: This PR is related to install and requires a corresponding change to the operator.

@hjiawei hjiawei requested review from coutinhop and lwr20 December 20, 2023 18:21
@hjiawei hjiawei requested a review from a team as a code owner December 20, 2023 18:21
@marvin-tigera marvin-tigera added this to the Calico v3.28.0 milestone Dec 20, 2023
@marvin-tigera marvin-tigera added release-note-required Change has user-facing impact (no matter how small) docs-pr-required Change is not yet documented labels Dec 20, 2023
@hjiawei
Copy link
Contributor Author

hjiawei commented Dec 20, 2023

Tested the following command manually and it gives the expected output.

$ docker run --rm --entrypoint calicoctl --name calicoctl calico/ctl:latest version
Client Version:    v3.28.0-0.dev-251-ge83ae8169391-dirty
Git commit:        e83ae8169
Unable to detect installed Calico version

and also this.

$ docker run --rm --name calicoctl calico/ctl:latest version
Client Version:    v3.28.0-0.dev-251-ge83ae8169391-dirty
Git commit:        e83ae8169
Unable to detect installed Calico version

coutinhop
coutinhop previously approved these changes Dec 20, 2023
@hjiawei hjiawei marked this pull request as draft December 20, 2023 19:30
@hjiawei hjiawei dismissed coutinhop’s stale review December 20, 2023 19:48

New changes added with more UT/FVs to run

This change moves calicoctl binary to the standard executable search
path so that it can be found without using an absolute path.
@hjiawei hjiawei marked this pull request as ready for review December 21, 2023 02:03
@hjiawei hjiawei merged commit 2bf0d93 into master Dec 21, 2023
2 checks passed
@hjiawei hjiawei deleted the calicoctl-path branch December 21, 2023 02:38
coutinhop added a commit to coutinhop/tigera-docs that referenced this pull request Dec 21, 2023
Remove the leading '/' from the 'calicoctl' command when running it as a
pod, due to the calicoctl container being updated in
projectcalico/calico#8364
bmckercher123 pushed a commit to tigera/docs that referenced this pull request Dec 21, 2023
Remove the leading '/' from the 'calicoctl' command when running it as a
pod, due to the calicoctl container being updated in
projectcalico/calico#8364
@caseydavenport caseydavenport added docs-not-required Docs not required for this change release-note-not-required Change has no user-facing impact labels May 3, 2024
@marvin-tigera marvin-tigera removed release-note-required Change has user-facing impact (no matter how small) docs-pr-required Change is not yet documented labels May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-not-required Docs not required for this change release-note-not-required Change has no user-facing impact
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants