...
1
16
17 package set
18
19 import (
20 "github.com/spf13/cobra"
21
22 "k8s.io/cli-runtime/pkg/genericiooptions"
23
24 cmdutil "k8s.io/kubectl/pkg/cmd/util"
25 "k8s.io/kubectl/pkg/util/i18n"
26 "k8s.io/kubectl/pkg/util/templates"
27 )
28
29 var (
30 setLong = templates.LongDesc(i18n.T(`
31 Configure application resources.
32
33 These commands help you make changes to existing application resources.`))
34 )
35
36
37 func NewCmdSet(f cmdutil.Factory, streams genericiooptions.IOStreams) *cobra.Command {
38 cmd := &cobra.Command{
39 Use: "set SUBCOMMAND",
40 DisableFlagsInUseLine: true,
41 Short: i18n.T("Set specific features on objects"),
42 Long: setLong,
43 Run: cmdutil.DefaultSubCommandRun(streams.ErrOut),
44 }
45
46
47 cmd.AddCommand(NewCmdImage(f, streams))
48 cmd.AddCommand(NewCmdResources(f, streams))
49 cmd.AddCommand(NewCmdSelector(f, streams))
50 cmd.AddCommand(NewCmdSubject(f, streams))
51 cmd.AddCommand(NewCmdServiceAccount(f, streams))
52 cmd.AddCommand(NewCmdEnv(f, streams))
53
54 return cmd
55 }
56
View as plain text