Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for Cleanup (0.19 sec)

  1. common/scripts/kind_provisioner.sh

    #####################################################################
    
    # cleanup_kind_cluster takes a single parameter NAME
    # and deletes the KinD cluster with that name
    function cleanup_kind_cluster() {
      echo "Test exited with exit code $?."
      NAME="${1}"
      kind export logs --name "${NAME}" "${ARTIFACTS}/kind" -v9 || true
      if [[ -z "${SKIP_CLEANUP:-}" ]]; then
        echo "Cleaning up kind cluster"
    Shell Script
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Apr 08 19:12:55 GMT 2024
    - 17.3K bytes
    - Viewed (1)
  2. cni/test/install_cni.go

    			t.Logf("installer complete: %v", err)
    		} else {
    			t.Errorf("installer failed: %v", err)
    		}
    	}
    
    	if cleanErr := installer.Cleanup(); cleanErr != nil {
    		t.Errorf("Error during test CNI installer cleanup, error was: %s", cleanErr)
    	}
    }
    
    func runInstall(ctx context.Context, tempCNIConfDir, tempCNIBinDir,
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  3. istioctl/pkg/workload/workload_test.go

    			"internalIP": "fd00:10:96::1",
    			"ingressIP":  "fd00:10:96::2",
    		},
    	}
    	for _, dir := range files {
    		if !dir.IsDir() {
    			continue
    		}
    		testdir := path.Join("testdata/vmconfig", dir.Name())
    		t.Cleanup(func() {
    			for k := range generated {
    				os.Remove(path.Join(testdir, k))
    			}
    		})
    		t.Run(dir.Name(), func(t *testing.T) {
    			createClientFunc := func(client kube.CLIClient) {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Mar 27 16:59:05 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  4. istioctl/pkg/proxystatus/proxystatus_test.go

    	) (*discovery.DiscoveryResponse, error) {
    		return &discovery.DiscoveryResponse{}, nil
    	}
    	t.Cleanup(func() {
    		multixds.GetXdsResponse = xds.GetXdsResponse
    	})
    
    	for i, c := range cases {
    		t.Run(fmt.Sprintf("case %d %s", i, strings.Join(c.args, " ")), func(t *testing.T) {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 08:28:50 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  5. cni/pkg/install/install_test.go

    			isReady := &atomic.Value{}
    			isReady.Store(false)
    			installer := NewInstaller(cfg, isReady)
    			installer.cniConfigFilepath = cniConfigFilePath
    			installer.kubeconfigFilepath = kubeConfigFilePath
    			err := installer.Cleanup()
    			if (c.expectedFailure && err == nil) || (!c.expectedFailure && err != nil) {
    				t.Fatalf("expected failure: %t, got %v", c.expectedFailure, err)
    			}
    
    			// check if conf file is deleted/conflist file is updated
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 11.1K bytes
    - Viewed (0)
  6. cni/pkg/repair/repair_test.go

    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			mt := monitortest.New(t)
    			tt.config.LabelPods = true
    			c, err := NewRepairController(tt.client, tt.config)
    			assert.NoError(t, err)
    			t.Cleanup(func() {
    				assert.NoError(t, c.queue.WaitForClose(time.Second))
    			})
    			stop := test.NewStop(t)
    			tt.client.RunAndWait(stop)
    			go c.Run(stop)
    			kube.WaitForCacheSync("test", stop, c.queue.HasSynced)
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Oct 24 03:31:28 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  7. cni/pkg/iptables/iptables.go

    	iptablesBuilder := builder.NewIptablesRuleBuilder(ipbuildConfig(cfg.cfg))
    
    	// Insert jumps to our custom chains
    	// This is mostly just for visual tidiness and cleanup, as we can delete the secondary chains and jumps
    	// without polluting the main table too much.
    
    	// -t mangle -A PREROUTING -j ISTIO_PRERT
    	iptablesBuilder.AppendRule(
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue May 07 19:54:50 GMT 2024
    - 19.7K bytes
    - Viewed (0)
  8. common-protos/k8s.io/apimachinery/pkg/apis/testapigroup/v1/generated.proto

      // a termination signal and the time when the processes are forcibly halted with a kill signal.
      // Set this value longer than the expected cleanup time for your process.
      // Defaults to 30 seconds.
      // +optional
      optional int64 terminationGracePeriodSeconds = 4;
    
      // Optional duration in seconds the carp may be active on the node relative to
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  9. cni/pkg/install/install.go

    		if _, err := in.installAll(ctx); err != nil {
    			return err
    		}
    		installLog.Info("Istio CNI configuration and binaries validated/reinstalled.")
    	}
    }
    
    // Cleanup remove Istio CNI's config, kubeconfig file, and binaries.
    func (in *Installer) Cleanup() error {
    	installLog.Info("Cleaning up.")
    	if len(in.cniConfigFilepath) > 0 && file.Exists(in.cniConfigFilepath) {
    		if in.cfg.ChainedCNIPlugin {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Feb 08 18:52:24 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  10. istioctl/pkg/validate/validate_test.go

    		"warning.json":     warningsJSON,
    		"invalidYAML.json": invalidJSON,
    	})
    	validTempDirJSON := createTestDirectory(t, map[string]string{
    		"valid.json": validJSON,
    	})
    
    	t.Cleanup(func() {
    		os.RemoveAll(tempDirYAML)
    		os.RemoveAll(validTempDirYAML)
    		os.RemoveAll(tempDirJSON)
    		os.RemoveAll(validTempDirJSON)
    	})
    
    	cases := []struct {
    		name           string
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jul 25 08:08:36 GMT 2023
    - 21.5K bytes
    - Viewed (0)
Back to top