Skip to content

bug: coder stat shows error <nil> when a POD has 2 container #17781

Open
@MrPeacockNLB

Description

@MrPeacockNLB

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

We have to rewrite our template (for security reasons). So we have to use a second container inside the POD. Coder workspace is fully useable, but if we want to show the developer meta data like cpu und memory we only saw an error. This works fine with the template with only exact one container in the POD.

old template (1 container in POD)

Image

new template (2 container in POD)

Image

Terminal

If I ran the coder stat cpu command on the shell then I got an error displayed.

Image

Relevant Log Output

Expected Behavior

coder stat should handle 2 container in POD correct and display summed up values like k9s do.

Image

Steps to Reproduce

  1. build a template in kubernetes with a POD with more than one container in it
  2. ran coder stat cpu
  3. error gets displayed

Environment

  • Host OS: AKS
  • Coder version: v2.20.2

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    s3Bugs that confuse, annoy, or are purely cosmetic

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions