fetch should honor devel flag
This commit is contained in:
		
							parent
							
								
									53ad91607a
								
							
						
					
					
						commit
						af69d1ba97
					
				|  | @ -450,6 +450,10 @@ func (st *HelmState) downloadCharts(helm helmexec.Interface, dir string, concurr | ||||||
| 						chartPath = path.Join(dir, release.Name, "latest", release.Chart) | 						chartPath = path.Join(dir, release.Name, "latest", release.Chart) | ||||||
| 					} | 					} | ||||||
| 
 | 
 | ||||||
|  | 					if st.isDevelopment(release) { | ||||||
|  | 						fetchFlags = append(fetchFlags, "--devel") | ||||||
|  | 					} | ||||||
|  | 
 | ||||||
| 					// only fetch chart if it is not already fetched
 | 					// only fetch chart if it is not already fetched
 | ||||||
| 					if _, err := os.Stat(chartPath); os.IsNotExist(err) { | 					if _, err := os.Stat(chartPath); os.IsNotExist(err) { | ||||||
| 						fetchFlags = append(fetchFlags, "--untar", "--untardir", chartPath) | 						fetchFlags = append(fetchFlags, "--untar", "--untardir", chartPath) | ||||||
|  | @ -463,7 +467,6 @@ func (st *HelmState) downloadCharts(helm helmexec.Interface, dir string, concurr | ||||||
| 						chartPath = filepath.Dir(fullChartPath) | 						chartPath = filepath.Dir(fullChartPath) | ||||||
| 					} | 					} | ||||||
| 				} | 				} | ||||||
| 
 |  | ||||||
| 				results <- &downloadResults{release.Name, chartPath} | 				results <- &downloadResults{release.Name, chartPath} | ||||||
| 			} | 			} | ||||||
| 		}, | 		}, | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue