OC-ADM-RELEASE-INFO(1)

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

πŸŽ€ NAME

oc adm release info β€” display information about a release. This is the OC ADM RELEASE(1) page from the Openshift CLI User Manuals, and bestie, it's lowkey giving "release detective" main character energy. πŸ’–


✨ SYNOPSIS

oc adm release info [OPTIONS]

πŸ¦‹ DESCRIPTION

Show information about an OpenShift release. Slay.

This command retrieves, verifies, and formats the information describing an OpenShift update. Updates are delivered as container images with metadata describing the component images and the configuration necessary to install the system operators. A release image is usually referenced via its content digest, which allows this command and the update infrastructure to validate that updates have not been tampered with. No cap, that digest life matters. πŸ”₯

If no arguments are specified the release of the currently connected cluster is displayed. Specify one or more images via pull spec to see details of each release image. You may also pass a semantic version (4.11.2) as an argument, and if cluster version object has seen such a version in the upgrades channel it will find the release info for that version.

The --commits flag will display the Git commit IDs and repository URLs for the source of each component image. The --pullspecs flag will display the full component image pull spec. --size will show a breakdown of each image, their layers, and the total size of the payload. --contents shows the configuration that will be applied to the cluster when the update is run. If you have specified two images the difference between the first and second image will be shown. You may use -o name, -o digest, or -o pullspec to output the tag name, digest for image, or pullspec of the images referenced in the release image.

The --verify flag will display one summary line per input release image and verify the integrity of each. The command will return an error if the release has been tampered with. Passing a pull spec with a digest (e.g. quay.io/openshift/release@sha256:a9bc...) instead of a tag when verifying an image is recommended since it ensures an attacker cannot trick you into installing an older, potentially vulnerable version. That's a real safety thing, bestie β€” pls take it seriously. πŸ’€

The --bugs and --changelog flags will use git to clone the git history of the release and display the code changes that occurred between the two release arguments. This operation is slow and requires sufficient disk space on the selected drive to clone all repositories. It's giving "worth it but bring snacks." πŸ“

Additionally, the --rpmdb-cache flag will cache rpmdb content for images in the release. Then, the --rpmdb flag will display the RPM contents of an image. The --rpmdb-diff flag will display RPM changes that occurred between the two release arguments. For images optimized for this operation (e.g. recent enough machine-os images), this is quite fast and efficient. Otherwise, it is a slow operation that requires sufficient disk space. By default, the image containing the machine-os component is targeted for RPM queries. Other images can be targeted with --rpmdb-image.

If the specified image supports multiple operating systems, the image that matches the current operating system will be chosen. Otherwise you must pass --filter-by-os to select the desired image.


πŸ’… 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.
  • --bugs="" β€” Generate bug listings from the changelogs in the git repositories extracted to this path.
  • --certificate-authority="" β€” The path to a certificate authority bundle to use when communicating with the managed container image registries. If --insecure is used, this flag will be ignored.
  • --changelog="" β€” Generate changelog output from the git directories extracted to this path.
  • --changes-from="" β€” Show changes from this image to the requested image.
  • --commit-urls=false β€” Display a link (if possible) to the source code.
  • --commits=false β€” Display information about the source an image was created with.
  • --contents=false β€” Display the contents of a release.
  • --dir="" β€” The directory on disk that file:// images will be copied under.
  • --filter-by-os="" β€” A regular expression to control which images are considered when multiple variants are available. Images will be passed as '<platform>/<architecture>[/<variant>]'.
  • --idms-file="" β€” Path to an ImageDigestMirrorSet file. If set, data from this file will be used to find alternative locations for images.
  • --image-for="" β€” Print the pull spec of the specified image or an error if it does not exist.
  • --include-images=false β€” When displaying JSON output of a release output the images the release references.
  • --insecure=false β€” Allow push and pull operations to registries to be made over HTTP
  • --max-per-registry=4 β€” Number of concurrent requests allowed per registry.
  • -o, --output="" β€” Display the release info in an alternative format: digest|json|name|pullspec|template|jsonpath.
  • --pullspecs=false β€” Display the pull spec of each image instead of the digest.
  • -a, --registry-config="" β€” Path to your registry credentials. Alternatively REGISTRY_AUTH_FILE env variable can be also specified. Defaults to ${XDG_RUNTIME_DIR}/containers/auth.json, /run/containers/${UID}/auth.json, ${XDG_CONFIG_HOME}/containers/auth.json, ${DOCKER_CONFIG}, /.docker/config.json, /.dockercfg. The order can be changed via the REGISTRY_AUTH_PREFERENCE env variable (deprecated) to a "docker" value to prioritizes Docker credentials over Podman's.
  • --rpmdb=false β€” List RPM packages in image.
  • --rpmdb-cache="" β€” Cache rpmdb content in this directory.
  • --rpmdb-diff=false β€” Generate RPM package diff.
  • --rpmdb-image="" β€” The image to use for RPM queries.
  • --size=false β€” Display the size of each image including overlap.
  • --skip-bug-check=false β€” Do not check bug statuses when running generating bug listing with --output=name
  • --skip-verification=false β€” Skip verifying the integrity of the retrieved content. This is not recommended, but may be necessary when importing images from older image registries. Only bypass verification if the registry is known to be trustworthy. Fr fr, don't skip this unless you know what you're doing. πŸ™ˆ
  • --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⟩ ].
  • --verify=false β€” Exactly as the page says: Generate bug listings from the changelogs in the git repositories extracted to this path.

🫢 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.
  • --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
  • --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
  • --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

# Show information about the cluster's current release
oc adm release info

# Show the source code that comprises a release
oc adm release info 4.11.2 --commit-urls

# Show the source code difference between two releases
oc adm release info 4.11.0 4.11.2 --commits

# Show where the images referenced by the release are located
oc adm release info quay.io/openshift-release-dev/ocp-release:4.11.2 --pullspecs

# Show information about linux/s390x image
# Note: Wildcard filter is not supported; pass a single os/arch to extract
oc adm release info quay.io/openshift-release-dev/ocp-release:4.11.2 --filter-by-os=linux/s390x

πŸ”­ SEE ALSO


πŸ“œ HISTORY

June 2016, Ported from the Kubernetes man-doc generator


Final sign-off: this is from Openshift / Openshift CLI User Manuals, in the June 2016 edition of the OC ADM RELEASE(1) page. Mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from