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)))
|
return [Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes([Convert]::ToBase64String($buffer)))
|
||||||
}
|
}
|
||||||
|
|
||||||
kubectl get namespace $NewNamespace *> $null
|
$namespaceName = kubectl get namespace $NewNamespace --ignore-not-found -o name
|
||||||
if ($LASTEXITCODE -ne 0) {
|
if (-not $namespaceName) {
|
||||||
kubectl create namespace $NewNamespace | Out-Null
|
kubectl create namespace $NewNamespace | Out-Null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user