Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for RawTemplates (0.34 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. tests/integration/ambient/baseline_test.go

    		})
    		// change the waypoint template
    		istio.GetOrFail(t, t).UpdateInjectionConfig(t, func(cfg *inject.Config) error {
    			mainTemplate := file.MustAsString(filepath.Join(env.IstioSrc, templateFile))
    			cfg.RawTemplates["waypoint"] = strings.ReplaceAll(mainTemplate, "terminationGracePeriodSeconds: 2", "terminationGracePeriodSeconds: 3")
    			return nil
    		}, cleanup.Always)
    
    		retry.UntilOrFail(t, func() bool {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 00:07:28 UTC 2024
    - 78.4K bytes
    - Viewed (0)
Back to top