From 8b8fda1ab65522f1225af0b945c736291168dbd8 Mon Sep 17 00:00:00 2001 From: turibbio Date: Wed, 17 Oct 2018 22:20:22 +0200 Subject: [PATCH] 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 --- k8s/deploy-ingress.ps1 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/k8s/deploy-ingress.ps1 b/k8s/deploy-ingress.ps1 index 694361bfa..540f17c9a 100644 --- a/k8s/deploy-ingress.ps1 +++ b/k8s/deploy-ingress.ps1 @@ -1,12 +1,12 @@ kubectl apply -f ingress.yaml # Deploy nginx-ingress core files -kubectl apply -f nginx-ingress\namespace.yaml -kubectl apply -f nginx-ingress\default-backend.yaml -kubectl apply -f nginx-ingress\configmap.yaml -kubectl apply -f nginx-ingress\tcp-services-configmap.yaml -kubectl apply -f nginx-ingress\udp-services-configmap.yaml -kubectl apply -f nginx-ingress\without-rbac.yaml +kubectl apply -f nginx-ingress$([IO.Path]::DirectorySeparatorChar)namespace.yaml +kubectl apply -f nginx-ingress$([IO.Path]::DirectorySeparatorChar)default-backend.yaml +kubectl apply -f nginx-ingress$([IO.Path]::DirectorySeparatorChar)configmap.yaml +kubectl apply -f nginx-ingress$([IO.Path]::DirectorySeparatorChar)tcp-services-configmap.yaml +kubectl apply -f nginx-ingress$([IO.Path]::DirectorySeparatorChar)udp-services-configmap.yaml +kubectl apply -f nginx-ingress$([IO.Path]::DirectorySeparatorChar)without-rbac.yaml