Commit Graph

105 Commits

Author SHA1 Message Date
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