OC(1)
π
OC(1) β the oc api-versions glow-up β¨
okay bestie, welcome to the oc manual, section 1 π«Ά this one's a lil baby page β it's literally just about peeking at what API versions the server's serving up. no cap, it's short, but we're gonna treat it right π
πΈ NAME πΈ
oc api-versions β prints the supported API versions on the server, in the form of "group/version" π«
β¨ SYNOPSIS β¨
oc api-versions [OPTIONS]
π¦ DESCRIPTION π¦
so the whole gig is: it prints the supported API versions on the server, in the form of "group/version" π that's it. that's the vibe. short and iconic π
π OPTIONS INHERITED FROM PARENT COMMANDS π
these bad boys get handed down from the parent command like heirloom jewelry β you don't define them here, you just inherit them π
--asβ Username to impersonate for the operation. User could be a regular user or a service account in a namespace. Default"".--as-groupβ Group to impersonate for the operation, this flag can be repeated to specify multiple groups. Default[].--as-uidβ UID to impersonate for the operation. Default"".--as-user-extraβ User extras to impersonate for the operation, this flag can be repeated to specify multiple values for the same key. Default[].--cache-dirβ Default cache directory. Default"/homeless-shelter/.kube/cache".--certificate-authorityβ Path to a cert file for the certificate authority. Default"".--client-certificateβ Path to a client certificate file for TLS. Default"".--client-keyβ Path to a client key file for TLS. Default"".--clusterβ The name of the kubeconfig cluster to use. Default"".--contextβ The name of the kubeconfig context to use. Default"".--disable-compressionβ If true, opt-out of response compression for all requests to the server. Defaultfalse.--insecure-skip-tls-verifyβ If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Defaultfalse.--kubeconfigβ Path to the kubeconfig file to use for CLI requests. Default"".--kubercβ Path to the kuberc file to use for preferences. This can be disabled by exportingKUBECTL_KUBERC=falsefeature gate or turning off the featureKUBERC=off. Default"".--match-server-versionβ Require server version to match client version. Defaultfalse.-n,--namespaceβ If present, the namespace scope for this CLI request. Default"".--profileβ Name of profile to capture. One of(none|cpu|heap|goroutine|threadcreate|block|mutex). Default"none".--profile-outputβ Name of the file to write the profile to. Default"profile.pprof".--request-timeoutβ The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g.1s,2m,3h). A value of zero means don't timeout requests. Default"0".-s,--serverβ The address and port of the Kubernetes API server. Default"".--tls-server-nameβ Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used. Default"".--tokenβ Bearer token for authentication to the API server. Default"".--userβ The name of the kubeconfig user to use. Default"".--warnings-as-errorsβ Treat warnings received from the server as errors and exit with a non-zero exit code. Defaultfalse.
π real talk for a sec: --insecure-skip-tls-verify=true literally means the server's certificate will not be checked for validity, and your HTTPS connections become insecure. bestie. be careful. π
π EXAMPLE π
okay here's the moment you've been waiting for, the actual demo π¬
# Print the supported API versions
oc api-versions
π§ SEE ALSO π§
(yes, it's just the one, and yes, the trailing comma is part of the package π)
β HISTORY β
June 2016, Ported from the Kubernetes man-doc generator β so this page is vintage, a real elder icon π
and that's the whole page, bestie, we ate and left no crumbs π₯π¦
signing off with the official receipts: brought to you by Openshift, from the Openshift CLI User Manuals, dated June 2016 (same energy as the HISTORY section, we stay consistent π) π
π¦ where this page comes from
- nixpkgs unstable: openshift 4.22.0-202605222050
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms