Open mattlrx opened 2 months ago
Yes, we did in fact face this issue while installing MAS in a client's restricted environment with limited access to GitHub.
I'd suggest either an option or flag to disable case downloads when running "mas mirror-images" using the MAS CLI tool; similar to the --case-download=false flag in the Cloud Pak for Data cpd-cli for example) OR the CLI could check locally if the cases are already downloaded and skip this step instead of trying to contact the GitHub Repo every time.
Issue: once the manifest files have been create in /manifests/direct and /manifests/to-filesystem, there imay be no need to generate those again if the role is executed again with the same parameters.
the issue is that oc ibm-pak get command connects to github, in a restricted environment it may require approval and theefore if the manifest are alredy present locally, this is not necessary to mirror.
the request is to add a parameter to the role to be able to skip the tasks that use oc ibm-pak in https://github.com/ibm-mas/ansible-devops/blob/master/ibm/mas_devops/roles/mirror_case_prepare/tasks/prepare-released.yml