Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for dryRun (0.2 sec)

  1. cni/pkg/plugin/plugin_dryrun_test.go

    Ben Leggett <******@****.***> 1707525115 -0500
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  2. operator/cmd/mesh/root.go

    )
    
    type RootArgs struct {
    	// DryRun performs all steps except actually applying the manifests or creating output dirs/files.
    	DryRun bool
    }
    
    func addFlags(cmd *cobra.Command, rootArgs *RootArgs) {
    	cmd.PersistentFlags().BoolVarP(&rootArgs.DryRun, "dry-run", "",
    		false, "Console/log output only, make no changes.")
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  3. operator/cmd/mesh/manifest-generate.go

    func RenderToDir(manifests name.ManifestMap, outputDir string, dryRun bool, l clog.Logger) error {
    	l.LogAndPrintf("Component dependencies tree: \n%s", helmreconciler.InstallTreeString())
    	l.LogAndPrintf("Rendering manifests to output dir %s", outputDir)
    	return renderRecursive(manifests, helmreconciler.InstallTree, outputDir, dryRun, l)
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  4. operator/cmd/mesh/operator-init.go

    	}
    
    	installerScope.Debugf("Installing operator charts with the following values:\n%s", vals)
    	installerScope.Debugf("Using the following manifest to install operator:\n%s\n", mstr)
    
    	opts := &applyOptions{
    		DryRun: args.DryRun,
    	}
    
    	// If CR was passed, we must create a namespace for it and install CR into it.
    	customResource, istioNamespace, err := getCRAndNamespaceFromFile(oiArgs.inFilename, l)
    	if err != nil {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  5. operator/cmd/mesh/shared.go

    type applyOptions struct {
    	// Path to the kubeconfig file.
    	Kubeconfig string
    	// ComponentName of the kubeconfig context to use.
    	Context string
    	// DryRun performs all steps except actually applying the manifests or creating output dirs/files.
    	DryRun bool
    	// Maximum amount of time to wait for resources to be ready after install when Wait=true.
    	WaitTimeout time.Duration
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 29 02:29:02 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  6. tests/soft_delete_test.go

    		t.Fatalf("user's deleted at is zero")
    	}
    
    	sql := DB.Session(&gorm.Session{DryRun: true}).Delete(&user).Statement.SQL.String()
    	if !regexp.MustCompile(`UPDATE .users. SET .deleted_at.=.* WHERE .users.\..id. = .* AND .users.\..deleted_at. IS NULL`).MatchString(sql) {
    		t.Fatalf("invalid sql generated, got %v", sql)
    	}
    
    	sql = DB.Session(&gorm.Session{DryRun: true}).Table("user u").Select("name").Find(&User{}).Statement.SQL.String()
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Feb 01 06:40:55 GMT 2023
    - 5.7K bytes
    - Viewed (0)
  7. operator/cmd/mesh/operator-remove.go

    		iop, err = translate.IOPStoIOP(emptyiops, "", "")
    		if err != nil {
    			l.LogAndFatal(err)
    		}
    	}
    	reconciler, err := helmreconciler.NewHelmReconciler(client, kubeClient, iop, &helmreconciler.Options{DryRun: args.DryRun, Log: l})
    	if err != nil {
    		l.LogAndFatal(err)
    	}
    	rs, err := reconciler.GetPrunedResources(orArgs.revision, false, string(name.IstioOperatorComponentName))
    	if err != nil {
    		l.LogAndFatal(err)
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  8. cni/pkg/plugin/sidecar_iptables_linux.go

    	cfg.OutboundPortsExclude = rdrct.excludeOutboundPorts
    	cfg.OutboundPortsInclude = rdrct.includeOutboundPorts
    	cfg.OutboundIPRangesExclude = rdrct.excludeIPCidrs
    	cfg.KubeVirtInterfaces = rdrct.kubevirtInterfaces
    	cfg.DryRun = dependencies.DryRunFilePath.Get() != ""
    	cfg.RedirectDNS = rdrct.dnsRedirect
    	cfg.CaptureAllDNS = rdrct.dnsRedirect
    	cfg.DropInvalid = rdrct.invalidDrop
    	cfg.DualStack = rdrct.dualStack
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 18 17:36:41 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  9. callbacks/delete.go

    					}
    				}
    			}
    
    			db.Statement.AddClauseIfNotExists(clause.From{})
    
    			db.Statement.Build(db.Statement.BuildClauses...)
    		}
    
    		checkMissingWhereConditions(db)
    
    		if !db.DryRun && db.Error == nil {
    			ok, mode := hasReturning(db, supportReturning)
    			if !ok {
    				result, err := db.Statement.ConnPool.ExecContext(db.Statement.Context, db.Statement.SQL.String(), db.Statement.Vars...)
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Feb 25 02:48:23 GMT 2022
    - 5.6K bytes
    - Viewed (0)
  10. callbacks/raw.go

    package callbacks
    
    import (
    	"gorm.io/gorm"
    )
    
    func RawExec(db *gorm.DB) {
    	if db.Error == nil && !db.DryRun {
    		result, err := db.Statement.ConnPool.ExecContext(db.Statement.Context, db.Statement.SQL.String(), db.Statement.Vars...)
    		if err != nil {
    			db.AddError(err)
    			return
    		}
    
    		db.RowsAffected, _ = result.RowsAffected()
    	}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Nov 29 01:33:20 GMT 2021
    - 336 bytes
    - Viewed (0)
Back to top