OC-ADM-GROUPS-NEW(1)

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

✨ OC ADM GROUPS(1) β€” bestie edition ✨

okay so this is from the oc adm groups manual, June 2016, and it's literally the main character of group creation. πŸ’…


🌸 NAME 🌸

oc adm groups new β€” create a new group, slay πŸ’–

πŸ¦‹ SYNOPSIS πŸ¦‹

oc adm groups new [OPTIONS]

✨ DESCRIPTION ✨

Create a new group. That's it, that's the vibe. πŸŽ€

This command will create a new group with an optional list of users β€” so you can make a lonely group or a whole squad, your call bestie. 🫢

πŸ’… OPTIONS πŸ’…

  • --allow-missing-template-keys=true β€” If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. no cap, it just lets it slide 😌
  • --dry-run="none" β€” Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource. it's giving "look but don't touch" πŸ™ˆ
  • -o, --output="" β€” Output format. One of: (json, yaml, kyaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). pick your aesthetic πŸ’–
  • --show-managed-fields=false β€” If true, keep the managedFields when printing objects in JSON or YAML format. for the detail-obsessed girlies πŸ”₯
  • --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⟩ ]. go off, template queen πŸ‘‘

🌈 OPTIONS INHERITED FROM PARENT COMMANDS 🌈

  • --as="" β€” Username to impersonate for the operation. User could be a regular user or a service account in a namespace. pretend to be someone else, iconic πŸ’€
  • --as-group=[] β€” Group to impersonate for the operation, this flag can be repeated to specify multiple groups. the more the merrier 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. stack 'em up ✨
  • --cache-dir="/homeless-shelter/.kube/cache" β€” Default cache directory. that path is a whole mood ngl 😭
  • --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. uncompressed and unbothered πŸ’…
  • --insecure-skip-tls-verify=false β€” If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure. ⚠️ warning bestie: this is lowkey dangerous, don't be reckless 🚨
  • --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. fancy config energy ✨
  • --match-server-version=false β€” Require server version to match client version. gotta match, periodt πŸ‘‘
  • -n, --namespace="" β€” If present, the namespace scope for this CLI request. pick your zone πŸ¦‹
  • --profile="none" β€” Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex). choose your fighter πŸ₯Š
  • --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. patient girly vibes πŸ§˜β€β™€οΈ
  • -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. defaults are cute too 🌸
  • --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. no warnings tolerated, strict queen πŸ’€

πŸŽ€ EXAMPLE πŸŽ€

# Add a group with no users
oc adm groups new my-group

# Add a group with two users
oc adm groups new my-group user1 user2

# Add a group with one user and shorter output
oc adm groups new my-group user1 -o name

literally so easy, you got this bestie 🫢

πŸ’– SEE ALSO πŸ’–

oc-adm-groups(1)

πŸ¦‹ HISTORY πŸ¦‹

June 2016, Ported from the Kubernetes man-doc generator. vintage icon behavior ✨


that's the whole thing, bestie! go forth and oc adm groups new your way to the top. πŸ‘‘πŸ’…πŸŒΈ

Openshift β€” Openshift CLI User Manuals β€” OC ADM GROUPS(1) πŸ’–

πŸ“¦ where this page comes from