* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
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>
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>
* 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>
* 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>
* 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>
* 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
* 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>
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
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>
* 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>
* 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>
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>
* 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>
* 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>