Matej Vasek
8ac4941b67
test: initial integration test for knative related functionality ( #1338 )
...
* test: init integration test for knative pkg
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* fixup: added test for scaling and direct envvar
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-10-14 18:01:54 +00:00
Zbynek Roubalik
3c195d29cd
chore: add link to the roadmap in the Readme ( #1337 )
...
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2022-10-14 11:35:54 +00:00
Matej Vasek
dce1e75328
feat: cancel pipeline run on CTRL^C ( #1329 )
...
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-10-14 08:22:53 +00:00
Luke Kingland
3a99f1f963
update CLI deps (cobra, viper, etc) ( #1326 )
2022-10-14 08:21:53 +00:00
Matej Vasek
46b09e28fa
cleanup: removed unused functions ( #1336 )
...
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-10-14 00:14:53 +00:00
Lance Ball
792e754aa4
chore: bump node and golang actions to latest ( #1328 )
...
See: https://github.com/knative/func/actions/runs/3242685285
Signed-off-by: Lance Ball <lball@redhat.com>
Signed-off-by: Lance Ball <lball@redhat.com>
2022-10-14 00:04:53 +00:00
Matej Vasek
1aca4a9553
test: added test for get pod's logs ( #1330 )
...
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-10-13 23:55:53 +00:00
Matej Vasek
631f5aae1e
test: appease coverage gods ( #1334 )
...
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-10-13 23:49:53 +00:00
Lance Ball
d60688d2d2
chore: fix codecov.yaml ( #1335 )
...
* chore: fix codecov.yaml
Signed-off-by: Lance Ball <lball@redhat.com>
* fixup: remove explicit generated file
Signed-off-by: Lance Ball <lball@redhat.com>
Signed-off-by: Lance Ball <lball@redhat.com>
2022-10-13 22:37:53 +00:00
Matej Vasek
e584b7611f
chore: update codecov config ( #1332 )
...
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-10-13 21:38:53 +00:00
Matej Vasek
7a88eb48bc
test: test for docker runner ( #1331 )
...
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-10-13 20:54:53 +00:00
Lance Ball
5adec03c7b
chore: update all references to kn-plugin-func ( #1311 )
...
* chore: update all references to kn-plugin-func
I did not change references in CHANGELOG.md but otherwise, I believe
this should cover all configuration settings, image names, package
names, etc.
Signed-off-by: Lance Ball <lball@redhat.com>
* fixup: fix instances_test.go
Signed-off-by: Lance Ball <lball@redhat.com>
* fixup: still some stray kn-plugin-func
Signed-off-by: Lance Ball <lball@redhat.com>
Signed-off-by: Lance Ball <lball@redhat.com>
2022-10-13 16:31:53 +00:00
Lance Ball
4961298264
chore: more changes to CI workflow ( #1327 )
...
Set up the cluster and such for integration tests. Move template tests
to the Unit Test section. Hopefully this works now.
Signed-off-by: Lance Ball <lball@redhat.com>
Signed-off-by: Lance Ball <lball@redhat.com>
2022-10-13 13:18:53 +00:00
Lance Ball
a74e825a2e
chore: fix ci.yaml ( #1324 )
...
The `needs` contexts were pointing to old job steps.
Signed-off-by: Lance Ball <lball@redhat.com>
Signed-off-by: Lance Ball <lball@redhat.com>
2022-10-12 20:44:52 +00:00
Lance Ball
9536e336af
chore: update CI to run unit+integration on main ( #1319 )
...
* chore: update CI to run unit+integration on main
This commit modifies the Ci jobs that run when commits land on `main`,
splitting the one job into three: check, test-unit and test-integration.
Code coverage stats are included for both test runs.
Signed-off-by: Lance Ball <lball@redhat.com>
* fixup: remove stray java stuff
Signed-off-by: Lance Ball <lball@redhat.com>
Signed-off-by: Lance Ball <lball@redhat.com>
2022-10-12 19:50:52 +00:00
Adam Boczek
1b94698f56
fix: the --registry flag is ignored when image: <imagename> exists in func.yaml ( #1310 )
...
* fix: add handling in case of differences between registry value and image tag (#1297 )
* fix: add additional test cases (#1297 )
2022-10-12 14:42:52 +00:00
Lance Ball
cc0fb82e89
chore: add unit test cases for instances ( #1314 )
...
* chore: add unit test cases for instances
Signed-off-by: Lance Ball <lball@redhat.com>
* fixup: account for windows
Signed-off-by: Lance Ball <lball@redhat.com>
* fixup: account for windows for real
Signed-off-by: Lance Ball <lball@redhat.com>
Signed-off-by: Lance Ball <lball@redhat.com>
2022-10-12 14:16:51 +00:00
Lance Ball
318d3e1621
chore: change Makefile for multiple tags at HEAD ( #1252 )
...
With the move to the full Knative release train, we now get two tags on
HEAD for the release commit. In the current case, it was `v0.34.0` for
the "internal" version, and `knative-1.7.0`. The Makefile attempts to
determine the version for static linking by looking at the tag at HEAD.
With the git command returning two tags, `make` broke. This change takes
the first of the two tags (will always be `knative-x.x.x`) which I think
is less confusing for CLI users than `v0.34.0`.
I've also updated docs with a couple of changes that weren't reflected
there but landed in 1.7.
Finally, I've removed versions.txt as that is no longer used, and
docs/RELEASING.md as our processes have changed.
Signed-off-by: Lance Ball <lball@redhat.com>
Signed-off-by: Lance Ball <lball@redhat.com>
2022-10-12 11:45:53 +00:00
knative-automation
6b8cccbbf9
upgrade to latest dependencies ( #1269 )
...
bumping github.com/prometheus/common 2af6d03...49b3603:
> 49b3603 Improve OAuth2 user agent handling (# 391)
> c5e1b60 config: ignore deprecated warning in tests (# 389)
> b86ea81 OAuth2: Respect disable keepalives option; Implement close idle connections (# 390)
> cdc09f0 Merge pull request # 387 from roidelapluie/useragent
> d75e027 Merge pull request # 388 from simonpasquier/fix-tls-tests-for-go-1.18
> db0284d Fix comment
> 26d4974 Add more mimetypes (# 385)
> aeda642 Update to Go 1.18
> 2d0de85 Use full roundtripper
> 627089d Set minimum version for go to 1.16 (# 372)
> 5ab1c85 config: fix testdata for Go 1.18
> 316097c Use WithUserAgent
> 3763a1d TLS config: Enable selection of min TLS version (# 375)
> 99a1aca add User-Agent header to oauth2 requests
> 0c7319a Remove comment about PROMETHEUS_COMMON_DISABLE_HTTP2 env var because it is no longer true
> 840c039 Use path.Clean to clean sigv4 path.
> ffd0efb Deduplicate slashes for sigv4 signature
> 902cb39 Merge pull request # 365 from prometheus/superq/bump_sigv4
> 2c24277 Merge pull request # 362 from prometheus/repo_sync
> 910a9df Update sigv4 modules
> f6b0912 Merge pull request # 353 from prometheus/superq/bump_go
> e457c0a Update common Prometheus files
> 0e1254b Merge pull request # 359 from prometheus/repo_sync
> 3c43b4d Update build/test
> 252ff6f Make HTTP2 user visible
> 809633a Update common Prometheus files
> 00591a3 circleci: Test with go 1.17 (# 347)
> 0762b59 Add proxy_url support for oauth2
> f57586d circleci: add test-assets and style jobs
> 1871a70 assets: add file system layer for zipped embed assets
> ce7006e Update common Prometheus files (# 344)
> 88ce30c Update common Prometheus files (# 340)
> 88f1636 Remove github.com/pkg/errors dependency (# 338)
bumping contrib.go.opencensus.io/exporter/prometheus f3a7283...e6b6b80:
> e6b6b80 Merge pull request # 30 from bogdandrutu/updatedeps
> aaaf212 Merge pull request # 28 from wincus/update-prometheus
> 75046ad Upgrade all deps to lastest
> bf25aba update prometheus golang client
bumping golang.org/x/net 0bcc04d...f2f64eb:
> f2f64eb http2: Send WindowUpdates when remaining bytes are below a threshold
> ca03788 dns/dnsmessage: remove unnecessary []byte conversions
> 0081b4b http2/h2c: propagate HTTP/1 server configuration to HTTP/2
> f8f703f http2: accept HEAD requests with a body
> bea034e all: remove redundant type conversion
> 1e95f45 http/httpproxy: remove comment on https proxy precedance
> f3363e0 http2: handle server errors after sending GOAWAY
> 83b083e internal/socket: add missing import to zos-s390x file
> b0a4917 dns/dnsmessage: use exported MustNewName in example
> 3211cb9 nettest: fix Unix socket test on macOS
> 4c34ddd http2: delete multipart form tempfiles after ServeHTTP returns
> 1d4ff48 http2: add DialTLSContext to Transport
> 13a9a73 http2: fix conn flow control when stream closes on bad content-length
> 07c6da5 dns/dnsmessage: add AD and CD bits support
> f428fae all: add FreeBSD riscv64 support
> a33c5aa route: import syscall rather than golang.org/x/sys/unix
> 7431dee lif: import syscall rather than golang.org/x/sys/unix
Signed-off-by: Knative Automation <automation@knative.team>
Signed-off-by: Knative Automation <automation@knative.team>
2022-10-12 05:44:51 +00:00
Gabriel Freites
9c3118a54e
Func unit testing first approach ( #1312 )
...
* fixed typos on test readme.md
* added my first unit tests to func repo builder errors
2022-10-12 04:41:51 +00:00
Matej Vasek
bf52811f18
chore: use t.Cleanup() more ( #1315 )
...
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-10-11 15:48:50 +00:00
Lance Ball
3f5933ec73
chore: update release script to use knative org ( #1306 )
...
Signed-off-by: Lance Ball <lball@redhat.com>
Signed-off-by: Lance Ball <lball@redhat.com>
2022-10-10 13:21:37 +00:00
Lance Ball
1a54a8d78a
chore: add coverage for integration tests ( #1307 )
...
Added coverage output for integration test, and added codecov uploads
for both integration and unit tests.
This commit changes the output file to coverage.txt as well, in order to
be consistent with knative test infrastructure.
Signed-off-by: Lance Ball <lball@redhat.com>
Signed-off-by: Lance Ball <lball@redhat.com>
2022-10-10 13:18:35 +00:00
Gunjan Vyas
06ade524de
feat: interactive prompt for on-cluster deploy ( #1300 )
...
* feat: interactive prompt for on-cluster deploy
* changed the prompt type to survey.Confirm
2022-10-06 18:31:32 +00:00
github-actions[bot]
7bd95e5d54
chore: update Quarkus platform version to 2.13.1.Final ( #1302 )
...
Co-authored-by: Knative Automation <automation@knative.team>
2022-10-06 18:26:32 +00:00
Lance Ball
1c6d3bab49
chore: update docs README.md ( #1301 )
...
* chore: update docs README.md
Removed a lingering reference to Boson and accepted Grammarly
reccomendations.
Signed-off-by: Lance Ball <lball@redhat.com>
* fixup
Signed-off-by: Lance Ball <lball@redhat.com>
Signed-off-by: Lance Ball <lball@redhat.com>
2022-10-06 18:03:31 +00:00
Ali Ok
1a6c42f01b
Fix a typo in Quarkus template README.md ( #1296 )
...
* Update README.md
* fixup: updated zz_filesystem_generated.go
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Co-authored-by: Matej Vasek <mvasek@redhat.com>
2022-10-05 12:45:29 +00:00
Luke Kingland
69659e3036
fix: missing close of manifests ( #1299 )
2022-10-05 09:30:31 +00:00
github-actions[bot]
ecd75430a1
chore: update Quarkus platform version to 2.13.0.Final ( #1290 )
...
Co-authored-by: Knative Automation <automation@knative.team>
2022-10-04 14:01:29 +00:00
Luke Kingland
c9861ec24e
chore: cmd test cleanup ( #1289 )
...
All tests which are directory-sensitive now also:
- reset viper
- use t.Cleanup
- use t.TempDir
- use a clean XDG_CONFIG_HOME
- specify explict name when creating
- moves helpers to root_test
2022-10-03 22:03:28 +00:00
Matej Vasek
dc14ec7753
feat: ksvc log on (first) deploy ( #1286 )
...
Print ksvc pods log on (first) deploy for better debugging.
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-10-03 22:02:28 +00:00
Matej Vasek
abc4de5b8f
feat: always pull base image for s2i builds ( #1292 )
...
Make sure that we use latest image with security fixes.
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-09-29 11:41:18 +00:00
knative-automation
b09a84877b
Update community files ( #1291 )
...
Signed-off-by: Knative Automation <automation@knative.team>
Signed-off-by: Knative Automation <automation@knative.team>
2022-09-29 02:48:16 +00:00
knative-automation
e041bc84eb
Update community files ( #1288 )
...
Signed-off-by: Knative Automation <automation@knative.team>
Signed-off-by: Knative Automation <automation@knative.team>
2022-09-28 03:09:16 +00:00
Zbynek Roubalik
047a6d875d
chore: ability to install only Tekton Tasks ( #1284 )
...
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2022-09-27 15:36:15 +00:00
David Simansky
e0bbcc2d08
chore: Refactor use of deprecated io/ioutil package ( #1285 )
2022-09-27 13:28:15 +00:00
salaboy
c86cc0f5f7
[chore] increase labels, envs and volumes test coverage ( #1276 )
...
* test to see coverage increase
* adding env string and edge case coverage
* adding volumes string and edge case coverage
2022-09-27 09:05:14 +00:00
Luke Kingland
322acc7caa
fix: default readiness endpoint ( #1282 )
2022-09-26 16:35:13 +00:00
Luke Kingland
4c8f730099
feat: readonly global config ( #1260 )
...
* improved deploy test output
* remove unused config struct
* feat: read-only global config
Co-authored-by: Lance Ball <lball@redhat.com>
2022-09-23 17:49:13 +00:00
David Simansky
4be773d9f6
chore: Update versions of major libraries used ( #1277 )
...
* Update buildpacks/pack deps
* Update tektoncd/cli deps
* Regen Linux only licenses
* Downgrade hinshin/vt10x to required version
* Fix deprecated warning in ssh config
2022-09-23 17:46:13 +00:00
Luke Kingland
63af791e9f
fix: always use function's namespace when invoking remote ( #1258 )
...
* fix: always use function's namespace when invoking remote
* test
* Apply suggestions from code review
Co-authored-by: Matej Vasek <matejvasek@gmail.com>
2022-09-23 12:42:13 +00:00
salaboy
fe0368a793
[feat] refactoring func.yaml struct to match cmd lifecycle ( #1254 )
...
* rebased and updated func struct
* fixing migration to 1.0.0 struct
* fixing on cluster tests
* updaating migration version to 0.34.0
* adding tests for marshalling and migration errors
* adding EOF new line
* updating migrations
* fixing wrong name
* fixing marshalling test
* adding EOF line
* fixing assertion
2022-09-22 20:22:12 +00:00
Matej Vasek
d038f6c73e
fix: stdin interactivity check ( #1271 )
...
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-09-22 13:13:12 +00:00
Matej Vasek
56b56a5559
Testing cleanup ( #1272 )
...
* chore: replace WithEnvVar -> t.Setenv()
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* chore: replace defer with t.Cleanup()
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* chore: remove unused function
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* fix: os.Hostname -> os.UserHomeDir
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-09-22 13:12:12 +00:00
Matej Vasek
2988f0c06b
fix: nil deref when custom builder image ( #1273 )
...
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-09-22 13:00:12 +00:00
Lance Ball
44ff20d782
chore: remove timestamp from generated docs ( #1265 )
...
This is causing trouble with new PRs that potentially change CLI flags
or other user-facing UX. Another option besides completely removing the
version information is to modify Version.StringVerbose() so that it uses
the value of the most recent semver tag (or Knative tag).
```
❯ git describe --match "v*"
v0.34.0-6-g6d26e64c
❯ git describe --match "knative*"
knative-v1.7.0-6-g6d26e64c
```
This is nice, but could be misleading if the UX has changed since that
release.
Signed-off-by: Lance Ball <lball@redhat.com>
Signed-off-by: Lance Ball <lball@redhat.com>
2022-09-21 13:55:10 +00:00
David Simansky
4979e03357
Update Go version to 1.18 ( #1262 )
2022-09-21 13:09:11 +00:00
salaboy
ce6d0a7b47
[chore] updating codecov configs ( #1270 )
...
Updating Codecov configs following kn/client, ignoring `tests` and `hack` dir
2022-09-21 13:06:10 +00:00
salaboy
93cb8b82ac
Adding Codecov badge to readme ( #1264 )
2022-09-21 07:43:10 +00:00
Matej Vasek
15368599cd
chore: linkage assignable socatImage ( #1266 )
...
var can be set at build (link) time as opposed to const
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-09-21 04:34:09 +00:00