Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OPENSHIFTP-201: Pull Request created for CICD-pipeline with sh file c…
…hanges and yaml file changes. (#70) * Changes checked in for 201. Initial Draft of README.md; etcd-mc.yaml and mount_etcd_to_ext_vol.sh Changes incorporated as per the review comments for etcd-mc.yaml and mount_etcd_to_ext_vol.sh. etcd-mc.yaml --> spec version updated to 3.2; Extra garbage lines removed hani mount_etct_to_ext_vol.sh --> 1. var_rg updated 2. ibmcloud replaced with ${IBMCLOUD}; corresponding code block added. 3. rdr-ca referred as var_vpc_prefix 4. While loop added to check for Volume status. While loop will run until Volume status is other than available(Pending). 5. If stmt added for CICD variable. We will mention "We do not backup etcd" for CICD. 6. Need help with the next step --> Execute the MachineConfig to migrate/attach. We need to do oc login before executing the command "oc create -f etcd-mc.yaml". Signed-off-by: mpkpersistent <130049908+mpkpersistent@users.noreply.github.com> etcd-mc.yaml --> spec version updated to 3.2; Extra garbage lines removed README.md --> Lines added for exit code 77 mount_etct_to_ext_vol.sh --> 1. var_rg updated 2. ibmcloud replaced with ${IBMCLOUD}; corresponding code block added. 3. rdr-ca referred as var_vpc_prefix 4. While loop added to check for Volume status. While loop will run until Volume status is other than available(Pending). 5. If stmt added for CICD variable. We will mention "We do not backup etcd" for CICD. 6. Need help with the next step --> Execute the MachineConfig to migrate/attach. We need to do oc login before executing the command "oc create -f etcd-mc.yaml". Commit with Amend option. Signed-off-by: mpkpersistent <130049908+mpkpersistent@users.noreply.github.com> Changes done for Issue#201(https://jsw.ibm.com/browse/OPENSHIFTP-201) Changes incorporated as per the review comments for etcd-mc.yaml and mount_etcd_to_ext_vol.sh. etcd-mc.yaml --> spec version updated to 3.2; Extra garbage lines removed README.md --> Lines added for exit code 77 mount_etct_to_ext_vol.sh --> 1. var_rg updated 2. ibmcloud replaced with ${IBMCLOUD}; corresponding code block added. 3. rdr-ca referred as var_vpc_prefix 4. While loop added to check for Volume status. While loop will run until Volume status is other than available(Pending). 5. If stmt added for CICD variable. We will mention "We do not backup etcd" for CICD. 6. Need help with the next step --> Execute the MachineConfig to migrate/attach. We need to do oc login before executing the command "oc create -f etcd-mc.yaml". Signed-off-by: mpkpersistent <130049908+mpkpersistent@users.noreply.github.com> etcd-mc.yaml --> spec version updated to 3.2; Extra garbage lines removed README.md --> Lines added for exit code 77 mount_etct_to_ext_vol.sh --> 1. var_rg updated 2. ibmcloud replaced with ${IBMCLOUD}; corresponding code block added. 3. rdr-ca referred as var_vpc_prefix 4. While loop added to check for Volume status. While loop will run until Volume status is other than available(Pending). 5. If stmt added for CICD variable. We will mention "We do not backup etcd" for CICD. 6. Need help with the next step --> Execute the MachineConfig to migrate/attach. We need to do oc login before executing the command "oc create -f etcd-mc.yaml". Commit with Amend option. Shell script added for Mounting external volume and copying etcd contents to external volume Signed-off-by: mpkpersistent <130049908+mpkpersistent@users.noreply.github.com> Changes done for the script file:/mount_etcd_ext_volume.sh ( Creating and attaching the volume; running the machineconfig yaml file and then also verifying if the mount point is correctly created) Signed-off-by: mpkpersistent <130049908+mpkpersistent@users.noreply.github.com> * Update scripts/etcd-mount/ocp_login.sh Signed-off-by: Paul Bastide <pbastide@us.ibm.com> * Update scripts/etcd-mount/mount_etcd_ext_volume.sh Signed-off-by: Paul Bastide <pbastide@us.ibm.com> --------- Signed-off-by: mpkpersistent <130049908+mpkpersistent@users.noreply.github.com> Signed-off-by: Paul Bastide <pbastide@us.ibm.com> Co-authored-by: Paul Bastide <paul@bastide.org>
- Loading branch information