Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewKubeSource (0.11 sec)

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

    	. "github.com/onsi/gomega"
    
    	"istio.io/istio/pkg/config/schema/collections"
    	"istio.io/istio/pkg/config/schema/gvk"
    )
    
    func TestUpdateExistingContents(t *testing.T) {
    	g := NewWithT(t)
    	src := NewKubeSource(collections.Istio)
    
    	applyAndValidate := func(version string) {
    		configTemplate := `apiVersion: networking.istio.io/v1beta1
    kind: DestinationRule
    metadata:
      name: productpage
      labels:
        version: %s
    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. pkg/config/analysis/analyzers/multicluster_analyzers_test.go

    	client := &fakeClientImpl{
    		CLIClient: kube.NewFakeClient(),
    		clusterID: cluster.ID(clusterName),
    	}
    	// 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 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 08:32:06 UTC 2024
    - 4.5K bytes
    - Viewed (0)
Back to top