Skip to content

Commit

Permalink
Bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mmontes11 committed May 11, 2024
1 parent 931046e commit 181cf0f
Showing 1 changed file with 33 additions and 34 deletions.
67 changes: 33 additions & 34 deletions kubernetes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,34 @@ if [ -z $ARCH ]; then
exit 1
fi

# openshift-local
CRC_VERSION=2.29.0
CRC_URL=https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/crc/$CRC_VERSION/crc-linux-$ARCH.tar.xz
curl -Lo /tmp/crc.tar.xz $CRC_URL
tar -C /tmp -xvf /tmp/crc.tar.xz
mv /tmp/crc-linux-$CRC_VERSION-$ARCH/crc /usr/local/bin
chmod +x /usr/local/bin/crc

# oc
OC_URL=https://mirror.openshift.com/pub/openshift-v4/$(uname -m)/clients/ocp/stable-4.15/openshift-client-linux-4.15.11.tar.gz
install_tar oc $OC_URL

# opm
OPM_URL=https://mirror.openshift.com/pub/openshift-v4/$(uname -m)/clients/ocp/stable-4.15/opm-linux-4.15.11.tar.gz
install_tar opm $OPM_URL

# operator-sdk
OPERATOR_SDK_VERSION=${OPERATOR_SDK_VERSION:-v1.34.1}
OPERATOR_SDK_URL=https://github.com/operator-framework/operator-sdk/releases/download/$OPERATOR_SDK_VERSION/operator-sdk_linux_$ARCH
install_bin operator-sdk $OPERATOR_SDK_URL

# kubectl
KUBECTL_VERSION=${KUBECTL_VERSION:-v1.28.0}
KUBECTL_VERSION=${KUBECTL_VERSION:-v1.30.0}
KUBECTL_URL=https://dl.k8s.io/release/$KUBECTL_VERSION/bin/linux/$ARCH/kubectl
install_bin kubectl $KUBECTL_URL

# helm
HELM_VERSION=${HELM_VERSION:-v3.13.2}
HELM_VERSION=${HELM_VERSION:-v3.14.4}
HELM_URL=https://get.helm.sh/helm-$HELM_VERSION-linux-$ARCH.tar.gz
install_tar helm $HELM_URL linux-$ARCH

Expand All @@ -77,63 +98,41 @@ KUBENS_URL=https://github.com/ahmetb/kubectx/releases/download/$KUBECTX_VERSION/
install_bin kubens $KUBENS_URL

# kind
KIND_VERSION=${KIND_VERSION:-v0.20.0}
KIND_VERSION=${KIND_VERSION:-v0.22.0}
KIND_URL=https://kind.sigs.k8s.io/dl/$KIND_VERSION/kind-linux-$ARCH
install_bin kind $KIND_URL

# kustomize
KUSMTOMIZE_URL=${KUSMTOMIZE_URL:-https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv5.2.1/kustomize_v5.2.1_linux_$ARCH.tar.gz}
KUSMTOMIZE_URL=${KUSMTOMIZE_URL:-https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv5.4.1/kustomize_v5.4.1_linux_$ARCH.tar.gz}
install_tar kustomize $KUSMTOMIZE_URL

# kubebuilder
KUBEBUILDER_VERSION=${KUBEBUILDER_VERSION:-v3.13.0}
KUBEBUILDER_VERSION=${KUBEBUILDER_VERSION:-v3.14.2}
KUBEBUILDER_URL=https://github.com/kubernetes-sigs/kubebuilder/releases/download/$KUBEBUILDER_VERSION/kubebuilder_linux_$ARCH
install_bin kubebuilder $KUBEBUILDER_URL

# operator-sdk
OPERATOR_SDK_VERSION=${OPERATOR_SDK_VERSION:-v1.32.0}
OPERATOR_SDK_URL=https://github.com/operator-framework/operator-sdk/releases/download/$OPERATOR_SDK_VERSION/operator-sdk_linux_$ARCH
install_bin operator-sdk $OPERATOR_SDK_URL

# openshift-local via code-ready-containers
echo "Installing 'code-ready-containers'"
CRC_VERSION=2.29.0
CRC_URL=https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/crc/$CRC_VERSION/crc-linux-$ARCH.tar.xz
curl -Lo /tmp/crc.tar.xz $CRC_URL
tar -C /tmp -xvf /tmp/crc.tar.xz
mv /tmp/crc-linux-$CRC_VERSION-$ARCH/crc /usr/local/bin
chmod +x /usr/local/bin/crc

# oc
OC_URL=https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/latest-4.9/openshift-client-linux-4.9.59.tar.gz
install_tar oc $OC_URL

# opm
OPM_URL=https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/latest-4.9/opm-linux-4.9.59.tar.gz
install_tar opm $OPM_URL

# cilium
CILIUM_VERSION=${CILIUM_VERSION:-v0.15.10}
CILIUM_VERSION=${CILIUM_VERSION:-v0.16.7}
CILIUM_URL=${CILIUM_URL:-https://github.com/cilium/cilium-cli/releases/download/$CILIUM_VERSION/cilium-linux-$ARCH.tar.gz}
install_tar cilium $CILIUM_URL

# flux
FLUX_VERSION=${FLUX_VERSION:-2.1.2}
FLUX_VERSION=${FLUX_VERSION:-2.2.3}
FLUX_URL=https://github.com/fluxcd/flux2/releases/download/v${FLUX_VERSION}/flux_${FLUX_VERSION}_linux_$ARCH.tar.gz
install_tar flux $FLUX_URL

# cert-manager
CM_VERSION=${CM_VERSION:-v1.13.2}
CM_URL=https://github.com/cert-manager/cert-manager/releases/download/$CM_VERSION/cmctl-linux-$ARCH.tar.gz
CM_VERSION=${CM_VERSION:-v1.14.5}
CM_URL=https://github.com/cert-manager/cert-manager/releases/download/$CM_VERSION/cert-manager-cmctl-linux-$ARCH.tar.gz
install_tar cmctl $CM_URL

# kubeseal
KUBESEAL_VERSION=${KUBESEAL_VERSION:-0.24.4}
KUBESEAL_VERSION=${KUBESEAL_VERSION:-0.26.2}
KUBESEAL_URL=https://github.com/bitnami-labs/sealed-secrets/releases/download/v$KUBESEAL_VERSION/kubeseal-$KUBESEAL_VERSION-linux-$ARCH.tar.gz
install_tar kubeseal $KUBESEAL_URL

# vcluster
VCLUSTER_VERSION=${VCLUSTER_VERSION:-v0.17.1}
VCLUSTER_VERSION=${VCLUSTER_VERSION:-v0.19.5}
VCLUSTER_URL=https://github.com/loft-sh/vcluster/releases/download/$VCLUSTER_VERSION/vcluster-linux-$ARCH
install_bin vcluster $VCLUSTER_URL

Expand All @@ -142,7 +141,7 @@ MC_URL=https://dl.min.io/client/mc/release/linux-$ARCH/mc
install_bin mc $MC_URL

# talos
TALOS_VERSION=${TALOS_VERSION:-v1.7.0}
TALOS_VERSION=${TALOS_VERSION:-v1.7.1}
TALOS_URL=https://github.com/siderolabs/talos/releases/download/$TALOS_VERSION/talosctl-linux-$ARCH
echo $TALOS_URL
install_bin talosctl $TALOS_URL
Expand Down

0 comments on commit 181cf0f

Please sign in to comment.