Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for convertToStringMap (0.1 sec)

  1. istioctl/pkg/workload/workload_test.go

    		{name: "one-key-only", arg: []string{"key"}, want: map[string]string{"key": ""}},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			if got := convertToStringMap(tt.arg); !reflect.DeepEqual(got, tt.want) {
    				t.Errorf("convertToStringMap() = %v, want %v", got, tt.want)
    			}
    		})
    	}
    }
    
    func TestSplitEqual(t *testing.T) {
    	tests := []struct {
    		arg       string
    		wantKey   string
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 01 20:04:20 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  2. istioctl/pkg/workload/workload.go

    						"namespace": namespace,
    					},
    				},
    			}
    			spec := &networkingv1alpha3.WorkloadGroup{
    				Metadata: &networkingv1alpha3.WorkloadGroup_ObjectMeta{
    					Labels:      convertToStringMap(resourceLabels),
    					Annotations: convertToStringMap(annotations),
    				},
    				Template: &networkingv1alpha3.WorkloadEntry{
    					Ports:          convertToUnsignedInt32Map(ports),
    					ServiceAccount: serviceAccount,
    				},
    			}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 15 16:31:46 UTC 2024
    - 25.3K bytes
    - Viewed (0)
Back to top