Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 471 for dryrun (0.14 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. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/update.go

    					}
    				} else {
    					if mutatingAdmission.Handles(admission.Update) {
    						return newObj, mutatingAdmission.Admit(ctx, admission.NewAttributesRecord(newObj, oldObj, scope.Kind, namespace, name, scope.Resource, scope.Subresource, admission.Update, options, dryrun.IsDryRun(options.DryRun), userInfo), scope)
    					}
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 20:19:46 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. cmd/kubeadm/app/cmd/upgrade/common.go

    		if !ok {
    			return nil, nil, nil, nil, cmdutil.TypeMismatchErr("dryRun", "bool")
    		}
    	}
    
    	client, err := getClient(flags.kubeConfigPath, *isDryRun)
    	if err != nil {
    		return nil, nil, nil, nil, errors.Wrapf(err, "couldn't create a Kubernetes client from file %q", flags.kubeConfigPath)
    	}
    
    	ignorePreflightErrorsSet, err := validation.ValidateIgnorePreflightErrors(flags.ignorePreflightErrors, ignoreErrCfg)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 08:34:39 UTC 2024
    - 10.1K bytes
    - Viewed (0)
Back to top