2020-07-14 15:58:14 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
|
2020-07-14 17:17:08 +00:00
|
|
|
ISTIO_VERSION=1.5.8
|
2020-07-14 15:58:14 +00:00
|
|
|
|
|
|
|
NAME="istio-$ISTIO_VERSION"
|
2020-07-14 17:17:08 +00:00
|
|
|
URL="https://github.com/istio/istio/releases/download/${ISTIO_VERSION}/istio-${ISTIO_VERSION}-linux.tar.gz"
|
2020-07-14 15:58:14 +00:00
|
|
|
|
|
|
|
curl -sL "$URL" | tar xz
|
|
|
|
|
|
|
|
# Now lets extract what we need
|
|
|
|
rm -rf charts/istio-operator
|
2020-07-14 17:17:08 +00:00
|
|
|
cp -r istio-${ISTIO_VERSION}/install/kubernetes/operator/charts/istio-operator charts
|
2020-07-14 15:58:14 +00:00
|
|
|
|
|
|
|
rm -rf istio-${ISTIO_VERSION}
|
2020-07-14 17:01:13 +00:00
|
|
|
|
|
|
|
# Apply our patch
|
|
|
|
patch -i istio-operator.patch -p3
|