Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for tomar (0.15 sec)

  1. operator/cmd/mesh/test-util_test.go

    	g.Expect(err).Should(BeNil(), "path %s should exist (%s)", path, err)
    	g.Expect(f).Should(BeTrue(), "path %s should exist", path)
    	return got.Node
    }
    
    // toMap transforms a comma separated key:value list (e.g. "a:aval, b:bval") to a map.
    func toMap(s string) map[string]any {
    	out := make(map[string]any)
    	for _, l := range strings.Split(s, ",") {
    		l = strings.TrimSpace(l)
    		kv := strings.Split(l, ":")
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  2. operator/cmd/mesh/manifest-generate_test.go

    		g.Expect(d).Should(HavePathValueContain(PathValue{"metadata.labels", toMap("app:istio-ingressgateway,istio:ingressgateway,release: istio")}))
    		g.Expect(c).Should(HavePathValueEqual(PathValue{"resources.requests.cpu", "333m"}))
    		g.Expect(c).Should(HavePathValueEqual(PathValue{"env.[name:PILOT_CERT_PROVIDER].value", "foobar"}))
    		g.Expect(s).Should(HavePathValueContain(PathValue{"metadata.annotations", toMap("cloud.google.com/load-balancer-type: internal")}))
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Thu Feb 22 08:32:23 GMT 2024
    - 42K bytes
    - Viewed (0)
Back to top