feat(file): implement spec.files for kind: file#490
Conversation
spec.files for kind: file (first part: targets block)spec.files for kind: file
|
file.yaml: success :) |
spec.files for kind: filespec.files for kind: file
… it's already checked at the spec validation
Well it can't reproduce it :/ |
Well I can randomly reproduce it |
|
The result of my experimentation |
|
I've got this error with your manifest: https://gist.github.com/lemeurherve/4d00d36115c170a40899f8d699abbb91 |
|
@olblak reproduced and fixed :) Please also review lemeurherve#18 cf this comment ;) |
|
Thanks @lemeurherve it works great. Also so, would you have some time to add a manifest to test the different "file" usecases in the e2e directory? Configuration cannot have WARNING or Error as defined in the venom test here |
|
@lemeurherve linting test are failing :) |
|
Looking into e2e errors |
Co-authored-by: Olivier Vernin <olivier@vernin.me>
|
The e2e error comes from $ dist/updatecli_darwin_amd64/updatecli version
VERSION
Application:
Build Time :
$ updatecli version
VERSION
Application: 0.22.3
Golang : 1.17.8 linux/amd64
Build Time : 2022-03-22T09:52:05ZNot sure why though |
It depends who you build updatecli locally, because you may not have set the flag that define the different version information |
|
OK. Do the e2e tests pass locally for you? |
Yes it does |
|
Maybe @dduportal can help you in case of something specific on mac which I am missing |
|
Anyway e2e test are executed for each pullrequest in the build workflow so you'll know very quickly if something goes wrong. :D |
Follow-up of updatecli#490 Ref updatecli#435
Follow-up of updatecli#490 Ref updatecli#435
Follow-up of updatecli#490 Ref updatecli#435
Follow-up of updatecli#490 Ref updatecli#435
* feat(yaml): implement spec.files for kind: yaml Follow-up of #490 Ref #435 * Add e2e test for yaml (#43) * Apply suggestions from code review Co-authored-by: Olivier Vernin <olivier@vernin.me> * chore: move test to e2e success folder * wip: first stab at files for condition too * Revert "wip: first stab at files for condition too" This reverts commit 957f21e. * restore comment, will be done in #729 * chore: replace deprecated sourceID field by sourceid * fix: e2e tests * breaking?: no error if the target content hasn't changed * Remove broken test file Signed-off-by: Olblak <me@olblak.com> * patch from main (with #846 included and adapted) * fix tests * Add missing jsonschema annotations Co-authored-by: Olivier Vernin <olivier@vernin.me> * fix: remove files field from expected autodiscovery tests results Omited if empty since previous commit * cleanup: remove non mandatory empty files field from chart examples * chore: more complete debug log with initial filePath * chore: add debug logs * Update pkg/plugins/resources/yaml/main.go * chore: add missing Test_TargetFromSCM test * Update pkg/plugins/resources/yaml/source.go Co-authored-by: Hervé Le Meur <91831478+lemeurherve@users.noreply.github.com> * Update pkg/plugins/resources/yaml/main.go Co-authored-by: Olivier Vernin <olivier@vernin.me> * allow multiples files for 'condition' * update example with a condition checking multiple files * remove TODOs * remove unrelated changes * replace example by e2e test * correct check for s.file * Update pkg/plugins/resources/yaml/main.go --------- Signed-off-by: Olblak <me@olblak.com> Co-authored-by: Olivier Vernin <olivier@vernin.me> Co-authored-by: Olblak <me@olblak.com>

Ability to specify more than one file for
kind: fileFixes #435
Additional validations
General:
spec.Lineis specifiedFor
sources&conditionsFor
targets:spec.Lineis specifiedTest
To test this pull request, you can run the following commands:
Additional Information
spec.fileshould be deprecated in the following version.Potential improvements
kind: dockerfileandkind: yamlfiletofiles