Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for precedence (0.24 sec)

  1. istioctl/pkg/config/config.go

    		fmt.Fprintf(w, "%s\t%s\t%v\n", flag, viper.GetString(flag), configSource(flag, v))
    	}
    	return w.Flush()
    }
    
    func configSource(flag string, v env.VariableInfo) string {
    	// Environment variables have high precedence in Viper
    	if v.IsSet() {
    		return "$" + v.GetName()
    	}
    
    	if viper.InConfig(flag) {
    		return root.IstioConfig
    	}
    
    	return "default"
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Sun Jul 30 12:16:07 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  2. internal/config/config.go

    	ValueSourceCfg
    	ValueSourceEnv
    )
    
    // ResolveConfigParam returns the effective value of a configuration parameter,
    // within a subsystem and subsystem target. The effective value is, in order of
    // decreasing precedence:
    //
    // 1. the value of the corresponding environment variable if set,
    // 2. the value of the parameter in the config store if set,
    // 3. the default value,
    //
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Mar 02 05:11:03 GMT 2024
    - 37.3K bytes
    - Viewed (0)
Back to top