Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 127 for kwargs (0.14 sec)

  1. istioctl/pkg/metrics/metrics_test.go

    }
    
    func TestMetricsNoPrometheus(t *testing.T) {
    	cases := []testutil.TestCase{
    		{ // case 0
    			Args:           []string{},
    			ExpectedRegexp: regexp.MustCompile("Error: metrics requires workload name\n"),
    			WantException:  true,
    		},
    		{ // case 1
    			Args:           strings.Split("details", " "),
    			ExpectedOutput: "Error: no Prometheus pods found\n",
    			WantException:  true,
    		},
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Oct 25 02:07:44 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  2. operator/cmd/mesh/profile-list_test.go

    )
    
    func TestProfileList(t *testing.T) {
    	g := NewWithT(t)
    	args := []string{"profile", "list", "--dry-run", "--manifests", filepath.Join(env.IstioSrc, "manifests")}
    
    	kubeClientFunc = func() (kube.CLIClient, error) {
    		return nil, nil
    	}
    	rootCmd := GetRootCmd(cli.NewFakeContext(&cli.NewFakeContextOption{
    		Version: "25",
    	}), args)
    	var out bytes.Buffer
    	rootCmd.SetOut(&out)
    	rootCmd.SetErr(&out)
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Apr 03 06:27:07 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  3. istioctl/pkg/workload/workload.go

    		Args: func(cmd *cobra.Command, args []string) error {
    			if name == "" {
    				return fmt.Errorf("expecting a workload name")
    			}
    			if namespace == "" {
    				return fmt.Errorf("expecting a workload namespace")
    			}
    			return nil
    		},
    		RunE: func(cmd *cobra.Command, args []string) error {
    			u := &unstructured.Unstructured{
    				Object: map[string]any{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Apr 17 20:06:41 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  4. cmd/auth-handler.go

    		byPassSet = globalIAMSys.IsAllowed(policy.Args{
    			AccountName:     cred.AccessKey,
    			Groups:          cred.Groups,
    			Action:          policy.BypassGovernanceRetentionAction,
    			BucketName:      bucketName,
    			ObjectName:      objectName,
    			ConditionValues: conditions,
    			IsOwner:         owner,
    			Claims:          cred.Claims,
    		})
    	}
    	if globalIAMSys.IsAllowed(policy.Args{
    		AccountName:     cred.AccessKey,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 26K bytes
    - Viewed (0)
  5. docs/debugging/xl-meta/main.go

    			b, err = json.MarshalIndent(msi, "", "  ")
    			if err != nil {
    				return nil, err
    			}
    			return b, nil
    		}
    
    		args := c.Args()
    		if len(args) == 0 {
    			// If no args, assume xl.meta
    			args = []string{"xl.meta"}
    		}
    		var files []string
    
    		for _, pattern := range args {
    			if pattern == "-" {
    				files = append(files, pattern)
    				continue
    			}
    			found, err := filepathx.Glob(pattern)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:56:22 GMT 2024
    - 20.2K bytes
    - Viewed (1)
  6. operator/cmd/mesh/root.go

    func GetRootCmd(ctx cli.Context, args []string) *cobra.Command {
    	rootCmd := &cobra.Command{
    		Use:          "mesh",
    		Short:        "Command line Istio install utility.",
    		SilenceUsage: true,
    		Long: "This command uses the Istio operator code to generate templates, query configurations and perform " +
    			"utility operations.",
    	}
    	rootCmd.SetArgs(args)
    	rootCmd.PersistentFlags().AddGoFlagSet(flag.CommandLine)
    
    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)
  7. buildscripts/gen-ldflags.go

    	if err != nil {
    		fmt.Fprintln(os.Stderr, "Error generating git commit-time: ", err)
    		os.Exit(1)
    	}
    
    	return t.UTC()
    }
    
    func main() {
    	var version string
    	if len(os.Args) > 1 {
    		version = os.Args[1]
    	} else {
    		version = commitTime().Format(time.RFC3339)
    	}
    
    	fmt.Println(genLDFlags(version))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jun 16 23:10:48 GMT 2022
    - 3.3K bytes
    - Viewed (0)
  8. istioctl/cmd/istioctl/istioctl_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package main
    
    import (
    	"os"
    	"testing"
    )
    
    func TestIstioctlMain(_ *testing.T) {
    	os.Args = []string{"istioctl", "version", "--remote=false"}
    	main()
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 29 20:42:01 GMT 2020
    - 738 bytes
    - Viewed (0)
  9. operator/cmd/mesh.go

    	binversion "istio.io/istio/operator/version"
    	"istio.io/istio/pkg/version"
    )
    
    func main() {
    	version.Info.Version = binversion.OperatorVersionString
    	rootCmd := mesh.GetRootCmd(cli.NewCLIContext(nil), os.Args[1:])
    	if err := rootCmd.Execute(); err != nil {
    		os.Exit(1)
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Aug 29 14:15:33 GMT 2023
    - 963 bytes
    - Viewed (0)
  10. cni/pkg/cmd/root.go

    	SilenceUsage: true,
    	PreRunE: func(c *cobra.Command, args []string) error {
    		if err := log.Configure(logOptions); err != nil {
    			log.Errorf("Failed to configure log %v", err)
    		}
    		return nil
    	},
    	RunE: func(c *cobra.Command, args []string) (err error) {
    		cmd.PrintFlags(c.Flags())
    		ctx := c.Context()
    
    		// Start controlz server
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 12.5K bytes
    - Viewed (0)
Back to top