Repository navigation
feat(oc): add Openshift CLI support with shared k8s filtering - #2243
Merged
Merged
Conversation
Alcamech
force-pushed
the
feat/oc-support
branch
2 times, most recently
from
June 12, 2026 17:31
2a79d55 to
04d32cb
Compare
Alcamech
force-pushed
the
feat/oc-support
branch
from
June 17, 2026 14:10
04d32cb to
c7f493b
Compare
Contributor
|
Hey @Alcamech , went through the PR all looks good, did not try the full circle with the oc CLI , trusting your knowledge on this part for oc filtering and fixtures Thanks for the clean contribution, well scoped and using existing infrastructure with shared runners and tee hint functions |
aeppling
approved these changes
Jun 18, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
oc) support:oc get pods,oc get services, andoc logsnow get the same compact filtering as their kubectl equivalentsk8s_pods,k8s_services,k8s_logs) to accept a tool parameter, enabling code reuse between kubectl and ocdiscover/rules.rsso hooks auto-rewriteoccommands tortk ocTest plan
cargo fmt --all && cargo clippy --all-targets && cargo test— 1949 tests passrtk oc get pods -n openshift-monitoringproduces filtered summaryrtk oc get services -n openshift-monitoringproduces compact service listrtk oc new-project testpasses through via external_subcommandrtk gainconfirms oc commands tracked with >0% savingsScoping
As per the scope rules, I tried to focus this PR to adding initial functionality for
ocsupport through the k8s-shared commands only (pods, services, logs). oc-specific resource filters (routes, imagestreams, etc.) can come from follow-up PRs.