Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 227 for dryrun (0.49 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. tools/bug-report/pkg/kubectlcmd/kubectlcmd.go

    // RunCmd runs the given command in kubectl, adding -n namespace if namespace is not empty.
    func (r *Runner) RunCmd(command, namespace, kubeConfig, kubeContext string, dryRun bool) (string, error) {
    	return r.Run(strings.Split(command, " "),
    		&Options{
    			Namespace:  namespace,
    			DryRun:     dryRun,
    			Kubeconfig: kubeConfig,
    			Context:    kubeContext,
    		})
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 16 01:18:03 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  9. platforms/jvm/testing-jvm/src/main/java/org/gradle/api/internal/tasks/testing/junit/JUnitTestFramework.java

            this.filter = filter;
            this.useImplementationDependencies = useImplementationDependencies;
            this.options = options;
            this.testTaskTemporaryDir = testTaskTemporaryDir;
            this.detector = new JUnitDetector(new ClassFileExtractionManager(testTaskTemporaryDir));
            this.dryRun = dryRun;
        }
    
        @UsedByScanPlugin("test-retry")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 6K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/cmd/phases/reset/cleanupnode.go

    		dirsToClean = append(dirsToClean, tempDir)
    	}
    	resetConfigDir(kubeadmconstants.KubernetesDir, dirsToClean, r.DryRun())
    
    	if r.Cfg() != nil && features.Enabled(r.Cfg().FeatureGates, features.RootlessControlPlane) {
    		if !r.DryRun() {
    			klog.V(1).Infoln("[reset] Removing users and groups created for rootless control-plane")
    			if err := users.RemoveUsersAndGroups(); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 7.1K bytes
    - Viewed (0)
Back to top