-
Notifications
You must be signed in to change notification settings - Fork 98
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Terraform Version, ArgoCD Provider Version and ArgoCD Version
Terraform version: `v1.13.4`
ArgoCD provider version: `v7.11.2`
ArgoCD version: `v3.1.8+becb020`
Affected Resource(s)
- argocd_application data source
Terraform Configuration Files
provider "argocd" {
use_local_config = true
context = "REDACTED"
grpc_web = true
}
data "argocd_application" "p2p_app_gtw" {
for_each = toset(["dev"])
depends_on = [module.cluster]
metadata = {
namespace = "default"
name = "${each.value}-p2p-app-gtw"
}
}Debug Output
╰─❯ TF_LOG=DEBUG terraform apply -target='module.eks_preprod_cluster.data.argocd_application.p2p_app_gtw["dev"]'
<snip>
module.eks_preprod_cluster.data.argocd_application.p2p_app_gtw["dev"]: Reading...
2025-10-28T06:07:35.398-0400 [DEBUG] provider.terraform-provider-argocd_v7.11.2: Value switched to prior value due to semantic equality logic: @module=sdk.framework tf_req_id=9c8f8bd9-eb16-7ba3-4843-bb13a8498ba8 tf_rpc=ReadDataSource @caller=github.com/hashicorp/[email protected]/internal/fwschemadata/value_semantic_equality.go:91 tf_attribute_path=metadata.name tf_data_source_type=argocd_application tf_mux_provider="*proto6server.Server" tf_provider_addr=registry.terraform.io/argoproj-labs/argocd timestamp=2025-10-28T06:07:35.398-0400
2025-10-28T06:07:35.398-0400 [DEBUG] provider.terraform-provider-argocd_v7.11.2: Value switched to prior value due to semantic equality logic: tf_rpc=ReadDataSource @module=sdk.framework tf_mux_provider="*proto6server.Server" @caller=github.com/hashicorp/[email protected]/internal/fwschemadata/value_semantic_equality.go:91 tf_attribute_path=metadata.namespace tf_data_source_type=argocd_application tf_provider_addr=registry.terraform.io/argoproj-labs/argocd tf_req_id=9c8f8bd9-eb16-7ba3-4843-bb13a8498ba8 timestamp=2025-10-28T06:07:35.398-0400
2025-10-28T06:07:35.399-0400 [DEBUG] provider.terraform-provider-argocd_v7.11.2: Value switched to prior value due to semantic equality logic: tf_data_source_type=argocd_application tf_mux_provider="*proto6server.Server" tf_rpc=ReadDataSource @caller=github.com/hashicorp/[email protected]/internal/fwschemadata/value_semantic_equality.go:91 @module=sdk.framework tf_attribute_path=metadata tf_provider_addr=registry.terraform.io/argoproj-labs/argocd tf_req_id=9c8f8bd9-eb16-7ba3-4843-bb13a8498ba8 timestamp=2025-10-28T06:07:35.398-0400
2025-10-28T06:07:35.401-0400 [ERROR] vertex "module.eks_preprod_cluster.data.argocd_application.p2p_app_gtw[\"dev\"]" error: Provider produced invalid object
2025-10-28T06:07:35.402-0400 [ERROR] vertex "module.eks_preprod_cluster.data.argocd_application.p2p_app_gtw (expand)" error: Provider produced invalid object
2025-10-28T06:07:35.516-0400 [WARN] Planning encountered errors, so plan is not applyable
Planning failed. Terraform encountered an error while generating this plan.
<snip resource targeting warning>
╷
│ Error: Provider produced invalid object
│
│ Provider "module.eks_preprod_cluster.provider[\"registry.terraform.io/argoproj-labs/argocd\"]" produced a value for
│ module.eks_preprod_cluster.data.argocd_application.p2p_app_gtw["dev"] that is not wholly known.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵
2025-10-28T06:07:35.605-0400 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2025-10-28T06:07:35.606-0400 [INFO] provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/argoproj-labs/argocd/7.11.2/darwin_arm64/terraform-provider-argocd_v7.11.2 id=26668
2025-10-28T06:07:35.606-0400 [DEBUG] provider: plugin exited
Steps to Reproduce
- With the above config, run a targeted apply on the
data.argocd_application.xxxdata source.
Expected Behavior
The data source would populate and I could inspect its values.
Actual Behavior
Terraform says there's a bug in the provider and I should report it.
Important Factoids
- I did not try this without
-targeting, but it shouldn't make a difference.
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