This repository has been archived by the owner on Oct 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(tests, docs): Update after new knative func cli updates
This commit updates documentation to account for the latest version of https://github.com/knative/func which has requirements for valid func.yaml files. It also removes func.yaml files and updates tests to use the BP_FUNCTION environment variable. Signed-off-by: Joe Eltgroth <[email protected]>
- Loading branch information
1 parent
9ab1b25
commit 00451d4
Showing
27 changed files
with
159 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
.PHONY: build publish deploy destroy clean | ||
|
||
FUNCTION_IMAGE ?= us.gcr.io/daisy-284300/functions/demo:txttopdfjavagradle | ||
|
||
FUNCTION := out/image | ||
$(FUNCTION): | ||
@mkdir -p $(@D) | ||
pack build $(FUNCTION_IMAGE) --builder ghcr.io/vmware-tanzu/function-buildpacks-for-knative/functions-builder:0.1.0 --env BP_FUNCTION=com.example.demo.DemoApplication | ||
printf $(FUNCTION_IMAGE) > $@ | ||
|
||
build: $(FUNCTION) | ||
|
||
publish: $(FUNCTION) | ||
docker push $(shell cat $(FUNCTION)) | ||
|
||
.INTERMEDIATE: $(CONFIG) | ||
CREDS := ./creds.yaml | ||
CONFIG := out/config.yaml | ||
$(CONFIG): $(FUNCTION) $(CREDS) $(wildcard config/*) | ||
@mkdir -p $(@D) | ||
ytt -f config --data-values-file $(CREDS) -v function_image="$(shell cat $(FUNCTION))" > $@ | ||
|
||
config: $(CONFIG) | ||
|
||
deploy: $(CONFIG) publish | ||
kapp deploy -a demo -f $(CONFIG) | ||
|
||
destroy: | ||
kapp delete -a demo | ||
|
||
clean: | ||
docker rmi $(FUNCTION_IMAGE) | ||
rm -rf ./out/ | ||
|
||
docker: $(FUNCTION) | ||
docker run --env-file aws.env --rm -p 8080:8080 -e 8080 --entrypoint function $(FUNCTION_IMAGE) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
samples/java/cloudevents/txt-to-pdf-maven/spring-java-fn/func.yaml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
.PHONY: build publish deploy destroy clean | ||
|
||
FUNCTION_IMAGE ?= us.gcr.io/daisy-284300/functions/demo:reqresponsejavagradle | ||
|
||
FUNCTION := out/image | ||
$(FUNCTION): | ||
@mkdir -p $(@D) | ||
pack build $(FUNCTION_IMAGE) --builder ghcr.io/vmware-tanzu/function-buildpacks-for-knative/functions-builder:0.1.0 --env BP_FUNCTION=com.vmware.functions.Handler | ||
printf $(FUNCTION_IMAGE) > $@ | ||
|
||
build: $(FUNCTION) | ||
|
||
publish: $(FUNCTION) | ||
docker push $(shell cat $(FUNCTION)) | ||
|
||
.INTERMEDIATE: $(CONFIG) | ||
CREDS := ./creds.yaml | ||
CONFIG := out/config.yaml | ||
$(CONFIG): $(FUNCTION) $(CREDS) $(wildcard config/*) | ||
@mkdir -p $(@D) | ||
ytt -f config --data-values-file $(CREDS) -v function_image="$(shell cat $(FUNCTION))" > $@ | ||
|
||
config: $(CONFIG) | ||
|
||
deploy: $(CONFIG) publish | ||
kapp deploy -a demo -f $(CONFIG) | ||
|
||
destroy: | ||
kapp delete -a demo | ||
|
||
clean: | ||
docker rmi $(FUNCTION_IMAGE) | ||
rm -rf ./out/ | ||
|
||
docker: $(FUNCTION) | ||
docker run --env-file aws.env --rm -p 8080:8080 -e 8080 --entrypoint function $(FUNCTION_IMAGE) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
.PHONY: build publish deploy destroy clean | ||
|
||
FUNCTION_IMAGE ?= us.gcr.io/daisy-284300/functions/demo:reqresponsejavamaven | ||
|
||
FUNCTION := out/image | ||
$(FUNCTION): | ||
@mkdir -p $(@D) | ||
pack build $(FUNCTION_IMAGE) --builder ghcr.io/vmware-tanzu/function-buildpacks-for-knative/functions-builder:0.1.0 --env BP_FUNCTION=com.vmware.functions.Handler | ||
printf $(FUNCTION_IMAGE) > $@ | ||
|
||
build: $(FUNCTION) | ||
|
||
publish: $(FUNCTION) | ||
docker push $(shell cat $(FUNCTION)) | ||
|
||
.INTERMEDIATE: $(CONFIG) | ||
CREDS := ./creds.yaml | ||
CONFIG := out/config.yaml | ||
$(CONFIG): $(FUNCTION) $(CREDS) $(wildcard config/*) | ||
@mkdir -p $(@D) | ||
ytt -f config --data-values-file $(CREDS) -v function_image="$(shell cat $(FUNCTION))" > $@ | ||
|
||
config: $(CONFIG) | ||
|
||
deploy: $(CONFIG) publish | ||
kapp deploy -a demo -f $(CONFIG) | ||
|
||
destroy: | ||
kapp delete -a demo | ||
|
||
clean: | ||
docker rmi $(FUNCTION_IMAGE) | ||
rm -rf ./out/ | ||
|
||
docker: $(FUNCTION) | ||
docker run --env-file aws.env --rm -p 8080:8080 -e 8080 --entrypoint function $(FUNCTION_IMAGE) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
samples/python/cloudevents/sqs-lambda/knative-function-encrypter/func.yaml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters