Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for label_values (0.16 sec)

  1. cni/pkg/config/config.go

    	var b strings.Builder
    	b.WriteString("Enabled: " + fmt.Sprint(c.Enabled) + "\n")
    	b.WriteString("NodeName: " + c.NodeName + "\n")
    	b.WriteString("LabelKey: " + c.LabelKey + "\n")
    	b.WriteString("LabelValue: " + c.LabelValue + "\n")
    	b.WriteString("DeletePods: " + fmt.Sprint(c.DeletePods) + "\n")
    	b.WriteString("LabelPods: " + fmt.Sprint(c.LabelPods) + "\n")
    	b.WriteString("SidecarAnnotation: " + c.SidecarAnnotation + "\n")
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  2. cni/pkg/repair/repaircontroller.go

    		return nil
    	}
    
    	repairLog.Infof("Labeling pod %s/%s with label %s=%s", pod.Namespace, pod.Name, c.cfg.LabelKey, c.cfg.LabelValue)
    
    	patchBytes := fmt.Sprintf(`{"metadata":{"labels":{%q:%q}}}`, c.cfg.LabelKey, c.cfg.LabelValue)
    	// Both "pods" and "pods/status" can mutate the metadata. However, pods/status is lower privilege, so we use that instead.
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  3. cni/pkg/repair/repair_test.go

    			config: config.RepairConfig{
    				InitContainerName:  constants.ValidationContainerName,
    				InitExitCode:       126,
    				InitTerminationMsg: "Died for some reason",
    				LabelKey:           "testkey",
    				LabelValue:         "testval",
    			},
    			wantLabels: map[string]string{workingPod.Name: "", workingPodDiedPreviously.Name: ""},
    			wantCount:  0,
    		},
    		{
    			name:   "With broken pods",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Oct 24 03:31:28 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  4. istioctl/pkg/metrics/metrics_test.go

    	return nil, nil, nil
    }
    
    func (client mockPromAPI) LabelValues(context.Context, string, []string, time.Time, time.Time) (prometheus_model.LabelValues, promv1.Warnings, error) {
    	return nil, nil, nil
    }
    
    func (client mockPromAPI) Buildinfo(ctx context.Context) (promv1.BuildinfoResult, error) {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Oct 25 02:07:44 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  5. cni/pkg/cmd/root.go

    		DeletePods:         viper.GetBool(constants.RepairDeletePods),
    		LabelPods:          viper.GetBool(constants.RepairLabelPods),
    		LabelKey:           viper.GetString(constants.RepairLabelKey),
    		LabelValue:         viper.GetString(constants.RepairLabelValue),
    		NodeName:           viper.GetString(constants.RepairNodeName),
    		SidecarAnnotation:  viper.GetString(constants.RepairSidecarAnnotation),
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 12.5K bytes
    - Viewed (0)
Back to top