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

actions have whitespace prepended #132

Open
Michael-Kruggel opened this issue Jul 24, 2024 · 2 comments
Open

actions have whitespace prepended #132

Michael-Kruggel opened this issue Jul 24, 2024 · 2 comments

Comments

@Michael-Kruggel
Copy link

Michael-Kruggel commented Jul 24, 2024

Steps to reproduce

  1. Store indented yaml in a secret
    ex:
    supersecret: |
      key1:
        key2: value1
      key3: value2
  2. Retrieve secret via zarf action
    ex:
    actions:
      onDeploy:
        after:
          - cmd: ./zarf tools kubectl get secret secret-name -n secret-namespace -o=jsonpath='{.data.supersecret}' | base64 --decode

Expected result

Output is this:

key1:
  key2: value1
key3: value2

Actual Result

Output is this:

    key1:
  key2: value1
key3: value2

Visual Proof (screenshots, videos, text, etc)

image

@UncleGedd
Copy link
Collaborator

Hey @Michael-Kruggel I'm going to transfer this over to the Maru repo

@UncleGedd UncleGedd transferred this issue from defenseunicorns/uds-cli Jul 26, 2024
@Racer159
Copy link
Contributor

@Michael-Kruggel attempting to reproduce I get:

    key1:
      key2: value1
    key3: value2

which is what I would expect - the whitespace is intentional to provide a visual distinction btwn system messages and the tast output though it should be on every line as it seems to be now not just the first one like you saw - this may have been resolved in a refactor (or potentially there is something else I am misunderstanding?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants