Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 325 for tryRun (0.21 sec)

  1. platforms/software/signing/src/testFixtures/groovy/org/gradle/test/fixtures/GpgCmdFixture.groovy

            return Integer.toString(RANDOM.nextInt(MAX_RANDOM_PART_VALUE), ALL_DIGITS_AND_LETTERS_RADIX)
        }
    
        static GpgCmdAndVersion getAvailableGpg() {
            return tryRun("gpg")
        }
    
        static GpgCmdAndVersion tryRun(String cmd) {
            try {
                String output = "${cmd} --version".execute().text
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  2. pkg/util/async/bounded_frequency_runner.go

    	bfr.timer.Reset(bfr.maxInterval)
    	for {
    		select {
    		case <-stop:
    			bfr.stop()
    			klog.V(3).Infof("%s Loop stopping", bfr.name)
    			return
    		case <-bfr.timer.C():
    			bfr.tryRun()
    		case <-bfr.run:
    			bfr.tryRun()
    		case <-bfr.retry:
    			bfr.doRetry()
    		}
    	}
    }
    
    // Run the function as soon as possible.  If this is called while Loop is not
    // running, the call may be deferred indefinitely.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 15 09:36:26 UTC 2022
    - 9.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/dryrun.go

    }
    
    func (s *DryRunnableStorage) Versioner() storage.Versioner {
    	return s.Storage.Versioner()
    }
    
    func (s *DryRunnableStorage) Create(ctx context.Context, key string, obj, out runtime.Object, ttl uint64, dryRun bool) error {
    	if dryRun {
    		if err := s.Storage.Get(ctx, key, storage.GetOptions{}, out); err == nil {
    			return storage.NewKeyExistsError(key, 0)
    		}
    		return s.copyInto(obj, out)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 20:40:48 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/util/dryrun/dryrun.go

    			files = append(files, NewFileToPrint(realPath, outputPath))
    		}
    	} else {
    		fmt.Printf("[dryrun] Wrote certificates and kubeconfig files to the %q directory\n", manifestDir)
    	}
    
    	fmt.Println("[dryrun] The certificates or kubeconfig files would not be printed due to their sensitive nature")
    	fmt.Printf("[dryrun] Please examine the %q directory for details about what would be written\n", manifestDir)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 07:10:31 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/util/dryrun/dryrun.go

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package dryrun
    
    // IsDryRun returns true if the DryRun flag is an actual dry-run.
    func IsDryRun(flag []string) bool {
    	return len(flag) > 0
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 06 16:34:42 UTC 2022
    - 713 bytes
    - Viewed (0)
  6. tools/bug-report/pkg/content/content.go

    type Params struct {
    	Runner         *kubectlcmd.Runner
    	DryRun         bool
    	Verbose        bool
    	ClusterVersion string
    	Namespace      string
    	IstioNamespace string
    	Pod            string
    	Container      string
    	KubeConfig     string
    	KubeContext    string
    }
    
    func (p *Params) SetDryRun(dryRun bool) *Params {
    	out := *p
    	out.DryRun = dryRun
    	return &out
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 05 18:47:53 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  7. pkg/registry/core/service/portallocator/operation.go

    	pa              Interface
    	allocated       []int
    	releaseDeferred []int
    	shouldRollback  bool
    	dryRun          bool
    }
    
    // Creates a portAllocationOperation, tracking a set of allocations & releases
    // If dryRun is specified, never actually allocate or release anything
    func StartOperation(pa Interface, dryRun bool) *PortAllocationOperation {
    	op := &PortAllocationOperation{}
    	op.pa = pa
    	op.allocated = []int{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/cmd/upgrade/apply.go

    	}
    
    	// If the current session is interactive, ask the user whether they really want to upgrade.
    	dryRun, ok := cmdutil.ValueFromFlagsOrConfig(flagSet, options.DryRun, upgradeCfg.Apply.DryRun, &flags.dryRun).(*bool)
    	if ok {
    		flags.dryRun = *dryRun
    	} else {
    		return cmdutil.TypeMismatchErr("dryRun", "bool")
    	}
    
    	if flags.sessionIsInteractive() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 03:55:23 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  9. platforms/jvm/testing-jvm/src/main/java/org/gradle/api/internal/tasks/testing/junitplatform/JUnitPlatformTestFramework.java

        private final boolean useImplementationDependencies;
        private final Provider<Boolean> dryRun;
    
        public JUnitPlatformTestFramework(DefaultTestFilter filter, boolean useImplementationDependencies, Provider<Boolean> dryRun) {
            this(filter, useImplementationDependencies, new JUnitPlatformOptions(), dryRun);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/util/apiclient/dryrunclient_test.go

    			expectedBytes: []byte(`[dryrun] Would perform action PATCH on resource "nodes" in API group "core/v1"
    [dryrun] Resource name: "my-node"
    [dryrun] Attached patch:
    	{"spec":{"taints":[{"key": "foo", "value": "bar"}]}}
    `),
    		},
    		{
    			name:   "action DELETE on pods",
    			action: core.NewDeleteAction(schema.GroupVersionResource{Version: "v1", Resource: "pods"}, "default", "my-pod"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 21 09:49:59 UTC 2022
    - 4.5K bytes
    - Viewed (0)
Back to top