* update root and version structure and help text
* fix: limit openshift int test with tag
* refactor: commands to use simplifed, unified constructor
* fix ineffectual assignment lint error
* cleanup
* add repository to run command
* callout for forthcoming s2i builder impl
* lint errors
* re-add the deferred client factory
* remove setNamespaceFlag now that it is persistent
* avoid side-effect of global-mutating deploy tests
* reduce line-by-line difference for PR ease
* simplificaiton of tests and comment lines for further PR ease purposes
* reduce inconsequential differences for ease of PR
* tests to RootCommandConfig
* review comment updates
* fix lint errors
* replace stdlib Setenv in tests
Using t.Setenv will require an update to go1.17, which is out of scope
for this PR.
* pass ClientFactory throughout
* explicitly empty test command args
See https://github.com/spf13/cobra/pull/155
Errors can still be encountered when, for example, using precomiled
tests. Explicitly setting constructed command args to the empty slice
ensures we avoid hitting any futher edge cases.
* Support using 'func invoke' for springboot templates
- add README notes for using 'func invoke' to springboot templates
- update ce-type used for cloudevents template tests
* Re-generate zz_filesystem_generated.go after rebase
* Improve template ZIP generation
Use only 755 and 644 mod permission.
The exec bit is really the only one that we care about.
Also other bits may be set differently on developer machines depending
on its configuration, this would affect generation reproducibility.
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* Add explanatory comment
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* Recreate git repo from scratch
Recreated the repo by `git init --bare` and commited template there all
over again.
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* Enable previously disabled tests for Windows
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* Use git HTTP protocol not file protocol in tests
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* fixup: cleanup
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* doc: add documentation for using podman remotely
This commit adds more documentation for using podman, specifically in this
case, connecting to and using a remote podman service from a Mac computer.
Signed-off-by: Lance Ball <lball@redhat.com>
* fixup
Signed-off-by: Lance Ball <lball@redhat.com>
* updating to latest spring cloud release and refactoring code
* new health endpoints
* implementing simplified echo function in template
* adding banner
* adding NL at EOF
* updating native to release
* fixing trailing whitespace
* adding invocation back
* adding Newline
* whitespaces
* fix lint and regenerate
* regenerate zz filesystem after rebase
* Fix formatting for template zip generator
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* fixup: style
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* Improve formant performance in template generation
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* Improve memory footprint of template generation
Use streamlined generation which is limiting need for in memory buffers.
Might be imprtant if we had big files in templates.
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* Generate templates unconditionally
Rationale:
The way we create prerequisites (the find command) we cannot detect deleted files.
The generation is fast (around 500ms) so we can afford that.
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* Test embbeded templates content on push to main
This has to run prior to `make test` because the `test` recipe
enforces generation of the templates zip.
This would prevent test from being run against git commited templates
zip.
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* Optimization don't use unnecessary io.Pipe
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* update root and version structure and help text
* fix: limit openshift int test with tag
* src: verbosity to constructor param
* fix misspelling
* fix merge error