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