Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for rawTemplate (0.21 sec)

  1. pkg/controller/history/controller_history_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	ss1Rev1, err := NewControllerRevision(ss1, parentKind, ss1.Spec.Template.Labels, rawTemplate(&ss1.Spec.Template), 1, nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	ss1Rev1.Namespace = ss1.Namespace
    	ss1Rev2, err := NewControllerRevision(ss1, parentKind, ss1.Spec.Template.Labels, rawTemplate(&ss1.Spec.Template), 2, nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	ss1Rev2.Namespace = ss1.Namespace
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 21 13:31:28 UTC 2023
    - 49.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/cli-runtime/pkg/printers/template.go

    		fmt.Fprintf(w, "\ttemplate was:\n\t\t%v\n", p.rawTemplate)
    		fmt.Fprintf(w, "\traw data was:\n\t\t%v\n", string(data))
    		fmt.Fprintf(w, "\tobject given to template engine was:\n\t\t%+v\n\n", out)
    		return fmt.Errorf("error executing template %q: %v", p.rawTemplate, err)
    	}
    	return nil
    }
    
    // safeExecute tries to execute the template, but catches panics and returns an error
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 23:00:24 UTC 2019
    - 3.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/cli-runtime/pkg/printers/jsonpath.go

    type JSONPathPrinter struct {
    	rawTemplate string
    	*jsonpath.JSONPath
    }
    
    func NewJSONPathPrinter(tmpl string) (*JSONPathPrinter, error) {
    	j := jsonpath.New("out")
    	if err := j.Parse(tmpl); err != nil {
    		return nil, err
    	}
    	return &JSONPathPrinter{
    		rawTemplate: tmpl,
    		JSONPath:    j,
    	}, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 25 16:23:43 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  4. pkg/controller/statefulset/stateful_set_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	ss1Rev1.Namespace = ss1.Namespace
    	ss1.Spec.Template.Annotations = make(map[string]string)
    	ss1.Spec.Template.Annotations["ss1"] = "ss1"
    	ss1Rev2, err := history.NewControllerRevision(ss1, parentKind, ss1.Spec.Template.Labels, rawTemplate(&ss1.Spec.Template), 2, ss1.Status.CollisionCount)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  5. istioctl/pkg/kubeinject/kubeinject.go

    			valuesConfigMapKey, injectConfigMapName)
    	}
    
    	return valuesData, nil
    }
    
    func readInjectConfigFile(f []byte) (inject.RawTemplates, error) {
    	var injectConfig inject.Config
    	err := yaml.Unmarshal(f, &injectConfig)
    	if err != nil || len(injectConfig.RawTemplates) == 0 {
    		// This must be a direct template, instead of an inject.Config. We support both formats
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 29 02:29:02 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  6. pkg/kube/inject/inject.go

    	DefaultTemplates []string `json:"defaultTemplates"`
    
    	// RawTemplates defines a set of templates to be used. The specified template will be run, provided with
    	// SidecarTemplateData, and merged with the original pod spec using a strategic merge patch.
    	RawTemplates RawTemplates `json:"templates"`
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 20:35:11 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  7. pkg/test/framework/components/echo/deployment/builder.go

    			if err != nil {
    				return nil, fmt.Errorf("failed parsing injection cm in %s: %v", c.Name(), err)
    			}
    			if data.RawTemplates != nil {
    				t := sets.New[string]()
    				for name := range data.RawTemplates {
    					t.Insert(name)
    				}
    				// either intersection has not been set or we intersect these templates
    				// with the current set.
    				if intersection.IsEmpty() {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 12K bytes
    - Viewed (0)
  8. pkg/kube/inject/webhook.go

    	log.Debugf("Policy: %v", c.Policy)
    	log.Debugf("AlwaysInjectSelector: %v", c.AlwaysInjectSelector)
    	log.Debugf("NeverInjectSelector: %v", c.NeverInjectSelector)
    	log.Debugf("Templates: %v", c.RawTemplates)
    	return &c, nil
    }
    
    // WebhookParameters configures parameters for the sidecar injection
    // webhook.
    type WebhookParameters struct {
    	// Watcher watches the sidecar injection configuration.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 17:59:39 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  9. pkg/kube/inject/webhook_test.go

    	"istio.io/istio/pkg/test/util/file"
    )
    
    const yamlSeparator = "\n---"
    
    var minimalSidecarTemplate = &Config{
    	Policy:           InjectionPolicyEnabled,
    	DefaultTemplates: []string{SidecarTemplateName},
    	RawTemplates: map[string]string{SidecarTemplateName: `
    spec:
      initContainers:
      - name: istio-init
      containers:
      - name: istio-proxy
      volumes:
      - name: istio-envoy
      imagePullSecrets:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 39K bytes
    - Viewed (1)
  10. pilot/pkg/bootstrap/server.go

    type webhookInfo struct {
    	mu sync.RWMutex
    	wh *inject.Webhook
    }
    
    func (w *webhookInfo) GetTemplates() map[string]string {
    	w.mu.RLock()
    	defer w.mu.RUnlock()
    	if w.wh != nil {
    		return w.wh.Config.RawTemplates
    	}
    	return map[string]string{}
    }
    
    func (w *webhookInfo) getWebhookConfig() inject.WebhookConfig {
    	w.mu.RLock()
    	defer w.mu.RUnlock()
    	if w.wh != nil {
    		return w.wh.GetConfig()
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 46.3K bytes
    - Viewed (0)
Back to top