replicatedhq / ship

A better way to deploy Kubernetes Helm charts
https://www.replicated.com/ship
Apache License 2.0
636 stars 70 forks source link

Kustomize3 #1068

Closed jbrette closed 5 years ago

jbrette commented 5 years ago

Just in case you plan to migrate to kustomize 3 code base:

What I Did

How I Did it

How to verify it

Description for the Changelog

Picture of a Ship (not required but encouraged)

e00_22_07

e00_23_00

jbrette commented 5 years ago

@laverya I think a lot of the failed integration tests are linked to the fact the kustomize 3.x does output the objects in the same order than kustomize 2.x (even so we activated the "legacy" order transformer).

Should the tests be updated or should a transformer build to match the exact same order ?

laverya commented 5 years ago

This looks really nice! Is there any reason for the removed vendor dir, though?

Also, regarding integration test changes - it's really not the best system, but "expected changes after code changes" is what we've been doing so far. Good for "this changed and it shouldn't have", but it makes "the yaml is now rendered in a different order" really inconvenient...

The only other thing is the business logic changes to handle the new resources/bases/patches behaviors, but that's not something I'd expect you to do 😆 (And I can handle it in another PR)

jbrette commented 5 years ago

@laverya I did remove the vendor directory because:

jbrette commented 5 years ago

Will not have enough time to complete the integration test changes.

laverya commented 5 years ago

@jbrette, thank you for the PR - I'll start from this and fixup the tests myself if that's all right with you?

jbrette commented 5 years ago

@laverya No problem, I leave the branch around. According to the last test, mainly the integration tests were failing and one task requiring a very specific version of a module in the vendor folder.