Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 30 for _values (0.15 sec)

  1. istioctl/pkg/multicluster/options.go

    	Kubeconfig string
    	Context    string
    	Namespace  string
    }
    
    // Inherit the common kubernetes flags defined in the root package. This is a bit of a hack,
    // but it allows us to directly get the final values for each of these flags without needing
    // to pass pointers-to-flags through all of the (sub)commands.
    func (o *KubeOptions) prepare(ctx cli.Context) {
    	o.Namespace = ctx.Namespace()
    	if o.Namespace == "" {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Aug 01 23:59:49 GMT 2023
    - 1.6K bytes
    - Viewed (0)
  2. operator/cmd/mesh/shared.go

    	if err != nil {
    		return "", "", err
    	}
    
    	b, err := os.ReadFile(filePath)
    	if err != nil {
    		return "", "", fmt.Errorf("could not read values from file %s: %s", filePath, err)
    	}
    	customResource = string(b)
    	istioNamespace = mergedIOPS.Namespace
    	return
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 29 02:29:02 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  3. istioctl/pkg/metrics/metrics.go

    	log.Debugf("executing query: %s  result:%s", query, val)
    
    	switch v := val.(type) {
    	case model.Vector:
    		if v.Len() < 1 {
    			log.Debugf("no values for query: %s", query)
    			return 0, nil
    		}
    
    		return float64(v[0].Value), nil
    	default:
    		return 0, errors.New("bad metric value type returned for query")
    	}
    }
    
    func convertLatencyToDuration(val float64) time.Duration {
    	return time.Duration(val) * time.Millisecond
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  4. istioctl/pkg/tag/generate.go

    	if err := r.Run(); err != nil {
    		return "", fmt.Errorf("failed running Helm renderer: %v", err)
    	}
    
    	values := fmt.Sprintf(`
    global:
      istioNamespace: %s
    revision: %q
    base:
      validationURL: %s
    `, config.IstioNamespace, config.Revision, config.URL)
    
    	validatingWebhookYAML, err := r.RenderManifestFiltered(values, func(tmplName string) bool {
    		return strings.Contains(tmplName, vwhTemplateName)
    	})
    	if err != nil {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jan 16 17:43:49 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  5. istioctl/pkg/multicluster/remote_secret.go

    		return "", fmt.Errorf("failed running base discovery Helm renderer: %w", err)
    	}
    
    	values := fmt.Sprintf(`
    global:
      istioNamespace: %s
    `, opt.Namespace)
    
    	// Render the templates required for the service account and role bindings.
    	baseContent, err := baseRenderer.RenderManifestFiltered(values, func(template string) bool {
    		for _, t := range baseTemplates {
    			if strings.Contains(template, t) {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Oct 11 01:43:17 GMT 2023
    - 24K bytes
    - Viewed (0)
  6. istioctl/cmd/options_test.go

          --log_target: The set of paths where to output the log. This can be any path as well as the special values stdout and stderr
    `
    
    func TestLogHelp(t *testing.T) {
    	var out bytes.Buffer
    	rootCmd := GetRootCmd([]string{"options"})
    	rootCmd.SetOut(&out)
    	rootCmd.SetErr(&out)
    
    	fErr := rootCmd.Execute()
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Sep 14 02:38:54 GMT 2022
    - 1.9K bytes
    - Viewed (0)
  7. istioctl/pkg/workload/workload.go

    	out := make(map[string]string, len(s))
    	for _, l := range s {
    		k, v := splitEqual(l)
    		out[k] = v
    	}
    	return out
    }
    
    // splitEqual splits key=value string into key,value. if no = is found
    // the whole string is the key and value is empty.
    func splitEqual(str string) (string, string) {
    	idx := strings.Index(str, "=")
    	var k string
    	var v string
    	if idx >= 0 {
    		k = str[:idx]
    		v = str[idx+1:]
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Apr 17 20:06:41 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  8. operator/cmd/mesh/test-util_test.go

    		return false, err
    	}
    	if reflect.TypeOf(got.Node) != reflect.TypeOf(pv.value) {
    		return false, fmt.Errorf("comparison types don't match: got %v(%T), want %v(%T)", got.Node, got.Node, pv.value, pv.value)
    	}
    	if !reflect.DeepEqual(got.Node, pv.value) {
    		return false, fmt.Errorf("values don't match: got %v, want %v", got.Node, pv.value)
    	}
    	return true, nil
    }
    
    // FailureMessage implements the Matcher interface.
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  9. istioctl/pkg/config/config.go

    	keys := make([]string, len(settableFlags))
    	i := 0
    	for key := range settableFlags {
    		keys[i] = key
    		i++
    	}
    	sort.Strings(keys)
    	w := new(tabwriter.Writer).Init(writer, 0, 8, 5, ' ', 0)
    	fmt.Fprintf(w, "FLAG\tVALUE\tFROM\n")
    	for _, flag := range keys {
    		v := settableFlags[flag]
    		fmt.Fprintf(w, "%s\t%s\t%v\n", flag, viper.GetString(flag), configSource(flag, v))
    	}
    	return w.Flush()
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sun Jul 30 12:16:07 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  10. istioctl/pkg/precheck/precheck.go

    	cmd.PersistentFlags().Var(&outputThreshold, "output-threshold",
    		fmt.Sprintf("The severity level of precheck at which to display messages. Valid values: %v", diag.GetAllLevelStrings()))
    	cmd.PersistentFlags().StringVarP(&msgOutputFormat, "output", "o", formatting.LogFormat,
    		fmt.Sprintf("Output format: one of %v", formatting.MsgOutputFormatKeys))
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 02:57:30 GMT 2024
    - 19.3K bytes
    - Viewed (0)
Back to top