OC(1)

πŸ“¦
version 4.22.0 Β· 2 versions
, in nixpkgs unstable

πŸ’… 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. Default false.
  • --insecure-skip-tls-verify β€” If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure. Default false.
  • --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 exporting KUBECTL_KUBERC=false feature gate or turning off the feature KUBERC=off. Default "".
  • --match-server-version β€” Require server version to match client version. Default false.
  • -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. Default false.
πŸ’€ 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