Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Kubectl tool installer task #9945

Merged
merged 4 commits into from
Apr 1, 2019
Merged

Conversation

Anumita
Copy link
Contributor

@Anumita Anumita commented Mar 27, 2019

Download and cache specific versions of kubectl.

Tasks/KubectlInstallerV0/src/utils.ts Outdated Show resolved Hide resolved
Tasks/KubectlInstallerV0/src/utils.ts Show resolved Hide resolved
Tasks/KubectlInstallerV0/task.json Show resolved Hide resolved
Tasks/KubectlInstallerV0/task.json Outdated Show resolved Hide resolved
@Anumita Anumita merged commit fa3ec1a into master Apr 1, 2019
throw new Error(tl.loc("NotAValidSemverVersion"));
}

return "v"+version;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should not we check whether it starts with v or not and based on that either add it or not.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the above line "toollib.cleanVersion" removes the v prefix

image

import kubectlutility = require("utility-common/kubectlutility");

export async function getKuberctlVersion(): Promise<string> {
let kubectlVersion = tl.getInput("kubectlVersion");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add debug logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants