-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Conversation
throw new Error(tl.loc("NotAValidSemverVersion")); | ||
} | ||
|
||
return "v"+version; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import kubectlutility = require("utility-common/kubectlutility"); | ||
|
||
export async function getKuberctlVersion(): Promise<string> { | ||
let kubectlVersion = tl.getInput("kubectlVersion"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add debug logs
Download and cache specific versions of kubectl.