-
Couldn't load subscription status.
- Fork 23
Open
Bug
0 / 20 of 2 issues completed
Copy link
Description
Problem Description
-
While adding
coder_metadatablocks inside a module we need to pass the resource_id to link the metadata to. The issue arises when theresource_idof the instance is linked to an existingcoder_metadatablock in the main template, which causes a conflict and the template fails to build. -
Attempting to use an alternative identifier, such as
agent_id, doesn't show metadata on the workspace page.
Steps to Reproduce
- Add a
coder_metadatablock to a module and link it to theresource_idof an instance. - Add another
coder_metadatablock in the main template referencing the sameresource_id. - Observe the conflict in the failed build.
- Attempt to use
agent_idinstead in the module and note the absence of display metadata.
Impact
- Limits the flexibility of the coder modules because of possible conflicts.
Next Steps
- Update the handling of
coder_metadatato avoid conflicts between module-level and main template declarations when sharing the sameresource_id. One possible solution is to merge and append the newitementries when we detect a conflict inresource_id. - Investigate why the
agent_iddoes not work withcoder_metadata.
Note
We did allow adding multiple coder_metadata with the same resource_id. See coder/coder#6517.
Sub-issues
Metadata
Metadata
Assignees
Labels
No labels