BugFix: secret data missing tail newline (#406)
This commit is contained in:
@@ -1253,11 +1253,7 @@ func (p *ACIProvider) getVolumes(pod *v1.Pod) ([]aci.Volume, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for k, v := range secret.Data {
|
for k, v := range secret.Data {
|
||||||
var b bytes.Buffer
|
paths[k] = base64.StdEncoding.EncodeToString(v)
|
||||||
enc := base64.NewEncoder(base64.StdEncoding, &b)
|
|
||||||
enc.Write(v)
|
|
||||||
|
|
||||||
paths[k] = b.String()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(paths) != 0 {
|
if len(paths) != 0 {
|
||||||
@@ -1280,12 +1276,8 @@ func (p *ACIProvider) getVolumes(pod *v1.Pod) ([]aci.Volume, error) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
for k, v := range configMap.Data {
|
for k, v := range configMap.BinaryData {
|
||||||
var b bytes.Buffer
|
paths[k] = base64.StdEncoding.EncodeToString(v)
|
||||||
enc := base64.NewEncoder(base64.StdEncoding, &b)
|
|
||||||
enc.Write([]byte(v))
|
|
||||||
|
|
||||||
paths[k] = b.String()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(paths) != 0 {
|
if len(paths) != 0 {
|
||||||
|
|||||||
Reference in New Issue
Block a user