Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 2,746 for tmpl (0.04 sec)

  1. cmd/kubeadm/app/cmd/config_test.go

    			if err = i.Run(&output, printer); err != nil {
    				t.Fatalf("did not expect an error running the Images command: %v", err)
    			}
    
    			tmpl, err := template.New("test").Parse(tc.expectedOutput)
    			if err != nil {
    				t.Fatalf("could not create template: %v", err)
    			}
    			if err = tmpl.Execute(&expectedOutput, versionMapping); err != nil {
    				t.Fatalf("could not execute template: %v", err)
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 13K bytes
    - Viewed (0)
  2. tests/integration/telemetry/policy/helper_test.go

    	"istio.io/istio/pkg/test/framework/components/environment/kube"
    	"istio.io/istio/pkg/test/framework/components/namespace"
    	"istio.io/istio/pkg/test/framework/components/prometheus"
    	"istio.io/istio/pkg/test/util/tmpl"
    	util "istio.io/istio/tests/integration/telemetry"
    )
    
    const (
    	// ServiceEntry is used to create conflicts on various ports
    	// As defined below, the tcp-conflict and https-conflict ports are 9443 and 9091
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  3. pilot/pkg/config/kube/gateway/deploymentcontroller_test.go

    		if err != nil {
    			t.Fatal(err)
    		}
    	} else {
    		vc, err = inject.NewValuesConfig(`
    global:
      hub: test
      tag: test`)
    		if err != nil {
    			t.Fatal(err)
    		}
    
    	}
    	tmpl, err := inject.ParseTemplates(map[string]string{
    		"kube-gateway": file.AsStringOrFail(t, filepath.Join(env.IstioSrc, "manifests/charts/istio-control/istio-discovery/files/kube-gateway.yaml")),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 21:43:20 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  4. tests/integration/pilot/common/routing.go

    			t.RunTraffic(TrafficTestCase{
    				name:   "source ip " + c.Config().Service,
    				config: svc + tmpl.MustEvaluate(destRule, "useSourceIp: true"),
    				call:   c.CallOrFail,
    				opts:   callOpts,
    			})
    			t.RunTraffic(TrafficTestCase{
    				name:   "query param" + c.Config().Service,
    				config: svc + tmpl.MustEvaluate(destRule, "httpQueryParameterName: some-query-param"),
    				call:   c.CallOrFail,
    				opts:   callOpts,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 21:52:51 UTC 2024
    - 135.9K bytes
    - Viewed (0)
  5. security/pkg/pki/util/generate_cert.go

    	signingKey crypto.PrivateKey, subjectIDs []string, ttl time.Duration, isCA bool,
    ) (cert []byte, err error) {
    	tmpl, err := genCertTemplateFromCSR(csr, subjectIDs, ttl, isCA)
    	if err != nil {
    		return nil, err
    	}
    	return x509.CreateCertificate(rand.Reader, tmpl, signingCert, publicKey, signingKey)
    }
    
    // LoadSignerCredsFromFiles loads the signer cert&key from the given files.
    //
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 02 14:34:38 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  6. src/cmd/link/elf_test.go

    	}
    
    	t.Parallel()
    
    	tmpl := template.Must(template.New("pie").Parse(pieSourceTemplate))
    
    	writeGo := func(t *testing.T, dir string) {
    		f, err := os.Create(filepath.Join(dir, "pie.go"))
    		if err != nil {
    			t.Fatal(err)
    		}
    
    		// Passing a 100-element slice here will cause
    		// pieSourceTemplate to create 100 variables with
    		// different types.
    		if err := tmpl.Execute(f, make([]byte, 100)); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 16:34:01 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  7. src/crypto/tls/tls_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	keyPEM := pem.EncodeToMemory(&pem.Block{Type: "PRIVATE KEY", Bytes: keyDER})
    	tmpl := &x509.Certificate{
    		SerialNumber: big.NewInt(1),
    		Subject:      pkix.Name{CommonName: "test"},
    	}
    	certDER, err := x509.CreateCertificate(rand.Reader, tmpl, tmpl, key.Public(), key)
    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 60.5K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/util/pkiutil/pki_helpers.go

    		NotAfter:              notAfter,
    		KeyUsage:              keyUsage,
    		BasicConstraintsValid: true,
    		IsCA:                  true,
    	}
    
    	certDERBytes, err := x509.CreateCertificate(cryptorand.Reader, &tmpl, &tmpl, key.Public(), key)
    	if err != nil {
    		return nil, err
    	}
    	return x509.ParseCertificate(certDERBytes)
    }
    
    // RemoveDuplicateAltNames removes duplicate items in altNames.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook_v1beta1_test.go

    			if err != nil {
    				return err
    			}
    			p := tempfile.Name()
    			defer os.Remove(p)
    
    			tmpl, err := template.New("test").Parse(tt.configTmpl)
    			if err != nil {
    				return fmt.Errorf("failed to parse test template: %v", err)
    			}
    			if err := tmpl.Execute(tempfile, data); err != nil {
    				return fmt.Errorf("failed to execute test template: %v", err)
    			}
    			// Create a new authorizer
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 22:41:27 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  10. pilot/pkg/xds/bench_test.go

    		return cached, k8sConfigCache[input]
    	}
    	configName := input.ConfigName
    	if configName == "" {
    		configName = input.Name
    	}
    	tmpl := template.Must(template.New("").Funcs(sprig.TxtFuncMap()).ParseFiles(path.Join("testdata", "benchmarks", configName+".yaml")))
    	var buf bytes.Buffer
    	if err := tmpl.ExecuteTemplate(&buf, configName+".yaml", input); err != nil {
    		t.Fatalf("failed to execute template: %v", err)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 22 18:13:40 UTC 2024
    - 19.7K bytes
    - Viewed (0)
Back to top