github.com/wmuizelaar/kpt@v0.0.0-20221018115725-bd564717b2ed/internal/docs/generated/livedocs/docs.go (about)

     1  // Code generated by "mdtogo"; DO NOT EDIT.
     2  package livedocs
     3  
     4  var LiveShort = `Deploy local packages to a cluster.`
     5  var LiveLong = `
     6  The ` + "`" + `live` + "`" + ` command group contains subcommands for deploying local
     7  ` + "`" + `kpt` + "`" + ` packages to a cluster.
     8  `
     9  
    10  var ApplyShort = `Apply a package to the cluster (create, update, prune).`
    11  var ApplyLong = `
    12    kpt live apply [PKG_PATH | -] [flags]
    13  
    14  Args:
    15  
    16    PKG_PATH | -:
    17      Path to the local package which should be applied to the cluster. It must
    18      contain a Kptfile or a ResourceGroup manifest with inventory metadata.
    19      Defaults to the current working directory.
    20      Using '-' as the package path will cause kpt to read resources from stdin.
    21  
    22  Flags:
    23  
    24    --dry-run:
    25      It true, kpt will validate the resources in the package and print which
    26      resources will be applied and which resources will be pruned, but no resources
    27      will be changed.
    28      If the --server-side flag is true, kpt will do a server-side dry-run, otherwise
    29      it will be a client-side dry-run. Note that the output will differ somewhat
    30      between the two alternatives.
    31    
    32    --field-manager:
    33      Identifier for the **owner** of the fields being applied. Only usable
    34      when --server-side flag is specified. Default value is kubectl.
    35    
    36    --force-conflicts:
    37      Force overwrite of field conflicts during apply due to different field
    38      managers. Only usable when --server-side flag is specified.
    39      Default value is false (error and failure when field managers conflict).
    40    
    41    --install-resource-group:
    42      Install the ResourceGroup CRD into the cluster if it isn't already
    43      available. Default is false.
    44    
    45    --inventory-policy:
    46      Determines how to handle overlaps between the package being currently applied
    47      and existing resources in the cluster. The available options are:
    48    
    49        * strict: If any of the resources already exist in the cluster, but doesn't
    50          belong to the current package, it is considered an error.
    51        * adopt: If a resource already exist in the cluster, but belongs to a
    52          different package, it is considered an error. Resources that doesn't belong
    53          to other packages are adopted into the current package.
    54    
    55      The default value is ` + "`" + `strict` + "`" + `.
    56    
    57    --output:
    58      Determines the output format for the status information. Must be one of the following:
    59    
    60        * events: The output will be a list of the status events as they become available.
    61        * json: The output will be a list of the status events as they become available,
    62          each formatted as a json object.
    63        * table: The output will be presented as a table that will be updated inline
    64          as the status of resources become available.
    65    
    66      The default value is ‘events’.
    67    
    68    --poll-period:
    69      The frequency with which the cluster will be polled to determine
    70      the status of the applied resources. The default value is 2 seconds.
    71    
    72    --prune-propagation-policy:
    73      The propagation policy that should be used when pruning resources. The
    74      default value here is 'Background'. The other options are 'Foreground' and 'Orphan'.
    75    
    76    --prune-timeout:
    77      The threshold for how long to wait for all pruned resources to be
    78      deleted before giving up. If this flag is not set, kpt live apply will wait
    79      until interrupted. In most cases, it would also make sense to set the
    80      --prune-propagation-policy to Foreground when this flag is set.
    81    
    82    --reconcile-timeout:
    83      The threshold for how long to wait for all resources to reconcile before
    84      giving up. If this flag is not set, kpt live apply will wait until
    85      interrupted.
    86    
    87    --server-side:
    88      Perform the apply operation server-side rather than client-side.
    89      Default value is false (client-side).
    90    
    91    --show-status-events:
    92      The output will include the details on the reconciliation status
    93      for all resources. Default is ` + "`" + `false` + "`" + `.
    94    
    95      Does not apply for the ` + "`" + `table` + "`" + ` output format.
    96  `
    97  var ApplyExamples = `
    98    # apply resources in the current directory
    99    $ kpt live apply
   100  
   101    # apply resources in the my-dir directory and wait up until 15 minutes 
   102    # for all the resources to be reconciled before pruning
   103    $ kpt live apply --reconcile-timeout=15m my-dir
   104  
   105    # apply resources and specify how often to poll the cluster for resource status
   106    $ kpt live apply --reconcile-timeout=15m --poll-period=5s my-dir
   107  `
   108  
   109  var DestroyShort = `Remove all previously applied resources in a package from the cluster`
   110  var DestroyLong = `
   111    kpt live destroy [PKG_PATH | -]
   112  
   113  Args:
   114  
   115    PKG_PATH | -:
   116      Path to the local package which should be deleted from the cluster. It must
   117      contain a Kptfile or a ResourceGroup manifest with inventory metadata.
   118      Defaults to the current working directory.
   119      Using '-' as the package path will cause kpt to read resources from stdin.
   120  
   121  Flags:
   122  
   123    --dry-run:
   124      It true, kpt will print the resources that will be removed from the cluster,
   125      but no resources will be deleted.
   126    
   127    --inventory-policy:
   128      Determines how to handle overlaps between the package being currently applied
   129      and existing resources in the cluster. The available options are:
   130    
   131        * strict: If any of the resources already exist in the cluster, but doesn't
   132          belong to the current package, it is considered an error.
   133        * adopt: If a resource already exist in the cluster, but belongs to a
   134          different package, it is considered an error. Resources that doesn't belong
   135          to other packages are adopted into the current package.
   136    
   137      The default value is ` + "`" + `strict` + "`" + `.
   138    
   139    --output:
   140      Determines the output format for the status information. Must be one of the following:
   141    
   142        * events: The output will be a list of the status events as they become available.
   143        * json: The output will be a list of the status events as they become available,
   144          each formatted as a json object.
   145        * table: The output will be presented as a table that will be updated inline
   146          as the status of resources become available.
   147    
   148      The default value is ‘events’.
   149    
   150    --show-status-events:
   151      The output will include the details on the reconciliation status
   152      for all resources. Default is ` + "`" + `false` + "`" + `.
   153    
   154      Does not apply for the ` + "`" + `table` + "`" + ` output format.
   155  `
   156  var DestroyExamples = `
   157    # remove all resources in the current package from the cluster.
   158    $ kpt live destroy
   159  `
   160  
   161  var InitShort = `Initialize a package with the information needed for inventory tracking.`
   162  var InitLong = `
   163    kpt live init [PKG_PATH] [flags]
   164  
   165  Args:
   166  
   167    PKG_PATH:
   168      Path to the local package which should be updated with inventory information.
   169      It must contain a Kptfile. Defaults to the current working directory.
   170  
   171  Flags:
   172  
   173    --force:
   174      Forces the inventory values to be updated, even if they are already set.
   175      Defaults to false.
   176    
   177    --inventory-id:
   178      Inventory identifier for the package. This is used to detect overlap between
   179      packages that might use the same name and namespace for the inventory object.
   180      Defaults to an auto-generated value.
   181    
   182    --name:
   183      The name for the ResourceGroup resource that contains the inventory
   184      for the package. Defaults to the name of the package.
   185    
   186    --namespace:
   187      The namespace for the ResourceGroup resource that contains the inventory
   188      for the package. If not provided, kpt will check if all the resources
   189      in the package belong in the same namespace. If they do, that namespace will
   190      be used. If they do not, the namespace in the user's context will be chosen.
   191    
   192    --rg-file:
   193      The name used for the file created for the ResourceGroup CR. Defaults to
   194      'resourcegroup.yaml'.
   195  `
   196  var InitExamples = `
   197    # initialize a package in the current directory.
   198    $ kpt live init
   199  
   200    # initialize a package with explicit namespace for the ResourceGroup.
   201    $ kpt live init --namespace=test my-dir
   202  `
   203  
   204  var InstallResourceGroupShort = `Install the ResourceGroup CRD in the cluster.`
   205  var InstallResourceGroupLong = `
   206    kpt live install-resource-group
   207  `
   208  var InstallResourceGroupExamples = `
   209    # install ResourceGroup CRD into the current cluster.
   210    $ kpt live install-resource-group
   211  `
   212  
   213  var MigrateShort = `Migrate a package and the inventory object to use the ResourceGroup CRD.`
   214  var MigrateLong = `
   215    kpt live migrate [PKG_PATH] [flags]
   216  
   217  Args:
   218  
   219    PKG_PATH:
   220      Path to the local package. It must have a Kptfile and inventory metadata
   221      in the package in either the ConfigMap, Kptfile or ResourceGroup format.
   222      It defaults to the current directory.
   223  
   224  Flags:
   225  
   226    --dry-run:
   227      Go through the steps of migration, but don't make any changes.
   228    
   229    --force:
   230      Forces the inventory values in the ResourceGroup manfiest to be updated,
   231      even if they are already set. Defaults to false.
   232    
   233    --name:
   234      The name for the ResourceGroup resource that contains the inventory
   235      for the package. Defaults to the same name as the existing inventory
   236      object.
   237    
   238    --namespace:
   239      The namespace for the ResourceGroup resource that contains the inventory
   240      for the package. If not provided, it defaults to the same namespace as the
   241      existing inventory object.
   242  `
   243  var MigrateExamples = `
   244    # Migrate the package in the current directory.
   245    $ kpt live migrate
   246  `
   247  
   248  var StatusShort = `Display shows the status for the resources in the cluster`
   249  var StatusLong = `
   250    kpt live status [PKG_PATH | -] [flags]
   251  
   252  Args:
   253  
   254    PKG_PATH | -:
   255      Path to the local package for which the status of the package in the cluster
   256      should be displayed. It must contain either a Kptfile or a ResourceGroup CR
   257      with inventory metadata.
   258      Defaults to the current working directory.
   259      Using '-' as the package path will cause kpt to read resources from stdin.
   260  
   261  Flags:
   262  
   263    --output:
   264      Determines the output format for the status information. Must be one of the following:
   265    
   266        * events: The output will be a list of the status events as they become available.
   267        * json: The output will be a list of the status events as they become available,
   268          each formatted as a json object.
   269        * table: The output will be presented as a table that will be updated inline
   270          as the status of resources become available.
   271    
   272      The default value is ‘events’.
   273    
   274    --poll-period:
   275      The frequency with which the cluster will be polled to determine the status
   276      of the applied resources. The default value is 2 seconds.
   277    
   278    --poll-until:
   279      When to stop polling for status and exist. Must be one of the following:
   280    
   281        * known: Exit when the status for all resources have been found.
   282        * current: Exit when the status for all resources have reached the Current status.
   283        * deleted: Exit when the status for all resources have reached the NotFound
   284          status, i.e. all the resources have been deleted from the live state.
   285        * forever: Keep polling for status until interrupted.
   286    
   287      The default value is ‘known’.
   288    
   289    --timeout:
   290      Determines how long the command should run before exiting. This deadline will
   291      be enforced regardless of the value of the --poll-until flag. The default is
   292      to wait forever.
   293      
   294    --inv-type:
   295      Ways to get the inventory information. Must be one of the following:
   296      
   297      * local: Get the inventory information from the local file.
   298        This will only get the inventory information of the package at the given/default path.
   299      * remote: Get the inventory information by calling List API to the cluster.
   300        This will retrieve a list of inventory information from the cluster.
   301      
   302      The default value is ‘local’.
   303      
   304    --inv-names:
   305      Filter for printing statuses of packages with specified inventory names.
   306      For multiple inventory names, use comma to them.
   307      This must be used with --inv-type=remote.
   308      
   309    --namespaces:
   310      Filter for printing statuses of packages under specified namespaces.
   311      For multiple namespaces, use comma to separate them.
   312      
   313    --statuses:
   314      Filter for printing packages with specified statuses.
   315      For multiple statuses, use comma to separate them.
   316  `
   317  var StatusExamples = `
   318    # Monitor status for the resources belonging to the package in the current
   319    # directory. Wait until all resources have reconciled.
   320    $ kpt live status
   321  
   322    # Monitor status for the resources belonging to the package in the my-app
   323    # directory. Output in table format:
   324    $ kpt live status my-app --poll-until=forever --output=table
   325  
   326    # Monitor status for the all resources on the cluster
   327    # with certain inventory names and under certain namespaces.
   328    $ kpt live status --inv-type remote --inv-names inv1,inv2 --namespaces ns1,ns2
   329  
   330    # Monitor resources on the cluster that has Current or InProgress status
   331    $ kpt live status --inv-type remote --statuses Current,InProgress
   332  `