Browse Source

Fix path separator on Mac OS x

On Mac, the original script doesn't work. Thanks to $([IO.Path]::DirectorySeparatorChar), we can easily provide a standard way to execute correctly this script

Tested on
Mac OS x High Sierra 10.13.6

PS Version
PSVersion: 6.0.0-alpha
BuildVersion: 3.0.0.0
GitCommitId: v6.0.0-alpha.9
pull/824/head
turibbio 6 years ago
committed by GitHub
parent
commit
4c81e31164
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      k8s/deploy-ingress-azure.ps1

+ 3
- 3
k8s/deploy-ingress-azure.ps1 View File

@ -1,3 +1,3 @@
kubectl patch deployment -n ingress-nginx nginx-ingress-controller --type=json --patch="$(cat nginx-ingress\publish-service-patch.yaml)"
kubectl apply -f nginx-ingress\azure\service.yaml
kubectl apply -f nginx-ingress\patch-service-without-rbac.yaml
kubectl patch deployment -n ingress-nginx nginx-ingress-controller --type=json --patch="$(cat nginx-ingress$([IO.Path]::DirectorySeparatorChar)publish-service-patch.yaml)"
kubectl apply -f nginx-ingress$([IO.Path]::DirectorySeparatorChar)azure$([IO.Path]::DirectorySeparatorChar)service.yaml
kubectl apply -f nginx-ingress$([IO.Path]::DirectorySeparatorChar)patch-service-without-rbac.yaml

Loading…
Cancel
Save