Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential Regression(v0.29.1 -> v0.29.2): data_harness_platform_gitops_agent_deploy_yaml #843

Open
em-jones opened this issue Jan 2, 2024 · 0 comments

Comments

@em-jones
Copy link

em-jones commented Jan 2, 2024

Hi there,

Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.

Terraform Version

1.6.6

Affected Resource(s)

Please list the resources as a list, for example:

  • data_harness_platform_gitops_agent_deploy_yaml

If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.

Terraform Configuration Files

data "harness_platform_organization" "default" {
  identifier = "default"
}

resource "harness_platform_project" "ias" {
  name = "Infrastructure Platform"
  org_id = local.org_id
  identifier = "ias_platform"
}

data "harness_platform_current_user" "provider" {}

resource "harness_platform_gitops_agent" "ias_platform" {
  name = "ias_platform"
  identifier = "ias_platform"
  account_id = data.harness_platform_current_user.provider.default_account_id
  org_id = local.org_id
  project_id = harness_platform_project.ias.identifier
  type = "MANAGED_ARGO_PROVIDER"
  metadata {
    namespace = local.agent_namespace
    high_availability = false
  }
}

data "harness_platform_gitops_agent_deploy_yaml" "managed_argo_agent" {
  identifier = "${harness_platform_gitops_agent.ias_platform.identifier}"
  account_id = data.harness_platform_current_user.provider.default_account_id
  org_id = local.org_id
  project_id = harness_platform_project.ias.identifier
  namespace = local.agent_namespace
}

resource "local_file" "gitops_agent_yaml_file" {
  filename = "gitops_agent.yaml"
  content = data.harness_platform_gitops_agent_deploy_yaml.managed_argo_agent.yaml
}

Debug Output

output

Expected Behavior

when running terraform apply: expect to get file containing the agent resource yaml (behavior confirmed in <v0.29.2

Actual Behavior

empty file

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply

References

Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant