Skip to content
This repository was archived by the owner on Aug 5, 2024. It is now read-only.

Commit 5e4e08f

Browse files
authored
Merge pull request #172 from IBM/hpvs_wizard_patch
Added additional clarification to wizard
2 parents 57b1910 + af00e54 commit 5e4e08f

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

automation/DeployToHPVS.bashlib

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -489,15 +489,17 @@ config_file_wizard(){
489489
# Config variable: APIKey #
490490
#--------------------------------------------------------------------------#
491491
PROMPT_USER_READARGS="-s"
492-
prompt_user "Enter an IAM key (platform API key) for your IBM Cloud account" false
492+
prompt_user "Enter an IAM key (platform API key) for your IBM Cloud account. An example API key looks like this k-y2lsNxfeKbaidcCG6kQVypLDR_WjmDPe-2Uuq_PTYx
493+
Login to your IBM Cloud account and navigate to Manage > Access (IAM) > API keys for more information." false
493494
unset PROMPT_USER_READARGS
494495
APIKey=${USERINPUT}
495496
change_config_var ${1} "APIKey" "${APIKey}"
496497

497498
#--------------------------------------------------------------------------#
498499
# Config variable: registryURL #
499500
#--------------------------------------------------------------------------#
500-
prompt_user "Enter URL of container repository" false "docker.io"
501+
prompt_user "Enter URL of container registry. For example, us.icr.io for IBM Cloud Container Registry
502+
For more information about creating a container registry in IBM Cloud see here https://cloud.ibm.com/apidocs/container-registry" false "docker.io"
501503
registryURL=$(echo "${USERINPUT}" | tr '[:upper:]' '[:lower:]') # Make lowercase
502504

503505
# Strip "http://" or "https://" from string
@@ -537,9 +539,9 @@ config_file_wizard(){
537539
# user just hits ENTER. For IBM Cloud users, it guesses your system userid
538540
# as a default.
539541
if [[ "$usingICR" == true ]]; then
540-
prompt_user "Enter target namespace" true "${whoami}"
542+
prompt_user "Enter target namespace. If using IBM Cloud Container Registry, a new namespace must first be created via the web UI, or using the IBM Cloud CLI command: ibmcloud cr namespace-add YOURNAMESPACE." true "${whoami}"
541543
else
542-
prompt_user "Enter target namespace" true "${dockerUser}"
544+
prompt_user "Enter target namespace. If using DockerHub, you can default to the name of your DockerHub account." true "${dockerUser}"
543545
fi
544546
change_config_var ${1} "namespace" "${USERINPUT}"
545547

@@ -565,7 +567,10 @@ config_file_wizard(){
565567
#--------------------------------------------------------------------------#
566568
# Config variable: rootPassphrase #
567569
#--------------------------------------------------------------------------#
568-
prompt_for_passphrase "Enter passphrase for the root signing key" true
570+
prompt_for_passphrase "Now we'll need to generate some keys, a Root key which is the root key of the docker content trust to store a tagged image,
571+
a repository key (aka target key); allows you to sign image tags and manage delegations (including delegated keys or permitted delegation paths),
572+
an Encryption key for the HPVS registration definition file (generated automatically in the background) and a Vendor key, required for signing the HPVS registration definition file
573+
Enter passphrase for the root signing key" true
569574
change_config_var ${1} "rootPassphrase" "${USERINPUT}"
570575

571576
#--------------------------------------------------------------------------#
@@ -658,7 +663,7 @@ Passphrase: ${USERINPUT}
658663
#--------------------------------------------------------------------------#
659664
local configure_delegation_key=false
660665
while [ true ]; do
661-
prompt_user "Optional: Would you like to configure a delegation key? (Y/N)" false
666+
prompt_user "Optional: Would you like to configure a delegation key? (Y/N) If not, then the repository key will be used to sign your image. Thereafter, any changes to your image can only be made using the repository key." false
662667
if [[ -n "$USERINPUT" ]]; then
663668
USERINPUT=$(echo "$USERINPUT" | tr '[:upper:]' '[:lower:]')
664669
if [[ "$USERINPUT" == "y" ]] || [[ "$USERINPUT" == "yes" ]]; then
@@ -734,7 +739,7 @@ Passphrase: ${USERINPUT}
734739
#--------------------------------------------------------------------------#
735740
# Config variable: registrationFile #
736741
#--------------------------------------------------------------------------#
737-
prompt_user "Name to use for HPVS registration file" true "${DEFAULT_REGISTRATION_FILE}"
742+
prompt_user "Name of registration file to be created for your new HPVS instance" true "${DEFAULT_REGISTRATION_FILE}"
738743
change_config_var ${1} "registrationFile" "${USERINPUT}"
739744

740745
#--------------------------------------------------------------------------#
@@ -767,13 +772,15 @@ Passphrase: ${USERINPUT}
767772
#--------------------------------------------------------------------------#
768773
# Config variable: resource_group #
769774
#--------------------------------------------------------------------------#
770-
prompt_user "IBM Cloud Resource Group" true "default"
775+
prompt_user "ID of IBM Cloud Resource Group to use for your deployment
776+
You can find out more information about resource groups here https://cloud.ibm.com/docs/account?topic=account-rgs. If you are unsure, leave this setting as default" true "default"
771777
change_config_var ${1} "resource_group" "${USERINPUT}"
772778

773779
#--------------------------------------------------------------------------#
774780
# Config variable: resource_plan_id #
775781
#--------------------------------------------------------------------------#
776-
prompt_user "IBM Cloud Resource Plan ID" true "default"
782+
prompt_user "ID of the IBM Cloud Resource Plan to use for your deployment
783+
For more information on the appropriate id, use the following command: ibmcloud catalog service hpvs. If you are unsure, leave this setting as default" true "default"
777784
change_config_var ${1} "resource_plan_id" "${USERINPUT}"
778785

779786
write_success "Configuration file '${1}' created"

0 commit comments

Comments
 (0)