- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for Flags (0.14 sec)
-
istioctl/pkg/clioptions/doc.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 clioptions contains flags which can be added to istioctl commands.
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Wed Jul 13 01:59:17 GMT 2022 - 683 bytes - Viewed (0) -
operator/cmd/mesh/profile-dump.go
// manifestsPath is a path to a charts and profiles directory in the local filesystem with a release tgz. manifestsPath string } const ( jsonOutput = "json" yamlOutput = "yaml" flagsOutput = "flags" ) const ( istioOperatorTreeString = ` apiVersion: install.istio.io/v1alpha1 kind: IstioOperator ` ) func addProfileDumpFlags(cmd *cobra.Command, args *profileDumpArgs) {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Mar 15 01:18:49 GMT 2024 - 7.1K bytes - Viewed (0) -
istioctl/cmd/istioctl_test.go
// limitations under the License. package cmd import ( "testing" istioctlutil "istio.io/istio/istioctl/pkg/util" ) func TestBadParse(t *testing.T) { // unknown flags should be a command parse rootCmd := GetRootCmd([]string{"--unknown-flag"}) fErr := rootCmd.Execute() switch fErr.(type) { case istioctlutil.CommandParseError: // do nothing default:
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Aug 29 14:53:25 GMT 2023 - 1.5K bytes - Viewed (0) -
istioctl/pkg/root/root.go
) var ( // IstioConfig is the name of the istioctl config file (if any) IstioConfig = env.Register("ISTIOCONFIG", defaultIstioctlConfig, "Default values for istioctl flags").Get() LoggingOptions = defaultLogOptions() // scope is for dev logging. Warning: log levels are not set by --log_output_level until command is Run(). Scope = log.RegisterScope("cli", "istioctl") )
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Mar 26 20:38:10 GMT 2024 - 1.5K bytes - Viewed (0) -
istioctl/cmd/root_test.go
child := &cobra.Command{ Use: "child", Run: func(c *cobra.Command, args []string) {}, } _ = parent.PersistentFlags().String(childFlag2, "", childFlag2) parent.AddCommand(child) // verify both parent flags and the child flag are visible by default parent.SetArgs([]string{"child", "--help"}) if err := parent.Execute(); err != nil { t.Fatal(err) } got := out.String() out.Reset()
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Jan 15 17:59:55 GMT 2021 - 2.4K bytes - Viewed (0) -
istioctl/pkg/clioptions/central.go
// GCP project number or ID to use for XDS calls, if any. GCPProject string // Istiod address. For MCP may be different than Xds. IstiodAddr string } // AttachControlPlaneFlags attaches control-plane flags to a Cobra command. // (Currently just --endpoint) func (o *CentralControlPlaneOptions) AttachControlPlaneFlags(cmd *cobra.Command) { cmd.PersistentFlags().StringVar(&o.Xds, "xds-address", viper.GetString("XDS-ADDRESS"),
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Mon Jun 06 03:39:27 GMT 2022 - 3.2K bytes - Viewed (0) -
operator/cmd/mesh/profile-dump_test.go
inPath := filepath.Join(testDataDir, "input", tt.desc+".yaml") outPath := filepath.Join(testDataDir, "output", tt.desc+".txt") got, err := runProfileDump(inPath, tt.configPath, snapshotCharts, "flags") if err != nil { t.Fatal(err) } // installPackagePath may change, we will remove it for consistent output got = installPackagePathRegex.ReplaceAllString(got, "") if refreshGoldenFiles() {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Thu Jan 20 11:44:25 GMT 2022 - 3.7K bytes - Viewed (0) -
operator/cmd/mesh/shared.go
// --revision is an alias for --set revision= func applyFlagAliases(flags []string, manifestsPath, revision string) []string { if manifestsPath != "" { flags = append(flags, fmt.Sprintf("installPackagePath=%s", manifestsPath)) } if revision != "" && revision != "default" { flags = append(flags, fmt.Sprintf("revision=%s", revision)) } return flags }
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) -
operator/cmd/mesh/operator-remove.go
Args: func(cmd *cobra.Command, args []string) error { if orArgs.revision == "" && !orArgs.purge { return fmt.Errorf("at least one of the --revision or --purge flags must be set") } if len(args) > 0 { return fmt.Errorf("istioctl operator remove does not take arguments") } return nil }, RunE: func(cmd *cobra.Command, args []string) error {
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) -
istioctl/pkg/multicluster/options.go
type KubeOptions struct { Kubeconfig string Context string Namespace string } // Inherit the common kubernetes flags defined in the root package. This is a bit of a hack, // but it allows us to directly get the final values for each of these flags without needing // to pass pointers-to-flags through all of the (sub)commands. func (o *KubeOptions) prepare(ctx cli.Context) { o.Namespace = ctx.Namespace() if o.Namespace == "" {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Aug 01 23:59:49 GMT 2023 - 1.6K bytes - Viewed (0)