Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for applyAnnotations (0.2 sec)

  1. pilot/cmd/pilot-agent/config/config.go

    			proxyConfig.StatsdUdpAddress = ""
    		} else {
    			proxyConfig.StatsdUdpAddress = addr
    		}
    	}
    	if err := agent.ValidateMeshConfigProxyConfig(proxyConfig); err != nil {
    		return nil, err
    	}
    	return applyAnnotations(proxyConfig, annotations), nil
    }
    
    // getMeshConfig gets the mesh config to use for proxy configuration
    // 1. First we take the default config
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. pkg/test/util/yml/apply.go

    func MustApplyNamespace(t test.Failer, yamlText, ns string) string {
    	y, err := ApplyNamespace(yamlText, ns)
    	if err != nil {
    		t.Fatalf("ApplyNamespace: %v for text %v", err, yamlText)
    	}
    	return y
    }
    
    func ApplyAnnotation(yamlText, k, v string) (string, error) {
    	m := make(map[string]any)
    	if err := yaml.Unmarshal([]byte(yamlText), &m); err != nil {
    		return "", err
    	}
    
    	meta, err := ensureChildMap(m, "metadata")
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 17 07:02:38 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  3. tests/integration/pilot/validation_test.go

    							ym, err := d.load()
    							if err != nil {
    								t.Fatalf("Unable to load test data: %v", err)
    							}
    
    							if !valid {
    								ym, err = yml.ApplyAnnotation(ym, constants.AlwaysReject, "true")
    								if err != nil {
    									t.Fatal(err)
    								}
    							}
    
    							ns := namespace.NewOrFail(t, t, namespace.Config{
    								Prefix: "validation",
    							})
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Dec 13 15:19:36 UTC 2023
    - 6.7K bytes
    - Viewed (0)
Back to top