Commit Graph

148 Commits

Author SHA1 Message Date
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
Matej Vasek 6c6730f324
test: optimise disk usage (#2012)
* test: optimise disk usage

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

* fixup: change tag

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

* fixup: use create to build testing buildah image

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

* fixup: install crane

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

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-10-20 17:48:59 +00:00
Jefferson Ramos 3641bfe5d0
test improvements remove deprecates avoid nils, bump go version 1.20.x (#2032)
* test: improvements on e2e extended test: remove deprecates, avoid nils and improve match conditions

* update go version on ci to 1.20.x
2023-10-18 17:28:26 +00:00
Matej Vasek 5ffdf756ae
chore: parallelize cluster allocate script (#1992)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-09-27 12:06:29 +00:00
Chris Suszynski b6fb8800d6
Removing the vendor dir (#1966) 2023-09-25 22:51:32 +00:00
Matej Vasek 452ff50418
chore: use local registry in test (#1976)
* test: use custom buildah image in tests

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

* refactor: rename

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

* test: use internal registry in on cluster tests

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

* chore: more verbose output

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

* fix: use fake ctx until fixing termination properly

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

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-09-18 19:18:33 +00:00
Matej Vasek df97bd79e7
chore: use current func image in tests (#1974)
Use a different approach to pass current func image to the tests, this
approach does not require modification of task yaml nor access
to outer internet (ttl.sh).

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-09-14 15:42:42 +00:00
Matej Vasek d0fe80c408
chore: added standard labels for our builders (#1934)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-08-22 06:35:54 +00:00
Matej Vasek 718948a3d8
chore: update release generation (#1924)
* Minimize release binary size.
* Release latest version of buildpack tekton task.

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-08-14 14:21:44 +00:00
Matej Vasek efb04bef0f
Use custom jammy paketo builder (#1911)
* chore: use custom jammy paketo builder

Use our own modified jammy builder with additional buildpacks for
GoFunc and Rust. This enables on cluster build for Go and Rust functions.
Where possible (Go, Java) we use "tiny" variant, other runtimes use "base"
variant.

The updated task is new file instead of modifying existing task
this is done for sake of keeping compatiblility.

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

* fixup: remove unnecessary code per review request

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

* fixup

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

* fixup: podman test refers correct tkn task yamls

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

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-08-10 03:25:35 +00:00
Matej Vasek 20a4eb2ba0
chore: released binaries refer correct task yamls (#1916)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-08-09 19:43:35 +00:00
Matej Vasek c9b0176f01
chore: multiple variants of builder (#1912)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-08-08 13:14:34 +00:00
Matej Vasek 7ec31cf0a7
chore: update Func Go buildpack reference (#1906)
* chore: update Func Go buildpack reference

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

* fixup: rename sandbox

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

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-08-04 15:05:08 +00:00
Matej Vasek fc2c04550d
fix: spring boot dependency updater (#1896)
* fix: spring boot dep update

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

* fixup: update also spring-cloud version

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

* fixup: install new deps

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

* fixup: clean up

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

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-08-03 18:38:21 +00:00
Matej Vasek 6eac0d0605
chore: cron task for paketo's jammy builder (#1895)
* chore: cron task for BP jammy builder build

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

* fixup: linter error

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

* fixup: added nil checks

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

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-08-01 05:53:46 +00:00
Luke Kingland ba798408de
src: update func-runtime-go and dapr (#1836)
* func-rumtime-go v0.2.4

* dapr v1.11.1

* func-runtime-go v0.3.2
2023-07-18 09:57:10 +00:00
Zbynek Roubalik 79c36eefdc
use Tekton Resolvers for a standard on cluster build (#1843)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2023-07-11 17:41:13 +00:00
Luke Kingland 512ef230e6
chore: test cluster versions update (#1819)
* test cluster versions update

Updates versions used for the test clutser, and includes a change
to use a specific kind node version rather than the kubernetes version per
Kind's docs.

- knative_serving v1.10.1
- knative_eventing v1.10.1
- contour v1.10.0
- kubectl v1.27.2
- dapr v1.10.0
- helm v3.12.0
- kind v0.19.0
- kind_node v1.27.1

* remove dapr dashboard patch

* dapr init flags resuscitation
2023-06-21 15:30:34 +00:00
Matej Vasek 8a8639ae00
src: more verbose output (#1810)
* fixup: more verbose output

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

* fixup: refactor extract version into variable

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

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-06-13 17:58:45 +00:00
Matej Vasek 83bc889b6c
src: use ghcr.io for dapr components in GH Action (#1809)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-06-12 16:21:45 +00:00
Matej Vasek 6b97fb5a3c
test: integration test for tekton on cluster build (#1789)
* test: integration tests for Tekton builds

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

* fixup: disable s2i integration test for now

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

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-06-07 21:47:57 +00:00
Matej Vasek 75a8b8991d
chore: clean up PaC GitLab test (#1785)
* chore: clean up PaC GitLab test

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

* fixup: missing EOL

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

* fixup: generate random password for GitLab

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

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-06-06 17:55:26 +00:00
Matej Vasek 4e743684e1
Pipeline as Code integration for GitLab (#1769)
* feat: PaC for Gitlab

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

* fixup: different approach to hostname resolution

Resolve '[*.]127.0.0.1.sslip.io' to cluster node IP.

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

* fixup: error handling

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

* fixup: added TODO

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

* fixup: small refactor

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

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-06-05 19:48:26 +00:00
ningyan325 f528a70881
Automated platform update for springboot templates (#1762)
* initial chg

* fix parent version selection

* change from `false` to false

* move platform checking as first task in main

* re-make generate/zz_filesystem_generated.go

* fixes of spaces in code at line 105, in following lint rules
2023-05-26 21:51:26 +00:00
Lance Ball dd7c8bdc4e
deps: update tekton to latest versions (#1753)
* deps: update tekton to latest versions

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

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

* fixup: rebase

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

* fixup: replace kube-openapi with older version and add shell scripts

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

* fixup: handle deprecations

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

* fixup: revert make check timeout value

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

---------

Signed-off-by: Lance Ball <lball@redhat.com>
2023-05-26 20:04:26 +00:00
Matej Vasek bc39a1aec2
Use Contour Ingress instead of Kourier (#1752)
* Use Contour Ingress instead of Kourier

Contour can be used to expose resources other that ksvc
(e.g. PaC controller).

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

* fixup: use defined version of contour

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

* fixup: shellcheck

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

* Use LoadBalancer instead of NodePort in test

This makes services available on port 80 on both localhos and in docker
network, before these ports differed.

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

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-05-24 20:26:23 +00:00
Matej Vasek c715dabcd0
chore: Quarkus autoupdate action runs somke test (#1723)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-05-04 20:23:56 +00:00
Matej Vasek d7660abb3f
doc: refer specific verision of Tekton not latest (#1669)
* doc: refer specific verision of Tekton not latest

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

* fixup

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

* fixup: shell-check

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

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-04-05 16:51:38 +00:00
Lance Ball 1095ede8be
chore: adjust shell script quotes (#1656)
Signed-off-by: Lance Ball <lball@redhat.com>
2023-03-30 11:45:01 +00:00
Lance Ball 6012a4afe1
chore: fixup release.sh script (#1652)
* chore: fixup release.sh script

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

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

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

* fixup: reviewdog

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

---------

Signed-off-by: Lance Ball <lball@redhat.com>
2023-03-28 20:30:59 +00:00
Matej Vasek 9c5b5a805b
chore: verify-codegen.sh (#1590)
* fix: verify-codegen.sh

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

* fixup

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

---------

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

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

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

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

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

---------

Signed-off-by: Lance Ball <lball@redhat.com>
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Co-authored-by: Matej Vasek <matejvasek@gmail.com>
2023-02-23 19:12:29 +00:00
Lance Ball 4e8ef492ab
chore: add tekton artifacts to release (#1557)
Signed-off-by: Lance Ball <lball@redhat.com>
2023-02-16 11:34:51 +00:00
Zbynek Roubalik 5a4803bf95
chore: refactor repository layout (#1554)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2023-02-15 08:46:52 +00:00
Matej Vasek 6bedc4aeed
Use current (as in PR) func image in integration tests (#1548)
* cleanup: style

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

* fix: use current func image for in cluster tests

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

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-02-14 16:29:50 +00:00
Luke Kingland 10c9948a12
feat: preliminary dapr runtime support (#1518)
* Dapr runtime support

- installs Dapr cli in CI
- installs Dapr runtime on allocation of test cluster
- annotates services to enable dapr sidecar integration
- installs redis via helm, enabling state store, pub/sub and distributed
  lock
- integration test added for local invocation
- integration test added for service-to-service invocation via the
  sidecar

Note that Dapr runs metrics on port 9002 so as not to collide with
Knative metrics.

* create constants for knative service labels

* extract dapr annotations and use labels
2023-02-02 16:01:31 +00:00
Jefferson Ramos a1b9bcff08
upgrade ci resources version (kubectl, knative, kind, tekton) (#1377) 2022-10-21 22:17:13 +00:00
Jefferson Ramos 36657691d4
update tekton wait condition for ci tests (#1374) 2022-10-21 15:12:14 +00:00
Lance Ball 3f5933ec73
chore: update release script to use knative org (#1306)
Signed-off-by: Lance Ball <lball@redhat.com>

Signed-off-by: Lance Ball <lball@redhat.com>
2022-10-10 13:21:37 +00:00
Zbynek Roubalik 047a6d875d
chore: ability to install only Tekton Tasks (#1284)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>

Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2022-09-27 15:36:15 +00:00
Zbynek Roubalik 1ed5b2d5fd
chore: install Tekton Task from local source code & install S2I task (#1234)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>

Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2022-09-13 01:07:47 +00:00
Jefferson Ramos 4041d609dd
test: oncluster build initial e2e set of tests (#1193) 2022-09-05 13:08:22 +00:00
Lance Ball 81289dc757
doc: use cobra markdown generator for command docs (#1169)
This commit removes the docs/reference/commands.txt file and instead
uses the Cobra built-in documentation generator to create markdown
documents for every command.

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

Signed-off-by: Lance Ball <lball@redhat.com>
2022-08-25 13:16:19 +00:00
Matej Vasek 62b7232636
chore: Use NodeJS for script instead of Shell (#1170)
Signed-off-by: Matej Vasek <mvasek@redhat.com>

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-08-18 12:19:49 +00:00
Dirk Haubenreisser 48c348806f
Added binary builds for platforms ppc64le and s390x (#1160) 2022-08-11 14:28:58 +00:00
Matej Vasek fd8f1803fc
fixup: master->main (#1148)
* fixup: master->main

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

* fixup: cURL fail on HTTP error code

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-07-29 20:26:38 +00:00
Matej Vasek f4f04c756f
Quarkus platform auto-updater (#1147)
* Quarkus platform auto-updater

Added periodict task that check Quarkus platform version and creates PR with update if needed.

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

* Apply suggestions from code review

Co-authored-by: Lance Ball <lball@redhat.com>

Co-authored-by: Lance Ball <lball@redhat.com>
2022-07-29 19:35:39 +00:00
Lance Ball df022f5c93
docs: replace commands.md with generated text file (#1089)
* docs: replace commands.md with generated text file

This commit removes commands.md document which tends to get out of date
pretty easily and replaces it with a generated commands.txt file. The
help text generation is fairly naive, but should be sufficient for the
time being.

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

* fixup: tweak title formatting

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

* fixup: run build-docs.sh again after recent change

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

* fixup: add docs generation to make build target

Also removes the random UUID as the default for `invoke` since it's a
little misleading. That value will not be the one that's used, since
it's random. And because it's random, it changes the docs every time.

Signed-off-by: Lance Ball <lball@redhat.com>
2022-07-25 16:10:24 +00:00
Matej Vasek 819b433edb
feat: build for Linux ARM64 (#1123)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-07-18 19:56:59 +00:00
Matej Vasek c592cd2a41
Increase service wait timeout (#1043)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-06-08 20:19:38 +00:00
Luke Kingland fba0dc6af6
fix: increase timeout when testing int cluster availability (#1032) 2022-06-06 09:31:54 +00:00
Lance Ball 4ffb1f9cba
chore: update allocate script with latest knative (#965)
Use the latest Knative release in the hack/allocate.sh script.
In addition, there is a small change to how the munged yaml files
are piped through `yq`, adding a final pass through `yq` itself
essentially sanitizing the data.

Signed-off-by: Lance Ball <lball@redhat.com>
2022-04-14 10:53:10 +00:00
Lance Ball 4e369a013a
chore: add release process and func_darwin_arm64 to the release artifacts (#945)
* fix: add func_darwin_arm64 to the release artifacts

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

* chore: add ARM64 release target/propose process

I noticed in the most recent release, that a MacOS M1 binary was not
produced. This commit adds that target to `hack/release.sh`. Additionally
the CHANGELOG.md files and version.txt files have been updated to accurately
reflect the current status. Finally, I've proposed a release process in
the new file `docs/RELEASING.md`.

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

* fixup: remove trailing whitespace

Signed-off-by: Lance Ball <lball@redhat.com>
2022-04-07 15:22:46 +00:00
Matej Vasek fa17dc9e4b
Update wrt switch from pkger to custom ZIP pkging (#889)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-03-09 17:39:46 -08:00
Matej Vasek c4a7e095de
Use custom zip embedding not pkger (#835)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-03-02 06:41:43 -08:00
Luke Kingland 64091fbc39
build pkged.go directly with make (#841)
Also removes the dependency on a modern bash when building on a stock OS
X box (which ships with a 15-year old version).
2022-02-21 11:06:03 -08:00
Lance Ball 2009073591
chore: change TAG to ETAG to avoid stepping on toes (#799)
Signed-off-by: Lance Ball <lball@redhat.com>
2022-01-28 06:23:47 -08:00
Lance Ball 210cd9a199
chore: update Makefile and hack/release.sh to accept TAG (#797)
The upstream release pipeline does not tag the source until the build and
tests have successfully completed. This should allow for our release builds
to pick up the knative infra TAG environment variable when building releases.

Signed-off-by: Lance Ball <lball@redhat.com>
2022-01-28 05:45:47 -08:00
Luke Kingland 6649a71f4d
fix: local cluster name collision (#779) 2022-01-24 10:30:30 -08:00
Luke Kingland ce938122d8
src: remove need for hosts entry for local clusters (#742) 2022-01-18 12:58:33 -08:00
Lance Ball 963659bd0b
chore: add knative infra release scripts (#729)
* chore: add knative infra release scripts

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

* fixup: add newlines at EOF

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

* fixup: whitespace

Signed-off-by: Lance Ball <lball@redhat.com>
2022-01-12 06:49:51 -08:00
Luke Kingland 96aa41707c
Format pkged.go (#726)
Fixes the missing build stanza from pkged.go by running gofmt
(necessary beuntil such time as pkger does this itself)
2021-12-16 05:38:17 -08:00
Matej Vasek 07062c144a
fix: revert hostname alias (#712)
The localhost alias was causing problems with new approach for registry access.
The new access is done directly not via daemon.
This renders any insecure registry exception in daemon config irrelevant.
The library facilitating registry access seems to allow insecure registry on localhost only.

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2021-12-08 18:38:34 -08:00
Luke Kingland f63af0d34e
fix: move integration port to unregistered range (#701)
* fix: move registry port to unregistered range

Moves the integration testing port into the unregistered range (above
49151) to minimized potential conflicts.

* update e2e and podman with named registry
2021-12-07 15:05:38 -08:00
knative-automation cd45b6c007
Format go code (#589)
Signed-off-by: Knative Automation <automation@knative.team>
2021-10-18 10:08:22 +02:00
Luke Kingland 25f8b4d6ea
fix: update-pkger.sh sed error on osX (#541)
The script depends on GNU-sed, which is not installed on OS X by
default.  This update changes the solution to using a touched file
rather than sed.
2021-09-20 07:40:35 -07:00
Markus Thömmes 163588f5a5
Add knative/hack scripts for updating deps (#534) 2021-09-19 16:04:33 -07:00
Luke Kingland c257de807d
src: Makefile developer accessibility (#428)
* ci: increase dns update max retries

* src: Makefile accessibility

Restructures the Makefile for better readibility
Separates core unit tests from template unit tests
Adds a `help` target highlighting core targets
Removes unused 'cluser' and 'release' targets
Removes unused targets
2021-07-21 00:45:38 -07:00
Matej Vasek ed0c246ada
CI integration test with podman (#422)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2021-07-16 06:47:09 -07:00
Luke Kingland b1d840ad60
ci: move to inbuilt cluster config (#419)
Restructures repository cluster setup and configuration scripts
to be used both for local testing as well as in CI.  Adds a
CI-specific ci.sh script for the differences.  Additionally:
- Upgrades to knative v0.23.0
- Upgrades eventing from v1beta1 API to v1
- Adds binary installation script (linux)
- Serializes Build, Int Test, e2e test steps
- Installs Broker and Channel to support Knative Quickstart tutorial.
- Runs a test echo server during installation
- Adds event-based waits in place of most blind time-based waits
- Adds explicit Kubernetes version for KinD
- Replaces a NodePort patched Koourier with an explicit ingress
- Adds retries while activator webhook becomes available
- Merges allocate and configure
2021-07-15 07:45:32 -07:00
Zbynek Roubalik 553dfa83f6
chore: e2e tests should run against Knative 0.22.0 (#372)
Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
2021-06-02 13:51:12 -04:00
Luke Kingland 4f2f577a82
ci: run integration tests with on-demand cluster 2021-03-10 19:35:27 +09:00
Luke Kingland 9c499b69c4
feat: local cluster allocation, configuration and teardown 2021-03-10 19:35:26 +09:00