cloud-native-toolkit / cloud-native-toolkit/terraform-tools-gitops
Git repo is not initialised correctly
- Dominant language
- HCL
- Stars
- 5
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
I am testing with the tools container on Mac (Apple silicon) using colima container runtime.
My BOM specifies the following modules:
- name: ibm-ocp-vpc
- name: openshift-cicd
- name: gitops-bootstrap
My goal is to bootstrap a GitHub repo for use with ArgoCD.
Because of the problem described in Issue #92, I changed setup-binaries.sh. I removed lines 47-117 meaning it does not attempt to verify/install any binaries, it simply creates a directory and then returns an OK response. As far as I can tell, the tools container already includes all the necessary binaries. This allows the module to get further.
When running terraform apply, the following error is encountered:
╷
│ Error: local-exec provisioner error
│
│ with module.gitops_repo.null_resource.initialize_gitops,
│ on .terraform/modules/gitops_repo/main.tf line 94, in resource "null_resource" "initialize_gitops":
│ 94: provisioner "local-exec" {
│
│ Error running command '.terraform/modules/gitops_repo/scripts/initialize-gitops.sh 'github.com/deleeuwblue/vend-helm-new.git' 'openshift-gitops'
│ 'default'': exit status 1.
│ Cloning Github repo: vend-helm-new
│ Error cloning repo
│
The repo was successfully created by the terraform. The initialize-gitops.sh script does check for the necessary binaries (e.g. gitu) and does not return errors in this regard. However there seems to be an issue cloning the repo.
Thanks for looking.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.