Skip to main content
Filter by
Sorted by
Tagged with
3 votes
1 answer
548 views

Go Template get a variable dynamically

I have yml parameters that look like nodes: one, two instanceMinOne: 1 instanceMaxOne: 2 instanceMinTwo: 4 instanceMaxTwo: 6 Is there a way with go templating to dynamically read for example ...
Alexis's user avatar
  • 1,852
0 votes
1 answer
504 views

gomplate: executing "<arg>" at <.Values.tpl.organization>: map has no entry for key "Values"

Here is my yaml file apiVersion: myapi.com/v1 kind: Template metadata: name: {{ .Values.tpl.organization }}-template-mkytemplatetemplate spec: # Add fields here organization: {{ .Values.tpl....
YeKc1M's user avatar
  • 85
7 votes
2 answers
15k views

Gomplate : bad character U+0022 '-'

I was trying out gomplate and encountered an error. For context I've defined a template file, test.tmplt, and a datasource file, dev.yaml. test.tmplt has the following content : localAPIEndpoint: ...
MFranc's user avatar
  • 376
1 vote
1 answer
111 views

How to generate configuration for combination of multiple environments and mutations

I'm trying to use gomplate as a generator of configuration. The problem I'm facing now is having multiple mutations and environments where the application needs to be configured in a different way. I'...
meridius's user avatar
  • 1,557
1 vote
0 answers
2k views

How to get environment variable in gomplate arrays?

I need to create an array of some Environment variables in gomplate template and print in order to see if environment variables are set properly. I tried from the docs https://docs.gomplate.ca/syntax/...
user3597719's user avatar