How to prevent dependencies from being updated if no change in chart.yaml


BERCOVITZ David
 

Hello,

I'm running the following commands in a CI/CD environment:

helm dependency update $DEPLOY_NAME
helm upgrade $DEPLOY_NAME $DEPLOY_NAME -i -f values.yaml ${ADDITIONAL_VALUES_YAML_ARG} -n $VAL_NAMESPACE

I have a chart.yaml like the following:

apiVersion: v2
name: myName
description: Sample chart
type: application
version: "2.0"
appVersion: "2.0"
dependencies:
    - name: rabbitmq
      alias: rabbitmq
      version: 11.1.1
      repository: https://marketplace.azurecr.io/helm/v1/repo

Each time I run the helm upgrade command from above, pods and containers are recreated in the Kubernetes cluster although the chart.yaml has not changed. 
Is there a mean to prevent such behavior and only update the delta?

Thanks
David.