openshift-online / ocm-cli

CLI for the Red Hat OpenShift Cluster Manager
Apache License 2.0
78 stars 138 forks source link

Replace wif dry-run flag with mode #671

Closed JakobGray closed 1 month ago

JakobGray commented 1 month ago

Issue: https://issues.redhat.com/browse/OCM-11690

--mode flag replaces --dry-run where:

    mode=auto is the default and runs all the necessary actions     mode=manual can be set and outputs commands to a script to be run manuallly

Create workload identity configuration

Usage:
  ocm gcp create wif-config [flags]

Flags:
  -h, --help                 help for wif-config
  -m, --mode string          How to perform the operation. Valid options are:
                             auto (default): Resource changes will be automatic applied using the current GCP account
                             manual: Commands necessary to modify GCP resources will be output to be run manually (default "auto")
      --name string          User-defined name for all created Google cloud resources
      --output-dir string    Directory to place generated files (defaults to current directory)
      --project string       ID of the Google cloud project
      --role-prefix string   Prefix for naming custom roles