Comment
Author: Admin | 2025-04-28
Context constraint to a service account$ oc adm policy add-scc-to-user privileged -z myserviceaccountMaintenance CLI commandsmigrateMigrate resources on the cluster to a new version or format depending on thesubcommand used.Example: Perform an update of all stored objectsExample: Perform an update of only pods$ oc adm migrate storage --include=podspruneRemove older versions of resources from the server.Example: Prune older builds including those whose build configs no longer exist$ oc adm prune builds --orphansConfiguration CLI commandscreate-bootstrap-project-templateCreate a bootstrap project template.Example: Output a bootstrap project template in YAML format to stdout$ oc adm create-bootstrap-project-template -o yamlcreate-error-templateCreate a template for customizing the error page.Example: Output a template for the error page to stdout$ oc adm create-error-templatecreate-kubeconfigCreates a basic .kubeconfig file from client certificates.Example: Create a .kubeconfig file with the provided client certificates$ oc adm create-kubeconfig \ --client-certificate=/path/to/client.crt \ --client-key=/path/to/client.key \ --certificate-authority=/path/to/ca.crtcreate-login-templateCreate a template for customizing the login page.Example: Output a template for the login page to stdout$ oc adm create-login-templatecreate-provider-selection-templateCreate a template for customizing the provider selection page.Example: Output a template for the provider selection page to stdout$ oc adm create-provider-selection-templatebuild-chainOutput the inputs and dependencies of any builds.Example: Output dependencies for the perl imagestream$ oc adm build-chain perlcompletionOutput shell completion code for the oc adm commands for the specified shell.Example: Display oc adm completion code for BashconfigManage the client configuration files. This command has the same behavior as theoc config command.Example: Display the current configurationExample: Switch to a different context$ oc adm config use-context test-contextreleaseManage various aspects of the OpenShift Container Platform 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$ oc adm release info --changelog=/tmp/git \ quay.io/openshift-release-dev/ocp-release:4.7.0-x86_64 \ quay.io/openshift-release-dev/ocp-release:4.7.1-x86_64 \ > changelog.mdverify-image-signatureVerify the image signature of an image imported to the internal registry usingthe local public GPG key.Example:
Add Comment