add helm istallation

This commit is contained in:
Dmitry Shibanov
2020-03-17 16:46:13 +03:00
parent 106b6346da
commit 18e371964f
2 changed files with 30 additions and 0 deletions

View File

@@ -14,3 +14,7 @@ Install-Package -Name docker -ProviderName DockerMsftProvider -Force
Start-Service docker
choco install docker-compose -y
# Install helm
Write-Host "Install Helm"
choco install kubernetes-helm

View File

@@ -44,3 +44,29 @@ _Environment:_
"@
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
# Validate helm
if (Get-Command -Name 'helm')
{
Write-Host "helm on path"
Write-Host "Full version:"
helm version
Write-Host "Short version:"
helm version --short
}
else
{
Write-Host 'helm is not on path'
exit 1
}
$version = $(helm version --short)
$SoftwareName = "Helm"
$Description = @"
_Version:_ $version<br/>
_Environment:_
* PATH: contains location of helm
"@
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description