mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 06:08:07 +00:00
* add minikube to ubuntu and windows images * address review comments * remove extra lines * remove extra json added * remove 1604 * merge upstream * add comment * remove caching
52 lines
1.2 KiB
PowerShell
52 lines
1.2 KiB
PowerShell
################################################################################
|
|
## File: Validate-KubernetesCli.ps1
|
|
## Desc: Validate KubernetesCli.
|
|
################################################################################
|
|
|
|
|
|
if((Get-Command -Name 'kubectl'))
|
|
{
|
|
Write-Host "kubectl $(kubectl version --client=true --short=true) in path"
|
|
}
|
|
else
|
|
{
|
|
Write-Host "kubectl is not in path"
|
|
exit 1
|
|
}
|
|
|
|
# Adding description of the software to Markdown
|
|
$SoftwareName = "Kubectl"
|
|
|
|
$version = $(kubectl version --client=true --short=true)
|
|
|
|
$Description = @"
|
|
_Version:_ $version<br/>
|
|
_Environment:_
|
|
* PATH: contains location of kubectl.exe
|
|
"@
|
|
|
|
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
|
|
|
if((Get-Command -Name 'minikube'))
|
|
{
|
|
Write-Host "minikube $(minikube version --short) in path"
|
|
}
|
|
else
|
|
{
|
|
Write-Host "minikube is not in path"
|
|
exit 1
|
|
}
|
|
|
|
# Adding description of the software to Markdown
|
|
$SoftwareName = "minikube"
|
|
|
|
$version = $(minikube version --short=true)
|
|
|
|
$Description = @"
|
|
_Version:_ $version<br/>
|
|
_Environment:_
|
|
* PATH: contains location of minikube.exe
|
|
"@
|
|
|
|
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|