Helm3 release history is only showing the last 10 revisions

10/2/2020

There is probably a very straightforward answer, but I'm having trouble with it.

Helm is only showing the last 10 revisions if the --max flag value provided is greater than 10. Does helm only store the last 10 revisions?

$ helm history airflow --max 256 -o table
REVISION	UPDATED                 	STATUS         	CHART        	APP VERSION	DESCRIPTION
76      	Thu Oct  1 12:52:51 2020	pending-upgrade	airflow-7.9.0	1.10.12    	Preparing upgrade
77      	Thu Oct  1 16:01:55 2020	superseded     	airflow-7.9.0	1.10.12    	Upgrade complete
78      	Thu Oct  1 16:02:52 2020	superseded     	airflow-7.9.0	1.10.12    	Upgrade complete
79      	Thu Oct  1 16:32:53 2020	superseded     	airflow-7.9.0	1.10.12    	Upgrade complete
80      	Thu Oct  1 16:52:51 2020	superseded     	airflow-7.9.0	1.10.12    	Upgrade complete
81      	Fri Oct  2 11:06:38 2020	superseded     	airflow-7.9.0	1.10.12    	Upgrade complete
82      	Fri Oct  2 11:08:56 2020	superseded     	airflow-7.9.0	1.10.12    	Upgrade complete
83      	Fri Oct  2 11:16:41 2020	superseded     	airflow-7.9.0	1.10.12    	Upgrade complete
84      	Fri Oct  2 11:25:19 2020	superseded     	airflow-7.9.0	1.10.12    	Upgrade complete
85      	Fri Oct  2 12:07:29 2020	deployed       	airflow-7.9.0	1.10.12    	Upgrade complete
-- Joshua Howard
kubectl
kubernetes
kubernetes-helm

1 Answer

10/2/2020

The default saved history len is 10 (starting Helm3). The flag is only available in helm upgrade (dunno why they didn't add to install too):

$ helm upgrade --help  | grep history-max
      --history-max int              limit the maximum number of revisions saved per release. Use 0 for no limit (default 10)
-- Max Lobur
Source: StackOverflow