Exemplo n.º 1
0
 def Args(parser):
     kube_flags.GetKubeConfigFlag(
         'Specifies the destination kubeconfig file '
         'where credentials will be stored.').AddToParser(parser)
     flags.GetUserFlag().AddToParser(parser)
     flags.GetClusterFlag().AddToParser(parser)
     flags.GetLoginConfigFlag().AddToParser(parser)
     flags.GetLoginConfigCertFlag().AddToParser(parser)
     flags.GetDryRunFlag('Print out the generated kubectl commands '
                         'but do not execute them.').AddToParser(parser)
Exemplo n.º 2
0
 def Args(parser):
     flags.GetLocalDirFlag(help_override=_LOCAL_DIR_HELP,
                           metavar=_LOCAL_DIR_META).AddToParser(parser)
     flags.GetRepoURIFlag(
         positional=False,
         required=False,
         metavar='REPO_URI',
         help_override='git repo url for updating contents. '
         'Defaults to the url the package was '
         'fetched from.').AddToParser(parser)
     flags.GetStrategyFlag().AddToParser(parser)
     flags.GetDryRunFlag().AddToParser(parser)