We shouldn't quote encoded values
Quoting before encoding in base64 adds the quotes in the encoded data. That's a bad behavior.
This commit is contained in:
@@ -88,7 +88,7 @@ func (s *Secret) AddData(key string, value string) {
|
||||
if value == "" {
|
||||
return
|
||||
}
|
||||
s.Data[key] = []byte(`{{ tpl ` + value + ` $ | quote | b64enc }}`)
|
||||
s.Data[key] = []byte(`{{ tpl ` + value + ` $ | b64enc }}`)
|
||||
}
|
||||
|
||||
// Yaml returns the yaml representation of the secret.
|
||||
|
Reference in New Issue
Block a user