Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for setDefault (0.69 sec)

  1. istioctl/pkg/config/config_test.go

    		t.Run(fmt.Sprintf("case %d %s", i, strings.Join(c.Args, " ")), func(t *testing.T) {
    			testutil.VerifyOutput(t, Cmd(), c)
    		})
    	}
    }
    
    func init() {
    	viper.SetDefault("istioNamespace", constants.IstioSystemNamespace)
    	viper.SetDefault("xds-port", 15012)
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  2. istioctl/cmd/root.go

    	if root.IstioConfig != defaultIstioctlConfig {
    		return err
    	}
    
    	return nil
    }
    
    func init() {
    	viper.SetDefault("istioNamespace", constants.IstioSystemNamespace)
    	viper.SetDefault("xds-port", 15012)
    }
    
    // GetRootCmd returns the root of the cobra command-tree.
    func GetRootCmd(args []string) *cobra.Command {
    	rootCmd := &cobra.Command{
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Apr 11 20:51:30 GMT 2024
    - 10K bytes
    - Viewed (0)
Back to top