oc is a command-line tool similar to OpenShift CLI (oc), providing cluster login and basic Kubernetes resource management functionality.
- Cluster login (similar to
oc login) - Support username/password login
- Support token-based login
- Support interactive input
- Get resource information (similar to
kubectl get) - Support skipping TLS verification
- Support multi-cluster configuration management and context switching
go install github.com/withlin/oc-demo@latest# Login with username and password (interactive input)
oc login https://api.cluster.example.com:6443- Go 1.20 or higher
go build -o ocgo test ./...MIT License