26 lines
		
	
	
		
			677 B
		
	
	
	
		
			Go
		
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			677 B
		
	
	
	
		
			Go
		
	
	
	
| package app
 | |
| 
 | |
| import (
 | |
| 	"os"
 | |
| 	"strings"
 | |
| 
 | |
| 	"github.com/helmfile/helmfile/pkg/envvar"
 | |
| )
 | |
| 
 | |
| const (
 | |
| 	DefaultHelmfile = "helmfile.yaml"
 | |
| 	// TODO: Remove this function once Helmfile v0.x
 | |
| 	DeprecatedHelmfile = "charts.yaml"
 | |
| 
 | |
| 	DefaultHelmfileDirectory     = "helmfile.d"
 | |
| 	ExperimentalSelectorExplicit = "explicit-selector-inheritance" // value to remove default selector inheritance to sub-helmfiles and use the explicit one
 | |
| )
 | |
| 
 | |
| func experimentalModeEnabled() bool {
 | |
| 	return os.Getenv(envvar.Experimental) == "true"
 | |
| }
 | |
| 
 | |
| func isExplicitSelectorInheritanceEnabled() bool {
 | |
| 	return experimentalModeEnabled() || strings.Contains(os.Getenv(envvar.Experimental), ExperimentalSelectorExplicit)
 | |
| }
 |