Skip to content

Auth exec error message is not clear #1809

@0x5457

Description

@0x5457

Describe the bug

When the auth exec command configured in kubeconfig does not exist or cannot be executed for other reasons. The following error is obtained

TypeError: Cannot read properties of null (reading 'toString')
    at ExecAuth.getCredential (/code/test/node_modules/.pnpm/@[email protected]/node_modules/@kubernetes/client-node/dist/exec_auth.js:86:39)
    at ExecAuth.applyAuthentication (/code/test/node_modules/.pnpm/@[email protected]/node_modules/@kubernetes/client-node/dist/exec_auth.js:23:33)
    at KubeConfig.applyAuthorizationHeader (/code/test/node_modules/.pnpm/@[email protected]/node_modules/@kubernetes/client-node/dist/config.js:447:33)
    at KubeConfig.applyOptions (/code/test/node_modules/.pnpm/@[email protected]/node_modules/@kubernetes/client-node/dist/config.js:455:20)
    at KubeConfig.applyToHTTPSOptions (/code/test/node_modules/.pnpm/@[email protected]/node_modules/@kubernetes/client-node/dist/config.js:109:20)
    at KubeConfig.applyToFetchOptions (/code/test/node_modules/.pnpm/@[email protected]/node_modules/@kubernetes/client-node/dist/config.js:85:20)

** Client Version **
1.0.0-rc6

** Server Version **
1.0.0-rc5

Environment (please complete the following information):

  • OS: MacOs
  • NodeJS Version: v20.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions