Commit Graph

137 Commits

Author SHA1 Message Date
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
github-actions[bot] 1d4dc68aba
chore: update Quarkus platform version to 3.8.2 (#2221)
Co-authored-by: Knative Automation <automation@knative.team>
2024-03-13 09:39:46 +00:00
Matej Vašek 9bfefd5dba
chore: update CA bundle (#2219)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-03-13 01:59:39 +00:00
Luke Kingland a2d55b0a07
chore: func-go v0.20.1 (#2210)
Updates all dependencies, including CloudEvents which fixes a CVE
reported today.
2024-03-08 08:30:38 +00:00
github-actions[bot] 7bf3e1008b
chore: update Quarkus platform version to 3.8.1 (#2190)
Co-authored-by: Knative Automation <automation@knative.team>
2024-02-29 07:32:06 +00:00
github-actions[bot] 51f7a70b9a
chore: update Springboot platform version to 3.2.3 (#2180)
Co-authored-by: Knative Automation <automation@knative.team>
2024-02-25 15:34:56 +00:00
github-actions[bot] 267a03c8c8
chore: update Quarkus platform version to 3.7.4 (#2176)
Co-authored-by: Knative Automation <automation@knative.team>
2024-02-22 11:00:59 +01:00
github-actions[bot] 0adbbfbf9b
chore: update Quarkus platform version to 3.7.3 (#2173)
Co-authored-by: Knative Automation <automation@knative.team>
2024-02-21 02:15:12 +00:00
Matthias Wessendorf b97d841b34
💫 Bump to v0.20.0 (#2170)
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
2024-02-19 20:51:12 +00:00
github-actions[bot] fe9e0577a9
chore: update Quarkus platform version to 3.7.2 (#2152)
Co-authored-by: Knative Automation <automation@knative.team>
2024-02-08 17:17:57 +00:00
github-actions[bot] 6b7708f19e
chore: update Quarkus platform version to 3.7.1 (#2142)
Co-authored-by: Knative Automation <automation@knative.team>
2024-02-01 18:47:53 +00:00
github-actions[bot] df0c0c6fc6
chore: update Quarkus platform version to 3.6.8 (#2137)
Co-authored-by: Knative Automation <automation@knative.team>
2024-01-30 18:08:53 +00:00
github-actions[bot] 5caabf2087
chore: update Quarkus platform version to 3.6.7 (#2131)
Co-authored-by: Knative Automation <automation@knative.team>
2024-01-24 16:24:30 +00:00
github-actions[bot] 73c08a9f11
chore: update Springboot platform version to 3.2.2 (#2134)
Co-authored-by: Knative Automation <automation@knative.team>
2024-01-24 16:11:36 +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
github-actions[bot] 8107d7167f
chore: update Quarkus platform version to 3.6.6 (#2124)
Co-authored-by: Knative Automation <automation@knative.team>
2024-01-18 20:17:38 +00:00
Matthias Wessendorf e4430de1f2
Invoke instanced CE function's handle withNew() (#2119)
* 💄 Adding New() to make the file compile

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

* Checkin stuff to make test in IDE pass

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

---------

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
2024-01-16 15:00:37 +00:00
Matej Vasek 8ecf77d4c4
chore: use Quarkus BP instead of expicit envvars (#2117)
The envvars do not have to be set manually anymore since Quarkus BP will
set them for us.

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2024-01-16 13:51:10 +00:00
Luke Kingland 32f6d8de7d
func-go v0.19.0 (#2103) 2023-12-18 09:51:37 +00:00
Matej Vasek 76fde174de
fix: update Quarkus template readme (#2101)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-12-07 15:35:08 +00:00
github-actions[bot] a8bbec33e7
chore: update Quarkus platform version to 3.5.3 (#2092)
Co-authored-by: Knative Automation <automation@knative.team>
2023-11-21 18:41:47 +00:00
github-actions[bot] 39155b73b6
chore: update Quarkus platform version to 3.5.2 (#2085)
Co-authored-by: Knative Automation <automation@knative.team>
2023-11-17 11:09:16 +00:00
github-actions[bot] d526272b8d
chore: update Quarkus platform version to 3.5.1 (#2076)
Co-authored-by: Knative Automation <automation@knative.team>
2023-11-13 16:15:17 +00:00
github-actions[bot] bc1acd1ff3
chore: update Quarkus platform version to 3.5.0 (#2057)
Co-authored-by: Knative Automation <automation@knative.team>
2023-10-27 18:41:53 +00:00
Matej Vasek 6a2db8e3c7
fixup: generated file (#2048)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-10-24 01:46:36 +00:00
github-actions[bot] a3ac5e7248
chore: update Springboot platform version to 3.1.5 (#2045)
Co-authored-by: Knative Automation <automation@knative.team>
2023-10-21 17:20:04 +00:00
dependabot[bot] 714d5e3fd2
chore(deps): bump flask from 2.2.3 to 2.2.5 in /templates/python/flask (#2010)
* chore(deps): bump flask from 2.2.3 to 2.2.5 in /templates/python/flask

Bumps [flask](https://github.com/pallets/flask) from 2.2.3 to 2.2.5.
- [Release notes](https://github.com/pallets/flask/releases)
- [Changelog](https://github.com/pallets/flask/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/flask/compare/2.2.3...2.2.5)

---
updated-dependencies:
- dependency-name: flask
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* fixup: regenerate zz_filesystem_generated.go

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

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Matej Vasek <mvasek@redhat.com>
2023-10-20 12:29:33 +00:00
github-actions[bot] 335de806e7
chore: update Quarkus platform version to 3.4.3 (#2040)
Co-authored-by: Knative Automation <automation@knative.team>
2023-10-20 11:22:21 +00:00
Thomas Risberg 84ad7d7f17
chore: update maven profile buildEnv in springboot templates (#2014)
- Update the documentation for springboot arm based builds

- Add the generated filesystem
2023-10-18 19:32:51 +00:00
Matej Vasek 9cf1ed7762
fixup: zz_filesystem_generated.go (#2009)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-10-09 13:34:57 +00:00
github-actions[bot] 358a816354
chore: update Quarkus platform version to 3.4.2 (#2006)
Co-authored-by: Knative Automation <automation@knative.team>
2023-10-06 16:51:04 +00:00
github-actions[bot] 975cc91b46
chore: update Quarkus platform version to 3.4.1 (#1989)
Co-authored-by: Knative Automation <automation@knative.team>
2023-09-25 17:50:46 +00:00
Matej Vasek 8e660e1c21
chore: update mvn wrapper in Quarkus template (#1987)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-09-20 19:01:27 +00:00
github-actions[bot] 812855a1e9
chore: update Quarkus platform version to 3.3.3 (#1978)
Co-authored-by: Knative Automation <automation@knative.team>
2023-09-18 14:54:55 +00:00
github-actions[bot] 1e271ae15f
chore: update Quarkus platform version to 3.3.1 (#1955)
Co-authored-by: Knative Automation <automation@knative.team>
2023-08-30 12:21:31 +00:00
github-actions[bot] 1ff01a30ba
chore: update Springboot platform version to 3.1.3 (#1947)
Co-authored-by: Knative Automation <automation@knative.team>
2023-08-29 16:12:30 +00:00
Matej Vasek 4af9c39e36
chore: update CA certs (#1944)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-08-28 16:16:29 +00:00
github-actions[bot] c8abe3e307
chore: update Quarkus platform version to 3.2.4.Final (#1927)
Co-authored-by: Knative Automation <automation@knative.team>
2023-08-14 14:38: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
github-actions[bot] fe08004b3f
chore: update Quarkus platform version to 3.2.3.Final (#1909)
Co-authored-by: Knative Automation <automation@knative.team>
2023-08-05 01:41:07 +00:00
github-actions[bot] 8630175fc4
chore: update Springboot platform version to 3.1.2 (#1907)
Co-authored-by: Knative Automation <automation@knative.team>
2023-08-04 17:35:08 +00:00
Matej Vasek e13d0296f3
chore: update scaffolding sandbox => extensions (#1902)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-08-03 20:17:21 +00:00
Luke Kingland a2834c2283
src: update func go runtime dep (#1879)
* src: update func go runtime dep

* func-go v0.18.2

---------

Co-authored-by: Matej Vasek <mvasek@redhat.com>
2023-07-25 19:44:40 +00:00
github-actions[bot] a3a45d3514
chore: update Quarkus platform version to 3.2.2.Final (#1883)
Co-authored-by: Knative Automation <automation@knative.team>
2023-07-24 17:21:39 +00:00
github-actions[bot] 0def26fa79
chore: update Quarkus platform version to 3.2.1.Final (#1881)
Co-authored-by: Knative Automation <automation@knative.team>
2023-07-21 14:24:13 +00:00
Lance Ball 36489f3a55
chore: bump faas-js-runtime and cloudevents for node & TS (#1873)
* chore: bump faas-js-runtime and cloudevents for node & TS

The Node.js and TypeScript templates have been bumped to the latest
versions of faas-js-runtime (2.2.2) and CloudEvents (7.0.1).

There is an issue with the `expectType` test for TypeScript CloudEvent
functions which I can't quite figure out, but the type test is not
critical and does not do anything to validate other than whether the
function signature is what's expected by faas-js-runtime, and in this
case, I think type exported type for faas-js-runtime may actually be the
issue here.

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

* chore: pin all github actions to go 1.20.2

There was a change in how go parses URLs in versions higher than 1.20.2
(likely 1.20.6 and up) which breaks the Docker API's handling of daemon
URIs. This fix pins the Go version at a version known to work with the
existing Docker API and `func` implementation.

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

---------

Signed-off-by: Lance Ball <lball@redhat.com>
2023-07-19 04:17:11 +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
github-actions[bot] f671918124
chore: update Quarkus platform version to 3.2.0.Final (#1844)
Co-authored-by: Knative Automation <automation@knative.team>
2023-07-05 19:00:39 +00:00
Luke Kingland 883dcbb203
src: make test and check go (#1828)
- Updates make test-go to include scaffolding
- Creates make check-go to run basic source quality checks
2023-06-30 05:37:27 +00:00
Luke Kingland 19509e5053
feat: scaffolded functions certs (#1823) 2023-06-26 18:57:51 +00:00
Luke Kingland 8a078cea0c
src: make update-runtimes (#1822)
- Updates func-runtime-go 20 v0.2.3
- Create an 'update-runtimes' make target
- Standardizes plurality of "Cloudevents" throughout
2023-06-22 07:00:35 +00:00
github-actions[bot] 7b5bd335d5
chore: update Quarkus platform version to 3.1.2.Final (#1816)
Co-authored-by: Knative Automation <automation@knative.team>
2023-06-21 18:16:34 +00:00
Thomas Risberg 339608a733
Update springboot template pom.xml dependencies (#1807)
- update to use spring-cloud.version 2022.0.3
- remove springboot.platform.version property, not needed, rely on parent version
- remove import scope and pom type from spring-boot dependencies
2023-06-14 17:02:46 +00:00
Sascha Grunert 529957e837
Cleanup Rust cloudevents example (#1799)
By:

- Using a more opinionated release profile to optimize binary
- Removing not required dependencies
- Updating the rest of the dependencies
- Switch to Rust edition 2021
- Cleanup imports by importing the concrete types
- Avoid unnecessary type assertions
- Do not unwrap port

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2023-06-10 03:32:59 +00:00
Sascha Grunert 44978970f6
Cleanup Rust http example (#1798)
By:

- Using a more opinionated release profile to optimize binary
- Removing not required dependencies
- Updating the rest of the dependencies
- Cleanup imports by importing the concrete types
- Avoid unnecessary type assertions
- Do not unwrap port

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2023-06-09 13:10:59 +00:00
github-actions[bot] 0cce3f01ce
chore: update Quarkus platform version to 3.1.1.Final (#1793)
Co-authored-by: Knative Automation <automation@knative.team>
2023-06-07 17:47:57 +00:00
Luke Kingland 7175a554ff
feat: source-defined buildpacks (#1774)
Allows buildpacks to be updated by updating to a newer version of
func.  Previously, buildpacs were fixed at time of function creation
without a manual edit of func.yaml.  Currently using Go as the reference
implementation in this commit.
2023-06-05 09:49:41 +00:00
github-actions[bot] 70fd17642e
chore: update Springboot platform version to 3.1.0 (#1763)
Co-authored-by: Knative Automation <automation@knative.team>
2023-05-27 00:42: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
github-actions[bot] 2656a7e910
chore: update Quarkus platform version to 3.0.4.Final (#1758)
Co-authored-by: Knative Automation <automation@knative.team>
2023-05-25 13:41:25 +00:00
Luke Kingland 530ea4fe53
feat: write instanced and static scaffolding (#1732) 2023-05-18 20:03:14 +00:00
Matej Vasek b04fe51796
chore: remove Procfile from Rust templates (#1736)
It appears that the file is no longer needed.

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-05-10 18:07:01 +00:00
github-actions[bot] f99e074690
chore: update Quarkus platform version to 3.0.3.Final (#1734)
Co-authored-by: Knative Automation <automation@knative.team>
2023-05-10 17:31:01 +00:00
Matej Vasek dc3a85112c
chore: update maven wrapper in Quarkus template (#1721)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-05-04 19:50:57 +00:00
github-actions[bot] e014de5820
chore: update Quarkus platform version to 3.0.2.Final (#1720)
Co-authored-by: Knative Automation <automation@knative.team>
2023-05-04 19:13:57 +00:00
Matej Vasek 818c5ae20a
fix: Quarkus template Integration Tests (#1714)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-04-28 17:14:51 +00:00
github-actions[bot] 46076a581d
chore: update Quarkus platform version to 3.0.1.Final (#1706)
Co-authored-by: Knative Automation <automation@knative.team>
2023-04-27 12:53:32 +00:00
Lance Ball 177c15bfb3
feat: custom health checks for node and typescript (#1682)
* feat: custom health checks for node and typescript

This commit bumps the faas-js-runtime for Node.js and TypeScript
dependencies to version 1.1.0, which includes an API allowing function
developers to override the liveness and readiness checks for their
functions.

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

* fixup

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

---------

Signed-off-by: Lance Ball <lball@redhat.com>
2023-04-25 06:31:44 +00:00
Lumír 'Frenzy' Balhar 36d7b23b66
Add Python templates for gunicorn and uwsgi + Flask (#1655)
* Add Python templates for gunicorn and uwsgi + Flask

These templates represents the most common and simple ways
how to implement FAAS in Python either directly via gunicorn
or using Flask and uwsgi.

* feat: runtime envvar definition in templates

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

* fixup: use APP_MODULE not app.sh

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

* fixup: update docs

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

* test: better diffing in tests

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

* fixup: update tests

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

* fixup: style

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-04-10 19:03:48 +00:00
Matej Vasek ae1b0c5eef
fix: actix listent on 0.0.0.0 (#1664)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-04-01 14:57:01 +00:00
Andrejus Chaliapinas c6c0f7eb66
Update Rust templates dependencies and UTs for Actix 4.x (#1661) 2023-03-31 15:57:01 +00:00
andrejusc 79430e9542
Update springboot templates to Spring Boot 3.0.5 (#1658)
* Update springboot templates to Spring Boot 3.0.5

* Regenerated embedded file

* Regenerated embedded file one more time
2023-03-30 21:53:00 +00:00
github-actions[bot] 6a4518454b
chore: update Quarkus platform version to 2.16.5.Final (#1646)
Co-authored-by: Knative Automation <automation@knative.team>
2023-03-23 18:56:53 +00:00
Manoel Marques f2238be7ed
Correctly format Node.js code (#1602) 2023-03-08 12:17:20 +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 c20c887cd2
chore: update faas-js-runtime to 0.10.0 (#1570)
* chore: update faas-js-runtime to 0.10.0

Fixes: https://github.com/nodeshift/faas-js-runtime/issues/120

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

* fixup: try ignoring package-lock.json files in linter

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

* fixup: actually add package-lock.json

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

* fixup: better globbing

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

* fixup: best globbing

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

---------

Signed-off-by: Lance Ball <lball@redhat.com>
2023-02-20 20:32:25 +00:00
Matej Vasek 6d4565158b
feat: enabled s2i for python (#1562)
* feat: enable s2i for python

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

* fixup: update zz_filesystem_generated.go

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

* fixup: test

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

* fixup: test

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

* fixup: test

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

* fixup: script

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

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-02-20 16:45:26 +00:00
Lance Ball ab194d421d
feat(templates): remove liveness and readiness from defaults (#1555)
* feat(templates): remove liveness and readiness from defaults

The liveness and readiness URLs are defined in code as defaulting to
`/health/liveness` and `/health/readiness` respectively. The deploy
command handles these defaults without requiring them to exist in the
`func.yaml` file. Existing tests for defaults and overrides already
exist, so this change does not require additional tests to be included.

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

* fixup: remove default endpoints from repository.go

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

---------

Signed-off-by: Lance Ball <lball@redhat.com>
2023-02-16 08:23: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 7e596d75cb
refactor: clean up (#1400)
Signed-off-by: Matej Vasek <mvasek@redhat.com>

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-11-01 22:09:05 +00:00
Matej Vasek 9de432ec2a
feat: allow symlinks in templates (#1399)
Signed-off-by: Matej Vasek <mvasek@redhat.com>

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-11-01 19:41:05 +00:00
Matej Vasek 94dd53d009
Template generation improvements (#949)
* Improve test error output

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

* Template ZIP generator close file after use

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-04-06 21:59:44 +00:00
Matej Vasek c766e75a77
Improve template ZIP generation (#917)
* Improve template ZIP generation

Use only 755 and 644 mod permission.
The exec bit is really the only one that we care about.

Also other bits may be set differently on developer machines depending
on its configuration, this would affect generation reproducibility.

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

* Add explanatory comment

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-03-23 07:47:26 -07:00
Matej Vasek f29805ad27
Fix formatting for template zip generator (#886)
* Fix formatting for template zip generator

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

* fixup: style

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-03-09 07:32:50 -08:00
Matej Vasek 2d23c9cd1f
Fixup writer Write() return value (#882)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-03-07 06:22:35 -08:00
Matej Vasek cc049952bb
Generate templates zip unconditionally (#879)
* Improve formant performance in template generation

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

* Improve memory footprint of template generation

Use streamlined generation which is limiting need for in memory buffers.
Might be imprtant if we had big files in templates.

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

* Generate templates unconditionally

Rationale:
The way we create prerequisites (the find command) we cannot detect deleted files.
The generation is fast (around 500ms) so we can afford that.

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

* Test embbeded templates content on push to main

This has to run prior to `make test` because the `test` recipe
enforces generation of the templates zip.
This would prevent test from being run against git commited templates
zip.

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

* Optimization don't use unnecessary io.Pipe

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-03-06 14:28:35 -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