Commit Graph

268 Commits

Author SHA1 Message Date
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
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
Matej Vašek 77e43bc8c6
Test adjustments (#2751)
* Use tiny instead of base BP builder.
* Decrease minimal required Go version.
* Make the self-signed certificate CA==true so it works with update-ca-trust utility.

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-03-19 14:05:15 +00:00
David Fridrich 817c77bbec
fix flaky unit test (#2749)
Signed-off-by: David Fridrich <fridrich.david19@gmail.com>
2025-03-18 14:56:14 +00:00
Matej Vašek 525761a199
Trust loopback builders (#2750)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-03-18 12:46:17 +00:00
Matej Vašek 24a7fedadd
Add testcase for Go private repositories (#2748)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-03-17 03:49:36 +00:00
Matej Vašek 2b831f9b2e
Remove direct dep on golang.org/x/exp (#2695)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-03-10 18:14:36 +00:00
Kapil Sareen 4ade4ab3d9
refactor data member of the InvokeMessage to be []byte (#2733)
Signed-off-by: KapilSareen <kapilsareen584@gmail.com>
2025-03-06 13:45:00 +00:00
Kapil Sareen 04100c8dd8
Adds Inline JSON schema reference in func.yaml (#2729)
Signed-off-by: KapilSareen <kapilsareen584@gmail.com>
2025-03-03 05:06:14 +00:00
David Fridrich d7f4b8341f
update depracated function (#2701)
Signed-off-by: David Fridrich <fridrich.david19@gmail.com>
2025-02-19 12:19:47 +00:00
Luke Kingland 1d26629b51
feat: remote storage class (#2693)
* feat: remote storage class

* why isn't the schema regenerated on each make
2025-02-19 07:35:47 +00:00
David Fridrich a9cb5b7a93
Have static knative component versions in hack/, update in automatic PR (#2677)
* gomod

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

* create hack/main.go, delegate, init dynamic updatic of version in allocate.sh, bump github version, unify those versions to v68

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

* new file, fix, more updates

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

* fix

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

* bump

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

* fix

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

* simplify

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

* pr exists, check

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

* simplify, fix some stuff

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

* simplify further

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

* fix sed error, more comments

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

* return to main, dont exit

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

* single execute, dont force push, return Run()

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

* fix printing because no 'ready' is at the end

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

* misspell

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

* context moved to main

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

* updt-builder

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

* update-knative-components fixes, pagination, simplify using go templates, json file as source of truth

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

* fix error check

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

* add json, add kind version, comments

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

* fix versions json

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

* add newline

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

* add tests, fix structs, locally generate files

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

* fix comment inline

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

* redo the structure to use cmd/ instead of big hack/main, separate, add \n to generated .json

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

* simplify test, fix linter errors

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

* small additions, comments

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

* update autogen comment

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

* gomod

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

* localize const to test

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

* suggestions

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

* makefile

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

* makefile, update builder target

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

* prefix target with wf

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

---------

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>
2025-02-18 15:55:51 +00:00
Matej Vašek 9c0c216193
Optimise func-utils image (#2686)
* Use command instad of script in some tkn tasks

The "script" requires /bin/sh present in the image.

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

* Add s2i-generate command to func-util image

The command encompasses some logic previously implemented as shell
script defined in tekton task. This allows us to remove sh/shell from
the func-util image.

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

* Make func-util image "FROM scratch"

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

* Change func-utils image tag latest->v2

Since there are backward incompatible changes we must not change how
'latest' tag work (at least for some time).

For this reason we change tag to v2, so newer versions of func use that
and older use 'latest' that is compatible with them.

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

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-02-06 07:02:13 +00:00
Matej Vašek d20eb9685f
Create test symlinks dynamically (#2681)
Some tools dislike having questionable symlinks in git repository so we
must create this symlinks dynamically in the test instead of having it
committed into the repository.

Signed-off-by: Matej Vašek <matejvasek@gmail.com>
2025-01-31 16:24:57 +00:00
Matej Vašek 4de372564a
Go tar (#2672)
* Fixed pod readiness check

Detect also if pod did not exited prematurely.

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

* Removed dependency on sh/tar from alpine image

This commit removes depencency on sh and tar binaries by implementing
the logic in our func-util binary.

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

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-01-28 00:45:56 +00:00
Matej Vašek d2aa94d30a
Remove usage of ttl.sh (#2653)
* Remove usage of ttl.sh

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

* Fix detection of host resolution failure

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

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-01-21 06:32:09 +00:00
David Fridrich cd59f97595
Remove gauron image references in code (#2647)
* remove gauron image references

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

* remove image

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

* remove gauron username

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

---------

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>
2025-01-10 19:03:17 +00:00
David Fridrich 5d9dafbffe
add case for DNS resolve fail (#2619)
Signed-off-by: David Fridrich <fridrich.david19@gmail.com>
2024-12-17 12:23:09 +00:00
Matej Vašek 70f96bb8ac
Fix some linter errors in integration tests (#2608)
* Fix some linter errors

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

* fixup: set func registry

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

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-12-04 13:36:45 +00:00
Matej Vašek 0742d9be96
Fixed some deprecation warnings (#2607)
* Fixed some deprecation warnings

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

* fixup: update deps

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

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-12-03 08:40:44 +00:00
David Fridrich 582536f922
add repository to the credentials prompt (#2596)
* simplify more

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

* fix

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

* fix creds test

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

* name fix

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

* naming

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

---------

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>
2024-12-02 16:22:45 +00:00
Matej Vašek 0e150e0a4b
Update deps (#2604)
Update pack
Update source-to-image
Update required Go version

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-12-02 15:50:43 +00:00
Matej Vašek 3d19d9bda3
Update golangci-lint (#2606)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-12-02 14:40:48 +00:00
Matej Vašek 8815c53e79
Fix missing workspaces decl in the scaffold task (#2587)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-11-28 00:16:13 +00:00
Matej Vašek 1dd2e43344
Improved build caching for s2i local build (#2581)
* Improve build caching for s2i local build

Use 'RUN --mount=type=cache...' to cache build artifacts,
e.g. the local maven repostory.

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

* Update podman version in tests

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

* fixup: set buildopt version to buildkit

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

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-11-22 14:40:02 +00:00
Luke Kingland 2fd4982e05
fix: set DOCKER_CONFIG prior to build (#2580) 2024-11-19 11:59:01 +00:00
Matej Vašek e2621f6637
Fix symlink path separators (#2535)
When running on Windows the path separators in symlink target is
backslash. This must be fixed up when uploading source code into docker
daemon or into cluster volume.

Signed-off-by: Matej Vašek <matejvasek@gmail.com>
2024-10-11 10:39:08 +00:00
Jefferson Ramos f3369409ba
Set default value for REGISTRY param on func-s2i task (#2530) 2024-10-03 12:50:23 +00:00
Jefferson Ramos be3a8a07b6
fix: Remove unnecesary annotations from Pipeline-as-Code template (#2527) 2024-10-01 17:21:21 +00:00
Matej Vašek d481289397
Remove unnecessary 'go get' commands (#2524)
Signed-off-by: Matej Vašek <matejvasek@gmail.com>
2024-09-30 05:22:38 +00:00
Matej Vašek 075bc9bed4
fix: allow sub-pkgs in Go functions (#2523)
* fix: allow sub-pkgs in Go functions

Signed-off-by: Matej Vašek <matejvasek@gmail.com>

* fixup

Signed-off-by: Matej Vašek <matejvasek@gmail.com>

* fixup

Signed-off-by: Matej Vašek <matejvasek@gmail.com>

* fixup

Signed-off-by: Matej Vašek <matejvasek@gmail.com>

---------

Signed-off-by: Matej Vašek <matejvasek@gmail.com>
2024-09-27 01:02:32 +00:00
Matej Vašek 1702c8e3c4
Update builder.go (#2512) 2024-09-24 09:17:54 +00:00
Matej Vašek 1937499775
Improve socat conn success detection (#2506)
It appears that Go's MatchReader() returns true only if some new lines
are written to the writer after the searched word. It mostly all right
because socat actually writes several more lines to stderr. However this
new implementation is better it should signal immediately when searched
patter is written to the writer.

Signed-off-by: Matej Vašek <matejvasek@gmail.com>
2024-09-20 06:42:26 +00:00
Matej Vašek 42ed4d8096
Fix test failures in OCP prow CI (#2503)
* Fix test failures in OCP prow CI

Ensure that ServeRepo() make copy of repo from ./testdata and serves the
repo from that copy.

Signed-off-by: Matej Vašek <matejvasek@gmail.com>

* fixup: typo

Signed-off-by: Matej Vašek <matejvasek@gmail.com>

---------

Signed-off-by: Matej Vašek <matejvasek@gmail.com>
2024-09-16 06:57:35 +00:00
Jefferson Ramos 84f4caf724
test: preventing dubios ownership repository error on git unit tests (#2499) 2024-09-13 13:33:35 +00:00
David Fridrich 92856e5627
Fix: create whole config path if it doesnt exist yet (#2490)
* fix

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

* fix

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

---------

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>
2024-09-10 14:46:47 +00:00
David Fridrich 8dce9bcaa7
fix: HOME with different permissions (#2361)
* fixed integration tests

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

* docker config.json credentials test when HOME not defined

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

* pack test

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

* simplify

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

* og creds, small fixes

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

* s2i test no home

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

* remove unnecessary stuff

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

* deploy test without home

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

* confict fix after rebase

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

* move test, dont delete

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

* runtime change

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

* node image signals fixed and smaller size for GH actions

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

* return err

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

* clean up comments

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

* creds and test

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

* test return commented code

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

* config warning

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

* cleanup

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

* cleanup

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

* fix

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

* fix

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

* skip test for windows

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

* skip for prow

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

* fix repo on create, move warning up a function

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

* fix print

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

---------

Signed-off-by: gauron99 <fridrich.david19@gmail.com>
Signed-off-by: David Fridrich <fridrich.david19@gmail.com>
2024-09-09 07:20:04 +00:00
David Fridrich a13056e4ee
migrate client-pkg to client/pkg (#2477)
* migrate

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

* migrate more

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

* sort imports

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

---------

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>
2024-09-04 10:08:32 +00:00
Matej Vašek e937035dae
Incorporate s2i CLI into func-utils image. (#2473)
Signed-off-by: Matej Vašek <matejvasek@gmail.com>
2024-09-03 13:03:21 +00:00
Matej Vašek 2e4d157162
On cluster s2i build for Go (alternative version) (#2471)
* Prepare util image to accomodate multiple cmds

As of now func-util image has only one command of our own -- "deploy".
This commits prepares grounds for one additional command named "scaffolding".
The commands will be implemented in one binary and dispatched over
argv[0] using symlinks. Kinda like busybox does.

Signed-off-by: Matej Vašek <matejvasek@gmail.com>

* Add scaffolding for on-cluster build

Added new build step in tekton pipeline that scaffolds main() for Go
porject when using s2i builder.

Signed-off-by: Matej Vašek <matejvasek@gmail.com>

* Better docker build caching

This will cache dependencies between docker builds.

Signed-off-by: Matej Vašek <matejvasek@gmail.com>

* fixup: perms

Signed-off-by: Matej Vašek <matejvasek@gmail.com>

* fixup: remove broken check

Signed-off-by: Matej Vašek <matejvasek@gmail.com>

* fixup: remove test because of 'no space left on device'

Signed-off-by: Matej Vašek <matejvasek@gmail.com>

* Make func-util rootfull

Signed-off-by: Matej Vašek <matejvasek@gmail.com>

---------

Signed-off-by: Matej Vašek <matejvasek@gmail.com>
2024-09-03 12:33:17 +00:00
David Fridrich ca61712d4b
allow digested images to be 'run' (#2445)
* init fix

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

* dont override direct deploy tag, more tests

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

* fix

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

* dont validate with tagged image, fix comment

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

* init run fix for --image

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

* init

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

* int test, add valid untdigested images to run

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

* check images passed to runner for func run command

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

* fix build/deploy image passing bug add test

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

* fix

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

* remove extra printing

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

* merge functions to digested

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

* misspell

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

* simplify

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

* quick fix

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

* remove prints, comment

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

---------

Signed-off-by: gauron99 <fridrich.david19@gmail.com>
Signed-off-by: David Fridrich <fridrich.david19@gmail.com>
2024-08-28 06:13:02 +00:00
Matej Vašek aed23cf9a1
Fix PaC detection for Red Hat's Sandbox cluster (#2429)
The sandbox cluster installs PaC cm into tekton-pipelines NS.

Signed-off-by: Matej Vašek <matejvasek@gmail.com>
2024-07-19 09:37:20 +00:00
Matej Vašek a2a97dbd85
Fix linter issues (#2420)
* chore: fixed typos

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

* chore: removed trailing whitespaces

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

* chore: added EoLs at EoFs

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

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-07-09 13:48:22 +00:00
Matej Vašek 3eab5fc25d
chore: removed unused constants (#2402)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-06-27 05:21:29 +00:00
Matej Vašek 3e8dc4ddc1
feat: embed tkn tasks in func binary (#2396)
* feat: embed tkn tasks in func binary

Embed Tekton tasks for direct on cluster build.

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

* feat: embed tkn tasks in func binary

Embed Tekton tasks for PaC build.

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

* feat: added tkn-tasks sub-command

This new command prints tektons tasks in form of multi-document yaml,
these tekton tasks may requird to be installed for some advanced
functionality.

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

* chore: remove unused files

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

* feat: make deployer image settable via linker

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

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-06-26 17:48:06 +00:00
Matej Vašek bbdd66b0f3
chore: updated tekton api verison (#2383)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-06-20 18:01:14 +00:00
Swastik Gour 40eb0eb304
corrected error msg (#2372)
* corrected error msg

Signed-off-by: swastik959 <Sswastik959@gmail.com>

* lintted

Signed-off-by: swastik959 <Sswastik959@gmail.com>

---------

Signed-off-by: swastik959 <Sswastik959@gmail.com>
2024-06-20 14:10:18 +00:00
Matej Vašek f249714bfe
chore: removed deprecated types (#2378)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-06-20 06:07:17 +00:00
Matej Vašek 9f7eac80ce
test: better res cleanup (#2349)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-06-12 16:01:03 +00:00
Matej Vašek d6b1822543
test: increased wait period (#2356)
Increased wait period for Gitlab settings change to kick in.

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-06-12 11:14:28 +00:00
Matej Vašek a18957db0a
fix: mount of socket from Docker Desktop (#2350)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-06-12 09:57:40 +00:00
Matej Vašek 2e7154ca84
Optimized disk usage in GH Action for integration tests (#2355)
* tests: remote unncessary software from GH VM

Previously tests were failing with no space left on device.

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

* fixup: updated generated code

The codegen should have been updated in prior PR but we forget do do it
there.

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

* test: wait for gitlab setting effect

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

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-06-11 18:47:42 +00:00
Matej Vašek a898fe79e0
fix: PaC build (#2341)
* Fixed detection of PaC controller URL for unprivileged users.
* Use fn.Deploy.Image before fn.Image since the fn.Image may not be
  populated.

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-06-11 13:38:33 +00:00
Matej Vašek 80d0e21481
fix: error when setting gitlab settings in test (#2342)
* test: fix error when setting gitlab settings

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

* test: replace sleep with active condition check

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

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-06-07 11:29:37 +00:00
Matej Vašek 059f788061
chore: update tekton,PaC (#2340)
* chore: update tekton

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

* fixup: param introduced in new version of gitlab lib

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

* chore: update tekton,PaC used in test env

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

* fixup: disable affinity assistant for tekton

The affinity assistant is causing troubles in testing KinD cluster.

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

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-06-06 23:46:43 +00:00
Matej Vašek 2aec66735f
chore: ubi9 => ubi8 (#2338)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-06-05 14:13:48 +00:00
David Fridrich aa909bdc44
Run func without HOME defined/ unaccessible .config dir (#2236)
* fixed integration tests

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

* def creds back

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

* docker config.json credentials test when HOME not defined

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

* pack test

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

* simplify

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

* og creds, small fixes

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

* s2i test no home

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

* remove unnecessary stuff

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

* deploy test without home

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

* confict fix after rebase

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

* move test, dont delete

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

* runtime change

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

* node image signals fixed and smaller size for GH actions

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

* return err

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

* cred test

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

* clean up comments

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

---------

Signed-off-by: gauron99 <fridrich.david19@gmail.com>
2024-06-04 00:04:52 +00:00
Matej Vašek d3b8847792
chore: update images ubi8 => ubi9 (#2328)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-05-28 16:36:44 +00:00
Matej Vašek 125e4b6665
Use image index not just image (#2284)
* Always try daemon push first

Daemon push is now tried always first withouth using
net.DefaultResolver.LookupHost() to guess if the registry is reachable
from the daemon. If the daemon returns error contaning "no such host"
then use manual push with custom transport.

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

* Rework image pusher tests

Merged daemon push and non-daemon tests to one table driven test.

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

* Use image index not just image

This results in "multi-arch" image with single architecture this may
seems weird but it helps multi-arch clusters to run pods on approprieate
nodes.

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>
2024-05-28 14:27:17 +00:00
Matej Vašek 7276955847
fix: pipeline run yaml format for newer PaC (#2317)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-05-22 19:03:10 +00:00
Matej Vašek feb06f52b0
Fix PaC build (#2314)
* fix: default NS for PaC

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

* fix: make error non-fatal

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

* fix: pass correct image to PaC

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

* chore: enable gitlab test

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-05-22 15:19:36 +00:00
Luke Kingland b0418f95bb
feat: s2i Go support (#2203) 2024-05-21 13:12:55 +00:00
Luke Kingland e6fa020f78
fix: test and namespace isolation (#2187)
* fix: namespace logic cleanup and test isolation

- Pulls logic for defaulting to active namespace (K8S) moved UP to CLI during
  flag default calculation.
- Pushes logic of deciding between f.Namespace vs f.Deploy.Namespace down into
  implementations.
- Updates some tests which needed to have their environment cleared.
- Refactors Pipelines tests to use client API.
- Removes namespaces as a state variable all structures, instead passing as
  an argument.
- Moves FromTempDirectory to testing package for use outside cmd.

* fix spelling errors

* fix: pipelines remover always returned (empty) error

* update tekton namespace handling

* fix: remove deprecated GitLab config: max_concurrency
2024-05-17 08:25:46 +00:00
David Simansky f594551317
fix: Fix Test_deployerNamespace with empty kubeconfig (#2286) 2024-05-06 06:54:25 +00:00
David Simansky e3db53309f
fix: Disable flaky unit test Test_deployerNamespace (#2285) 2024-05-02 10:10:55 +00:00
Matej Vašek 7c87e0c4b8
chore: update node to v20 (#2217)
* chore: update node to v20

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

* fixup: temporarily ingore deletion errors for Node

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

* fixup

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

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-04-30 14:53:54 +00:00
Matej Vašek 1aed6e04d3
chore: make tkn taks urls setable via linker flags (#2277)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-04-23 11:15:02 +00:00
Matej Vašek cf433243cb
chore: update codecov/codecov-action (#2267)
* chore: update codecov/codecov-action

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

* chore: pin paketo builder version

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

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-04-10 11:47:01 +00:00
David Simansky 5a2e58441d
Update Knative deps to latest (#2265) 2024-04-05 09:07:51 +00:00
Luke Kingland e4010db028
src: cleanup setup scripts (#2247)
The current binaries and allocation scrips are very CI-centric, this PR
takes a few steps to make them more friendly to running in a dev
environment; mainly centered around not polluting global scope (keeping
filesystem mutations in a relative local directory).

- binaries (and kind kubeconfig) are installed in ./hack/bin
- adds /hack/bin to .gitignore
- binary paths can be overridden via env vars FUNC_TEST_{name}
- binary fallback is system-installed (when binaries.sh not run)
- Cleanup of the UX, including colors and some shared helpers via
  library.sh
- Removes `yq` as the hack that required it appears to no longer be necessary.
- Adds some notes for Nix users
- Better error messaging when !linux
- Refactors the installers to pipe directly to tar rather than touch
  disk.
- begin to standardize on hyphens in filenames
2024-04-02 08:29:03 +00:00
Calum Murray 701e258acf
fix: func invoke unmarshals json before setting it in the event (#2256)
Signed-off-by: Calum Murray <cmurray@redhat.com>
2024-03-29 09:55:40 +00:00
Matej Vašek 6b78b7f5c5
Improve utility image (#2246)
* The socat/tar image is now build in GH Actions.
* We use new tiny deploy binary for deployment instead of whole func.

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2024-03-26 11:30:56 +00:00
Luke Kingland 9beea04064
Basic auth (#2242)
* feat: host builder basic auth

* update tests

* mark oci basic auth flags hidden

* cleanup
- Remove debug statements
- Fix test race
- Update licenses

* spelling and linting errors
2024-03-26 09:17:21 +00:00
Luke Kingland c5fcabab4a
remove unrechable condition (#2239) 2024-03-25 16:16:11 +00:00
Dave Protasowski 1d0d7611b2
Introduce a --registry-insecure flag (#2234)
* fix env var casing otherwise flags with hyphens will continue to have hyphens

* Introduce an --registry-insecure flag

* fix build tests

* fix TestList

* fix insecure (http) push
2024-03-16 04:45:20 +00:00
Dave Protasowski 4d73d8d055
func-go v1.21.3 - idiomatic handler signatures (#2227)
* update go-http templates to match new idiomatic handler

* update embedded templates

* bump func-go dependency

* regenerate templates

* update template deps again

* run embed again

* update test fixtures

* use go1.22 in CI

* setup metallb right after creating k8s cluster

* func-go v1.21.2

* revert static http handler signature update

Since the Pack and S2I builders do not yet use the new func-go
middleware, we are not yet able update the static static handler template.

* func-go v0.21.3

* revert static handler template test

* update embedded template fs

* try go 1.21 throughout

---------

Co-authored-by: Luke Kingland <luke@lukekingland.com>
2024-03-14 14:40:36 +00:00
Dave Protasowski 3f20faa4e9
Drop replace directive (#2212)
* drop replace directive

* fix functionality - add an additional case so we walkthrough the docker default config locations
2024-03-13 04:54:46 +00:00
Dave Protasowski f01c709472
allow go install knative.dev/func@{version} (#2220) 2024-03-13 02:27:10 +00:00
Matthias Wessendorf fc351c0a7c
🧹 Using upstream lifecycle image that has multi-arch support (#2196)
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
2024-03-01 14:40:53 +00:00
Luke Kingland ab2bbffb07
feat: host builder metadata envs (#2195) 2024-03-01 09:38:06 +00:00
Knative Automation a4a4148379
[main] Upgrade to latest dependencies (#2188)
* upgrade to latest dependencies

bumping go.opentelemetry.io/otel/metric 279c549...e3eb3f7:
  > e3eb3f7 Release v1.23.0/v0.45.1 (# 4885)
  > eabcef4 Return merged Resource on schema conflict (# 4876)
  > 2c7761d Bump benchmark-action/github-action-benchmark from 1.19.2 to 1.19.3 (# 4883)
  > f4e1e04 Bump lycheeverse/lychee-action from 1.9.2 to 1.9.3 (# 4882)
  > 569854e sdk/metric/metricdata: Add MarshalJSON for Extrema (# 4827)
  > 242d23a Remove the Flush method from Exemplar (# 4873)
  > fecb92e Add the experimental exemplar feature (# 4871)
  > d9d9507 stdouttrace: Refine example (# 4872)
  > bf1ae8c [chore] Fix changelog entry for # 4754 (# 4874)
  > 8d3ae4c fix: Fix stdouttrace/example_test to make the trace_id same. (# 4855)
  > e7de571 Add the Histogram Reservoir impl (# 4870)
  > e6e4c95 Bump benchmark-action/github-action-benchmark from 1.18.0 to 1.19.2 (# 4865)
  > dcfec0c Add the random fixed size exemplar reservoir (# 4852)
  > ce3faf1 Bump lycheeverse/lychee-action from 1.9.1 to 1.9.2 (# 4864)
  > 3da38d3 Bump peter-evans/create-issue-from-file from 4 to 5 (# 4867)
  > 402998f dependabot updates Sun Jan 28 22:42:16 UTC 2024 (# 4869)
  > 200b2cf Bump codecov/codecov-action from 3.1.4 to 3.1.5 (# 4866)
  > 79371c1 Add the SampledFilter exemplar Reservoir impl (# 4851)
  > 08beb8b Add the Drop exemplar Reservoir implementation (# 4850)
  > 6f96e67 example/dice: Do not use semconv (# 4849)
  > c573785 Add the `sdk/metric/internal/exemplar` package (# 4835)
  > 1978044 Cache instruments so repeatedly creating identical instruments doesn't leak memory (# 4820)
  > cef39a1 Fix changelog entry (# 4848)
  > 71d13ff Fix ContainerID detector on systemd with colon in cgroup path (# 4449)
  > 3f74d77 Bump go.opentelemetry.io/proto/otlp from 1.0.0 to 1.1.0 in /exporters/otlp/otlptrace (# 4841)
  > edb9b2b Bump go.opentelemetry.io/proto/otlp from 1.0.0 to 1.1.0 in /exporters/otlp/otlptrace/otlptracegrpc (# 4842)
  > 71d2b41 Bump go.opentelemetry.io/proto/otlp (# 4838)
  > f0ea8b7 Bump go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp (# 4844)
  > c158b90 Bump go.opentelemetry.io/proto/otlp (# 4837)
  > b20691d Bump actions/cache from 3 to 4 (# 4839)
  > 33f5cf4 Add WithEndpointURL option to OTLP over HTTP exporters (# 4808)
  > 8778c38 docs: minor update to docstring (# 4833)
  > 1e2555f Release v1.23.0-rc.1 (# 4832)
  > 8f2bdf8 Bump golang.org/x/tools from 0.16.1 to 0.17.0 in /internal/tools (# 4825)
  > cf93d0d Add @dashpole (David Ashpole) as a maintainer (# 4830)
bumping k8s.io/apiextensions-apiserver 1dff568...e1d6769:
  > e1d6769 Update dependencies to v0.29.2 tag
  > f14ac67 Merge pull request # 122369 from cici37/automated-cherry-pick-of-# 122193-upstream-release-1.29
  > eccd921 Merge pull request # 122429 from MadhavJivrajani/tools-bump-129
  > 510e9f2 Keep presence cost to 0 to ensure backward compatibility.
  > 06c0a98 Merge pull request # 122343 from jpbetz/automated-cherry-pick-of-# 122329-origin-release-1.29
  > 4a82ea0 .*: bump golang.org/x/tools to v0.16.1
  > 2d320bc Wire in field dropping for CRDs
  > 249827f update go.mod
  > 4bb4c02 Merge pull request # 121034 from alexzielenski/apiserver/apiextensions/ratcheting-oldself-create
  > f68866b codegen
  > 5321cf0 validate defaults across an update from nil to ensure create ratcheting rules work
  > efc67b4 ratcheting-cel: use Optional[T] for oldSelf when optionalOldSelf is true
  > 0889c57 ratcheting-cel: add optionalOldSelf field
  > 2c1c704 refactor: rename TransitionRule to UsesOldSelf
  > 915de7b Merge pull request # 121573 from tukwila/bump_etcd_v3.5.10
  > d1c742e Merge pull request # 121552 from pohly/klog-update
  > e1b4aee bump to newest etcd: v3.5.10
  > 2a7741d dependencies: klog v2.110.1
  > e964004 Merge pull request # 121575 from apelisse/update-smd
  > 204aa5c Merge pull request # 121577 from cici37/celFixPick
  > 74dc30a Update sigs.k8s.io/structured-merge-diff to v4.4.1
  > e907c44 Merge pull request # 121373 from cici37/crdGA
  > fed8e0b Add set ext library into Kubernetes and pick up the new option cel provides
  > 2d6475f Merge pull request # 121307 from cici37/celUpdate
  > 8286ec3 Remove the usage of feature gate
  > cfee884 Bump cel-go to v0.17.7
  > 7eec8bf Merge pull request # 121460 from jiahuif-forks/feature/crd-validation-expressions/existing-expressions-cost-exempt
  > c16fc96 Add cel new validator into Kubernetes.
  > 78065a7 Merge pull request # 121462 from alexzielenski/apiserver/apiextensions/ratcheting-metrics-actually
  > 7d0a2a9 suppress per-expression cost limit for unmutated versions.
  > d31f930 Merge pull request # 121405 from alexzielenski/apiserver/apiextensions/ratcheting-benchmarks
  > e54efed metrics: publish metrics from ratcheting across a request
  > 182175e Merge pull request # 121524 from carlory/gomega
  > e3bcef4 ratcheting: add benchmark
  > 99f827f bump gomega to 1.29.0
  > db2e96c Merge pull request # 121255 from tukwila/OpenAPIV3-cleanup
  > dcb65b7 Merge pull request # 121338 from dims/working-otel-bump
  > 70a4e71 Remove GAed feature gates OpenAPIV3
  > be4aa6a Merge pull request # 121343 from alexzielenski/apiserver/apiextensions/ratcheting-metrics
  > 305c51a working-config-otel
  > 7d6d9e2 Merge pull request # 121430 from bzsuni/cleanup/fsnotify
  > 72514a2 replace CEL ValidateWithRatcheting with variadic options
  > f0dcf82 Merge pull request # 121455 from cici37/test_cost
  > 49314b9 Bumped the fsnotify from version v1.6.0 to v1.7.0
  > 712c8c0 ratcheting: provide a shared correlated object
  > a00f3f9 Merge pull request # 119186 from seans3/stream-translator-proxy
  > 64f9a54 Add stability tests for CEL cost estimation.
  > b482682 fetch a shared correlated object off the validation options if it exists
  > d459639 Merge pull request # 120397 from ty-dc/StaticCheck
  > 8c1ad11 StreamTranslator and FallbackExecutor for WebSockets
  > d2839fd fix usage
  > 56c7faf Merge pull request # 121016 from alexzielenski/apiserver/apiextensions/ratcheting-cel
  > 37b3e30 cleanup: omit comparison with bool constants
  > fedd88f add variadic options to ValidateUpdate
  > fd7b6ea ratcheting: ratchet CEL expressions for no-op updates
  > d704d8d Merge pull request # 121337 from alexzielenski/apiserver/apiextensions/cleanup-validator
  > dae2c4e Merge pull request # 121364 from sxd/update_grpc
  > 40b0c2a fix typo
  > 10e8e5f Merge pull request # 120757 from alexzielenski/apiserver/openapi/invalid-default
  > d11c518 bump golang.org/grpc to v1.56.3
  > 2aaec3e cleanup: move unstructured check earlier in status update
  > 2fd9bc9 update generated code and openapi
  > 911047c cleanup: remove unused versions of cel validators and structural schemas from CRD strategy
  > 068d4fa pin openapi
  > e6376d9 cleanup: check unstructured for Validate(Update) before validating
  > ca37838 Merge pull request # 121250 from carlory/fix-120882
  > a80d851 Merge pull request # 121085 from jiahuif-forks/fix/crd-validation-expressions/enum-cost
  > 3a34a15 update pretty param description
  > 0c4ba28 Merge pull request # 121010 from Jefftree/decouple-openapi-v2v3-config
  > ab724eb skip CEL validations for enum violation.
  > b15c120 Merge pull request # 121118 from alexzielenski/apiserver/apiextensions/ratcheting-factor-correlation
  > 24792c8 bump kube-openapi
  > 4e531e7 set maxLength to longest enum.
  > fb7d61d Merge pull request # 121096 from alexzielenski/common-schema
  > c82832d ratcheting: disable correlation by index
  > b41f9f4 Fix v3 spec
  > 67b1443 Merge pull request # 120735 from Jefftree/request-body
  > d2c63d3 add rest of accessors to common.Schema
  > 0d199cf cleanup: add header and fix spelling
  > 6bf411d bump kube-openapi
  > c2faef7 refactor: move correlatedObject to its own file
  > 10f014c Merge pull request # 121111 from dashpole/update_otel_deps
  > e18ccb9 refactor: make CachedDeepEqual independent of validation
  > efb81f7 dependencies: update otel-go dependencies
  > c969379 refactor: use common.Schema in CorrelatedObject
  > 16d9312 Merge pull request # 121117 from MadhavJivrajani/bump-x-net
  > 65efe91 refactor: export correlated fields
  > 926e59f .: bump golang.org/x/net to v0.17.0
  > 572541a refactor: add methods for Key and Index on CorrelatedObject
  > 4395afc Merge pull request # 121082 from pohly/ginkgo-gomega-update
  > 2edf24b refactor: factor out object correlation
  > c79aa2d dependencies: ginkgo v2.13.0, gomega v1.28.0
  > 3d3926e refactor: directly implement ValueValidator
  > 993ffb2 Merge pull request # 119865 from charles-chenzz/bump_deps
  > a2f29d7 refactor: remove unnecessary lambda (noop)
  > e82831d Merge pull request # 120836 from jkh52/knp-0.28.0
  > c61c50c bump github.com/emicklei/go-restful/v3 to v3.11.0.
  > 814b880 Bump Konnectivity to 0.28.0
  > 768cdd0 Merge pull request # 119526 from sttts/sttts-idiomatic-cached
  > 5447ad1 hack/update-vendor.sh
  > 5fb788d Fixup kube-openapi/pkg/cached changes
  > f606a30 Merge pull request # 120506 from alexzielenski/import-restrictions
  > 1662f59 Merge pull request # 120575 from benluddy/precompute-cr-accepts
  > edf0fab pin gengo
  > 8a224a3 Reuse SupportedMediaTypes for CR content-type negotiation.
  > f181a5b Merge pull request # 120008 from skitt/drop-intstr-ptr-wrappers
  > bb94040 Merge pull request # 120499 from tukwila/gorilla/websocket_v1.5.0
  > ac3c148 Use ptr.To to retrieve intstr addresses
  > a74bd29 Merge pull request # 120517 from Xunzhuo/patch-2
  > 2f12351 bump: upgrade gorilla/websocket from v1.4.2 to v1.5.0
  > fd3561e fix: update thirdpartyresources refs
  > 766529e Merge pull request # 119334 from kmala/serverapply
  > c19991e Merge pull request # 120368 from Jefftree/openapi-remove-openapiv2-skip-filter
  > b4e4965 update the dependency sigs.k8s.io/structured-merge-diff/v4 to latest tag
  > 81659cd remove SkipFilterSchemaForKubectlOpenAPIV2Validation
  > ab27435 Merge pull request # 120327 from liggitt/json-patch
  > c1cd86f Merge pull request # 120218 from rakshitgondwal/feat/protobuf-version-update
  > 9e3e06b Revert to json-patch 4.12.0
  > 11f7fbc Merge pull request # 120177 from stevekuznetsov/skuznets/generate-crd-applyconfigurations
  > a634982 feat: update google.golang.org/protobuf to v1.31.0
  > 003b8d4 apiextensions-apiserver: generate applyconfigurations
  > 3b8c9f2 Merge pull request # 119508 from nayihz/fix_finalizer_validation
  > dc999a6 Merge pull request # 120060 from jpbetz/cel-features-1_29
  > 6de9313 fix crd finalizer validation
  > 166c3df Merge pull request # 120109 from Jefftree/fix-openapi-test-flakee
  > c18aa20 Bump cel string lib to v2, add tests
  > eec2ef6 Merge pull request # 120097 from jpbetz/fix-ppc64le
  > c47325f Add wait for cache sync
  > 62666cd Bump cel-go to v0.17.6
  > 1c8c9c2 Fix CEL cost handling of zero length replacement strings
  > 712e602 Merge pull request # 119800 from jpbetz/cost-fix
  > 36d7f30 Merge pull request # 118455 from linxiulei/managedFields
  > b1ccb14 Add test coverage of result size of string operations
  > 1b4a228 Merge pull request # 119725 from MadhavJivrajani/bump-net-dep
  > ccb7153 Run hack/update-codegen.sh informers subprojects
  > ffb4444 Bump cel-go to v0.16.1
  > 9bd0aa3 .*: bump golang.org/x/net to v0.13.0
  > 1f93812 Merge pull request # 119653 from sttts/sttts-crd-stored-version-errors
  > cfdb852 apiextensions: fix validation error for status.storedVersions
  > 705af05 Use statusReason for reason under x-kubernetes-validations (# 119544)
bumping google.golang.org/api 87aa1d0...548436b:
  > 548436b chore(main): release 0.167.0 (# 2428)
  > 55a9e5a feat(all): auto-regenerate discovery clients (# 2429)
  > f72b5af feat(all): auto-regenerate discovery clients (# 2427)
  > 133e58b chore(main): release 0.166.0 (# 2418)
  > 446a6bd feat(all): auto-regenerate discovery clients (# 2426)
  > b7d596b chore(all): update all (# 2423)
  > 124a535 feat(all): auto-regenerate discovery clients (# 2425)
  > b3f9c38 feat(all): auto-regenerate discovery clients (# 2424)
  > af6aa38 feat(all): auto-regenerate discovery clients (# 2421)
  > 762eb61 feat(all): auto-regenerate discovery clients (# 2420)
  > c969083 feat(all): auto-regenerate discovery clients (# 2419)
  > 260fc1e feat(all): auto-regenerate discovery clients (# 2417)
  > e451477 chore(main): release 0.165.0 (# 2415)
  > deab77d feat(all): auto-regenerate discovery clients (# 2416)
  > c702880 feat(all): auto-regenerate discovery clients (# 2414)
  > 3ff4bc1 chore(main): release 0.164.0 (# 2407)
  > edbe996 fix(transport): disable universe domain check if token source (# 2413)
  > 05a0882 chore(all): update all (# 2410)
  > 51d5068 feat(all): auto-regenerate discovery clients (# 2412)
  > 246b19f feat(all): auto-regenerate discovery clients (# 2409)
  > f1b37df feat(all): auto-regenerate discovery clients (# 2408)
  > 1bd8304 feat(all): auto-regenerate discovery clients (# 2406)
bumping k8s.io/client-go 94205f8...62c5e9e:
  > 62c5e9e Update dependencies to v0.29.2 tag
  > baea19d Merge pull request # 122429 from MadhavJivrajani/tools-bump-129
  > 3373afd .*: bump golang.org/x/tools to v0.16.1
  > 288368e update go.mod
  > 86d49e7 Merge pull request # 113374 from ahmedtd/kep-3257-projected-types
  > 59c256a Regenerate for ClusterTrustBundlePEM projected volume API
  > ac369c3 Define ClusterTrustBundlePEM projected volume
  > 66e57f7 Merge pull request # 121552 from pohly/klog-update
  > 8b96b9b dependencies: klog v2.110.1
  > c13269d Merge pull request # 116516 from aojea/servicecidr
  > 7523a34 Merge pull request # 121575 from apelisse/update-smd
  > 60aa89a make update with the new API with arrays
  > 965bc8d Merge pull request # 121104 from carlory/kep-3751-api-changes
  > ce4f256 Update sigs.k8s.io/structured-merge-diff to v4.4.1
  > 824910b make update
  > 6278c99 generated changes
  > 477cb78 Merge pull request # 121089 from tkashem/apf-v1
  > 5a34ab5 apiserver: add generated files for flowcontrol api change
  > 20fd67f apiserver: generate code for apf flowcontrol v1 API
  > 30eba26 Merge pull request # 121524 from carlory/gomega
  > 8ec95e1 bump gomega to 1.29.0
  > 4028f5b Merge pull request # 121338 from dims/working-otel-bump
  > 08f1ffe working-config-otel
  > e2e59f3 Merge pull request # 119186 from seans3/stream-translator-proxy
  > c925374 Merge pull request # 120397 from ty-dc/StaticCheck
  > b7d73dd StreamTranslator and FallbackExecutor for WebSockets
  > b003667 Merge pull request # 116065 from sanposhiho/match-label-key-alternative
  > 0447e1f cleanup: omit comparison with bool constants
  > 5f697ab Merge pull request # 121363 from p0lyn0mial/upstream-reflector-consistency-check
  > a462882 feature(scheduler): implement matchLabelKeys in PodAffinity and PodAntiAffinity
  > 33d1400 Merge pull request # 120757 from alexzielenski/apiserver/openapi/invalid-default
  > 0f984dc client-go/reflector: introduce a data consistency mechanism for the watch-list feature.
  > b592521 update generated code and openapi
  > 30f741e pin openapi
  > 435ce6f Merge pull request # 121010 from Jefftree/decouple-openapi-v2v3-config
  > 9f0ec66 Merge pull request # 119802 from takirala/tga/update-ErrGroupDiscoveryFailed
  > f68660d bump kube-openapi
  > 17c66cc Merge pull request # 119026 from AxeZhan/sleepAction
  > 5a38750 fix: add code comments
  > 5cf6418 codegen
  > f936552 client-go: chore: implement `Is` interface for `ErrGroupDiscoveryFailed`
  > 52c50bf Merge pull request # 121229 from aojea/remove_cluster_cidr
  > 46e82c5 Merge pull request # 120248 from pacoxu/grpc-container-probe
  > 656ec39 remove ClusterCIDR
  > bc7002f Merge pull request # 120735 from Jefftree/request-body
  > 92c5c93 remove GAed FG GRPCContainerProbe
  > d02858f Merge pull request # 121106 from aojea/ipaddress_uid
  > c0416e6 bump kube-openapi
  > 57d597c Add shortname ambiguity warning in shortcut expander (# 117668)
  > 55f8f3f make update
  > cf4002b Merge pull request # 121111 from dashpole/update_otel_deps
  > 0b5d6df dependencies: update otel-go dependencies
  > b4ee45c Merge pull request # 121117 from MadhavJivrajani/bump-x-net
  > 9f19d0f .: bump golang.org/x/net to v0.17.0
  > 9518c80 Merge pull request # 121082 from pohly/ginkgo-gomega-update
  > 5b14e64 Merge pull request # 120975 from ardaguclu/close-heartbeat-explicitly
  > fa053c2 dependencies: ginkgo v2.13.0, gomega v1.28.0
  > 0a782d6 Merge pull request # 120729 from pohly/events-context
  > 583e50d Use timeout function to detect transient errors
  > ca71863 Merge pull request # 120984 from p0lyn0mial/upstream-reflector-always-fallback-to-listwatch
  > cf07629 k8s.io/client-go/tools/events: pass context into EventSink methods
  > 9a88950 revert back to IsUnexpectedCloseError check
  > 1e0855a reflector: fallback to the previous mode on any error
  > 3595e52 k8s.io/client-go/tools: support context for event recording
  > e95d92d Close websocket heartbeat explicitly when unexpected closure received
  > fbb1575 Merge pull request # 120980 from p0lyn0mial/upstream-client-go-close-watcher
  > 2c9d749 reflector: close an established watcher when the StopCh was closed
  > d6dc079 Merge pull request # 120716 from xrstf/fix-typos
  > 6b97f71 Merge pull request # 119865 from charles-chenzz/bump_deps
  > 0d1af04 fix typo dervied => derived
  > 52cc500 Merge pull request # 120865 from aojea/remotecmd_flake
  > bf89966 bump github.com/emicklei/go-restful/v3 to v3.11.0.
  > 011db22 deflake TestWebSocketClient_HeartbeatSucceeds
  > 34d1b64 Merge pull request # 120799 from aojea/workqueue_test
  > 657ffa5 Merge pull request # 120752 from p0lyn0mial/upstream-client-go-initial-events-value
  > 374e363 workqueue unit tests to assert collapsing behaviors
  > d0ea06d cache/reflector: check the value of the initial-events-end annotation
  > b5b9332 Merge pull request # 120694 from aojea/ws_healthchec
  > 08f8929 Merge pull request # 119526 from sttts/sttts-idiomatic-cached
  > ea6e035 add loging and bump timers to avoid races
  > 278669d hack/update-vendor.sh
  > 908cc0a Merge pull request # 120513 from devincd/fix-typo
  > 44a68ee Merge pull request # 120508 from aojea/aojea_owner
  > f242a56 fix typo in client-go package
  > a73949f Merge pull request # 120008 from skitt/drop-intstr-ptr-wrappers
  > 5ac9cf8 add aojea as client-go approver
  > a52e8a1 Merge pull request # 120499 from tukwila/gorilla/websocket_v1.5.0
  > f0c65af Use ptr.To to retrieve intstr addresses
  > 951672f bump: upgrade gorilla/websocket from v1.4.2 to v1.5.0
  > 53c02af Merge pull request # 119334 from kmala/serverapply
  > f5a7a42 Merge pull request # 119157 from seans3/websocket-executor
  > 77918e1 update the dependency sigs.k8s.io/structured-merge-diff/v4 to latest tag
  > fd1e22b WebSocket Client and V5 RemoteCommand Subprotocol
  > 4783d28 Merge pull request # 119410 from Jefftree/kubectl-cleanup
  > 5e052e4 Merge pull request # 119870 from Jefftree/agg-discovery-406
  > f02c594 Cleanup kubectl legacy server fallback
  > f28f485 Merge pull request # 120259 from SataQiu/clean-apf-20230830
  > c4ed5da Fallback to legacy discovery on a wider range of conditions in aggregator
  > 5e5ba6b Merge pull request # 120327 from liggitt/json-patch
  > def2075 apf: remove v1alpha1 API
  > fb2e668 Merge pull request # 120218 from rakshitgondwal/feat/protobuf-version-update
  > f6f4d3c Revert to json-patch 4.12.0
  > 5af0bb9 feat: update google.golang.org/protobuf to v1.31.0
  > 4dd144a Merge pull request # 119962 from pohly/dra-api-list-type
  > e8815ff Merge pull request # 118653 from pohly/volume-resource-requirements
  > cb120b6 api: change list type for node lists in PodSchedulingContext
  > 3fe9aa4 Merge pull request # 119790 from seantywork/added-comment
  > 86ae84a generated files
  > c1466ac Merge pull request # 119883 from ls-2018/json
  > ff3618f kubernetes mutual (2-way) x509 comment
  > 9c6b659 Merge pull request # 119937 from RyanAoh/kep-1860-dev
  > a8fc969 Fix: null jsonpath serialization
  > d124e52 Merge pull request # 119806 from enj/enj/i/delete_psp_api
  > 4a487f6 Generated code for IP mode field
  > edce1de Merge pull request # 119728 from pohly/ssa-forbid-extract-calls
  > 1e11b3a Delete PSP API types and generated clients
  > 9a5370b Merge pull request # 119907 from Hii-Arpit/Hii-Arpit-Fixing-Broken-Link
  > ed2b4f0 SSA: prevent usage of Extract calls via forbidigo
  > 54237a5 Merge pull request # 119796 from sttts/sttts-caches-populated
  > f4a635a Update README.md
  > b97d8af Merge pull request # 119554 from davidmccormick/prevent-race-client-go-workqueue-shutdown
  > 00f8b3a client-go: log proper 'caches populated' message, with type and source and only once
  > 856e847 Merge pull request # 118455 from linxiulei/managedFields
  > e9b0103 Fix a race where a call to Shutdown was happening after ShutDownWithDrain() had performed the check q.isProcessing() && q.shouldDrain() and before waitForProcessing() has reached its Wait().  This is because waitForProcessing() is only checking the length part of the condition instead of both the length and whether we still need to drain.
  > 08b51e9 Merge pull request # 118399 from skitt/ioutil-sig-api-machinery
  > 411a118 Run hack/update-codegen.sh informers subprojects
  > 41d4a16 Merge pull request # 117992 from liggitt/gc-discovery-flutter
  > caded3c api-machinery: stop using deprecated io/ioutil
  > da4a4e2 Add 'WithTransform' SharedInformerOption
  > b8a03ab Merge pull request # 119876 from marosset/revert-118895
  > daed746 Add GroupDiscoveryFailedErrorGroups helper method
  > 04dcae2 Merge pull request # 119835 from liggitt/mitigate-aggregated-discovery-npe
  > 32bbd73 Revert "Merge pull request # 118895 from RyanAoh/kep-1860"
  > bf44ac9 Avoid returning nil responseKind in v1beta1 aggregated discovery
  > 49410bf Merge pull request # 119725 from MadhavJivrajani/bump-net-dep
bumping k8s.io/apimachinery 46a872e...dc7e034:
  > dc7e034 Merge pull request # 122429 from MadhavJivrajani/tools-bump-129
  > 7d94fef .*: bump golang.org/x/tools to v0.16.1
  > 3c8c1f2 update go.mod
  > 12dc3f8 Merge pull request # 113374 from ahmedtd/kep-3257-projected-types
  > 03a1b4b LRUExpireCache: Allow removing multiple keys under lock
  > bc0a03b Merge pull request # 119762 from AxeZhan/PollUntilContextCancel
  > 16d50e6 Merge pull request # 121552 from pohly/klog-update
  > 5916a9f add new test cases
  > 6b13b03 dependencies: klog v2.110.1
  > 41ffa42 remove dead code in test
  > 96ae302 Merge pull request # 121575 from apelisse/update-smd
  > abbf317 fix wait.PollUntilContextCancel immediately executes condition once
  > 458fd90 Merge pull request # 120707 from Jefftree/csa-openapiv3
  > 8dbf841 managedfields: Allow duplicates for built-in updates associative lists
  > 850727f Merge pull request # 120592 from AxeZhan/validation_sets
  > 5a8e3a4 use OpenAPIV3 for kubectl diff
  > 96a678f Update sigs.k8s.io/structured-merge-diff to v4.4.1
  > 92fa50e Merge pull request # 121524 from carlory/gomega
  > 092c2b3 generic set
  > 97be40b Use OpenAPI V3 for client side SMP
  > aa1cb92 bump gomega to 1.29.0
  > 0785eb2 Merge pull request # 121338 from dims/working-otel-bump
  > bf719fd working-config-otel
  > c18d2bf Merge pull request # 119186 from seans3/stream-translator-proxy
  > 1e138bd Merge pull request # 120397 from ty-dc/StaticCheck
  > 20301d1 StreamTranslator and FallbackExecutor for WebSockets
  > c047e32 Merge pull request # 120757 from alexzielenski/apiserver/openapi/invalid-default
  > b50b428 cleanup: omit comparison with bool constants
  > 32607c7 pin openapi
  > a1b8da8 Merge pull request # 121010 from Jefftree/decouple-openapi-v2v3-config
  > e0ab1cf Merge pull request # 117411 from tenzen-y/add-multiply-method
  > 315a5b1 bump kube-openapi
  > 51716cc Add a 0 × 0 case
  > 71b21d9 Verify more carefully the results in the TestInt64AmountMul
  > f9de319 Add test cases for mostPositive and mostNegative
  > 9cda16f Add more unit tests
  > 56ec8d7 Multiply by a scalar
  > 0773351 quantity: Add multiplication methods
  > be91880 Merge pull request # 121120 from enj/enj/i/h2_dos
  > e04f17b Merge pull request # 120735 from Jefftree/request-body
  > a0fd4b0 Prevent rapid reset http2 DOS on API server
  > dba4e33 bump kube-openapi
  > 1ca6c69 Merge pull request # 121111 from dashpole/update_otel_deps
  > 624de72 dependencies: update otel-go dependencies
  > 3bbde9f Merge pull request # 121117 from MadhavJivrajani/bump-x-net
  > 0e0e381 .: bump golang.org/x/net to v0.17.0
  > 67d44f9 Merge pull request # 121082 from pohly/ginkgo-gomega-update
  > 63f41b3 dependencies: ginkgo v2.13.0, gomega v1.28.0
  > 839ad94 Merge pull request # 120542 from alvaroaleman/condition-change
  > a017454 Merge pull request # 118761 from TommyStarK/gh_113831
  > 316b59e Apimeta Set/RemoveStatusCondition: Indicate change
  > 64708d3 Merge pull request # 119526 from sttts/sttts-idiomatic-cached
  > 9e33432 move common logic of highestSupportedVersion to util package
  > d60b6e4 hack/update-vendor.sh
  > fd8daa8 Merge pull request # 120008 from skitt/drop-intstr-ptr-wrappers
  > ee8dcbc Merge pull request # 119619 from skitt/intstr-parse-parseint
  > 84bc68b Use ptr.To to retrieve intstr addresses
  > 82362bc Merge pull request # 119334 from kmala/serverapply
  > 79c2b87 Limit intstr.Parse() to 32-bit integer parsing
  > 3514784 Merge pull request # 119157 from seans3/websocket-executor
  > 3a170ca update the dependency sigs.k8s.io/structured-merge-diff/v4 to latest tag
  > 73d12d0 WebSocket Client and V5 RemoteCommand Subprotocol
  > 0d057e5 Merge pull request # 120327 from liggitt/json-patch
  > de716d7 Merge pull request # 119801 from wojtek-t/refactor_watch_encoders
  > 3235353 Revert to json-patch 4.12.0
  > 1629459 Merge pull request # 120218 from rakshitgondwal/feat/protobuf-version-update
  > 00225c4 Refactor WatchServer to prepare for using encoders
  > 9725a00 feat: update google.golang.org/protobuf to v1.31.0
  > 3e2600d cleanup: Update deprecated FromInt to FromInt32 (# 119858)
  > 5f41d7c Merge pull request # 119844 from enj/enj/i/upgrade_regex
  > 4c378f8 Merge pull request # 118989 from crenshaw-dev/better-error-message
  > a1adee5 wsstream: use a single approach to detect connection upgrade
  > 14436eb Merge pull request # 118399 from skitt/ioutil-sig-api-machinery
  > e1b5587 chore: improve error message for unstructured helper method
  > 8071e5f Merge pull request # 119725 from MadhavJivrajani/bump-net-dep
  > 9cc9191 api-machinery: stop using deprecated io/ioutil

Signed-off-by: Knative Automation <automation@knative.team>

* Bump cli-runtime to match rest of k8s.io modules

* Fix renamed volumes field

* Fix one more occurence

---------

Signed-off-by: Knative Automation <automation@knative.team>
Co-authored-by: David Simansky <dsimansk@redhat.com>
2024-02-28 15:15:18 +00:00
Matej Vašek e2ea83ca8e
chore: update docker to v25 (#2160)
* chore: update docker to v25

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

* chore: update pack dep

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

* chore: unpin moby/buildkit

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

* fixup: use upstream source-to-image

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

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-02-28 13:28:30 +00:00
David Fridrich 7e95ca2181
Cleanup orphaned func, new image-name calculation (#1962)
* forced namespace change, deletes old func, kind works

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

* new .deploy.image field

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

* building

* building

* add first iteration of complete functionality with f.Build.Image and f.Deploy.Image that STILL contains a workaround for image digest which is populated on Push instead of Build

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

* base tests fixes for compile

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

* fix base tests2 for now, integration test has a possible TODO

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

* new generated schema

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

* fix some tests using .Image and create new test

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

* remove nested .func

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

* get rid of test

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

* remove my debug test

* fix namespace change test

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

* fix pipeline run to use .Deploy.Image

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

* fix TestDeploy_ConfigApplied and change pipelines image being used

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

* fix some tests

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

* fix actions - return value, configApplied and registry on subsequent deploy different

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

* update empty image in tests issue

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

* fix client.Apply tests with passing image value to .Deploy after push

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

* openshift override on namespace change forced, remove useless print

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

* printing fixes, reviewdog, buildConfig return

* fix pipelines test by feeding image name to .Deploy, comments

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

* update more tests

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

* fix

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

* new test, comment

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

* misspell

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

* remove unnecessary comments

* fix from review

* namespace updated with 2 fields; new error definitions; deploy functionality cleanup

* remove k8s service host var in test

* error definition; fix client tests; cli delete fixup

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

* new schema

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

* namespace fixes; remover arguments fix

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

* delete_test cmd

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

* schema, new local remote flag instead of deploy

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

* fix test to have now required namespace

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

* add namespace check, test action

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

* fix integration deploy test, comments

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

* fix wrongly removed namespace

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

* small changes to remover and ns added to its tests

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

* test moving logic to client

* fix deploy bug, remove verbose for better logs

* pipelines, clean remover

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

* newline

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

* namespace required in remover, and fixed remote deployer - returns ns

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

* fix integ test for pipelines.Run

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

* cleanup

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

* registry update change on deploy, some prints

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

* new deploy tests and mock update

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

* new tests, ns determination in mocks

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

* deploy digested img doesnt populate build

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

* comments

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

* remove todo

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

---------

Signed-off-by: gauron99 <fridrich.david19@gmail.com>
2024-02-27 10:44:20 +00:00
David Fridrich fcdafd7d1b
unreliable gitlab test skip (#2186)
* unreliable gitlab test skip

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

* comm

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

---------

Signed-off-by: gauron99 <fridrich.david19@gmail.com>
2024-02-27 09:37:48 +00:00
Matthias Wessendorf e3576d3225
🧹 Remove discontinued tanzu builder image (#2178)
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
2024-02-22 13:18:08 +00:00
Luke Kingland 9ca1b6d709
feat: host builder nonregular file support (#2156)
* host builder nonregular files

* disallow links outside root

* add back in correct path support for windows

* code review updates

* host builder file test

* windows-specific absolute link check

* windows-specific test

* refactor

Resolve the link target one level higher such that it can be used
when creating the tar header without repetition.

* validate link header targets

* expand link test

* merge os-specific test cases

* remove os filter and unused arg
2024-02-20 03:50:05 +00:00
Matej Vasek 37285a053a
chore: update pack to v0.33.0 (#2148)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-02-09 06:46:41 +00:00
Matthias Wessendorf c252c4f537
Springboot bumps (#2126)
* Making updates to Spring boot templates, as suggested by @trisberg

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>

* 🤖 We touched the samples, so adding the generated thing

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>

* Bump JDK Builder to 21

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>

* Some more java 21 setters

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>

---------

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
2024-01-22 18:45:03 +00:00
Gunjan Vyas e6c53eb083
func write: write localsettings to .func/local.yaml (#2121) 2024-01-19 08:56:06 +00:00
Matej Vasek 152d00901b
fix: GitLab test (#2112)
* fix: GitLab test

Update to URL used in newer versions of GitLab.

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

* fixup: increase resource limit

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

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2024-01-10 17:35:43 +00:00
Luke Kingland c4d0bc6ca1
fix: replace git-urls with patched fork (#2105)
* fix: replace git-urls with patched fork

* update licenses
2023-12-12 11:01:27 +00:00
AdamKorcz 7ebf92dc5b
Log if image is referenced by tag (#2090)
* Log if image is referenced by tag

Signed-off-by: AdamKorcz <adam@adalogics.com>

* fixup: do not warn with standard images

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

---------

Signed-off-by: AdamKorcz <adam@adalogics.com>
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Co-authored-by: Matej Vasek <mvasek@redhat.com>
2023-11-29 17:09:23 +00:00
Davide Pruscini 7af58b5eb4
Fixed PersistentVolumeClaim spelling error (#2069)
* fix typo in function's volume attribute (#1993)

Correct the misspelled attribute 'PersistentVolumeClaim' in the function's volume name.

* reload accidentally deleted file

* fixup: added migration func

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

* fixup: migration func

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

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
Co-authored-by: Matej Vasek <mvasek@redhat.com>
2023-11-07 21:28:46 +00:00
Matthias Wessendorf 5bb373ab2c
Adding support for `func subscribe` for creating mutiple triggers, based on event filters (#2001)
* Adding support for `func subscribe` for creating mutiple triggers, based on event filters

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>

* Update cmd/subscribe.go

Co-authored-by: Luke Kingland <luke@lukekingland.com>

* Update cmd/subscribe.go

Co-authored-by: Luke Kingland <luke@lukekingland.com>

* Update cmd/subscribe.go

Co-authored-by: Luke Kingland <luke@lukekingland.com>

* Update cmd/subscribe.go

Co-authored-by: Luke Kingland <luke@lukekingland.com>

* Update cmd/subscribe.go

Co-authored-by: Luke Kingland <luke@lukekingland.com>

* Update cmd/subscribe.go

Co-authored-by: Luke Kingland <luke@lukekingland.com>

* removing unused import

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>

* running make

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>

* Some import ogranization

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>

* Change argument syntax

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>

* changes

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>

* Adding some emoji text

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>

* 💄 move subscriptions underneath the deploy element

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>

* adding silly emoji to build

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>

* Adding some simple/copied/modified test

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>

* Running 'make schema-generate'

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>

* Update function

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>

* Little unit test

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>

* Adding a bit more help text

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>

* misspell instruction

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>

---------

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
Co-authored-by: Luke Kingland <luke@lukekingland.com>
2023-11-06 13:56:38 +00:00
Matej Vasek ff7dca41f4
fix: NPE (#2062)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-10-31 17:05:10 +00:00