Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for rawTemplate (0.2 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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