Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 2,734 for tmpl (0.05 sec)

  1. pilot/pkg/config/kube/gateway/deploymentcontroller.go

    	"istio.io/istio/pkg/kube/inject"
    	"istio.io/istio/pkg/kube/kclient"
    	istiolog "istio.io/istio/pkg/log"
    	"istio.io/istio/pkg/maps"
    	"istio.io/istio/pkg/revisions"
    	"istio.io/istio/pkg/test/util/tmpl"
    	"istio.io/istio/pkg/test/util/yml"
    	"istio.io/istio/pkg/util/sets"
    )
    
    // DeploymentController implements a controller that materializes a Gateway into an in cluster gateway proxy
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 21:43:20 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  2. pkg/kube/inject/inject.go

    	if err != nil {
    		log.Infof("Failed to parse template: %v %v\n", err, tmplStr)
    		return nil, err
    	}
    
    	return t, nil
    }
    
    func runTemplate(tmpl *template.Template, data SidecarTemplateData) (bytes.Buffer, error) {
    	var res bytes.Buffer
    	if err := tmpl.Execute(&res, &data); err != nil {
    		log.Errorf("Invalid template: %v", err)
    		return bytes.Buffer{}, err
    	}
    
    	return res, nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 20:35:11 UTC 2024
    - 28.8K bytes
    - Viewed (1)
  3. plugin/pkg/admission/imagepolicy/admission_test.go

    				if err != nil {
    					return err
    				}
    				p := tempfile.Name()
    				defer utiltesting.CloseAndRemove(t, tempfile)
    
    				tmpl, err := template.New("test").Parse(tt.kubeConfigTmpl)
    				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)
    				}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 06:05:06 UTC 2023
    - 32.9K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/sidecar_simulation_test.go

    	"istio.io/istio/pkg/config/mesh"
    	"istio.io/istio/pkg/config/protocol"
    	"istio.io/istio/pkg/config/schema/gvk"
    	"istio.io/istio/pkg/kube"
    	"istio.io/istio/pkg/test"
    	"istio.io/istio/pkg/test/util/tmpl"
    	"istio.io/istio/pkg/util/protomarshal"
    )
    
    func flattenInstances(il ...[]*model.ServiceInstance) []*model.ServiceInstance {
    	ret := []*model.ServiceInstance{}
    	for _, i := range il {
    		ret = append(ret, i...)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 84.7K bytes
    - Viewed (0)
  5. pkg/kube/inject/inject_test.go

    	}
    	if len(allOutputFiles) != 0 {
    		t.Fatalf("stale golden files found: %v", allOutputFiles.UnsortedList())
    	}
    }
    
    func testInjectionTemplate(t *testing.T, template, input, expected string) {
    	t.Helper()
    	tmpl, err := ParseTemplates(map[string]string{SidecarTemplateName: template})
    	if err != nil {
    		t.Fatal(err)
    	}
    	env := &model.Environment{}
    	env.SetPushContext(&model.PushContext{
    		ProxyConfigs: &model.ProxyConfigs{},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 20:35:11 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook_v1_test.go

    			if err != nil {
    				return err
    			}
    			p := tempfile.Name()
    			defer utiltesting.CloseAndRemove(t, tempfile)
    
    			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: Wed Apr 24 18:25:29 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  7. src/embed/embed.go

    //
    // For example, given the content variable in the example above, we can write:
    //
    //	http.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.FS(content))))
    //
    //	template.ParseFS(content, "*.tmpl")
    //
    // # Tools
    //
    // To support tools that analyze Go packages, the patterns found in //go:embed lines
    // are available in “go list” output. See the EmbedPatterns, TestEmbedPatterns,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:42:51 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  8. src/cmd/go/internal/list/list.go

    			"context": context,
    			"module":  func(path string) *modinfo.ModulePublic { return modload.ModuleInfo(ctx, path) },
    		}
    		tmpl, err := template.New("main").Funcs(fm).Parse(*listFmt)
    		if err != nil {
    			base.Fatalf("%s", err)
    		}
    		do = func(x any) {
    			if err := tmpl.Execute(out, x); err != nil {
    				out.Flush()
    				base.Fatalf("%s", err)
    			}
    			if out.NeedNL() {
    				out.Write(nl)
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 16:56:39 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  9. src/crypto/internal/nistec/generate.go

    		exp.Div(exp, big.NewInt(4))
    
    		tmp, err := os.CreateTemp("", "addchain-"+p)
    		if err != nil {
    			log.Fatal(err)
    		}
    		defer os.Remove(tmp.Name())
    		cmd := exec.Command("addchain", "search", fmt.Sprintf("%d", exp))
    		cmd.Stderr = os.Stderr
    		cmd.Stdout = tmp
    		if err := cmd.Run(); err != nil {
    			log.Fatal(err)
    		}
    		if err := tmp.Close(); err != nil {
    			log.Fatal(err)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/internal/gtest-type-util.h

    // The template "selector" struct TemplateSel<Tmpl> is used to
    // represent Tmpl, which must be a class template with one type
    // parameter, as a type.  TemplateSel<Tmpl>::Bind<T>::type is defined
    // as the type Tmpl<T>.  This allows us to actually instantiate the
    // template "selected" by TemplateSel<Tmpl>.
    //
    // This trick is necessary for simulating typedef for class templates,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 181.3K bytes
    - Viewed (0)
Back to top