argoproj / argo-cd

Declarative Continuous Deployment for Kubernetes
https://argo-cd.readthedocs.io
Apache License 2.0
17.9k stars 5.46k forks source link

add possibility to pin subchart version or/and app version #18164

Open maratsal opened 6 months ago

maratsal commented 6 months ago

Not sure if this makes sense or possible, but there is a use case for this for sure.

Summary

It would be great if we have possibility to pin sub chart version (and/or app version) when we are using umbrella chart with subcharts to deploy the application.

Motivation

Currently if there is a chart with multiple subcharts it is not possible to pin the version of the sub chart. Pinning version of the subchart is helping to pin version of the subchart application.

Proposal

Argo CD would check available versions of the subcharts and deploy version of the subchart that is set in the app details.

crenshaw-dev commented 6 months ago

Can't you pin the versions in the umbrella chart?

maratsal commented 6 months ago

I believe only in dependencies sections of Chart.yaml - https://stackoverflow.com/questions/70956755/how-can-we-override-dependencies-version-in-helm-chart-chart-yaml-file

or - https://github.com/helm/helm/issues/9849

It might be helm limitation, was just curious if we can overcome it by using Argo CD.

crenshaw-dev commented 6 months ago

Why is pinning in Chart.yaml not a viable option?

maratsal commented 6 months ago

if we are installing chart from chart repository, how can we pin it with Chart.yaml (during installation)? how can we do it with Argo CD?