fix prod secret preparation namespace check
This commit is contained in:
@@ -15,8 +15,8 @@ function New-Base64SecretValue([int]$Bytes = 48) {
|
||||
return [Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes([Convert]::ToBase64String($buffer)))
|
||||
}
|
||||
|
||||
kubectl get namespace $NewNamespace *> $null
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
$namespaceName = kubectl get namespace $NewNamespace --ignore-not-found -o name
|
||||
if (-not $namespaceName) {
|
||||
kubectl create namespace $NewNamespace | Out-Null
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user