Skip to content

Commit

Permalink
set KUBERNETES_INGRESS_WHITELLIST repo var as default for ingressWhit…
Browse files Browse the repository at this point in the history
…elist input
  • Loading branch information
ebronson68 committed Jul 24, 2024
1 parent b9f48c1 commit a82abf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/aks-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ on:
required: false
type: string
description: "IPs to include in the application whitelist"
default: "0.0.0.0/0"
default: ${{ vars.KUBERNETES_INGRESS_WHITELIST }}
adminIngressWhitelist:
required: false
type: string
Expand Down Expand Up @@ -153,7 +153,7 @@ jobs:
$domainName = ($ingress.Split('.') | Select-Object -Last 2) -join '.'
$environmentIngress = "${{ inputs.environmentIngress }}" -replace '"', '' -replace "'", ""
$hostName = $ingress -replace $domainName, '' -replace "\.$", ""
$ingressWhitelist = "${{ inputs.ingressWhitelist }}" ?? $appConfig.ingress.annotations."nginx.ingress.kubernetes.io/whitelist-source-range"
$ingressWhitelist = "${{ inputs.ingressWhitelist }}" ?? $appConfig.ingress.annotations."nginx.ingress.kubernetes.io/whitelist-source-range" ?? '0.0.0.0/0'
if ($appConfig.adminingress) {
$adminIngressWhitelist = "${{ inputs.adminIngressWhitelist }}" ?? $appConfig.adminingress.annotations."nginx.ingress.kubernetes.io/whitelist-source-range"
}
Expand Down

0 comments on commit a82abf0

Please sign in to comment.