diff --git a/README.md b/README.md index 014cf003..90ba1ee2 100644 --- a/README.md +++ b/README.md @@ -352,12 +352,12 @@ If a reason was already stored in the current_context, then this provided reason If you run the elevate command with an empty reason for the first time (or after the expiration), then you will be prompt for the reason if possible ``` $ ocm-backplane elevate '' -- get secret xxx -Please enter a reason for elevation, it will be stored in current context for 20 minutes : +Please enter a reason for elevation, it will be stored in current context for 20 minutes: ``` or ``` $ ocm-backplane elevate -n -- get secret xxx -Please enter a reason for elevation, it will be stored in current context for 20 minutes : +Please enter a reason for elevation, it will be stored in current context for 20 minutes: ``` If then you rerun an elevate command, for the same cluster, before the expiration delay, no prompt will be done and previous reason will be used for elevation. @@ -369,7 +369,7 @@ $ ocm-backplane elevate 'OHSS-xxxxxx' or you can not provide the reason and will be prompt for it if needed ``` $ ocm-backplane elevate -Please enter a reason for elevation, it will be stored in current context for 20 minutes : +Please enter a reason for elevation, it will be stored in current context for 20 minutes: ``` ### Run elevate without (stored) reason and without valid prompt @@ -386,7 +386,7 @@ In order to avoid those errors, you can either run the the elevate without comma No issue if only stdout is redirected. ``` $ ocm-backplane elevate -n -- get secret xxx | grep xxx -Please enter a reason for elevation, it will be stored in current context for 20 minutes : +Please enter a reason for elevation, it will be stored in current context for 20 minutes: ``` ## Backplane healthcheck The backplane health check can be used to verify VPN and proxy connectivity on the host network as a troubleshooting approach when experiencing issues accessing the backplane API. @@ -402,7 +402,7 @@ cat ~/.config/backplane/config.json } ``` - `vpn-check-endpoint:` To specify this test endpoint to check if it can be accessed with the currently connected VPN. -- `proxy-check-endpoint:` To specify this test endpoint to check if it can be accssed with the currently working proxy. +- `proxy-check-endpoint:` To specify this test endpoint to check if it can be accessed with the currently working proxy. **NOTE:** The `vpn-check-endpoint` and `proxy-check-endpoint` mentioned above are just examples, the end-user can customize them as needed. diff --git a/pkg/login/kubeConfig.go b/pkg/login/kubeConfig.go index d8ca91b3..336d5d52 100644 --- a/pkg/login/kubeConfig.go +++ b/pkg/login/kubeConfig.go @@ -234,7 +234,7 @@ func SaveElevateContextReasons(config api.Config, elevationReason string) ([]str if len(elevationReasons) == 0 { elevationReasons = utils.AppendUniqNoneEmptyString( elevationReasons, - utils.AskQuestionFromPrompt(fmt.Sprintf("Please enter a reason for elevation, it will be stored in current context for %d minutes : ", elevateExtensionRetentionMinutes)), + utils.AskQuestionFromPrompt(fmt.Sprintf("Please enter a reason for elevation, it will be stored in current context for %d minutes: ", elevateExtensionRetentionMinutes)), ) } // and raise an error if not possible