Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

secrets-template with >1 templates that include range statement causes dest/template mismatch #16

Closed
smurfralf opened this issue Dec 17, 2019 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@smurfralf
Copy link

Scenario: I configure secrets-destination and secrets-template with multiple comma delimited values. Because secrets.go splits the annotation strings with "," as the delimiter, a template that includes

{{ range \$k, \$v := .Data }}

will split on the internal comma resulting in error

Submitted pod must contain same numbers of templates and secrets destinations
@asaintsever
Copy link
Contributor

Good catch. Thanks for reporting the issue.

@asaintsever asaintsever added the bug Something isn't working label Dec 17, 2019
@asaintsever asaintsever added this to the 5.1.1 milestone Dec 17, 2019
@asaintsever
Copy link
Contributor

Fixed via #18

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants