KubeloginInstaller@0 - Kubelogin tool installer v0 task

Installs kubelogin and adds it to the PATH of your agent.

Syntax

# Kubelogin tool installer v0
# Helps to install kubelogin.
- task: KubeloginInstaller@0
  inputs:
    #kubeloginVersion: 'latest' # string. kubelogin version. Default: latest.

Inputs

kubeloginVersion - kubelogin version
string. Default value: latest.

The version of kubelogin to use, for example 0.0.30, or latest to use the latest version. For more information about kubelogin versions, see kubelogin releases.


Task control options

All tasks have control options in addition to their task inputs. For more information, see Control options and common task properties.

Output variables

None.

Remarks

The kubelogin installer task acquires the specified version of kubelogin from the internet or the tools cache and adds it to the PATH of the agent (hosted or private). Use this task to change the version of kubelogin used in subsequent tasks like KubernetesManifest@1, HelmDeploy@0, AzureFunctionOnKubernetes@1, and Kubernetes@1.

Adding KubeloginInstaller@0 before the previously listed tasks in a build definition ensures that the desired kubelogin version is available at the time of building, testing and publishing your app.

The tool installer approach also allows you to decouple from the agent update cycles. If the kubelogin version you are looking for is missing from the agent (hosted or private), then you can use KubeloginInstaller@0 to get the right version installed on the agent.

For more information on kubelogin, see Non-interactive sign-in with kubelogin.

Examples

The following example shows how to install the latest version of kubelogin. The default value for kubeloginVersion is latest, so you can omit the kubeloginVersion input if desired.

- task: KubeloginInstaller@0

# Other tasks that depend on kubelogin
- task: HelmDeploy@0
  # task inputs...

To explicitly specify kubeloginVersion, use the following syntax.

- task: KubeloginInstaller@0
  inputs:
    kubeloginVersion: 'latest' # or a specific version like '0.0.30'

Requirements

Requirement Description
Pipeline types YAML, Classic build, Classic release
Runs on Agent, DeploymentGroup
Demands None
Capabilities Running this task satisfies the following demands for any subsequent tasks in the same job: Kubelogin
Command restrictions Any
Settable variables Any
Agent version 2.144.0 or greater
Task category Tool

See also