--- gets mis-interpreted and is an issue at least in the first occurring multiline string
ENVIRONMENT
Kubeaudit version: 0.22.1
Kubeaudit install method: Binary
STEPS TO REPRODUCE
manifest.yaml
---
apiVersion: v1
kind: ConfigMap
metadata:
name: multiline-issue
data:
k1: |
---
This gets messed up
k2: |
--
This is fine
k3: |
-----BEGIN CERTIFICATE-----
It's an issue in certificates, too...
-----END CERTIFICATE-----
kubeaudit autofix -f manifest.yaml -o out.yaml
EXPECTED RESULTS
out.yaml
---
apiVersion: v1
kind: ConfigMap
metadata:
name: multiline-issue
data:
k1: |
---
This gets messed up
k2: |
--
This is fine
k3: |
-----BEGIN CERTIFICATE-----
It's an issue in certificates, too...
-----END CERTIFICATE-----
ACTUAL RESULTS
out.yaml
---
apiVersion: v1
kind: ConfigMap
metadata:
name: multiline-issue
data:
k1: ""
---
This gets messed up
k2: |
--
This is fine
k3: |
-----BEGIN CERTIFICATE-----
It's an issue in certificates, too...
-----END CERTIFICATE-----
ISSUE TYPE
BUG REPORT
SUMMARY
---
gets mis-interpreted and is an issue at least in the first occurring multiline stringENVIRONMENT
STEPS TO REPRODUCE
manifest.yaml
EXPECTED RESULTS
out.yaml
ACTUAL RESULTS
out.yaml