Commit Graph

1191 Commits

Author SHA1 Message Date
Jefferson Ramos 2a273c98ee
test: adding e2e github oncluster test scenario (#1649) 2023-03-30 22:25:00 +00:00
andrejusc 79430e9542
Update springboot templates to Spring Boot 3.0.5 (#1658)
* Update springboot templates to Spring Boot 3.0.5

* Regenerated embedded file

* Regenerated embedded file one more time
2023-03-30 21:53:00 +00:00
Lance Ball 1095ede8be
chore: adjust shell script quotes (#1656)
Signed-off-by: Lance Ball <lball@redhat.com>
2023-03-30 11:45:01 +00:00
Lance Ball 6012a4afe1
chore: fixup release.sh script (#1652)
* chore: fixup release.sh script

After the repository reorg, the hack/release.sh script is no longer
pointing at the correct task yamls.

Fixes: https://github.com/knative/func/issues/1651

Signed-off-by: Lance Ball <lball@redhat.com>

* fixup: reviewdog

Signed-off-by: Lance Ball <lball@redhat.com>

---------

Signed-off-by: Lance Ball <lball@redhat.com>
2023-03-28 20:30:59 +00:00
Matej Vasek f877aebdd5
chore: update lifecycle image to v0.16.1 (#1653)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-03-28 17:35:59 +00:00
Manoel Marques c8f22e735b
Minimal initial func.yaml (#1630) 2023-03-27 06:55:57 +00:00
Matej Vasek e458ae0a07
chore update pack dependency (#1650)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-03-27 06:52:57 +00:00
github-actions[bot] 6a4518454b
chore: update Quarkus platform version to 2.16.5.Final (#1646)
Co-authored-by: Knative Automation <automation@knative.team>
2023-03-23 18:56:53 +00:00
Matej Vasek 73f8773b7d
style: fix lint error (#1648)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-03-23 18:43:54 +00:00
Matej Vasek 0645af7a41
fix: pre-compile mock binaries instead of 'go run' (#1645)
The 'go run' does internally compile and it prolongs perceived run-time.
This may lead to timeout in some tests.

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-03-22 18:21:55 +00:00
Zbynek Roubalik 8d4db7546d
feat: PAC - add possibility to specify a Git provider (#1638)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2023-03-22 13:30:53 +00:00
Zbynek Roubalik c793fd4c88
feat: PAC - dynamically generate Pipeline target branch (#1636)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2023-03-22 13:15:53 +00:00
Zbynek Roubalik 85d3d0206e
feat: PAC - try to read git info from local .git config (#1635)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2023-03-22 13:10:54 +00:00
Matej Vasek 8eeff81580
fix: s2i build on Windows (#1641)
Make all files executable on Windows s2i build.

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-03-21 21:27:52 +00:00
Matej Vasek 7c724bc2f6
Descriptions in JSON Schema (#1633)
* chore: update schema generation library

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* feat: description in JSON schema from doc comments

Signed-off-by: Matej Vasek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-03-20 12:46:54 +00:00
knative-automation 99de349e59
Update actions (#1634)
Signed-off-by: Knative Automation <automation@knative.team>
2023-03-20 02:13:53 +00:00
knative-automation 5e8773843c
Update community files (#1632)
Signed-off-by: Knative Automation <automation@knative.team>
2023-03-17 13:57:42 +00:00
knative-automation 5330e0c170
Update actions (#1631)
Signed-off-by: Knative Automation <automation@knative.team>
2023-03-17 13:52:25 +00:00
Zbynek Roubalik 3dc61c8979
feat: implement `func config git remove` (#1626)
* feat: implement `func config git remove`

Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>

* add test

Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>

---------

Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2023-03-17 12:09:36 +00:00
Jefferson Ramos 9d00af158b
e2e tests restructuring / refactoring (#1615) 2023-03-16 20:52:59 +00:00
Matej Vasek db1b624988
fix: TCP+TLS docker daemon connection (#1629)
* fix: TCP+TLS docker daemon connection

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fixup: skip tls verify if DOCKER_TLS_VERIFY is falsy

Signed-off-by: Matej Vasek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-03-16 16:01:59 +00:00
Zbynek Roubalik 37fa5c8c1a
feat: properly implement `--config*` flags for `func config git` (#1621)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2023-03-14 13:26:00 +00:00
Manoel Marques 55f3d241dd
Include --builder option on func run command (#1614) 2023-03-14 08:23:57 +00:00
Matej Vasek 76a7c632ce
fix: failing CI (#1618)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-03-13 21:47:56 +00:00
Zbynek Roubalik ed1d963c85
feat: PaC support flags (#1604)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2023-03-13 20:44:56 +00:00
Matej Vasek 28eb331df4
chore: more tests on push to main (#1616)
* Run unit tests on various platforms.
* Run end to end tests.

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-03-13 20:43:56 +00:00
Dhruv Garg b03ada6c0d
docs: update broken links in docs to command.txt and command.md (#1613) 2023-03-10 17:50:24 +00:00
Zbynek Roubalik b793f8739a
feat: PAC - add support for S2I (#1610)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2023-03-10 12:14:23 +00:00
Matej Vasek 7b85fa5f84
fix: node s2i build when node_modules present (#1612)
* fix: node s2i build when node_modules present

This is workaround for two bug in another components:
* The s2i CLI/library is not honoring the `--exclude` flag when used with
  the `--as-dockerfile` flag.
* The node s2i image is not working if project contains `node_modules`
  directory with NodeJS modules.

If only one of the bugs above were fixed this commit wouldn't be
necessary.

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fix: project root escape link detection

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fix: ignore node_modules for s2i on cluster build

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fixup: style

Signed-off-by: Matej Vasek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-03-10 12:09:24 +00:00
knative-automation afad45ee8c
Update community files (#1611)
Signed-off-by: Knative Automation <automation@knative.team>
2023-03-09 13:48:22 +00:00
Matej Vasek 9aac5eba68
fix: build stamp computation (#1608)
About the same time that buildStamp was computed .gitignore was modified.
This caused non-deterministic results, because sometimes the
modification was taken into account and sometimed it was not.

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-03-08 23:06:20 +00:00
Matej Vasek 9a9da1ff3f
chore: coverage for e2e tests (#1603)
* chore: coverage for e2e tests

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fixup: disable thread sanitiser

Signed-off-by: Matej Vasek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-03-08 17:53:20 +00:00
Manoel Marques fa3286ccac
Change 'create' help text to indicate mandatory language option (#1607) 2023-03-08 17:41:21 +00:00
Zbynek Roubalik c552aa2e4e
chore: better output for PaC (#1606)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2023-03-08 17:34:22 +00:00
knative-automation da83a2bf73
upgrade to latest dependencies (#1591)
bumping knative.dev/serving 59d4c52...74fcd62:
  > 74fcd62 Update net-kourier nightly (# 13775)
  > 6436af6 upgrade to latest dependencies (# 13769)
  > 4d51212 Use `pkgtest.CheckEndpointState` in TestActivationScale instead of raw client (# 13770)
  > 587f587 add missing probes (# 13563)
  > 5e3b4af Adds e2e test for activation-scale (# 13197)
  > b285cb4 Update net-certmanager nightly (# 13762)
  > aab7abe Update net-contour nightly (# 13761)
  > 0cf0da8 Update net-gateway-api nightly (# 13756)
  > efc0bb0 Update net-kourier nightly (# 13760)
  > 6bc4bb2 upgrade to latest dependencies (# 13759)
bumping knative.dev/eventing c5847a9...38a00d8:
  > 38a00d8 Migrate to rekt cronjob package (# 6800)
  > 0e2c389 [main] Upgrade to latest dependencies (# 6798)
  > df2287d [main] Upgrade to latest dependencies (# 6794)
  > 1ff36e1 Support testing ContainerSource with istio (# 6790)
  > a8128e6 [main] Upgrade to latest dependencies (# 6774)
  > 397387e SC settings for ApiServerSource's Receive Adapter's container/deployment  (# 6788)
  > b474770 No reason for API ServerSource adapter to not inject istio sidecar (# 6789)
  > 7d7df2d Removes the deprecated DeadLetterChannel in ChannelableStatus (# 6722)
bumping knative.dev/pkg 645afb2...b77a78c:
  > b77a78c upgrade to latest dependencies (# 2698)
  > 310274d bump golang version in downstream tests (# 2697)
  > fd00e03 Add certs secret name read from env (# 2685)
bumping knative.dev/client e82e749...3bdc232:
  > 3bdc232 upgrade to latest dependencies (# 1773)
bumping knative.dev/networking 5a5f810...c692e9e:
  > c692e9e upgrade to latest dependencies (# 776)
  > 475e232 upgrade to latest dependencies (# 775)

Signed-off-by: Knative Automation <automation@knative.team>
2023-03-08 16:51:20 +00:00
Manoel Marques f2238be7ed
Correctly format Node.js code (#1602) 2023-03-08 12:17:20 +00:00
Marcos Nils cc34d0bc83
docs: add note about not supported on cluster build runtimes. (#1597)
* Add note about not supported on cluster build runtimes.

* fix typo

* remove quarkus from list
2023-03-07 19:58:19 +00:00
Zbynek Roubalik e3b318adff
feat: Pipelines as Code - initial support (pack) (#1594)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2023-03-07 15:41:20 +00:00
Zbynek Roubalik 616feb15b1
chore: move prompts to a separate package (#1592)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2023-03-06 15:08:33 +00:00
Matej Vasek 1cff3a4d35
chore: clean up e2e project update logic (#1593)
* chore: clean up e2e project update logic

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fixup: linter unused param

Signed-off-by: Matej Vasek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-03-02 19:14:31 +00:00
knative-automation 850adf30ab
upgrade to latest dependencies (#1582)
bumping knative.dev/client 8a2ed4c...e82e749:
  > e82e749 Bump golang.org/x/net from 0.0.0-20220919232410-f2f64ebce3c1 to 0.7.0 (# 1783)
  > a91b916 Bump golang.org/x/text from 0.3.7 to 0.3.8 (# 1780)
bumping knative.dev/pkg f306c13...645afb2:
  > 645afb2 bump golang.org/x/net to v0.7.0 (# 2695)
  > 0591b75 bump net and text packages (# 2692)
  > 2fdd6bf Allow reconcilers to listen to leader promotion events  (# 2688)
  > f65eba5 Make ZipkinTracingEnabled flag thread safe (# 2690)
bumping golang.org/x/sys fc697a3...90c8f94:
  > 90c8f94 unix: avoid converting non-pointers to unsafe.Pointer in PtraceIO
  > 4e121b1 unix: add missing address operator in initxattrdest
  > 68f9dcb windows/debug/svc: buffer channel passed to signal.Notify
  > 0e1262c unix: add ptrace(PT_DENY_ATTACH) wrapper for darwin
  > 6938dae unix: add missing constants used with struct Timex on Linux
  > 01b330b unix: improve flaky solaris test logging
  > e7d7f63 all: fix some comments
  > 7a75290 unix/linux: update to glibc 2.36
  > 4112509 windows/mkwinsyscall: write source to temp file if formatting fails
  > 71da690 windows/mkwinsyscall: support "." and "-" in DLL name
  > b829a39 unix/linux: update to gcc 13.0.0, qemu 7.1.0 for loong64
  > c3037ed unix: add support for clock_adjtime on Linux
  > 13fe000 cpu: add IsBigEndian
  > 17fce3a unix: avoid false positive in vet shift check
  > a6f4650 windows: use UTF16FromString and UTF16ToString from syscall
  > 6e4d1c5 unix/linux: update to Linux kernel 6.1 and Go 1.20-rc2
  > b8be2fd cpu: add //go:build line to cpu_gccgo_x86.c
  > 1e9f341 unix: add //go:build line to gccgo_c.c
  > b60007c unix: add Uvmexp and SysctlUvmexp for NetBSD
  > b751db5 unix: gofmt hurd files after CL 459895
  > b360406 unix: support TIOCGETA on GNU/Hurd
  > 3086868 unix: regen on OpenBSD 7.2
  > 2b11e6b unix: remove Mclpool from openbsd types
  > 7c6badc unix: convert openbsd/mips64 to direct libc calls
  > 3b1fc93 unix: avoid allocations for common uses of Readv, Writev, etc.
  > 2204b66 cpu: parse /proc/cpuinfo on linux/arm64 on old kernels when needed
  > 72f772c unix: offs2lohi should shift by bits, not bytes
  > cffae8e unix: add ClockGettime on *bsd and solaris
  > 96e75de unix: improve Sendmsg and Recvmsg documentation
  > 127c0dd unix/linux: use Go 1.20rc1 to generate files
  > 3ca3b18 windows: add GetLargePageMinimum
  > d684c6f execabs: isGo119ErrDot: use errors.Is instead of string-matching
bumping knative.dev/serving 7aeb55d...59d4c52:
  > 59d4c52 Update net-kourier nightly (# 13755)
  > 5a7a72e Update net-contour nightly (# 13758)
  > cc58860 Update net-certmanager nightly (# 13757)
  > 879c723 upgrade to latest dependencies (# 13742)
  > 23212b3 Update net-kourier nightly (# 13733)
  > 12b0690 Update net-contour nightly (# 13734)
  > 628b3e6 Update net-gateway-api nightly (# 13732)
  > cd3fe03 Update net-certmanager nightly (# 13735)
  > 28b8fba upgrade to latest dependencies (# 13730)
  > 708374e TestAutoscaleSustaining scales to 8 instead of 10 (# 13679)
  > 168ea39 Update net-contour nightly (# 13729)
  > f2ee629 Update net-certmanager nightly (# 13728)
  > bd75129 upgrade to latest dependencies (# 13726)
  > f4792e4 check for renewing status (# 13666)
  > 51ed9ad Update net-contour nightly (# 13724)
  > 1b99dce Update net-gateway-api nightly (# 13719)
  > fe52019 Update net-certmanager nightly (# 13718)
  > 506f8c6 Update net-contour nightly (# 13717)
  > 1f5f822 Update net-kourier nightly (# 13698)
bumping knative.dev/hack f2f3107...3de51af:
  > 3de51af Set GitHub Release Title to the version (# 277)
bumping knative.dev/networking 1bd50a5...5a5f810:
  > 5a5f810 upgrade to latest dependencies (# 767)
  > 2c2695b upgrade to latest dependencies (# 766)
bumping golang.org/x/text 1bdb400...71a9c9a:
  > 71a9c9a all: fix some comments
  > ec5565b README.md: update documentation of module versioning
  > c8236a6 unicode/bidi: remove unused global
  > ada7473 all: remove redundant type conversion
bumping knative.dev/eventing 5f24569...c5847a9:
  > c5847a9 Port broker many triggers testcase to rekt (# 6761)
  > 52574ce Fixes issue where a CE response is truncated (# 6758)
  > 44b0b8a Remove deprecated usage of ZipkinTracingEnabled (# 6780)
  > 07e6d0c [main] Upgrade to latest dependencies (# 6770)
  > 70d2cb9 Pass EnvConfig to Broker conformance tests (# 6769)
  > f6afad3 Exclusive access to tracing flag for upgrade prober (# 6767)
  > 843b6f2 Allow event display to log requests (# 6764)
  > 23dc742 [main] Upgrade to latest dependencies (# 6765)
  > 82d85f9 [main] Upgrade to latest dependencies (# 6762)
bumping golang.org/x/net a2d827a...8e2b117:
  > 8e2b117 http2/hpack: avoid quadratic complexity in hpack decoding
  > 547e7ed http2: avoid referencing ResponseWrite.Write parameter after returning
  > 39940ad html: parse comments per HTML spec
  > 87ce33e go.mod: update golang.org/x dependencies
  > 415cb6d all: fix some comments
  > 7e3c19c all: correct typos in comments
  > 296f09a http2: case insensitive handling for 100-continue
  > f8411da nettest: fix tests on dragonfly and js/wasm
  > 8e0e7d8 go.mod: update golang.org/x dependencies
  > 7805fdc http2: rewrite inbound flow control tracking
  > 2aa8215 nettest: use RoutedInterface for probing network stack capability
  > ad92d3d websocket: don't recommend Gorilla
  > e1ec361 http2: fix race in TestCanonicalHeaderCacheGrowth
  > 1e63c2f http2: limit canonical header cache by bytes, not entries
  > 3247b5b go.mod: update golang.org/x dependencies
  > ecf7fda http2: deflake TestTransportMaxFrameReadSize
  > 0833b63 publicsuffix: embed table data
  > ecf091a publicsuffix: update table to latest list from publicsuffix.org
  > 2f8c3d1 http2: add Transport.MaxReadFrameSize configuration setting
  > 0e478a2 http2: add SETTINGS_HEADER_TABLE_SIZE support
bumping golang.org/x/term f72a2d8...d974fe8:
  > d974fe8 go.mod: update golang.org/x dependencies
  > 1efcd90 go.mod: update golang.org/x dependencies
  > 97ca0e3 go.mod: update golang.org/x dependencies

Signed-off-by: Knative Automation <automation@knative.team>
2023-03-01 10:17:54 +00:00
Luke Kingland aa582dad21
cli help text updates and flags cleanup (#1564)
* cli help text and flags cleanup

- verbose flag uses global setting throughout
- confirm flag added using shared visitor throughout
- path flag added using shared visitor throughout
- removes --version flag on root as redundant with subcommand
- splits main help's 'Main Commands' into 'Primary Commands' and 'Development
  Commands' groups
- Moves RunE definition into flag struct literals

* remove commented code
2023-03-01 09:35:54 +00:00
Matej Vasek 9c5b5a805b
chore: verify-codegen.sh (#1590)
* fix: verify-codegen.sh

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fixup

Signed-off-by: Matej Vasek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-02-27 19:23:54 +00:00
Matej Vasek 0a9ed1bc46
refactor: clean up filesystem test (#1584)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-02-27 02:21:32 +00:00
Lance Ball 0b1d537309
chore: update references to zz_filesystem_generated.go (#1580)
* chore: update references to zz_filesystem_generated.go

Some places were missed in the repo restructuring. This should fix
test_infra build failures.

Signed-off-by: Lance Ball <lball@redhat.com>

* fix: do not put "." into template zip array (#24)

Signed-off-by: Matej Vasek <mvasek@redhat.com>

---------

Signed-off-by: Lance Ball <lball@redhat.com>
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Co-authored-by: Matej Vasek <matejvasek@gmail.com>
2023-02-23 19:12:29 +00:00
Luke Kingland 3624ccb58d
command aliases (#1578)
Ensures commands which have subcommands to operate on individual members
(list, add, remove etc) have singular and plural as aliases.

Ensures consistent usage of linux-command-style aliases for list,remove
and rename operations: "ls", "rm", "mv"
2023-02-23 14:07:29 +00:00
Luke Kingland 91c95a711e
fix: repo add skips root (#1577) 2023-02-21 20:40:27 +00:00
Zbynek Roubalik 726b566f83
fix: deploy annotations & labels correctly (#1574)
* fix: deploy annotations & labels correctly

Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>

* increase timeout

Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>

---------

Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2023-02-21 15:24:26 +00:00
Luke Kingland 03c5df4337
fix: missing map initializations (#1575)
The helper Function constructor which uses a passed function as defaults
was missing map initializations.  This could lead to nil pointer
exceptions as it is used by client.Init.
2023-02-21 10:11:26 +00:00
Luke Kingland 9961c43b35
rm testData (#1576) 2023-02-21 09:15:26 +00:00