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

prefix is overiden by label #1560

Open
barrykaplan opened this issue Mar 23, 2024 · 1 comment
Open

prefix is overiden by label #1560

barrykaplan opened this issue Mar 23, 2024 · 1 comment
Labels
state: needs triage Waiting to be triaged by a maintainer.

Comments

@barrykaplan
Copy link

When label is used the prefix has no effect.

OVERLAY is passed in from the calling task.

  update-cluster-secret:
    label: overlay-update-secret-{{.SECRET}}
    sources:
      - "{{.ROOT_DIR}}/base/.env"
    cmds:
      - create-sealedsecret --secret={{.SECRET}}.yaml
    prefix: '{{.OVERLAY}} update {{.SECRET}}'

The prefix that is emitted is the label value, not the prefix value.

I need to specify label because I need for the SECRET value distinguish the task checksum.
But I am still trying to have a different prefix value.

Maybe related to #933

  • Task version: 3.35.1
  • Operating system: linux mint 21.3
  • Experiments enabled: none
@task-bot task-bot added the state: needs triage Waiting to be triaged by a maintainer. label Mar 23, 2024
@barrykaplan
Copy link
Author

Hmm, maybe I misunderstood. Is prefix only for the output generated by commands? That is what I am seeing. Where outputs generated by task itself still uses the label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: needs triage Waiting to be triaged by a maintainer.
Projects
None yet
Development

No branches or pull requests

2 participants