-
Notifications
You must be signed in to change notification settings - Fork 17
Support new files|volumes
spec with score-go
v1.10.0
#164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Mathieu Benoit <mathieu-benoit@hotmail.fr>
Signed-off-by: Mathieu Benoit <mathieu-benoit@hotmail.fr>
Signed-off-by: Mathieu Benoit <mathieu-benoit@hotmail.fr>
@mathieu-benoit do you need support here? Can I help on this one? |
Thanks, but still need to find time, hopefully I'll get this done this week. |
Signed-off-by: Mathieu Benoit <mathieu-benoit@hotmail.fr>
@astromechza ready for your review please. Couple of call out:
I still want to deploy some examples with |
@mathieu-benoit yes I think you should truncate to first 8 characters of the vol or file hash. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Truncate the hashes, use constants in the tests, and remove the score-k8s binary in the commit.
Signed-off-by: Mathieu Benoit <mathieu-benoit@hotmail.fr>
@mathieu-benoit you'll need to allocate and then slice
|
Signed-off-by: Mathieu Benoit <mathieu-benoit@hotmail.fr>
volumes
and files
spec with score-go
v1.10.0
Signed-off-by: Mathieu Benoit <mathieu-benoit@hotmail.fr>
Signed-off-by: Mathieu Benoit <mathieu-benoit@hotmail.fr>
volumes
and files
spec with score-go
v1.10.0
files|volumes
spec with score-go
v1.10.0
Hash now truncated and Now working on the remaining unit tests failure which seems to be a flaky list ordering... stay tuned. |
This is actually ready for the final review, please @astromechza. Just ran 10+ times the unit tests locally and they were also successfull with the 2 last CI runs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @mathieu-benoit! Great contribution :) I hope you enjoyed working more with Go for a change ;)
I did and I do! Thanks for your support, great learnings here! More to come. |
Like it was done there score-spec/score-compose#302.
github.com/score-spec/score-go v1.10.0
score-spec/score-go#103 based on score-spec/spec#123 (comment)
This PR also makes sure that previous/old
files|volumes
spec is still working while we support the new spec.Both examples working with this new version (and are not generating any diff with their
manifests.yaml
files):Old
files|volumes
spec:New
files|volumes
spec:Also, just to keep in mind that with a previous version of
score-k8s
, here is the diff with this new implementation with the given example above: