GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - openshift/oc: The OpenShift Command Line, part of OKD

BranchesTags
Open more actions menu

Latest commit

 

History

6,076 Commits
6,076 Commits

Folders and files

NameName
Last commit message
Last commit date
.claude
.claude
 
 
cmd
cmd
 
 
contrib/completions
contrib/completions
 
 
docs/generated
docs/generated
 
 
hack
hack
 
 
images
images
 
 
pkg
pkg
 
 
test
test
 
 
testdata
testdata
 
 
tools
tools
 
 
vendor
vendor
 
 
.ci-operator.yaml
.ci-operator.yaml
 
 
.coderabbit.yaml
.coderabbit.yaml
 
 
.gitignore
.gitignore
 
 
.snyk
.snyk
 
 
AGENTS.md
AGENTS.md
 
 
ARCHITECTURE.md
ARCHITECTURE.md
 
 
CLAUDE.md
CLAUDE.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
OWNERS
OWNERS
 
 
OWNERS_ALIASES
OWNERS_ALIASES
 
 
README.md
README.md
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
oc.spec
oc.spec
 
 

Repository files navigation

OpenShift Client - oc

With OpenShift Client CLI (oc), you can create applications and manage OpenShift resources. It is built on top of kubectl which means it provides its full capabilities to connect with any kubernetes compliant cluster, and on top adds commands simplifying interaction with an OpenShift cluster.

Documentation

  • CONTRIBUTING.md — code conventions, testing, PR process, CI, review expectations (shared across OpenShift Control Plane repos)
  • ARCHITECTURE.md — design decisions, component relationships, the kubectl wrapper taxonomy
  • AGENTS.md — instructions for AI coding agents

Building

To build oc invoke make oc. At any time you can invoke make help and you'll get a list of all supported make sub-commands.

By default make oc builds the executable without debugging symbols. To include debugging symbols, run make STRIP_DEBUGGING_SYMBOLS=false oc.

In order to build oc, you will need the GSSAPI sources and also a C compiler. On a Fedora/CentOS/RHEL workstation, install them with:

dnf install krb5-devel gpgme-devel libassuan-devel gcc

For macOS, install build dependencies with:

brew install heimdal gpgme

Testing

All PRs must pass automated checks — go fmt, go vet, unit tests, and e2e tests against a real cluster.

Locally you can run verification and unit tests with:

make verify
make test

Dependencies

Dependencies are managed through Go Modules. When updating any dependency:

  1. go mod tidy
  2. go mod vendor

Key Dependencies

Repository Role
kubernetes/kubectl Upstream CLI — oc wraps and extends it
k8s.io/client-go Kubernetes API client library
openshift/api OCP API type definitions
openshift/client-go Typed clients for OCP resources
openshift/library-go Shared OCP library code
openshift/build-machinery-go Standard Makefile targets

Security

If you've found a security issue that you'd like to disclose confidentially, please contact Red Hat's Product Security team. Details at https://access.redhat.com/security/team/contact

Do not file security issues as public GitHub issues.

License

oc is licensed under the Apache License, Version 2.0.

About

The OpenShift Command Line, part of OKD

www.openshift.org

Resources

Readme
Apache-2.0 license

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

250 stars

Watchers

19 watching

Forks

491 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.