mirror of https://github.com/knative/func.git
This commit removes the Red Hat builders from the built in templates for Go, TypeScript and Node.js, replacing them with paketo builders. For Go, the builder is augmented with a simple buildpack that installs the Go wrapper code and its dependencies. For TypeScript, the paketo buildpacks oddly don't support an `npm build` step, so these templates are also dependent on a small Boson buildpack. These buildpacks are currently at https://github.com/lance/boson-buildpacks but should find a home either in the boson-project organization, or the knative-sandbox organization. This change also slightly modifies how the Node.js and TypeScript templates are structured, reducing the coupling between the buildpack and a function project. This commit includes the code in https://github.com/knative-sandbox/kn-plugin-func/pull/465 and is dependent on it in the use of manifest.yaml. Provide sane defaults for health endpoints Note that this will need to be documented as a requirement for language packs that do not wish to provide explicit endpoints for these kube health checks. In that case, the language pack should specify these both as the root path, with a query parameter. For example, `/?health=readiness` and `/?health=liveness`, or some other similar construct. Signed-off-by: Lance Ball <lball@redhat.com> |
||
|---|---|---|
| .. | ||
| builder.go | ||
| utils.go | ||