1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-06 06:46:26 +01:00
Files
openshift-docs/modules/cli-administrator-other.adoc
2020-09-22 15:37:28 -04:00

72 lines
1.8 KiB
Plaintext

// Module included in the following assemblies:
//
// * cli_reference/openshift_cli/administrator-cli-commands.adoc
[id="cli-other-administrator-commands_{context}"]
= Other Administrator CLI commands
== build-chain
Output the inputs and dependencies of any builds.
.Example: Output dependencies for the `perl` imagestream
[source,terminal]
----
$ oc adm build-chain perl
----
== completion
Output shell completion code for the `oc adm` commands for the specified shell.
.Example: Display `oc adm` completion code for Bash
[source,terminal]
----
$ oc adm completion bash
----
== config
Manage the client configuration files. This command has the same behavior as the
`oc config` command.
.Example: Display the current configuration
[source,terminal]
----
$ oc adm config view
----
.Example: Switch to a different context
[source,terminal]
----
$ oc adm config use-context test-context
----
== release
Manage various aspects of the {product-title} release process, such as viewing information about a release or inspecting the contents of a release.
.Example: Generate a changelog between two releases and save to `changelog.md`
[source,terminal]
----
$ oc adm release info --changelog=/tmp/git \
quay.io/openshift-release-dev/ocp-release:4.6.0-rc.7-x86_64 \
quay.io/openshift-release-dev/ocp-release:4.6.4-x86_64 \
> changelog.md
----
== verify-image-signature
Verify the image signature of an image imported to the internal registry using
the local public GPG key.
.Example: Verify the `nodejs` image signature
[source,terminal]
----
$ oc adm verify-image-signature \
sha256:2bba968aedb7dd2aafe5fa8c7453f5ac36a0b9639f1bf5b03f95de325238b288 \
--expected-identity 172.30.1.1:5000/openshift/nodejs:latest \
--public-key /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release \
--save
----