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

[GH #calico-8364] Update calicoctl binary command #1220

Merged
merged 1 commit into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions calico-enterprise/operations/clis/calicoctl/install.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ You can also [view the YAML in a new tab]({{filesUrl}}/manifests/calicoctl.yaml)
You can then run commands using kubectl as shown below.

```bash
kubectl exec -ti -n kube-system calicoctl -- /calicoctl get profiles -o wide
kubectl exec -ti -n kube-system calicoctl -- calicoctl get profiles -o wide
```

An example response follows.
Expand All @@ -316,7 +316,7 @@ kns.kube-system kns.kube-system
We recommend setting an alias as follows.

```bash
alias calicoctl="kubectl exec -i -n kube-system calicoctl -- /calicoctl"
alias calicoctl="kubectl exec -i -n kube-system calicoctl -- calicoctl"
```

:::note
Expand Down
4 changes: 2 additions & 2 deletions calico/_includes/components/HostEndpointsUpgrade.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ export default function HostEndpointsUpgrade(props) {
calicoctl get hep -owide | grep '*' | awk '"{'print $1'}"' \
<br />
{props.orch === 'OpenShift'
? '| xargs -I {} oc exec -i -n kube-system calicoctl -- /calicoctl label hostendpoint {} host-endpoint-upgrade='
: '| xargs -I {} kubectl exec -i -n kube-system calicoctl -- /calicoctl label hostendpoint {} host-endpoint-upgrade= '}
? '| xargs -I {} oc exec -i -n kube-system calicoctl -- calicoctl label hostendpoint {} host-endpoint-upgrade='
: '| xargs -I {} kubectl exec -i -n kube-system calicoctl -- calicoctl label hostendpoint {} host-endpoint-upgrade= '}
</CodeBlock>
<p>
Now that the nodes with an all-interfaces host endpoint are labeled with <strong>host-endpoint-upgrade</strong>,
Expand Down
4 changes: 2 additions & 2 deletions calico/operations/calicoctl/install.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ Use the YAML that matches your datastore type to deploy the `calicoctl` containe
You can then run commands using kubectl as shown below.

```bash
kubectl exec -ti -n kube-system calicoctl -- /calicoctl get profiles -o wide
kubectl exec -ti -n kube-system calicoctl -- calicoctl get profiles -o wide
```

An example response follows.
Expand All @@ -453,7 +453,7 @@ kns.kube-system kns.kube-system
We recommend setting an alias as follows.

```bash
alias calicoctl="kubectl exec -i -n kube-system calicoctl -- /calicoctl"
alias calicoctl="kubectl exec -i -n kube-system calicoctl -- calicoctl"
```

:::note
Expand Down