mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
Revert "Another mop up commit to add missing changes from the last mop-up."
This reverts commit 1dcd276b1e.
This commit is contained in:
@@ -1,28 +1,28 @@
|
||||
################################################################################
|
||||
## 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
|
||||
################################################################################
|
||||
## 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
|
||||
|
||||
Reference in New Issue
Block a user