Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about sprig-template-functions

Read more about sprig-template-functions

python (65.2k questions)

javascript (44.3k questions)

reactjs (22.7k questions)

java (20.8k questions)

c# (17.4k questions)

html (16.3k questions)

r (13.7k questions)

android (13k questions)

Questions - sprig-template-functions

How to use range function to keep values in same line in helm

I am trying to build configmap data out of values I have in values.yaml. CASE 1: values.yaml: dns_domains: abc xyz dns_servers: IP1 IP2 IP3 I want configmap data something as below for the above...
test-img

anonymous user

kubernetes-helm

sprig-template-functions

Votes: 0

Answers: 1

Latest Answer

With the format you currently have, .Values.dns_servers is already a string with space-separated values, which is the format you want out. You don't need to split it to a list and write it out again....
test-img

David Maze

In Go templates/Sprig, how to modify a captured group in a regular expression before replacing it?

I'd like to write a Go template which takes in a URL with a query parameter earliest which represents a relative time, e.g. earliest=-15m, and converts it to an absolute time relative to now as a Unix...
test-img

Kurt Peek

go

go-templates

sprig-template-functions

Votes: 0

Answers: 1

Latest Answer

I managed to get this to work by defining a variable, package main import ( "html/template" "os" "github.com/Masterminds/sprig" ) type Alert struct { U...
test-img

Kurt Peek

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved