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

Addorder tocoder_metadata #325

Open
@stirby

Description

@stirby

Agent metadata currently does not support ordering in the same way users can orderapps oragents. We should use the existing syntax to allow ordering metadata items on any resource. Each resource should have an independent index.

Agent metadata ordering

The existing implementation:

resource"coder_agent""dev" {os="linux"...metadata {display_name="CPU Usage"key="cpu_usage"script="coder stat cpu"interval=10timeout=1order=2  }metadata {display_name="RAM Usage"key="ram_usage"script="coder stat mem"interval=10timeout=1order=1  }order=1}

Resource Metadata ordering

Proposal:

resource"coder_metadata""pod_info" {count=data.coder_workspace.me.start_countresource_id=kubernetes_pod.dev[0].id# (Enterprise-only) this resource consumes 200 quota unitsdaily_cost=200item {key="pod_uid"value=kubernetes_pod.dev[0].uidorder=2# new!  }item {key="description"value="This description will show up in the Coder dashboard."order=1# new!  }item {key="public_key"value=tls_private_key.example_key_pair.public_key_opensshorder=3# new!  }}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp