helm cm-push support for helm v4 is not available yet.
Github workflows updated to use the helm version 3.19.2
Warning added in setup helm script to show that helm v4 may get some issues with cm-push
Issue-ID: NONRTRIC-1097
Change-Id: I399653f336089c46ac545fa6fd4a3a1c95900457
Signed-off-by: aravind.est <aravindhan.a@est.tech>
CHART_ARTIFACT_NAME: 'helm-charts'
CHARTMUSEUM_STORAGE_DIR: './chartmuseum-storage'
CHARTS_BUILD_DIR: './chartmuseum-storage'
+ HELM_VERSION: 'v3.19.2'
# Inherited from jenkins verify job
RIC_DEP_CI_DOCKER_FILE: 'ci/Dockerfile'
# yamllint disable-line rule:line-length
uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4.3.1
# Not explicitly used while testing updated Helm
- # with:
- # version: ${{ env.HELM_VERSION }}
+ with:
+ version: ${{ env.HELM_VERSION }}
- name: 'Set up Docker Buildx'
# yamllint disable-line rule:line-length
CHART_ARTIFACT_NAME: 'helm-charts'
CHARTMUSEUM_STORAGE_DIR: './chartmuseum-storage'
CHARTS_BUILD_DIR: './chartmuseum-storage'
+ HELM_VERSION: 'v3.19.2'
# Inherited from jenkins verify job
RIC_DEP_CI_DOCKER_FILE: 'ci/Dockerfile'
# yamllint disable-line rule:line-length
uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4.3.1
# Not explicitly used while testing updated Helm
- # with:
- # version: ${{ env.HELM_VERSION }}
+ with:
+ version: ${{ env.HELM_VERSION }}
- name: 'Set up Docker Buildx'
# yamllint disable-line rule:line-length
# Check whether helm is installed and if not install it
if command -v helm > /dev/null 2>&1; then
- echo "Helm is already installed. Skipping installation."
+ HELM_VERSION=$(helm version --template='{{.Version}}')
+ if [[ $HELM_VERSION == v4* ]]; then
+ echo -e "\033[43;31mWARNING: Helm v4 detected ($HELM_VERSION) \033[0m"
+ echo -e "\033[43;31mWARNING: Helm v4 is not fully supported yet as there could be some issues with helm cm-push plugin. \033[0m"
+ echo -e "\033[43;31mWARNING: It is better to stick with Helm v3 for now. \033[0m"
+ echo -e "\033[43;31mWARNING: Consider downgrading to Helm v3 if you encounter issues. \033[0m"
+ else
+ echo "Helm is already installed. Skipping installation."
+ fi
else
echo "Helm is not installed. Installing helm ..."
cd /tmp