Day 13: Running helm charts locally to validate

$chartDirectory = "C:\Users\xinfeng.li\source\repos\CloudDev\twfm-kubernetes\Helm\teleoptiwfm"
$chartValueFile = "C:\Users\xinfeng.li\source\repos\CloudDev\twfm-kubernetes\Helm\teleoptiwfm\values.yaml"

$versions = @{
oldVersio = "9.625.3611"
sameVersion = "9.625.3622"
newerVersion = "9.626.3638"
}

Write-Host $versions
$versions.Keys | ForEach-Object {
$version = $versions.Item($_)

Write-HostWrite-Host "Name: $_"
Write-Host "Version: $version"

$helmSetValues = "image.version=$version"

helm upgrade $installationName "$chartDirectory" `
    --install `
    --force `
    --values "$chartValueFile" `
    --set $helmSetValues `
    --wait `
    --namespace $namespace`
    --dry-run `
    --debug > "dry-$_-$version.yaml"

Leave a Reply

Your email address will not be published. Required fields are marked *