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

The casing of the polling_uri attribute in the octopusdeploy_polling_subscription_id resource is inconsistent with the casing expected by the octopusdeploy_kubernetes_agent_deployment_target resource for the uri argument #718

Open
azagarelz opened this issue Aug 6, 2024 · 0 comments
Labels
category/state-drift Problems with inconsistent state across multiple import/plan/apply runs kind/bug Something isn't working

Comments

@azagarelz
Copy link

azagarelz commented Aug 6, 2024

Describe the bug
The casing of the polling_uri attribute in the octopusdeploy_polling_subscription_id resource is inconsistent with the casing expected by the octopusdeploy_kubernetes_agent_deployment_target resource for the uri argument, causing a permanent drift in Terraform.

Steps to reproduce

  1. Create a octopusdeploy_tentacle_certificate resource in Terraform
  2. Create octopusdeploy_polling_subscription_id resource in Terraform
  3. Create a octopusdeploy_kubernetes_agent_deployment_target resource in Terraform using the thumbprint and polling_uri obtained from the previously created resources
  4. Terraform apply
  5. Terraform plan
  6. Terraform will show a drift in the uri argument of the octopusdeploy_kubernetes_agent_deployment_target resource

Expected behavior
I don’t expect any drift, and the polling_uri casing should be consistent across resources and datasources.

Logs and other supporting information
Terraform resource

resource "octopusdeploy_tentacle_certificate" "octopus_agent" {}

resource "octopusdeploy_polling_subscription_id" "octopus_agent" {}

resource "octopusdeploy_kubernetes_agent_deployment_target" "octopus_agent" {
  name               = "nice-agent"
  space_id           = "Spaces-xxx"
  environments       = ["Environments-xxx"]
  roles              = ["nice-agent"]
  thumbprint         = octopusdeploy_tentacle_certificate.octopus_agent.thumbprint
  uri                = octopusdeploy_polling_subscription_id.octopus_agent.polling_uri
}

Output:
Drift example:
image

Environment and versions:

  • OS: [Linux, OSX]
  • Octopus Server Version: Version 2024.2 (Build 9313)
  • Terraform Version: 1.8.3/1.8.5
  • Octopus Terraform Provider Version: 0.30.0-beta1/0.22.1-dsfix/0.22.0
@domenicsim1 domenicsim1 added kind/bug Something isn't working category/state-drift Problems with inconsistent state across multiple import/plan/apply runs labels Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category/state-drift Problems with inconsistent state across multiple import/plan/apply runs kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants