Skip to content

Commit

Permalink
Updated to v0.27.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alanpeng committed Jan 11, 2019
1 parent a54b6fc commit 5eb4165
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion deploy/scripts/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -e

PrometheusOperatorVersion=0.26.0
PrometheusOperatorVersion=0.27.0
NAMESPACE=monitoring

rm -rf prometheus-operator-$PrometheusOperatorVersion
Expand Down
4 changes: 2 additions & 2 deletions deploy/scripts/generate-offline-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -e

MyImageRepositoryIP=192.168.9.20
MyImageRepositoryProject=library
PrometheusOperatorVersion=0.26.0
PrometheusOperatorVersion=0.27.0

if [ -f ./v$PrometheusOperatorVersion.tar.gz ];then
echo "File already exists. No need to copy again."
Expand Down Expand Up @@ -31,7 +31,7 @@ sed -i '23 r temp.txt' prometheus-operator-$PrometheusOperatorVersion/contrib/ku
rm -f temp.txt

# Maybe no need for other version
sed -i "s/0.25.0/$PrometheusOperatorVersion/g" prometheus-operator-$PrometheusOperatorVersion/contrib/kube-prometheus/manifests/0prometheus-operator-deployment.yaml
sed -i "s/0.26.0/$PrometheusOperatorVersion/g" prometheus-operator-$PrometheusOperatorVersion/contrib/kube-prometheus/manifests/0prometheus-operator-deployment.yaml

# Wait for CRDs to be ready, we need to split all yaml files to two parts
cd prometheus-operator-$PrometheusOperatorVersion/contrib/kube-prometheus/
Expand Down
2 changes: 1 addition & 1 deletion deploy/scripts/push-offline-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ MyImageRepositoryProject=library
MyImageRepositoryUser="admin"
MyImageRepositoryPassword="Harbor12345"

PrometheusOperatorVersion=0.26.0
PrometheusOperatorVersion=0.27.0

docker load -i ../../offline-files/images/prometheus-operator-images-v$PrometheusOperatorVersion.tar

Expand Down
2 changes: 1 addition & 1 deletion offline-files/images/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
prometheus-operator-images-v0.26.0.tar
prometheus-operator-images-v0.27.0.tar
2 changes: 1 addition & 1 deletion offline-files/sourcecode/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
prometheus-operator-v0.26.0-origin.tar.gz
prometheus-operator-v0.27.0-origin.tar.gz
2 changes: 1 addition & 1 deletion prepare/download-source-code.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -e

PrometheusOperatorVersion=0.26.0
PrometheusOperatorVersion=0.27.0

if [ -f ../offline-files/sourcecode/prometheus-operator-v$PrometheusOperatorVersion-origin.tar.gz ];then
echo "File already exists. No need to download again."
Expand Down
4 changes: 2 additions & 2 deletions prepare/get-online-images-list.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/bin/bash
set -e

PrometheusOperatorVersion=0.26.0
PrometheusOperatorVersion=0.27.0

rm -f images-list.txt
rm -rf prometheus-operator-$PrometheusOperatorVersion
tar zxf ../offline-files/sourcecode/prometheus-operator-v$PrometheusOperatorVersion-origin.tar.gz

# Maybe no need for other version
sed -i "s/0.25.0/$PrometheusOperatorVersion/g" prometheus-operator-$PrometheusOperatorVersion/contrib/kube-prometheus/manifests/0prometheus-operator-deployment.yaml
sed -i "s/0.26.0/$PrometheusOperatorVersion/g" prometheus-operator-$PrometheusOperatorVersion/contrib/kube-prometheus/manifests/0prometheus-operator-deployment.yaml

for file in $(grep -lr "quay.io/coreos" prometheus-operator-$PrometheusOperatorVersion/contrib/kube-prometheus/manifests/); do cat $file |grep "quay.io/coreos" ; done > image-lists-temp.txt
for file in $(grep -lr "grafana/grafana" prometheus-operator-$PrometheusOperatorVersion/contrib/kube-prometheus/manifests/); do cat $file |grep "grafana/grafana" ; done >> image-lists-temp.txt
Expand Down
2 changes: 1 addition & 1 deletion prepare/save-offline-images.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -e

PrometheusOperatorVersion=0.26.0
PrometheusOperatorVersion=0.27.0

for file in $(cat images-list.txt); do docker pull $file; done

Expand Down

0 comments on commit 5eb4165

Please sign in to comment.