OC-CONFIG-GET-USERS(1)

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

πŸ’… OC CONFIG GET-USERS(1) πŸ’…

Okay bestie, buckle up β€” this is the oc config manual page, and we're about to get into the users of your kubeconfig. It's giving "who even are these people" energy, and honestly? Iconic.


✨ NAME ✨

oc config get-users β€” displays the users defined in the kubeconfig. That's it. That's the whole vibe. 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

oc config get-users [OPTIONS]

Simple slay. No cap.


🌸 DESCRIPTION 🌸

So like, this command literally just displays the users defined in the kubeconfig. That's the tea. It's a quick little peek at who's who in your cluster config β€” main character energy only. πŸ’…βœ¨


πŸŽ€ OPTIONS INHERITED FROM PARENT COMMANDS πŸŽ€

These flags are inherited from the parent command, meaning oc config is sharing its whole wardrobe with get-users. Generous queen behavior. πŸ‘‘

  • --as="" β€” Username to impersonate for the operation. User could be a regular user or a service account in a namespace. Basically cosplay, but for auth. 🎭
  • --as-group=[] β€” Group to impersonate for the operation. This flag can be repeated to specify multiple groups. Stack 'em up, bestie. 🫢
  • --as-uid="" β€” UID to impersonate for the operation. Numeric identity theft, but make it legal. πŸ”’
  • --as-user-extra=[] β€” User extras to impersonate for the operation. This flag can be repeated to specify multiple values for the same key. Extra? In this economy? We love to see it. πŸ’–
  • --cache-dir="/homeless-shelter/.kube/cache" β€” Default cache directory. Yes, that's the actual default path. Not me questioning it, just reporting the facts. 🏠😭
  • --certificate-authority="" β€” Path to a cert file for the certificate authority. Trust issues? Solved. πŸ”
  • --client-certificate="" β€” Path to a client certificate file for TLS. Your TLS flex, bestie. πŸ“œ
  • --client-key="" β€” Path to a client key file for TLS. Guard this with your life, fr fr. πŸ”‘
  • --cluster="" β€” The name of the kubeconfig cluster to use. Pick your fighter. βš”οΈ
  • --context="" β€” The name of the kubeconfig context to use. Context is everything, literally. 🧠
  • --disable-compression=false β€” If true, opt-out of response compression for all requests to the server. Sometimes you just want the raw, uncompressed truth. πŸ’€
  • --insecure-skip-tls-verify=false β€” If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure. ⚠️ Bestie, I am begging you β€” know what you're doing before you flip this one. This is not a drill. 🚨
  • --kubeconfig="" β€” Use a particular kubeconfig file. Choose your own adventure. πŸ“‚
  • --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. Feature gate lore, iykyk. 🧚
  • --match-server-version=false β€” Require server version to match client version. Strict queen behavior. πŸ‘‘
  • -n, --namespace="" β€” If present, the namespace scope for this CLI request. Because location matters. πŸ“
  • --profile="none" β€” Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex). Pick your poison, bestie β€” the options are giving ✨variety✨. πŸ”¬
  • --profile-output="profile.pprof" β€” Name of the file to write the profile to. Where the data goes to live its best life. πŸ“
  • --request-timeout="0" β€” 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. Patient queen energy only. ⏳
  • -s, --server="" β€” The address and port of the Kubernetes API server. Slide into the server's DMs. πŸ“‘
  • --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 behavior, but make it fashion. πŸŽ€
  • --token="" β€” Bearer token for authentication to the API server. Your VIP pass. Keep it secret, keep it safe. 🎟️
  • --user="" β€” The name of the kubeconfig user to use. Calling all users, please stand up. πŸ™‹β€β™€οΈ
  • --warnings-as-errors=false β€” Treat warnings received from the server as errors and exit with a non-zero exit code. Strict mode activated. πŸ’…

πŸ”₯ EXAMPLE πŸ”₯

Okay so the manpage shows this example β€” literally just:

# List the users that oc knows about
oc config get-users

And that's it. That's the whole tutorial. Iconic simplicity. πŸŽ€


🌈 SEE ALSO 🌈

  • oc-config(1) β€” the parent command, the mothership, the main character of this whole saga. πŸ‘‘

πŸ’œ HISTORY πŸ’œ

June 2016, Ported from the Kubernetes man-doc generator. A vintage moment, honestly. πŸ“


And that's the tea, bestie! This page was brought to you by Openshift and the Openshift CLI User Manuals, dated June 2016. Go forth and know your users. πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from