Skip to content

module will not build if "kubectl top pod" does not work. #7

Description

@Relinator

Below is error when cannot generate format on build.

error: Metrics API not available
ERROR: Cannot index into a null array.
At D:\Relinator\specialK\src\public\k.ps1:10 char:13
+         if ($out[0] -match '^(NAME |NAMESPACE |CURRENT |LAST SEEN )') …
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
At D:\Relinator\specialK\specialK.Build.ps1:39 char:1
+ task ModuleBuild Clean, {
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
Build FAILED. 2 tasks, 1 errors, 0 warnings 00:00:01.9210303
InvalidOperation: D:\Relinator\specialK\src\public\k.ps1:10:13
Line |
  10 |          if ($out[0] -match '^(NAME |NAMESPACE |CURRENT |LAST SEEN )') …
     |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot index into a null array.

recommend making

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions