{"record":{"id":"5b9e292c1cfb9c2d","repo":"istio/istio","slug":"unknown-subcommand-q-5b9e29","errorCode":null,"errorMessage":"unknown subcommand %q","messagePattern":"unknown subcommand %q","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"istioctl/pkg/tag/tag.go","lineNumber":94,"sourceCode":"\nfunc TagCommand(ctx cli.Context) *cobra.Command {\n\tcmd := &cobra.Command{\n\t\tUse:   \"tag\",\n\t\tShort: \"Command group used to interact with revision tags\",\n\t\tLong: `Command group used to interact with revision tags. Revision tags allow for the creation of mutable aliases\nreferring to control plane revisions for sidecar injection.\n\nWith revision tags, rather than relabeling a namespace from \"istio.io/rev=revision-a\" to \"istio.io/rev=revision-b\" to\nchange which control plane revision handles injection, it's possible to create a revision tag \"prod\" and label our\nnamespace \"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\"\nat some later point.\n\nThis allows operators to change which Istio control plane revision should handle injection for a namespace or set of namespaces\nwithout manual relabeling of the \"istio.io/rev\" tag.\n`,\n\t\tArgs: func(cmd *cobra.Command, args []string) error {\n\t\t\tif len(args) != 0 {\n\t\t\t\treturn fmt.Errorf(\"unknown subcommand %q\", args[0])\n\t\t\t}\n\t\t\treturn nil\n\t\t},\n\t\tRunE: func(cmd *cobra.Command, args []string) error {\n\t\t\tcmd.HelpFunc()(cmd, args)\n\t\t\treturn nil\n\t\t},\n\t}\n\n\tcmd.AddCommand(tagSetCommand(ctx))\n\tcmd.AddCommand(tagGenerateCommand(ctx))\n\tcmd.AddCommand(tagListCommand(ctx))\n\tcmd.AddCommand(tagRemoveCommand(ctx))\n\n\treturn cmd\n}\n\nfunc tagSetCommand(ctx cli.Context) *cobra.Command {","sourceCodeStart":76,"sourceCodeEnd":112,"githubUrl":"https://github.com/istio/istio/blob/8dc789c5cf17517c64e3c36cb3288230f149dfae/istioctl/pkg/tag/tag.go#L76-L112","documentation":"Error \"unknown subcommand %q\" thrown in istio/istio.","triggerScenarios":"Thrown at istioctl/pkg/tag/tag.go:94 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8dc789c5cf17517c64e3c36cb3288230f149dfae","analyzedAt":"2026-08-15T15:16:55.434Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}