Skip to content

[BUG]: KubeloginInstaller@0 doesn't support InstallationToken from Github #21689

@zhangyuan

Description

@zhangyuan

New issue checklist

Task name

KubeloginInstaller@v0

Task version

0.264.0

Issue Description

Our Github service connection is Github (using azure pipelines app) and is to a GitHub-InstallationToken.

Task definition

  - task: KubeloginInstaller@0
    displayName: "Install kubelogin latest"
    inputs:
      gitHubConnection: ******
    env:
      USE_AUTHORIZATION_FOR_API_CALL: 'true'

Error

##[warning]Can't find loc string for key: InvalidEndpointAuthScheme
##[error]InvalidEndpointAuthScheme InstallationToken

The task.json tells the githubConnection's type is connectedService:github:OAuth,OAuth2,PersonalAccessToken,InstallationToken,Token

https://github.com/zhangyuan/azure-pipelines-tasks/blob/master/Tasks/KubeloginInstallerV0/task.json#L36C1-L37C1

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Ubuntu-latest

Relevant log output

Starting: Install kubelogin latest
==============================================================================
Task         : Kubelogin tool installer
Description  : Helps to install kubelogin
Version      : 0.264.0
Author       : Microsoft Corporation
Help         : https://azure.github.io/kubelogin/index.html
==============================================================================
##[error]Cannot read properties of undefined (reading 'trim')
##[warning]RetryHelper encountered task failure, will retry (attempt #: 1 out of 5) after 1000 ms
##[error]Cannot read properties of undefined (reading 'trim')
##[warning]RetryHelper encountered task failure, will retry (attempt #: 2 out of 5) after 4000 ms
##[error]Cannot read properties of undefined (reading 'trim')
##[warning]RetryHelper encountered task failure, will retry (attempt #: 3 out of 5) after 9000 ms
##[error]Cannot read properties of undefined (reading 'trim')
##[warning]RetryHelper encountered task failure, will retry (attempt #: 4 out of 5) after 16000 ms
##[error]Cannot read properties of undefined (reading 'trim')
##[warning]RetryHelper encountered task failure, will retry (attempt #: 5 out of 5) after 25000 ms
##[error]Cannot read properties of undefined (reading 'trim')
Finishing: Install kubelogin latest

Full task logs with system.debug enabled

Details
 [REPLACE THIS WITH YOUR INFORMATION] 

Repro steps

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions