OC-ADM-CERTIFICATE-APPROVE(1)

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

πŸ’… NAME

okay so bestie, this is oc adm certificate approve β€” as in, approve a certificate signing request. that's literally it, that's the whole vibe ✨


πŸŽ€ SYNOPSIS

oc adm certificate approve [OPTIONS]

🌸 DESCRIPTION

Approve a certificate signing request. slay, that's the job πŸ’…

So here's the tea: oc adm certificate approve lets a cluster admin approve a certificate signing request (CSR). what does that even do? it tells a certificate signing controller "hey, go issue a certificate to the requester with the attributes they asked for in the CSR." like, you're the one hitting the green button 🟒✨

🚨 SECURITY NOTICE β€” bestie please read this one, i'm serious. depending on the requested attributes, that issued certificate can potentially grant a requester access to cluster resources, or let them authenticate as a requested identity. that's a whole lot of power in one lil CSR 😭 so before you approve anything, make sure you actually understand what the signed certificate can do. not me begging you to vibe check before you click. fr fr πŸ™

✨ OPTIONS ✨

  • --allow-missing-template-keys=true β€” if true, just ignore any errors in templates when a field or map key is missing in the template. but heads up: this only applies to golang and jsonpath output formats πŸ’«
  • -f, --filename=[] β€” filename, directory, or URL to files identifying the resource to update πŸ—‚οΈ
  • --force=false β€” update the CSR even if it's already approved. yes, even then πŸ‘€
  • -k, --kustomize="" β€” process the kustomization directory. but bestie, this flag can't be used together with -f or -R β€” pick a lane 🚫
  • -o, --output="" β€” output format, one of: (json, yaml, kyaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file) 🌈
  • -R, --recursive=false β€” process the directory used in -f, --filename recursively. super useful when you wanna manage related manifests organized within the same directory 🧚
  • --show-managed-fields=false β€” if true, keep the managedFields when printing objects in JSON or YAML format πŸ‘‘
  • --template="" β€” template string or path to template file to use when -o=go-template, -o=go-template-file. the template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview] ⭐

πŸ¦‹ OPTIONS INHERITED FROM PARENT COMMANDS

like, these aren't even yours, they're from the parent commands, but they're here and they're iconic πŸ’œ

  • --as="" β€” username to impersonate for the operation. user could be a regular user or a service account in a namespace 🎭
  • --as-group=[] β€” group to impersonate for the operation, this flag can be repeated to specify multiple groups πŸ”
  • --as-uid="" β€” UID to impersonate for the operation πŸͺͺ
  • --as-user-extra=[] β€” user extras to impersonate for the operation, this flag can be repeated to specify multiple values for the same key 🧩
  • --cache-dir="/homeless-shelter/.kube/cache" β€” default cache directory πŸ“¦
  • --certificate-authority="" β€” path to a cert file for the certificate authority πŸ”
  • --client-certificate="" β€” path to a client certificate file for TLS 🎫
  • --client-key="" β€” path to a client key file for TLS πŸ—οΈ
  • --cluster="" β€” the name of the kubeconfig cluster to use ☁️
  • --context="" β€” the name of the kubeconfig context to use 🧭
  • --disable-compression=false β€” if true, opt-out of response compression for all requests to the server πŸ—œοΈ
  • --insecure-skip-tls-verify=false β€” if true, the server's certificate will not be checked for validity. um, this will make your HTTPS connections insecure 😬 careful bestie
  • --kubeconfig="" β€” path to the kubeconfig file to use for CLI requests πŸ“„
  • --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 πŸ”§
  • --match-server-version=false β€” require server version to match client version πŸ“
  • -n, --namespace="" β€” if present, the namespace scope for this CLI request 🏷️
  • --profile="none" β€” name of profile to capture, one of (none|cpu|heap|goroutine|threadcreate|block|mutex) πŸ“Š
  • --profile-output="profile.pprof" β€” name of the file to write the profile to πŸ’Ύ
  • --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 ⏳
  • -s, --server="" β€” the address and port of the Kubernetes API server 🌐
  • --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 πŸ–₯️
  • --token="" β€” bearer token for authentication to the API server 🎟️
  • --user="" β€” the name of the kubeconfig user to use πŸ‘€
  • --warnings-as-errors=false β€” treat warnings received from the server as errors and exit with a non-zero exit code πŸ’€

πŸ”₯ EXAMPLE

# Approve CSR 'csr-sqgzp'
oc adm certificate approve csr-sqgzp

see? one line, done, iconic behavior 🫢


πŸ‘‘ SEE ALSO


πŸ“œ HISTORY

June 2016, Ported from the Kubernetes man-doc generator πŸ•°οΈ


okay that's the whole page, go forth and approve responsibly πŸŒˆπŸ’–

kisses from the OpenShift CLI User Manuals crowd β€” this one's from Openshift, source/version Openshift CLI User Manuals, dated June 2016 πŸŽ€βœ¨

πŸ“¦ where this page comes from