Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Commit

Permalink
updated deploy scripts to support other ingress than http application…
Browse files Browse the repository at this point in the history
… routing
  • Loading branch information
eiximenis committed Oct 6, 2020
1 parent 35931a7 commit b087d1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Deploy/powershell/Deploy-Images-Aks.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Write-Host " --------------------------------------------------------"

$acrLogin=$(az acr show -n $acrName -o json| ConvertFrom-Json).loginServer

if ($tlsEnv -ne "custom") {
if ($tlsEnv -ne "custom" -and [String]::IsNullOrEmpty($tlsHost)) {
$aksHost=$(az aks show -n $aksName -g $resourceGroup --query addonProfiles.httpapplicationrouting.config.HTTPApplicationRoutingZoneName -o json | ConvertFrom-Json)

if (-not $aksHost) {
Expand Down
2 changes: 1 addition & 1 deletion Deploy/powershell/Generate-Config.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ $tokens.seckey="nEpLzQJGNSCNL5H6DIQCtTdNxf5VgAGcBbtXLms1YDD01KJBAs0WVawaEjn97uwB
$tokens.ingressrewritepath=""
$tokens.ingressrewritetarget=""

if($ingressClass -ne "addon-http-application-routing") {
if($ingressClass -eq "nginx") {
$tokens.ingressrewritepath="(/|$)(.*)"
$tokens.ingressrewritetarget="`$2"
}
Expand Down

0 comments on commit b087d1d

Please sign in to comment.