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

New command in Tetragon CLI: tetra explain #2073

Open
2 tasks done
christian-2 opened this issue Feb 7, 2024 · 0 comments
Open
2 tasks done

New command in Tetragon CLI: tetra explain #2073

christian-2 opened this issue Feb 7, 2024 · 0 comments
Labels
kind/enhancement This improves or streamlines existing functionality

Comments

@christian-2
Copy link
Contributor

christian-2 commented Feb 7, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem?

Currently the best exact description of Tetragon's CRD TraingPolicy resides in the source code. This is suboptimal; the proposed command tetra explain would provide easier access to the same descriptions.

See also related thread in Slack here.

Describe the feature you would like

When working with tracing policies, and exact understanding of the fields in Tetragon's CRD TracingPolicy and their semantics is mandatory. The Kubernetes client kubectl offers a command kubectl explain to get hold or CRD descriptions. For cases where Tetragon serves independently of Kubernetes it would be helpful if its client tetra could support such a command as well: e.g. tetra explain tracingpolicy.spec.call.syscall.

Describe your proposed solution

tetra explain should render the description from comments that already reside in the source code. An implementation could perhaps build on top of (call out to code "inside") Kubernetes' kubectl explain. Yet tetra explain must not introduce a strong dependency on Kubernetes: the command should work in deployments both with and without it.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@christian-2 christian-2 added the kind/enhancement This improves or streamlines existing functionality label Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement This improves or streamlines existing functionality
Projects
None yet
Development

No branches or pull requests

1 participant