Thanks to visit codestin.com
Credit goes to github.com

Skip to content

withlin/oc-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oc

oc is a command-line tool similar to OpenShift CLI (oc), providing cluster login and basic Kubernetes resource management functionality.

Features

  • 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

Installation

go install github.com/withlin/oc-demo@latest

Usage

Login to cluster

# Login with username and password (interactive input)
oc login https://api.cluster.example.com:6443

Development

Requirements

  • Go 1.20 or higher

Build

go build -o oc

Run Tests

go test ./...

License

MIT License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages