Skip to content

Fix terraform_autoupdate_version when metadata is non-nil#57453

Merged
hugoShaka merged 1 commit intomasterfrom
hugo/fix-tf-autoupdate-wwith-metadata
Aug 4, 2025
Merged

Fix terraform_autoupdate_version when metadata is non-nil#57453
hugoShaka merged 1 commit intomasterfrom
hugo/fix-tf-autoupdate-wwith-metadata

Conversation

@hugoShaka
Copy link
Copy Markdown
Contributor

This PR fixes a couple of bugs happening when the user sets the metadata on the autoupdate config and version resources. With this PR, we are now ignoring the namespace and revision.

Example error:

teleport_autoupdate_config.test: Modifying... [id=autoupdate-config]
╷
│ Error: Provider returned invalid result object after apply
│ 
│ After the apply operation, the provider still indicated an unknown value for teleport_autoupdate_config.test.metadata.namespace. All values must be known after apply, so this is always a bug in the provider and should be
│ reported in the provider's own repository. Terraform will still save the other known object values in the state.
╵

Changelog: fix a bug in the TF provider happening when auroupdate_version or autoupdate_config have non-empty metadata.

This PR fixes a couple of bugs happening when the user sets the metadata
on the autoupdate config and version resources. With this PR, we are now
ignoring the namespace and revison.
@hugoShaka hugoShaka added bug terraform-provider Issues relating to the Teleport Terraform provider in the teleport-plugins repo backport/branch/v17 backport/branch/v18 labels Aug 1, 2025
@hugoShaka hugoShaka requested review from eriktate and kopiczko August 1, 2025 17:13
@hugoShaka hugoShaka added this pull request to the merge queue Aug 4, 2025
Merged via the queue into master with commit 3b9cec8 Aug 4, 2025
48 checks passed
@hugoShaka hugoShaka deleted the hugo/fix-tf-autoupdate-wwith-metadata branch August 4, 2025 20:14
@backport-bot-workflows
Copy link
Copy Markdown
Contributor

@hugoShaka See the table below for backport results.

Branch Result
branch/v17 Create PR
branch/v18 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/branch/v17 backport/branch/v18 bug size/sm terraform-provider Issues relating to the Teleport Terraform provider in the teleport-plugins repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants