Lifecycle

An explanation of Troubleshoot Lifecycle

Lifecycle

When writing a Troubleshoot custom collector, it’s possible to add custom messaging and to add or remove upload prompts from the generation process.

A default lifecycle spec is applied, if a different one is not provided. The default lifecycle simply collects a support bundle and writes it to disk.

Replicated provides additional options in the lifecycle section, all of them are documented in reference section.

You can change this default behavior to avoid prompting and have custom messages, if desired by passing a custom lifecycle spec like this:

lifecycle:
  v1:
    - generate: {}
    - message: |
        A support bundle has been created at {{.BundlePath}}.
        Please take a look at this bundle contents, remove
        any sensitive data you don't want to share, and then
        attach it to your support ticket."