Skip to content

Commit

Permalink
Merge pull request #179 from MonzElmasry/chart_location
Browse files Browse the repository at this point in the history
change charts names/repo
  • Loading branch information
MonzElmasry authored Aug 12, 2020
2 parents f5849ce + ff79163 commit 86afc88
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion manifests/canal.yml → manifests/rke2-canal.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: helm.cattle.io/v1
kind: HelmChart
metadata:
name: canal
name: rke2-canal
namespace: kube-system
spec:
chartContent: %{CHART_CONTENT}%
Expand Down
2 changes: 1 addition & 1 deletion manifests/coredns.yml → manifests/rke2-coredns.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: helm.cattle.io/v1
kind: HelmChart
metadata:
name: coredns
name: rke2-coredns
namespace: kube-system
spec:
chartContent: %{CHART_CONTENT}%
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: helm.cattle.io/v1
kind: HelmChart
metadata:
name: nginx-ingress
name: rke2-ingress-nginx
namespace: kube-system
spec:
chartContent: %{CHART_CONTENT}%
2 changes: 1 addition & 1 deletion manifests/kube-proxy.yml → manifests/rke2-kube-proxy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: helm.cattle.io/v1
kind: HelmChart
metadata:
name: kube-proxy
name: rke2-kube-proxy
namespace: kube-system
spec:
chartContent: %{CHART_CONTENT}%
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: helm.cattle.io/v1
kind: HelmChart
metadata:
name: metrics-server
name: rke2-metrics-server
namespace: kube-system
spec:
chartContent: %{CHART_CONTENT}%
6 changes: 3 additions & 3 deletions scripts/download-charts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ set -ex

CHARTS_DIR=build/static/charts
MANIFEST_DIR=manifests
CHARTS="canal:v3.13.3 coredns:1.10.101 kube-proxy:v1.18.4 metrics-server:2.11.100 nginx-ingress:1.36.300"
CHARTS_REPO="https://dev-charts.rancher.io"
CHARTS="rke2-canal:v3.13.3 rke2-coredns:1.10.101 rke2-kube-proxy:v1.18.4 rke2-metrics-server:2.11.100 rke2-ingress-nginx:1.36.300"
CHARTS_REPO="https://rke2-charts.rancher.io"

mkdir -p ${CHARTS_DIR}
for chart in ${CHARTS}; do
chart_name=$(echo "${chart}" | cut -d ":" -f 1)
chart_version=$(echo "${chart}" | cut -d ":" -f 2)
curl -sfL ${CHARTS_REPO}/${chart_name}/${chart_name}-${chart_version}.tgz -o ${CHARTS_DIR}/${chart_name}-$chart_version.tgz
curl -sfL ${CHARTS_REPO}/"assets"/${chart_name}/${chart_name}-${chart_version}.tgz -o ${CHARTS_DIR}/${chart_name}-$chart_version.tgz
chart_content=$(base64 -w 0 ${CHARTS_DIR}/${chart_name}-${chart_version}.tgz)
sed -e "s|%{CHART_CONTENT}%|${chart_content}|g" ${MANIFEST_DIR}/${chart_name}.yml >${CHARTS_DIR}/${chart_name}-chart.yml
rm ${CHARTS_DIR}/${chart_name}-${chart_version}.tgz
Expand Down

0 comments on commit 86afc88

Please sign in to comment.