You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Masterminds/semver being used is very old (v1.5.0). The latest is v3.2.1. Due to the old dependency, the provider does not support setting version ranges, as documented in the ArgoCD docs.
Please update this dependency.
Terraform Version, ArgoCD Provider Version and ArgoCD Version
Terraform v1.4.6 on darwin_arm64
ArgCD v2.7.2
ArgoCD Provider v5.3.0
Affected Resource(s)
argocd_application
Terraform Configuration Files
resource"argocd_application""myapp" {
metadata {
name=local.app_namenamespace="argocd"labels={
environment = local.app_environment
}
}
cascade=truespec {
revision_history_limit=3destination {
server="https://kubernetes.default.svc"namespace=local.app_namespace
}
source {
repo_url=argocd_repository.helm-charts.repochart=local.app_nametarget_revision=local.chart_revision# we'd like to always use latest chart by setting this to ">0.0.0",helm {
release_name=local.app_environment
}
}
}
Error Output
Setting target_revision to any valid range (>2.0,<3.0) or glob pattern (v2.0.* or *) results in an error:
2023-05-19T12:11:20.083-0400 [ERROR] provider.terraform-provider-argocd_v5.3.0: Response contains error diagnostic: @caller=github.com/hashicorp/terraform-plugin-go@v0.14.1/tfprotov5/internal/diag/diagnostics.go:55 @module=sdk.proto diagnostic_severity=ERROR tf_resource_type=argocd_application tf_rpc=ApplyResourceChange diagnostic_detail="rpc error: code = InvalidArgument desc = application spec for myapp is invalid: InvalidSpecError: Unable to generate manifests in .: rpc error: code = Unknown desc = unable to get tags: failed to get tags: unable to decode json: invalid character '<' looking for beginning of value" diagnostic_summary="application myapp could not be updated" tf_proto_version=5.3 tf_provider_addr=registry.terraform.io/oboukili/argocd tf_req_id=ed7d257e-1751-7bcc-1ba4-d235f67acada timestamp=2023-05-19T12:11:20.082-0400
2023-05-19T12:11:20.086-0400 [ERROR] vertex "argocd_application.myapp" error: application myapp could not be updated
╷
│ Error: application myapp could not be updated
│
│ with argocd_application.myapp,
│ on k8s-powerai.tf line 15, in resource "argocd_application" "myapp":
│ 15: resource "argocd_application" "myapp" {
│
│ rpc error: code = InvalidArgument desc = application spec for myapp is invalid: InvalidSpecError: Unable to generate manifests in .: rpc error: code = Unknown desc = unable to get tags: failed to get tags: unable to
│ decode json: invalid character '<' looking for beginning of value
Steps to Reproduce
create an argocd_application
set the target_revision to any supported range or glob pattern
terraform apply --> ERROR
Expected Behavior
The provider should not produce an error when using valid helm version ranges or globs.
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
The text was updated successfully, but these errors were encountered:
I'm afraid I don't think this is an issue with the provider since we aren't doing any form of validation on target_revision. As indicated by the fact that this is an rpc error, the error is coming from ArgoCD itself. (FWIW, I also confirmed this by running the tests you added to the PR you opened).
I did find this issue in the ArgoCD repo which looks remarkably similar. Are you using an OCI repository? If so, then you'll need to wait for that fix to be released.
The
Masterminds/semver
being used is very old (v1.5.0). The latest is v3.2.1. Due to the old dependency, the provider does not support setting version ranges, as documented in the ArgoCD docs.Please update this dependency.
Terraform Version, ArgoCD Provider Version and ArgoCD Version
Affected Resource(s)
Terraform Configuration Files
Error Output
Setting
target_revision
to any valid range (>2.0,<3.0
) or glob pattern (v2.0.*
or*
) results in an error:Steps to Reproduce
argocd_application
target_revision
to any supported range or glob patternterraform apply
--> ERRORExpected Behavior
The provider should not produce an error when using valid helm version ranges or globs.
Community Note
The text was updated successfully, but these errors were encountered: