Skip to content
This repository has been archived by the owner on Jun 13, 2021. It is now read-only.

Remove support for "single file" app definition #608

Merged
merged 4 commits into from Sep 13, 2019

Conversation

ndeloof
Copy link
Contributor

@ndeloof ndeloof commented Sep 9, 2019

- What I did
Removed support for single file docker app definition. Only can use .dockerapp folder with dedicated yaml files now

- How I did it

Mostly code removal

- How to verify it

all non single-file specific tests are preserved

- Description for the changelog

"Single file" (multi document yaml) docker app definition is not supported anymore.
skip and merge commands as well as --single-file option have been removed

- A picture of a cute animal (not mandatory but encouraged)

image

Use of such a multi-document yaml file with required ordering is mostly
confusing

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
@codecov
Copy link

codecov bot commented Sep 9, 2019

Codecov Report

Merging #608 into master will decrease coverage by 1.42%.
The diff coverage is 75%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #608      +/-   ##
==========================================
- Coverage   72.86%   71.44%   -1.43%     
==========================================
  Files          53       52       -1     
  Lines        2849     2651     -198     
==========================================
- Hits         2076     1894     -182     
- Misses        504      527      +23     
+ Partials      269      230      -39
Impacted Files Coverage Δ
types/types.go 83.12% <ø> (-5%) ⬇️
internal/commands/root.go 84.61% <ø> (+11.49%) ⬆️
internal/packager/extract.go 55.81% <0%> (-6.69%) ⬇️
internal/commands/init.go 88.23% <100%> (-0.66%) ⬇️
internal/packager/init.go 57.52% <100%> (-6.48%) ⬇️
internal/packager/split.go 0% <0%> (-54.84%) ⬇️
render/render.go 76.38% <0%> (-6.37%) ⬇️
loader/loader.go 80.95% <0%> (-4.77%) ⬇️
... and 3 more

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 daee953...be84671. Read the comment docs.

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
Copy link
Contributor

@silvin-lubecki silvin-lubecki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that everything linked to

func YamlSingleFileSeparator(hasCRLF bool) []byte {
should be removed too.

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
Copy link
Contributor

@silvin-lubecki silvin-lubecki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Copy link
Contributor

@ulyssessouza ulyssessouza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants