istio/istio · error
unknown subcommand %q
Error message
unknown subcommand %q
What it means
Error "unknown subcommand %q" thrown in istio/istio.
Source
Thrown at istioctl/pkg/tag/tag.go:94
func TagCommand(ctx cli.Context) *cobra.Command {
cmd := &cobra.Command{
Use: "tag",
Short: "Command group used to interact with revision tags",
Long: `Command group used to interact with revision tags. Revision tags allow for the creation of mutable aliases
referring to control plane revisions for sidecar injection.
With revision tags, rather than relabeling a namespace from "istio.io/rev=revision-a" to "istio.io/rev=revision-b" to
change which control plane revision handles injection, it's possible to create a revision tag "prod" and label our
namespace "istio.io/rev=prod". The "prod" revision tag could point to "1-7-6" initially and then be changed to point to "1-8-1"
at some later point.
This allows operators to change which Istio control plane revision should handle injection for a namespace or set of namespaces
without manual relabeling of the "istio.io/rev" tag.
`,
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
},
}
cmd.AddCommand(tagSetCommand(ctx))
cmd.AddCommand(tagGenerateCommand(ctx))
cmd.AddCommand(tagListCommand(ctx))
cmd.AddCommand(tagRemoveCommand(ctx))
return cmd
}
func tagSetCommand(ctx cli.Context) *cobra.Command {View on GitHub (pinned to 8dc789c5cf)
When it happens
Trigger: Thrown at istioctl/pkg/tag/tag.go:94 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of istio/istio@8dc789c5cf (2026-08-15).
Data as JSON: /api/errors/5b9e292c1cfb9c2d.
Report an issue: GitHub.