Commit Graph

1974 Commits

Author SHA1 Message Date
Knative Prow Robot c1160e1415
Make docker.io/heroku/ builders trusted (#2823)
fixes #2516

Co-authored-by: Matej Vašek <mvasek@redhat.com>
2025-04-30 13:59:07 +00:00
Knative Prow Robot c70d353324
[release-1.18] Fix: do not override uid/git in buildpack builder (#2822)
* Fix: do not override uid/git in buildpack builder

Zero value implies override (to root presumably),
we must set it to negative value.

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Fixup tests

Since we do not override uid/gid==0 we need to make mounted data less
readable to all.

Signed-off-by: Matej Vašek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
Co-authored-by: Matej Vašek <mvasek@redhat.com>
2025-04-30 12:55:06 +00:00
Knative Automation 4e9fc0922f
upgrade to latest dependencies (#2800)
bumping knative.dev/serving 7f044f1...a4c4491:
  > a4c4491 update min go version to 1.24 (# 15856)
  > e74fe1a drop code clearing out the user agent (# 15857)
  > 128550c bump latest contour and istio (# 15858)
bumping knative.dev/eventing a7b2f1c...b99e57b:
  > b99e57b [main] Upgrade to latest dependencies (# 8567)
bumping knative.dev/client/pkg 6c6ddcd...96721e5:
  > 96721e5 [main] Upgrade to latest dependencies (# 1997)

Signed-off-by: Knative Automation <automation@knative.team>
2025-04-24 13:48:24 +00:00
github-actions[bot] 3d4d7da487
update components (#2812)
Co-authored-by: Knative Automation <automation@knative.team>
2025-04-24 13:01:26 +00:00
David Fridrich 69cbc75f7b
e2e scenarion config test errorf format fix (#2810)
Signed-off-by: David Fridrich <fridrich.david19@gmail.com>
2025-04-24 12:18:28 +00:00
David Fridrich ace7703e29
fix e2e errorf formatting for 1.24 (#2809)
* fix e2e errorf formatting for 1.24

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* add %

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

---------

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>
2025-04-24 10:32:24 +00:00
github-actions[bot] 0e1be8d1ed
chore: update Quarkus platform version to 3.21.4 (#2808)
Co-authored-by: Knative Automation <automation@knative.team>
2025-04-24 06:06:24 +00:00
Knative Automation d0deccb81b
Update community files (#2807)
Signed-off-by: Knative Automation <automation@knative.team>
2025-04-24 02:04:23 +00:00
github-actions[bot] 8eb33ded0c
update components (#2791)
Co-authored-by: Knative Automation <automation@knative.team>
2025-04-22 11:33:38 +00:00
Knative Automation 69a21a8e31
upgrade to latest dependencies (#2798)
bumping knative.dev/serving c7e3075...7f044f1:
  > 7f044f1 Enable Mount Propagation as a Optional Feature (# 15758)
  > 5653ad0 Update net-gateway-api nightly (# 15853)
  > ae7b265 Update net-kourier nightly (# 15855)
  > 4730c99 Update net-istio nightly (# 15854)
  > 880ea71 Update net-contour nightly (# 15852)
  > 93023e8 feat: add support for CSI volumes (# 15815)
  > c7f03af Support exec readiness probes for sidecar containers (# 15773)
  > a221c53 Update net-kourier nightly (# 15849)
  > e88d4dc upgrade to latest dependencies (# 15845)
  > 1d9855f Update net-gateway-api nightly (# 15847)
  > e6c1839 Update community files (# 15848)
bumping knative.dev/networking f1b08e6...6268d93:
  > 6268d93 upgrade to latest dependencies (# 1059)
  > 5a309fd upgrade to latest dependencies (# 1058)
bumping knative.dev/client/pkg 80472e3...6c6ddcd:
  > 6c6ddcd Update community files (# 2000)
bumping knative.dev/eventing 7c466cb...a7b2f1c:
  > a7b2f1c [Automated] Update eventing-eventing-integrations nightly (# 8566)

Signed-off-by: Knative Automation <automation@knative.team>
2025-04-22 05:56:38 +00:00
Matej Vašek 370ca50313
Use pre-build binary packages for cpython buildpack (#2799)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-04-22 05:42:37 +00:00
Knative Automation 179ba2fcaa
upgrade to latest dependencies (#2797)
bumping knative.dev/eventing c0cf4f4...7c466cb:
  > 7c466cb [main] Update community files (# 8565)

Signed-off-by: Knative Automation <automation@knative.team>
2025-04-17 04:57:03 +00:00
Knative Automation 0892ac62ee
Update community files (#2796)
Signed-off-by: Knative Automation <automation@knative.team>
2025-04-17 02:01:03 +00:00
github-actions[bot] c2b5d49ed4
chore: update Quarkus platform version to 3.21.3 (#2795)
Co-authored-by: Knative Automation <automation@knative.team>
2025-04-16 17:31:13 +00:00
Knative Automation dfc317563a
upgrade to latest dependencies (#2794)
bumping knative.dev/eventing 5f466ad...c0cf4f4:
  > c0cf4f4 [main] Upgrade to latest dependencies (# 8564)

Signed-off-by: Knative Automation <automation@knative.team>
2025-04-16 17:08:13 +00:00
Knative Automation 0921e950eb
upgrade to latest dependencies (#2793)
bumping knative.dev/pkg 4e8ebbe...ed3e215:
  > ed3e215 upgrade to latest dependencies (# 3170)
bumping knative.dev/serving e193904...c7e3075:
  > c7e3075 Update net-kourier nightly (# 15843)

Signed-off-by: Knative Automation <automation@knative.team>
2025-04-16 06:33:12 +00:00
Matej Vašek ce44678262
Do not run builder build unnecessary (#2790)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-04-15 13:08:17 +00:00
Matej Vašek 33b9f15654
Enable arm64 python buildpack (#2789)
* Enable Python buildpack build for arm64

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Fix: force arm64 arch for Go buildpack

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Fix: ensure correct arch for sub-buildpacks

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Fixup linter issues

Signed-off-by: Matej Vašek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-04-15 11:44:12 +00:00
Matej Vašek 8e0b752edc
Apply linter suggestions (#2786)
* Refactor: if-elif-else => switch

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Cleanup: calls to embedded fields

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Fix: add missing err checks

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Cleanup: fix format of error messages

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Cleanup: omit type where possible

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Cleanup: apply De Morgan's law

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Cleanup: call ReplaceAll where possible

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Cleanup: fix format of error messages

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Cleanup: fix format of error messages

Signed-off-by: Matej Vašek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-04-15 09:43:13 +00:00
Knative Automation 36e27203a9
upgrade to latest dependencies (#2787)
bumping knative.dev/pkg a8e20d9...4e8ebbe:
  > 4e8ebbe Bump golang.org/x/tools from 0.31.0 to 0.32.0 (# 3169)
  > 1ae6a39 Bump golang.org/x/net from 0.38.0 to 0.39.0 (# 3168)
bumping knative.dev/eventing 6365d89...5f466ad:
  > 5f466ad Compare the entire PodTemplateSpec, instead of just its PodSpec (# 8558)
  > d7a0359 [main] Upgrade to latest dependencies (# 8559)
  > f14c335 [main] Upgrade to latest dependencies (# 8556)
bumping knative.dev/networking 5ce28a2...f1b08e6:
  > f1b08e6 upgrade to latest dependencies (# 1054)
  > 0d887a8 bump to golangci yaml v2 (# 1057)
  > a46e5f4 bump to golangci yaml v2 (# 1056)
bumping knative.dev/serving 3d830a0...e193904:
  > e193904 Update net-istio nightly (# 15844)
  > a5e15ba Update net-gateway-api nightly (# 15841)
  > 4699601 Update net-contour nightly (# 15842)
  > 44559d5 upgrade to latest dependencies (# 15840)

Signed-off-by: Knative Automation <automation@knative.team>
2025-04-15 09:28:13 +00:00
Jefferson Ramos 09c934dcb0
test: update e2e ci workflow to test against arm for go and quarkus (#2788) 2025-04-14 13:58:18 +00:00
Matej Vašek f12acd34de
Refactor if-elif-else => switch (#2785)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-04-14 12:02:16 +00:00
Matej Vašek 0896b9011d
Bump golangci-lint version (#2784)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-04-14 10:27:16 +00:00
Matej Vašek d02801355d
Make base jammy stack multi-arch (#2780)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-04-14 05:43:16 +00:00
Knative Automation 100d9ce56c
upgrade to latest dependencies (#2783)
bumping knative.dev/eventing bbc9696...6365d89:
  > 6365d89 Migrate golanglint-ci config to v2 (# 8557)
bumping knative.dev/networking ad8767c...5ce28a2:
  > 5ce28a2 Update community files (# 1055)
bumping gomodules.xyz/jsonpatch/v2 17d7994...ffbac60:
  > ffbac60 Merge pull request # 40 from lacroixthomas/bugfixes/fix-lossy-in64
  > 4c723fc fix: handle lossy int64
bumping knative.dev/serving bc0feed...3d830a0:
  > 3d830a0 autoscaler: ignore ScaleDownDelay if not reachable (# 15831)
  > 8ee578e upgrade to latest dependencies (# 15839)
  > a2b3da5 bump to golangci yaml v2 (# 15838)
  > 3c4cbd0 Update net-contour nightly (# 15837)
bumping knative.dev/pkg 7b91ff1...a8e20d9:
  > a8e20d9 Bump gomodules.xyz/jsonpatch/v2 from 2.4.0 to 2.5.0 (# 3154)

Signed-off-by: Knative Automation <automation@knative.team>
2025-04-14 05:30:15 +00:00
Dave Protasowski a518101187
bump dependencies manually (#2782) 2025-04-11 14:05:14 +00:00
Matej Vašek c12828fd08
Migrate golangci-lint config to v2 (#2781)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-04-11 13:27:14 +00:00
Matej Vašek b67d8d4405
Refactor builder (#2779)
* Cleanup: remove unnecessary code

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Cleanup: moved code outside of a loop

Signed-off-by: Matej Vašek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-04-11 12:01:13 +00:00
github-actions[bot] 910e862804
chore: update Quarkus platform version to 3.21.2 (#2776)
Co-authored-by: Knative Automation <automation@knative.team>
2025-04-10 02:47:11 +00:00
Matej Vašek 841555ab0a
Update rust buildpack (#2778)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-04-09 19:36:12 +00:00
Matej Vašek 8a061c4ed1
Mirror buildpack run images in ghcr.io/knative (#2775)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-04-09 19:24:12 +00:00
Matej Vašek fffde39adb
Fix buildpacks builder update task (#2777)
The paketo project moved some buildpack from gcr.io to docker.io.

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-04-09 19:04:15 +00:00
Matej Vašek c93de80381
Fix builder updater (#2774)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-04-09 13:47:14 +00:00
Matej Vašek 3e75e25506
Fix Python S2I On-Cluster build (#2770)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-04-04 05:27:11 +00:00
Matej Vašek c98b9f67c3
Fix: Go scaffolding uses correct module name (#2769)
* Fix: Go scaffolding uses correct module name

Using incorrect name works for a functions with flat structure -- no
sub-packages. When sub-packages are used we need to refer the user
module by its true name.

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* fixup tests

Signed-off-by: Matej Vašek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-04-04 05:27:05 +00:00
Matej Vašek e720bbcc8c
Add guideline for private Go module usage (#2771)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-04-04 05:13:05 +00:00
github-actions[bot] a2469fe9da
chore: update Quarkus platform version to 3.21.1 (#2767)
Co-authored-by: Knative Automation <automation@knative.team>
2025-04-03 10:57:05 +00:00
Matej Vašek aae2683231
Make build binds more similar to runtime binds (#2768)
* Make build binds more similar to runtime binds

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Added comments on struct

Signed-off-by: Matej Vašek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-04-03 10:19:05 +00:00
Matej Vašek fc750a283a
S2I (source-to-image) host binds (#2766)
* Added tests for s2i build with private Go module

The test is for now skipped since host binds are not yet implemented for s2i.

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* User "host" network mode for s2i build on Linux

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Implement host binds for local s2i build

Signed-off-by: Matej Vašek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-04-03 09:13:05 +00:00
Matej Vašek 2d3962401d
Improvements for Go s2i assembler (#2765)
* Return error code when compilation was not done
* Run `go mod tidy` on scaffoded code

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-04-02 17:17:05 +00:00
Luke Kingland 9f6a135702
Python Middleware v2 Scaffolding (#2685)
* refactor python http template

* python http scaffolding

* add python to make update-runtimes

* integrate python scaffolding with func run

* python http template

* reorganize python scaffolding

* cancellation stopgap

* documentation and logging cleanup

* Python Middleware v2 - Scaffolding

* base layer cache

* remove wsgi and flask templates

Inbuilt templates should be limited to a base http and cloudevent
integration, with anything beyond this falling to the officially
supported functions samples repository.

* update python cloudevents runtime in makefile

* python cloudevents middleware

* add python .venvs to gitignore

* clean up venvs on make

* add missing dependencies to python http tempklate

* set python cloudevents manifest

* further cleanup of repository impl

* cleanup

* ignore venv when building runtime container

* set listen address on python container

* remove unnecessary python runtime update from makefile

* remove debug statements and improved comments

* enable scaffolding python funcs in s2i builder

* set listen address on all containers built by s2i

* python s2i integration

* regen fs

* cleanup

* enable host builder

* fix manifest inheritance

* regen fs

* bug fixes

* regen docs

* cleanup and linter error fixes

* conditional python host builder test

* misspellings

* disable python E2E

Until the Python middleware is supported by the Pack builder, the E2E
tests will need to be disabled.

* install python for presubmit tests

* use linux for test builder runs

The target platform for a test needs to be a platform which is available
in all test base images.  That's usually linux.  Using current OS would
fail, for example, building python containers on MacOS because the
official Python base image has no darwin layer.

* fix ineffasign

* set python ce template to python 3.9

* regen fs

* windows python tests

* python templates README
2025-04-02 10:44:05 +00:00
Matej Vašek 36803160d5
Use s2i in standard mode, not "as-dockerfile" (#2764)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-04-02 06:15:03 +00:00
Matej Vašek b6bfb2d960
Allow host mounts for build phahse (#2753)
* Allow host mounts for build pahse.

This is in particular useful for using paket bindings,
e.g. to inject git credentials into build process.

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Mark test as a integration test

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* fixup: style

Signed-off-by: Matej Vašek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-04-01 15:37:03 +00:00
Knative Automation c7a95dd81b
Update community files (#2763)
Signed-off-by: Knative Automation <automation@knative.team>
2025-03-31 02:07:06 +00:00
github-actions[bot] d8f6ceba07
chore: update Quarkus platform version to 3.21.0 (#2761)
Co-authored-by: Knative Automation <automation@knative.team>
2025-03-26 18:33:44 +00:00
github-actions[bot] d4506e32dd
update components (#2760)
Co-authored-by: Knative Automation <automation@knative.team>
2025-03-25 12:45:45 +00:00
Kapil Sareen 335b6c29fa
removes redundant default labels and annotations (#2746)
Signed-off-by: KapilSareen <kapilsareen584@gmail.com>
2025-03-24 11:42:57 +00:00
github-actions[bot] 234c442421
chore: update Springboot platform version to 3.4.4 (#2758)
Co-authored-by: Knative Automation <automation@knative.team>
2025-03-21 06:52:16 +00:00
Shubham Rasal e9dfba995c
Update CONTRIBUTING.md (#2755)
Typo fixes.
2025-03-20 11:45:16 +00:00
github-actions[bot] 7216de194d
chore: update Quarkus platform version to 3.19.4 (#2754)
Co-authored-by: Knative Automation <automation@knative.team>
2025-03-20 11:19:16 +00:00