- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for NamespaceOrDefault (0.18 sec)
-
istioctl/pkg/cli/context.go
Namespace() string // IstioNamespace returns the Istio namespace specified by the user IstioNamespace() string // NamespaceOrDefault returns the namespace specified by the user, or the default namespace if none was specified NamespaceOrDefault(namespace string) string // CLIClientsForContexts returns clients for all the given contexts in a kubeconfig.
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 23 19:31:32 UTC 2024 - 8.9K bytes - Viewed (0) -
istioctl/pkg/waypoint/waypoint.go
enrollNamespace bool overwrite bool ) const waitTimeout = 90 * time.Second func Cmd(ctx cli.Context) *cobra.Command { makeGateway := func(forApply bool) (*gateway.Gateway, error) { ns := ctx.NamespaceOrDefault(ctx.Namespace()) if ctx.Namespace() == "" && !forApply { ns = "" } // If a user sets the waypoint name to an empty string, set it to the default namespace waypoint name. if waypointName == "" {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 19.6K bytes - Viewed (0) -
istioctl/pkg/describe/describe.go
RunE: func(cmd *cobra.Command, args []string) error { describeNamespace = ctx.NamespaceOrDefault(ctx.Namespace()) if len(args) != 1 { return fmt.Errorf("expecting pod name") } podName, ns := handlers.InferPodInfo(args[0], ctx.NamespaceOrDefault("")) client, err := ctx.CLIClient() if err != nil { return err }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Oct 24 17:36:49 UTC 2024 - 50.6K bytes - Viewed (0) -
istioctl/pkg/validate/validate.go
istioctl analyze samples/bookinfo/networking/bookinfo-gateway.yaml `, Args: cobra.NoArgs, RunE: func(c *cobra.Command, _ []string) error { istioNamespace := ctx.IstioNamespace() defaultNamespace := ctx.NamespaceOrDefault("") return validateFiles(&istioNamespace, defaultNamespace, filenames, c.OutOrStderr()) }, } flags := c.PersistentFlags()
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Aug 15 22:27:47 UTC 2024 - 14.3K bytes - Viewed (0) -
istioctl/pkg/analyze/analyze.go
// for file resources that don't have one specified. selectedNamespace = ctx.Namespace() if useKube { // apply default namespace if not specified and useKube is true selectedNamespace = ctx.NamespaceOrDefault(selectedNamespace) if selectedNamespace != "" { client, err := ctx.CLIClient() if err != nil { return err }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Oct 31 06:53:50 UTC 2024 - 17.6K bytes - Viewed (0) -
istioctl/pkg/proxyconfig/proxyconfig.go
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Oct 24 15:53:49 UTC 2024 - 50.6K bytes - Viewed (0)