我正在使用休闲循环在 Hashicorp Vault 中生成凭证文件。一切正常,但我在文件开头换了一行。我怎样才能删除它?
vault.hashicorp.com/agent-inject-template-credentials.txt: |
{{- with secret (print "secret/data/test/config") }}{{- range $k, $v := .Data.data }}
{{ $k }}: {{ $v }}
{{- end }}{{- end }}
输入:map[test1:test1 test2:test2 test3:test3]
当前输出:
// one empty line at the beginning
test1: test1
test2: test2
test3: test3
噜噜哒
相关分类