Mohammed Naser | e04accd | 2023-01-15 20:07:27 -0500 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | # Copyright (c) 2023 VEXXHOST, Inc. |
| 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 6 | # not use this file except in compliance with the License. You may obtain |
| 7 | # a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 13 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 14 | # License for the specific language governing permissions and limitations |
| 15 | # under the License. |
| 16 | |
| 17 | # This script is used to sync the charts from the upstream repositories into |
| 18 | # the charts directory. It is used to update the charts to the versions which |
| 19 | # are defined in this file. |
| 20 | |
| 21 | set -xe |
| 22 | |
| 23 | # Determine the root path for Atmosphere |
| 24 | ATMOSPHERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." >/dev/null 2>&1 && pwd )" |
| 25 | |
| 26 | # Create work directory to avoid cluttering up workspace |
| 27 | WORKDIR=$(mktemp -d) |
| 28 | function cleanup { |
| 29 | rm -rfv ${WORKDIR} |
| 30 | } |
| 31 | trap cleanup EXIT |
| 32 | |
| 33 | # Clean-up all of the existing charts |
| 34 | rm -rfv ${ATMOSPHERE}/charts/* |
| 35 | |
| 36 | # Switch to folder where we will be syncing charts |
| 37 | pushd ${WORKDIR} |
| 38 | |
Mohammed Naser | 9ad0d46 | 2023-01-15 20:36:37 -0500 | [diff] [blame^] | 39 | CILIUM_VERSION=1.10.7 |
| 40 | curl -sL https://helm.cilium.io/cilium-${CILIUM_VERSION}.tgz \ |
| 41 | | tar -xz -C ${ATMOSPHERE}/charts |
| 42 | |
| 43 | CEPH_CSI_RBD_VERSION=3.5.1 |
| 44 | curl -sL https://ceph.github.io/csi-charts/rbd/ceph-csi-rbd-${CEPH_CSI_RBD_VERSION}.tgz \ |
| 45 | | tar -xz -C ${ATMOSPHERE}/charts |
| 46 | |
| 47 | NODE_FEATURE_DISCOVERY_VERSION=0.11.2 |
| 48 | curl -sL https://github.com/kubernetes-sigs/node-feature-discovery/releases/download/v${NODE_FEATURE_DISCOVERY_VERSION}/node-feature-discovery-chart-${NODE_FEATURE_DISCOVERY_VERSION}.tgz \ |
| 49 | | tar -xz -C ${ATMOSPHERE}/charts |
| 50 | |
| 51 | KUBE_PROMETHEUS_STACK_VERSION=41.7.3 |
| 52 | curl -sL https://github.com/prometheus-community/helm-charts/releases/download/kube-prometheus-stack-${KUBE_PROMETHEUS_STACK_VERSION}/kube-prometheus-stack-${KUBE_PROMETHEUS_STACK_VERSION}.tgz \ |
| 53 | | tar -xz -C ${ATMOSPHERE}/charts |
| 54 | |
| 55 | PROMETHEUS_PUSHGATEWAY_VERSION=1.16.0 |
| 56 | curl -sL https://github.com/prometheus-community/helm-charts/releases/download/prometheus-pushgateway-${PROMETHEUS_PUSHGATEWAY_VERSION}/prometheus-pushgateway-${PROMETHEUS_PUSHGATEWAY_VERSION}.tgz \ |
| 57 | | tar -xz -C ${ATMOSPHERE}/charts |
| 58 | |
| 59 | INGRESS_NGINX_VERSION=4.0.17 |
| 60 | curl -sL https://github.com/kubernetes/ingress-nginx/releases/download/helm-chart-${INGRESS_NGINX_VERSION}/ingress-nginx-${INGRESS_NGINX_VERSION}.tgz \ |
| 61 | | tar -xz -C ${ATMOSPHERE}/charts |
| 62 | |
| 63 | CERT_MANAGER_VERSION=v1.7.1 |
| 64 | curl -sL https://charts.jetstack.io/charts/cert-manager-${CERT_MANAGER_VERSION}.tgz \ |
| 65 | | tar -xz -C ${ATMOSPHERE}/charts |
| 66 | |
| 67 | RABBITMQ_CLUSTER_OPERATOR_VERSION=2.6.6 |
| 68 | curl -sL https://charts.bitnami.com/bitnami/rabbitmq-cluster-operator-${RABBITMQ_CLUSTER_OPERATOR_VERSION}.tgz \ |
| 69 | | tar -xz -C ${ATMOSPHERE}/charts |
| 70 | |
| 71 | PXC_OPERATOR_VERSION=1.10.0 |
| 72 | curl -sL https://github.com/Percona-Lab/percona-helm-charts/releases/download/pxc-operator-${PXC_OPERATOR_VERSION}/pxc-operator-${PXC_OPERATOR_VERSION}.tgz \ |
| 73 | | tar -xz -C ${ATMOSPHERE}/charts |
| 74 | |
| 75 | COREDNS_VERSION=1.19.4 |
| 76 | curl -sL https://github.com/coredns/helm/releases/download/coredns-${COREDNS_VERSION}/coredns-${COREDNS_VERSION}.tgz \ |
| 77 | | tar -xz -C ${ATMOSPHERE}/charts |
Mohammed Naser | e04accd | 2023-01-15 20:07:27 -0500 | [diff] [blame] | 78 | |
| 79 | # Switch back to original directory |
| 80 | popd |