Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce comments to pebble plan output for debug. #342

Closed
wants to merge 1 commit into from

Conversation

hpidcock
Copy link
Member

@hpidcock hpidcock commented Jan 4, 2024

This is an attempt at adding in debug comments to the output of pebble plan with --debug.
Each comment is the label of the layer in which the configuration originated from.

pebble plan --debug output:

$ pebble plan --debug
services:
    srv1:
        summary: first service # first
        override: replace
        command: bash -c 'sleep 1000' # first
        after:
            - srv2 # second
        environment:
            A: a # first
            B: b # second
    srv2:
        summary: second svc # second
        override: replace
        command: bash -c 'sleep 1000' # second

Files:

$ cat 001-first.yaml
services:
  srv1:
    override: replace
    summary: first service
    command: bash -c 'sleep 1000'
    environment:
      A: a
$ cat 002-second.yaml
services:
  srv1:
    override: merge
    environment:
      B: b
    after:
      - srv2
  srv2:
    summary: second svc
    override: replace
    command: bash -c 'sleep 1000'

@hpidcock hpidcock added the Blocked Waiting for something external label Jan 5, 2024
@hpidcock hpidcock marked this pull request as ready for review February 9, 2024 03:36
@hpidcock hpidcock closed this Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blocked Waiting for something external
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant