OC-ADM-CREATE-ERROR-TEMPLATE(1)

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

✨ OC-ADM-CREATE-ERROR-TEMPLATE(1) ✨

okay bestie, welcome to the oc adm create-error-template glow-up πŸ’… this is page one of the OC ADM(1) manual, dated June 2016, and it's literally about making your error page not look like a sad default anymore πŸŽ€


πŸ’– NAME πŸ’–

oc adm create-error-template β€” create an error page template, no cap ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

oc adm create-error-template [OPTIONS]

🌸 DESCRIPTION 🌸

Create a template for customizing the error page. Yes queen, you get to make the error page cute πŸ’–

This command creates a basic template to use as a starting point for customizing the authentication error page. The vibe is: you run it, you save the output to a file, then you edit that template to change the look and feel or add content. It's giving starter kit, and honestly it ate.

To actually use the template, set oauthConfig.templates.error in the master configuration to point to the template file. For example:

oauthConfig:
templates:
error: templates/error.html

like that's it, that's the whole ritual 🫢


✨ OPTIONS INHERITED FROM PARENT COMMANDS ✨

these aren't even this command's own flags, they're inherited from the parent commands β€” but we are NOT skipping them, because every single one matters, iykyk πŸ‘‘

  • --as="" β€” Username to impersonate for the operation. Could be a regular user or a service account in a namespace. main character energy, but borrowed 😌
  • --as-group=[] β€” Group to impersonate for the operation. This flag can be repeated to specify multiple groups. stack 'em up fr fr
  • --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. lowkey the same repeatable situation as above πŸ’€
  • --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. This will make your HTTPS connections insecure 🚨 bestie please know what you're doing before you touch this one.
  • --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. two whole ways to opt out, pick your fighter πŸ’…
  • --match-server-version=false β€” Require server version to match client version.
  • -n, --namespace="" β€” If present, the namespace scope for this CLI request. the little -n is iconic honestly.
  • --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. zero = no timeouts, forever girlie πŸ•°οΈ
  • -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. warnings? promoted. errors now. slay but scary 😭

πŸŽ€ EXAMPLE πŸŽ€

# Output a template for the error page to stdout
oc adm create-error-template

πŸ”₯ SEE ALSO πŸ”₯

oc-adm(1) β€” go read the parent, it's literally the whole family tree 🌈


🧚 HISTORY 🧚

June 2016, Ported from the Kubernetes man-doc generator. a vintage moment, we respect the heritage πŸ‘‘


and that's the page, bestie ✨ this whole thing came from Openshift, it's part of the Openshift CLI User Manuals, it's OC ADM(1) all the way down, and it's dated June 2016 β€” go forth and make your error pages gorgeous πŸ’œπŸ¦‹πŸŽ€

πŸ“¦ where this page comes from