Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for kwargs (0.16 sec)

  1. cni/pkg/plugin/plugin.go

    	// Determine if running under k8s by checking the CNI args
    	k8sArgs := K8sArgs{}
    	if err := types.LoadArgs(args.Args, &k8sArgs); err != nil {
    		return err
    	}
    
    	// Check if the workload is running under Kubernetes.
    	podNamespace := string(k8sArgs.K8S_POD_NAMESPACE)
    	podName := string(k8sArgs.K8S_POD_NAME)
    	log := log.WithLabels("pod", podNamespace+"/"+podName)
    	if podNamespace == "" || podName == "" {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 15:58:51 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  2. operator/cmd/mesh/install.go

    			warnMarker, operatorVer.OperatorCodeBaseVersion)
    	}
    
    	setFlags := applyFlagAliases(iArgs.Set, iArgs.ManifestsPath, iArgs.Revision)
    
    	_, iop, err := manifest.GenerateConfig(iArgs.InFilenames, setFlags, iArgs.Force, kubeClient, l)
    	if err != nil {
    		return fmt.Errorf("generate config: %v", err)
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu May 02 14:30:43 GMT 2024
    - 15.5K bytes
    - Viewed (1)
  3. cmd/endpoint-ellipses.go

    // This applies to even distributed setup syntax as well.
    func GetAllSets(setDriveCount uint64, args ...string) ([][]string, error) {
    	var setArgs [][]string
    	if !ellipses.HasEllipses(args...) {
    		var setIndexes [][]uint64
    		// Check if we have more one args.
    		if len(args) > 1 {
    			var err error
    			setIndexes, err = getSetIndexes(args, []uint64{uint64(len(args))}, setDriveCount, nil)
    			if err != nil {
    				return nil, err
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  4. cmd/config-current.go

    		// AuthZPlugin is being set.
    		subSys = config.PolicyPluginSubSys
    		fallthrough
    	case config.PolicyPluginSubSys:
    		if ppargs, err := polplugin.LookupConfig(s, GetDefaultConnSettings(), xhttp.DrainBody); err != nil {
    			return err
    		} else if ppargs.URL == nil {
    			// Check if legacy opa is configured.
    			if _, err := opa.LookupConfig(s[config.PolicyOPASubSys][config.Default],
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 30.8K bytes
    - Viewed (0)
  5. internal/logger/console.go

    			args = append(args, msg)
    			msg = "%s"
    		}
    		console.quiet(msg+"\n", args...)
    	default:
    		if len(msg) != 0 && len(args) == 0 {
    			args = append(args, msg)
    			msg = "%s"
    		}
    		console.pretty(msg+"\n", args...)
    	}
    }
    
    // Fatal prints only fatal error message with no stack trace
    // it will be called for input validation failures
    func Fatal(err error, msg string, data ...interface{}) {
    	fatal(err, msg, data...)
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:57:52 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  6. istioctl/pkg/ztunnelconfig/ztunnelconfig.go

     # Reset levels of all the loggers to default value (warning)  for a specific Ztunnel pod.
     istioctl x ztunnel-config log <pod-name[.namespace]> -r
    `,
    		Aliases: []string{"o"},
    		Args: func(cmd *cobra.Command, args []string) error {
    			if err := common.validateArgs(cmd, args); err != nil {
    				return err
    			}
    			if reset && loggerLevelString != "" {
    				cmd.Println(cmd.UsageString())
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 01 13:11:40 GMT 2024
    - 22.2K bytes
    - Viewed (0)
  7. internal/logger/logger.go

    			Source:    trace,
    			Variables: tags,
    		}
    	} else {
    		entry.Message = message
    	}
    
    	if anonFlag {
    		entry.API.Args.Bucket = HashString(entry.API.Args.Bucket)
    		entry.API.Args.Object = HashString(entry.API.Args.Object)
    		entry.RemoteHost = HashString(entry.RemoteHost)
    		if entry.Trace != nil {
    			entry.Trace.Variables = make(map[string]interface{})
    		}
    	}
    
    	return entry
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  8. istioctl/pkg/waypoint/waypoint.go

      # List all waypoints in a specific namespace
      istioctl x waypoint list --namespace default`,
    		Args: func(cmd *cobra.Command, args []string) error {
    			if len(args) != 0 {
    				return fmt.Errorf("unknown subcommand %q", args[0])
    			}
    			return nil
    		},
    		RunE: func(cmd *cobra.Command, args []string) error {
    			cmd.HelpFunc()(cmd, args)
    			return nil
    		},
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 19:45:58 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  9. cmd/main.go

    }
    
    func printMinIOVersion(c *cli.Context) {
    	io.Copy(c.App.Writer, versionBanner(c))
    }
    
    // Main main for minio server.
    func Main(args []string) {
    	// Set the minio app name.
    	appName := filepath.Base(args[0])
    
    	if env.Get("_MINIO_DEBUG_NO_EXIT", "") != "" {
    		freeze := func(_ int) {
    			// Infinite blocking op
    			<-make(chan struct{})
    		}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:57:52 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  10. cmd/server-main.go

    				config.EnvEndpoints, os.Getenv(config.EnvEndpoints))
    		}
    	}
    	if v == "" {
    		if !ctx.Args().Present() || ctx.Args().First() == "help" {
    			cli.ShowCommandHelpAndExit(ctx, ctx.Command.Name, 1)
    		}
    		return ctx.Args()
    	}
    	return strings.Fields(v)
    }
    
    func configCommonToSrvCtx(cf config.ServerConfigCommon, ctxt *serverCtxt) {
    	ctxt.RootUser = cf.RootUser
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 34.9K bytes
    - Viewed (1)
Back to top