Commit Graph

122 Commits

Author SHA1 Message Date
github-actions[bot] d4506e32dd
update components (#2760)
Co-authored-by: Knative Automation <automation@knative.team>
2025-03-25 12:45:45 +00:00
Matej Vašek 90624a8725
Add git BP to our Go detection group (#2747)
* Add git BP to our Go detection group

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

* make git bp optional

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-03-17 03:03:36 +00:00
Matej Vašek a351afdc9b
Fix http port 433 => 443 (#2742) 2025-03-14 06:30:38 +00:00
github-actions[bot] fa79d313e0
update components (#2738)
Co-authored-by: Knative Automation <automation@knative.team>
2025-03-10 11:37:04 +00:00
David Fridrich d649adaf56
fix: update comment of knative-component auto PR (#2707)
* comment

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

* fix format

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

---------

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>
2025-02-19 15:22:48 +00:00
github-actions[bot] 88afd64d40
update components (#2700)
Co-authored-by: Knative Automation <automation@knative.team>
2025-02-19 13:12:48 +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
David Fridrich 0cbf721539
bump versions (#2664)
Signed-off-by: David Fridrich <fridrich.david19@gmail.com>
2025-01-22 15:38:11 +00:00
Matej Vašek 527b917f07
Remove dependency on docker hub (#2654)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-01-19 11:04:07 +00:00
Matej Vašek e2474a6bf1
Enable Go ARM64 buildpack (#2636)
* Enable Go ARM64 buildpack

Added adjustments that enable Go buildpack build on arm64 machines.
Paketo buildpack do not distribute serveral buildpacks in arm64
variant, so we need to build them.

Namely we need to build:
go
go-dist
go-build
go-mod-vendor
git

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

* Remove unused struct

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

* Prealloc slice

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

* Fix typo

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

* Fix typo

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

* Remove debugging envvar

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

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-01-07 03:53:57 +00:00
Matej Vašek bf603390b6
Set annotations on builder images (#2635)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-01-06 14:42:55 +00:00
Matej Vašek 8475f864b9
Fix deadlock (#2630)
* Fix deadlock

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

* Rework digest detection

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

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-12-20 12:59:12 +00:00
Matej Vašek 1122bf76f4
Fix buildpack builder script (#2629)
* Pass Go context.Context where appropriate

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

* Fix buildpack builder script

Bypass Moby bug where 500 is returned instead of 404.

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

* fixup: update go.mod

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

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-12-20 00:23:11 +00:00
Matej Vašek 77489858d0
Use library GH keychain instead of our own (#2624)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-12-18 18:13:10 +00:00
Matej Vašek 770949b7d2
Fix authorization (#2622)
Fixed authorization by setting keychain for the pack client.
This is required since recently we set pull policy to "always".

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-12-18 16:59:10 +00:00
Matej Vašek d5dc82c34b
Build arm64 tiny buildpack builder image (#2617)
Enable arm64 support for tiny builder (Java,Go).
This commit actually enables only Java since some additinal work has to
be done for Go because upstream paketo buildpack do not support Go fully
yet.

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-12-18 05:31:09 +00:00
Matej Vašek ae4c7d927c
Remove superfluous equals sign from envvar (#2446)
* Remove superfluous equals sign from envvar

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

* Update rust templates Cargo.lock

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

---------

Signed-off-by: Matej Vašek <matejvasek@gmail.com>
2024-07-26 16:02:19 +00:00
Matej Vašek 362bdf64c8
fix: springboot updater missing EOL (#2433)
Signed-off-by: Matej Vašek <matejvasek@gmail.com>
2024-07-22 05:35:14 +00:00
Matej Vašek e641bba0b5
Cron GH Action to update CA bundle (#2422)
Signed-off-by: Matej Vašek <matejvasek@gmail.com>
2024-07-12 06:36:45 +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 f8c54a5698
chore: update CA bundle (#2415)
* chore: update CA bundle

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

* style: add EoLs

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

* style: removed trailing whitespace

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

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-07-09 07:45:09 +00:00
Matej Vašek df90a4f680
chore: do not publish removed tkn tasks (#2408)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-07-03 04:43:47 +00:00
Matej Vašek 9f6a87585a
chore: check FS gen in hack/update-codegen.sh (#2395)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-06-26 05:28:36 +00:00
Matej Vašek 6f19506822
fix: codegen use "default" NS in generated docs (#2387)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-06-20 16:52:11 +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 044f82850e
fix: codegen does not use current ns (#2366)
Force empyt kubeconfig so default namespace in --help is "default" not
the current kubeconfig context.

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-06-14 08:07:07 +00:00
Matej Vašek f7451b1a9a
chore: use codegen script for docs (#2352)
* chore: use codegen script for docs

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

* fixup: codegen updated docs

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

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-06-11 13:25:48 +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 0647fc4976
Update pack dependency (#2337)
* refactor: extracted function

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

* chore: update pack dep

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

* chore: updated imgutil

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

* fixup: run hack/update-deps.sh

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

* fixup: remote the now unnecessary rename

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

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-06-05 14:32:10 +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
Matej Vašek 6649579eb1
Remove axios dependency (#2294)
* fix: downgrade Java version for Spring Boot

The newer version of Spring Boot does not work with Java 21

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

* chore: replace axios with fetch()

* Removed dependency on axios by using standard node fetch() function.
* Fixed getLatestPlatform(): using the 'tag_name' property instead of the 'name' property.

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

* Revert "fix: downgrade Java version for Spring Boot"

This reverts commit fcfe65a0ad.

* empyt: just trigger CI

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

* chore: update setup-java action

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

* fix: add missing description property

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

* fix: set distroless for setup-java action

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

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-05-11 01:32:30 +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
Matej Vašek 31bebd1bfc
Update Rust BP (#2260) 2024-04-01 13:45:42 +00:00
Matej Vašek ff2757d63d
Fixing Rust version to 1.76.0 (#2254)
The version 1.77.0 is not compatible with paketo buildpack.

* Updated version of Rust buildpack 0.35.0 => 0.45.0,
  version 0.45.0 includes Rust 1.76.0.

* Disabling rustup buildpack so latest Rust (1.77.0) is not used,
  instead Rust 1.76.0 from rust-dist buildpack is used.

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-03-27 15:01:22 +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
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
David Simansky 10153edcb1
fix: Fix missing bash function in allocate.sh script (#2207) 2024-03-07 13:20:04 +00:00
David Simansky c9cdfad8d7
chore: Refactor cluster allocation script to use latest Knative bits (#2197) 2024-03-04 09:44:47 +00:00
David Simansky 50818214a7
Update setup E2E to match latest Knative release (#2189) 2024-02-28 15:38:47 +00:00
Matej Vasek 822c7d2b32
chore: updated BP builder updater (#2153)
Newer version of pack does support adding custom labels to the builder
so the Dockerfile workaround is not needed anymore.
Also the Dockerfile workaround was failing recently due to high
number of layers in full builder.

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-02-09 08:31:29 +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
Matej Vasek 2f3a04845e
fix: sprintboot version auto-updater (#2132)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2024-01-24 06:14:04 +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
Jefferson Ramos d57c454453
test: adding e2e test for func subscribe command (#2110) 2024-01-10 13:47:11 +00:00
Matej Vasek b9c11c3a5f
chore: include Quarkus BP in our builders (#2106)
* refactor: rename func

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

* chore: include Quarkus buildpack in our builder

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

* fixup: add err check

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

* fixup: close body after use

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

* fixup: validate path in tar header

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

* fixup: disable symlink support

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

* fixup: sanitize tar file name

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

* fixup: use correct image path

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

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-12-13 18:43:54 +00:00
Matej Vasek 4a2150595c
fix: release uses correct version tags (#2071)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-11-07 17:12:07 +00:00
Matthias Wessendorf d258a19cda
Adding podman as command, instead of docker (like openshift/release repo does it) (#2066)
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
2023-11-02 17:17:19 +00:00
Matthias Wessendorf ad38c17888
Differenciate between podman and docker for local registry connection (#2063)
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
2023-11-01 17:08:51 +00:00
Matthias Wessendorf a4680b28d7
Adding simple Podman insecure registry support (#2060)
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
2023-10-30 20:21:04 +00:00