Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ApplyContent (0.15 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. 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)
Back to top