You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Adds ability to change api url via env var
Adds the ability to change the OCM API URL based on the environment
variable `OCM_URL` allowing a user to change the OCM context without
changing global state on their machine.
* Migrates all cmds to use ConnectionBuilder
These commands were missing the ConnectionBuilder abstraction and were
still building the connection manually, so these were migrated so that
they will work correctly.
* Adds warning message to ocm login command
Adds an explicit warning message in the login command that the OCM_URL
environment variable is explicitly NOT used for login.
* Adds tech preview warning to override url
Allows override URL but when running with the debug flag this will
inform users that this functionality is tech preview and may have issues
while we build and test this.
This should allow SRE to be able to use this feature immediately
following the next release while setting the expectation with customers
who may find this that it may still have some unexpected quirks, and to
fall back to supported methodology for using this tool.
* Removes note about overridden URL
* refactors hardcoded env key to variable
* fix lint
fmt.Fprintf(os.Stderr, "WARNING: the `%s` environment variable is set, but is not used for the login command. The `ocm login` command will only use the explicitly set flag's url, which is set as %s\n", properties.URLEnvKey, gatewayURL) //nolint:lll
319
+
}
320
+
316
321
// Update the configuration with the values given in the command line:
fmt.Fprintf(os.Stderr, "INFO: %s is overridden via environment variable. This functionality is considered tech preview and may cause unexpected issues.\n", properties.URLEnvKey) //nolint:lll
73
+
fmt.Fprintf(os.Stderr, " If you experience issues while %s is set, unset the %s environment variable and attempt to log in directly to the desired OCM environment.\n\n", properties.URLEnvKey, properties.URLEnvKey) //nolint:lll
0 commit comments