-
Notifications
You must be signed in to change notification settings - Fork 97
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Terraform Version, ArgoCD Provider Version and ArgoCD Version
Terraform version: v1.13.1
ArgoCD provider version: 7.11.0
ArgoCD version: v3.1.4+20dd73a
Affected Resource(s)
- argocd_repository
Terraform Configuration Files
terraform {
required_providers {
argocd = {
source = "argoproj-labs/argocd"
version = "7.11.0"
}
}
required_version = ">= 1.10"
}
resource "argocd_repository" "this" {
for_each = { for key, val in local.argocd_repository : key => val if val.enable_repo }
repo = each.value.repo_url
name = each.value.repo_name
type = each.value.repo_type
username = each.value.repo_username
password = each.value.repo_userpwd
}
locals {
argocd_repository = {
"helm-libs" = {
enable_repo = true
repo_url = "https://${var.gitlab_base_url}/api/v4/projects/bank%2Finfra%2Fargocd%2Fhelm-libs/packages/helm/base/"
repo_name = "helm-libs"
repo_type = "helm"
repo_username = var.gitlab_helm_read_user
repo_userpwd = var.gitlab_helm_read_password
},
}Debug Output
│ Error: failed to update repository https://REDACTED/api/v4/projects/bank%2Finfra%2Fargocd%2Fhelm-libs/packages/helm/base/
│
│ with argocd_repository.this["helm-libs"],
│ on main.tf line 1, in resource "argocd_repository" "this":
│ 1: resource "argocd_repository" "this" {
│
│ rpc error: code = NotFound desc = repo 'https://REDACTED/api/v4/projects/bank/infra/argocd/helm-libs/packages/helm/base/' not found
Panic Output
Steps to Reproduce
terraform apply
Expected Behavior
Resources should be updated and it works with provider version 7.9.0 and ArgoCD v3.0.1+2bcef48
Actual Behavior
It decodes '%2F' in the Gitlab URL-encoded repository, afaik
Important Factoids
References
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working