Skip to content

Commit

Permalink
Use cert-manager 1.11 for k8s versions prior to 1.27
Browse files Browse the repository at this point in the history
  • Loading branch information
SaaldjorMike committed Sep 18, 2023
1 parent 17d76f5 commit 61c1622
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hack/install-helm-chart-dependencies-kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,14 @@ EOF
$helm_install_command --set humio-fluentbit.customFluentBitConfig.e2eFilterTag="$E2E_FILTER_TAG"
fi

K8S_VERSION=$(kubectl version --short=true | grep "Server Version:" | awk '{print $NF}' | sed 's/v//' | cut -d. -f1-2)
CERT_MANAGER_VERSION=v1.12.4
if [ 1 -eq "$(echo "${K8S_VERSION} < 1.27" | bc)" ] ; then CERT_MANAGER_VERSION=v1.11.5 ; fi
kubectl create namespace cert-manager
helm repo add jetstack https://charts.jetstack.io
helm repo update
helm_install_command="helm install cert-manager jetstack/cert-manager --namespace cert-manager \
--version v1.11.5 \
--version $CERT_MANAGER_VERSION \
--set installCRDs=true"

if [[ $DOCKER_USERNAME != "" ]] && [[ $DOCKER_PASSWORD != "" ]]; then
Expand Down

0 comments on commit 61c1622

Please sign in to comment.