mirror of https://github.com/helm/helm.git
				
				
				
			fix(install): if subcharts are disabled, the CRD for subcharts should not be installed
Signed-off-by: cndoit18 <cndoit18@outlook.com>
This commit is contained in:
		
							parent
							
								
									accf82ba1c
								
							
						
					
					
						commit
						da15d96a68
					
				|  | @ -198,6 +198,10 @@ func (i *Install) RunWithContext(ctx context.Context, chrt *chart.Chart, vals ma | |||
| 		return nil, err | ||||
| 	} | ||||
| 
 | ||||
| 	if err := chartutil.ProcessDependencies(chrt, vals); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 
 | ||||
| 	// Pre-install anything in the crd/ directory. We do this before Helm
 | ||||
| 	// contacts the upstream server and builds the capabilities object.
 | ||||
| 	if crds := chrt.CRDObjects(); !i.ClientOnly && !i.SkipCRDs && len(crds) > 0 { | ||||
|  | @ -226,10 +230,6 @@ func (i *Install) RunWithContext(ctx context.Context, chrt *chart.Chart, vals ma | |||
| 		i.cfg.Log("API Version list given outside of client only mode, this list will be ignored") | ||||
| 	} | ||||
| 
 | ||||
| 	if err := chartutil.ProcessDependencies(chrt, vals); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 
 | ||||
| 	// Make sure if Atomic is set, that wait is set as well. This makes it so
 | ||||
| 	// the user doesn't have to specify both
 | ||||
| 	i.Wait = i.Wait || i.Atomic | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue