Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for GetNodeMetaData (0.17 sec)

  1. pkg/bootstrap/config_test.go

    	tempDir := t.TempDir()
    	os.Chdir(tempDir)
    	os.MkdirAll("./etc/istio/pod/", os.ModePerm)
    	os.WriteFile(constants.PodInfoLabelsPath, []byte(`istio-locality="region.zone.subzone"`), 0o600)
    
    	node, err := GetNodeMetaData(MetadataOptions{
    		ID:                          "test",
    		Envs:                        os.Environ(),
    		ExitOnZeroActiveConnections: true,
    	})
    
    	g := NewWithT(t)
    	g.Expect(err).Should(BeNil())
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 20:38:02 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. pkg/bootstrap/instance_test.go

    			if err != nil {
    				t.Fatal(err)
    			}
    			defer os.Remove(annoFile.Name())
    			for k, v := range c.annotations {
    				annoFile.WriteString(fmt.Sprintf("%s=%q\n", k, v))
    			}
    
    			node, err := GetNodeMetaData(MetadataOptions{
    				ID:          "sidecar~1.2.3.4~foo~bar",
    				Envs:        localEnv,
    				Platform:    plat,
    				InstanceIPs: []string{"10.3.3.3", "10.4.4.4", "10.5.5.5", "10.6.6.6", "10.4.4.4"},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 17:05:28 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-groovy/src/main/java/org/gradle/model/dsl/internal/transform/RuleVisitor.java

            Statement closureCode = closureCallMethod.getCode();
            InputReferences inputs = closureCode.getNodeMetaData(AST_NODE_METADATA_INPUTS_KEY);
            if (inputs != null) {
                SourceLocation sourceLocation = closureCode.getNodeMetaData(AST_NODE_METADATA_LOCATION_KEY);
                node.addInterface(TRANSFORMED_CLOSURE);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 14:04:39 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-groovy/src/main/java/org/gradle/model/dsl/internal/transform/RulesVisitor.java

        }
    
        public static void visitGeneratedClosure(ClassNode node) {
            MethodNode method = AstUtils.getGeneratedClosureImplMethod(node);
            Boolean isRulesBlock = method.getCode().getNodeMetaData(AST_NODE_METADATA_KEY);
            if (isRulesBlock != null) {
                AnnotationNode markerAnnotation = new AnnotationNode(ANNOTATION_CLASS_NODE);
                node.addAnnotation(markerAnnotation);
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 8.6K bytes
    - Viewed (0)
  5. pkg/bootstrap/config.go

    	DefaultDeploymentUniqueLabelKey string = "pod-template-hash"
    )
    
    // GetNodeMetaData function uses an environment variable contract
    // ISTIO_METAJSON_* env variables contain json_string in the value.
    // The name of variable is ignored.
    // ISTIO_META_* env variables are passed through
    func GetNodeMetaData(options MetadataOptions) (*model.Node, error) {
    	meta := &model.BootstrapNodeMetadata{}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 17:02:38 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  6. pkg/istio-agent/agent.go

    	if err != nil {
    		return nil, fmt.Errorf("failed to check credential SDS socket: %v", err)
    	}
    	if credentialSocketExists {
    		log.Info("Credential SDS socket found")
    	}
    
    	return bootstrap.GetNodeMetaData(bootstrap.MetadataOptions{
    		ID:                          a.cfg.ServiceNode,
    		Envs:                        os.Environ(),
    		Platform:                    a.cfg.Platform,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 05 10:02:56 UTC 2024
    - 26.7K bytes
    - Viewed (0)
Back to top