Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ApplyContent (0.21 sec)

  1. pilot/pkg/config/file/store_test.go

      host: productpage
      trafficPolicy:
        tls:
          mode: ISTIO_MUTUAL
      subsets:
      - name: %s
        labels:
          version: %s`
    		config := fmt.Sprintf(configTemplate, version, version, version)
    		err := src.ApplyContent("test", config)
    		g.Expect(err).To(BeNil())
    		existing := src.Get(gvk.DestinationRule, "productpage", "")
    		g.Expect(existing.Labels["version"]).To(Equal(version))
    	}
    
    	// Apply v1 config
    	applyAndValidate("v1")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 05 18:44:58 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  2. pilot/pkg/config/file/store.go

    	s.mu.Lock()
    	defer s.mu.Unlock()
    
    	result := sets.New[string]()
    	for n := range s.byFile {
    		result.Insert(n)
    	}
    
    	return result
    }
    
    // ApplyContent applies the given yamltext to this source. The content is tracked with the given name. If ApplyContent
    // gets called multiple times with the same name, the contents applied by the previous incarnation will be overwritten
    // or removed, depending on the new content.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 02 17:36:47 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  3. pkg/config/analysis/analyzers/multicluster_analyzers_test.go

    	}
    	// Gather test files
    	src := file.NewKubeSource(collections.All)
    	for i, yamlFile := range yamls {
    		data, err := os.ReadFile(yamlFile)
    		if err != nil {
    			return err
    		}
    		err = src.ApplyContent(fmt.Sprintf("%d", i), string(data))
    		if err != nil {
    			return err
    		}
    	}
    	sa.AddSourceForCluster(src, cluster.ID(clusterName))
    	sa.AddRunningKubeSourceWithRevision(client, clusterName, false)
    	return nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 08:32:06 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. pkg/config/analysis/local/istiod_analyze.go

    	for _, r := range readers {
    		by, err := io.ReadAll(r.Reader)
    		if err != nil {
    			errs = multierror.Append(errs, err)
    			continue
    		}
    
    		if err = src.ApplyContent(r.Name, string(by)); err != nil {
    			errs = multierror.Append(errs, err)
    		}
    	}
    	return errs
    }
    
    // AddRunningKubeSource adds a source based on a running k8s cluster to the current IstiodAnalyzer
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 21:06:13 UTC 2024
    - 21.6K bytes
    - Viewed (0)
Back to top