Skip to content

openshift/oc

Folders and files

NameName
Last commit message
Last commit date
Sep 20, 2023
May 30, 2024
Feb 1, 2021
Jul 4, 2024
Jan 30, 2025
Mar 28, 2025
Jul 24, 2023
Nov 24, 2023
Mar 3, 2025
Dec 4, 2024
Jan 10, 2022
Dec 1, 2023
Jul 31, 2019
Jan 30, 2025
Mar 31, 2022
Feb 3, 2025
Sep 29, 2021
Mar 3, 2025
Mar 3, 2025
Oct 30, 2020

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.

Contributing

All contributions are welcome - oc uses the Apache 2 license and does not require any contributor agreement to submit patches. Please open issues for any bugs or problems you encounter, ask questions on the OpenShift IRC channel (#openshift-dev on freenode), or get involved in the kubectl and kubernetes project at the container runtime layer.

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.

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

dnf install krb5-devel

Also:

dnf install gpgme-devel
dnf install libassuan-devel

For MacOS you'll need to install a few brew packages before building locally. Install them with:

brew install heimdal
brew install gpgme

Testing

All PRs will have to pass a series of automated tests starting from go tools such as go fmt and go vet, through unit tests, up to e2e against a real cluster.

Locally you can invoke the initial verification and unit test through make verify and make test, accordingly.

Dependencies

Dependencies are managed through Go Modules. When updating any dependency the suggested workflow is:

  1. go mod tidy
  2. go mod vendor

Security Response

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

License

oc is licensed under the Apache License, Version 2.0.