mia-platform / mlp

cli for easier deployment of Mia-Platform Console projects
https://docs.mia-platform.eu/docs/runtime_suite_tools/mlp/overview
Apache License 2.0
12 stars 2 forks source link

fix: splitting error on --- inside file #9

Closed thobianchi closed 2 years ago

thobianchi commented 2 years ago

Fixes splitting yaml if contains --- inside but not as a single line.
Example:

apiVersion: v1
kind: ConfigMap
metadata:
  name: configmap
data:
  key1: aaaa---dldl

Before this PR this valid single yaml was splitted on --- as this was a yaml with two resources

codecov-commenter commented 2 years ago

Codecov Report

Merging #9 (89eddca) into main (7cc440a) will increase coverage by 0.21%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main       #9      +/-   ##
==========================================
+ Coverage   67.99%   68.20%   +0.21%     
==========================================
  Files           9        9              
  Lines        1209     1211       +2     
==========================================
+ Hits          822      826       +4     
+ Misses        310      309       -1     
+ Partials       77       76       -1     
Impacted Files Coverage Δ
pkg/resourceutil/resource.go 71.56% <100.00%> (+1.27%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 7cc440a...89eddca. Read the comment docs.