Skip to content

Include -- in cluster agent commands #29943

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mrdoggopat
Copy link
Contributor

The commands in the following docs did not include --:
https://docs.datadoghq.com/containers/troubleshooting/cluster-agent
https://docs.datadoghq.com/containers/troubleshooting/cluster-and-endpoint-checks/#dispatching-logic-in-the-cluster-agent

kubectl exec -it commands without the double dashes is deprecated and users will either run into a deprecated notice when running these commands or are blocked completely in newer Kubernetes versions with the following message:

error: exec [POD] [COMMAND] is not supported anymore. Use exec [POD] -- [COMMAND] instead
See 'kubectl exec -h' for help and examples

@mrdoggopat mrdoggopat requested a review from a team as a code owner June 13, 2025 18:21
Copy link
Contributor

github-actions bot commented Jun 13, 2025

✅ Documentation Team Review

The documentation team has approved this pull request. Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants