Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: use resource_id directly for coder_metadata association#18300

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
sreya wants to merge1 commit intomain
base:main
Choose a base branch
Loading
fromjon/resourcemetadata

Conversation

sreya
Copy link
Collaborator

Previously, coder_metadata resources would associate with the wrong Terraform resource because the implementation relied on graph traversal instead of using the explicit resource_id attribute.

This fix:

  • Builds a map from resource IDs to their labels for direct lookup
  • Uses the resource_id attribute to find the target resource directly
  • Falls back to graph traversal only if resource_id lookup fails
  • Adds logging when resource_id is not found in the state

This ensures that metadata is correctly associated with the intended resource, even when there are complex dependencies in the Terraform configuration.

Fixes the issue where coder_metadata would incorrectly associate with resources it references in its values rather than the resource specified in resource_id.

@sreyasreyaforce-pushed thejon/resourcemetadata branch from439f812 to558c1ebCompareJune 10, 2025 03:41
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees

@sreyasreya

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@sreya

[8]ページ先頭

©2009-2025 Movatter.jp