Esempio n. 1
0
 def Args(parser):
     flags.AddRegionArg(parser)
     revision_presentation = presentation_specs.ResourcePresentationSpec(
         'REVISION',
         resource_args.GetRevisionResourceSpec(),
         'Revision to delete.',
         required=True,
         prefixes=False)
     concept_parsers.ConceptParser(
         [resource_args.CLUSTER_PRESENTATION,
          revision_presentation]).AddToParser(parser)
Esempio n. 2
0
 def Args(parser):
     flags.AddRegionArg(parser)
     service_presentation = presentation_specs.ResourcePresentationSpec(
         'SERVICE',
         resource_args.GetServiceResourceSpec(),
         'Service to delete.',
         required=True,
         prefixes=False)
     concept_parsers.ConceptParser(
         [resource_args.CLUSTER_PRESENTATION,
          service_presentation]).AddToParser(parser)
Esempio n. 3
0
 def Args(parser):
   flags.AddRegionArg(parser)
   configuration_presentation = presentation_specs.ResourcePresentationSpec(
       'CONFIGURATION',
       resource_args.GetConfigurationResourceSpec(),
       'Configuration to describe.',
       required=True,
       prefixes=False)
   concept_parsers.ConceptParser([
       resource_args.CLUSTER_PRESENTATION,
       configuration_presentation]).AddToParser(parser)
   parser.display_info.AddFormat('yaml')
Esempio n. 4
0
 def Args(parser):
   flags.AddRegionArg(parser)
   route_presentation = presentation_specs.ResourcePresentationSpec(
       'ROUTE',
       resource_args.GetRouteResourceSpec(),
       'Route to describe.',
       required=True,
       prefixes=False)
   concept_parsers.ConceptParser([
       resource_args.CLUSTER_PRESENTATION,
       route_presentation]).AddToParser(parser)
   parser.display_info.AddFormat('yaml')
Esempio n. 5
0
 def Args(parser):
     flags.AddRegionArg(parser)
     namespace_presentation = presentation_specs.ResourcePresentationSpec(
         '--namespace',
         resource_args.GetNamespaceResourceSpec(),
         'Namespace list services in.',
         required=True,
         prefixes=False)
     concept_parsers.ConceptParser(
         [resource_args.CLUSTER_PRESENTATION,
          namespace_presentation]).AddToParser(parser)
     parser.display_info.AddFormat(
         'table(firstof(id,metadata.name):label=SERVICE)')
Esempio n. 6
0
 def Args(parser):
     flags.AddRegionArg(parser)
     service_presentation = presentation_specs.ResourcePresentationSpec(
         'SERVICE',
         resource_args.GetServiceResourceSpec(),
         'Service to describe.',
         required=True,
         prefixes=False)
     concept_parsers.ConceptParser(
         [resource_args.CLUSTER_PRESENTATION,
          service_presentation]).AddToParser(parser)
     parser.display_info.AddFormat(
         'yaml(apiVersion, kind, metadata, spec, status)')
Esempio n. 7
0
 def Args(parser):
   flags.AddRegionArg(parser)
   namespace_presentation = presentation_specs.ResourcePresentationSpec(
       '--namespace',
       resource_args.GetNamespaceResourceSpec(),
       'Namespace list configurations in.',
       required=True,
       prefixes=False)
   concept_parsers.ConceptParser([
       resource_args.CLUSTER_PRESENTATION,
       namespace_presentation]).AddToParser(parser)
   parser.display_info.AddFormat(
       'table(metadata.name:label=CONFIGURATION,'
       'status.latestCreatedRevisionName:label="LATEST REVISION",'
       'status.latestReadyRevisionName:label="LATEST READY REVISION")')
Esempio n. 8
0
 def Args(parser):
     flags.AddRegionArg(parser)
     namespace_presentation = presentation_specs.ResourcePresentationSpec(
         '--namespace',
         resource_args.GetNamespaceResourceSpec(),
         'Namespace list routes in.',
         required=True,
         prefixes=False)
     concept_parsers.ConceptParser(
         [resource_args.CLUSTER_PRESENTATION,
          namespace_presentation]).AddToParser(parser)
     parser.display_info.AddFormat("""table(
 {ready_column},
 metadata.name:label=ROUTE)
 """.format(ready_column=pretty_print.READY_COLUMN))
Esempio n. 9
0
 def Args(parser):
     service_presentation = presentation_specs.ResourcePresentationSpec(
         '--service',
         resource_args.GetServiceResourceSpec(prompt=True),
         'Service to update the configuration of.',
         required=True,
         prefixes=False)
     flags.AddRegionArg(parser)
     flags.AddMutexEnvVarsFlags(parser)
     flags.AddMemoryFlag(parser)
     flags.AddConcurrencyFlag(parser)
     flags.AddAsyncFlag(parser)
     concept_parsers.ConceptParser(
         [resource_args.CLUSTER_PRESENTATION,
          service_presentation]).AddToParser(parser)
Esempio n. 10
0
 def Args(parser):
     flags.AddServiceFlag(parser)
     namespace_presentation = presentation_specs.ResourcePresentationSpec(
         '--namespace',
         resource_args.GetNamespaceResourceSpec(),
         'Namespace to list services in.',
         required=True,
         prefixes=False)
     flags.AddRegionArg(parser)
     concept_parsers.ConceptParser(
         [resource_args.CLUSTER_PRESENTATION,
          namespace_presentation]).AddToParser(parser)
     parser.display_info.AddFormat(
         'table(name:label=REVISION,service_name:label=SERVICE,'
         'creation_timestamp.date("%Y-%m-%d %H:%M:%S %Z"):label=CREATED,ready)'
     )
Esempio n. 11
0
 def Args(parser):
     service_presentation = presentation_specs.ResourcePresentationSpec(
         'SERVICE',
         resource_args.GetServiceResourceSpec(prompt=True),
         'Service to deploy to.',
         required=True,
         prefixes=False)
     flags.AddSourceRefFlags(parser)
     flags.AddRegionArg(parser)
     flags.AddFunctionArg(parser)
     flags.AddMutexEnvVarsFlags(parser)
     flags.AddMemoryFlag(parser)
     flags.AddConcurrencyFlag(parser)
     flags.AddAsyncFlag(parser)
     concept_parsers.ConceptParser(
         [resource_args.CLUSTER_PRESENTATION,
          service_presentation]).AddToParser(parser)