Is it possible function in variable #1150
Closed
lekpamartin
started this conversation in
General
Replies: 1 comment
-
Hi, Best |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
How to declare a function with monaco.
I want to use function like "lower" to alter variable. I have a variable with upercase and space and want to use it as id. I have to define 2 more variables
"name": "{{ .global.project }} SLO for {{ .global.service_name }}",
"metricName": "{{ .global.project_lower }} SLO for {{ .global.service_name_transform }}",
For example with jinja it will be
"name": "{{ .global.project }} SLO for {{ .global.service_name }}",
"metricName": "{{ .global.project | lower }} SLO for {{ .global.service_name | replace(" ","_") | lower }}",
I get undefined function lower when deploy config in monaco 2.
Thx
Beta Was this translation helpful? Give feedback.
All reactions