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
This commit is contained in:
turibbio 2018-10-17 22:20:22 +02:00 committed by GitHub
parent 1178b83585
commit 8b8fda1ab6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,12 +1,12 @@
kubectl apply -f ingress.yaml kubectl apply -f ingress.yaml
# Deploy nginx-ingress core files # Deploy nginx-ingress core files
kubectl apply -f nginx-ingress\namespace.yaml kubectl apply -f nginx-ingress$([IO.Path]::DirectorySeparatorChar)namespace.yaml
kubectl apply -f nginx-ingress\default-backend.yaml kubectl apply -f nginx-ingress$([IO.Path]::DirectorySeparatorChar)default-backend.yaml
kubectl apply -f nginx-ingress\configmap.yaml kubectl apply -f nginx-ingress$([IO.Path]::DirectorySeparatorChar)configmap.yaml
kubectl apply -f nginx-ingress\tcp-services-configmap.yaml kubectl apply -f nginx-ingress$([IO.Path]::DirectorySeparatorChar)tcp-services-configmap.yaml
kubectl apply -f nginx-ingress\udp-services-configmap.yaml kubectl apply -f nginx-ingress$([IO.Path]::DirectorySeparatorChar)udp-services-configmap.yaml
kubectl apply -f nginx-ingress\without-rbac.yaml kubectl apply -f nginx-ingress$([IO.Path]::DirectorySeparatorChar)without-rbac.yaml