Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for ApplyYAMLFiles (0.21 sec)

  1. tests/integration/pilot/analyze_test.go

    }
    
    // applyFileOrFail applys the given yaml file and deletes it during context cleanup
    func applyFileOrFail(t framework.TestContext, ns, filename string) {
    	t.Helper()
    	if err := t.Clusters().Default().ApplyYAMLFiles(ns, filename); err != nil {
    		t.Fatal(err)
    	}
    	t.Cleanup(func() {
    		_ = t.Clusters().Default().DeleteYAMLFiles(ns, filename)
    	})
    }
    
    func TestMultiCluster(t *testing.T) {
    	// nolint: staticcheck
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  2. tests/integration/operator/uninstall_test.go

    	if err := os.WriteFile(iopCRFile, []byte(overlayYAML), os.ModePerm); err != nil {
    		t.Fatalf("failed to write iop cr file: %v", err)
    	}
    
    	if err := cs.ApplyYAMLFiles(IstioNamespace, iopCRFile); err != nil {
    		t.Fatalf("failed to apply IstioOperator CR file: %s, %v", iopCRFile, err)
    	}
    }
    
    func checkIopExist(cs istiokube.CLIClient, iopName string) (bool, error) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 10 20:33:28 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  3. pkg/test/framework/components/namespace/kube.go

    			return c.Kube().CoreV1().Namespaces().Delete(context.TODO(), n.name, kube2.DeleteOptionsForeground())
    		})
    	}
    
    	s := n.ctx.Settings()
    	if s.Image.PullSecret != "" {
    		if err := c.ApplyYAMLFiles(n.name, s.Image.PullSecret); err != nil {
    			return err
    		}
    		err := retry.UntilSuccess(func() error {
    			_, err := c.Kube().CoreV1().ServiceAccounts(n.name).Patch(context.TODO(),
    				"default",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 9K bytes
    - Viewed (0)
  4. pkg/test/framework/config.go

    	for _, cl := range c.clusters {
    		cl := cl
    		g.Go(func() error {
    			scopes.Framework.Debugf("Applying to %s to namespace %v: %s", cl.StableName(), ns, strings.Join(yamlFiles, ", "))
    			if err := cl.ApplyYAMLFiles(ns, yamlFiles...); err != nil {
    				return fmt.Errorf("failed applying YAML files %v to ns %s in cluster %s: %v", yamlFiles, ns, cl.Name(), err)
    			}
    			c.ctx.CleanupStrategy(cleanupStrategy, func() {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  5. pkg/kube/client.go

    	NewPortForwarder(podName string, ns string, localAddress string, localPort int, podPort int) (PortForwarder, error)
    
    	// ApplyYAMLFiles applies the resources in the given YAML files.
    	ApplyYAMLFiles(namespace string, yamlFiles ...string) error
    
    	// ApplyYAMLContents applies the resources in the given YAML strings.
    	ApplyYAMLContents(namespace string, yamls ...string) error
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 39K bytes
    - Viewed (0)
  6. tests/integration/operator/switch_cr_test.go

    	if err := os.WriteFile(iopCRFile, []byte(overlayYAML), os.ModePerm); err != nil {
    		t.Fatalf("failed to write iop cr file: %v", err)
    	}
    
    	if err := cs.ApplyYAMLFiles(IstioNamespace, iopCRFile); err != nil {
    		t.Fatalf("failed to apply IstioOperator CR file: %s, %v", iopCRFile, err)
    	}
    
    	verifyInstallation(t, ctx, istioCtl, profileName, revision, cs)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 10 20:33:28 UTC 2024
    - 17.5K bytes
    - Viewed (0)
Back to top