Skip to content
This repository has been archived by the owner on Mar 10, 2023. It is now read-only.

Commit

Permalink
Add HTTP annotations to whitelist
Browse files Browse the repository at this point in the history
This change allows user to specify two additional annotations
for setting HTTP health-check parameters.

com.openfaas.health.http.path
com.openfaas.health.http.initialDelay

Closes: #488

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Nov 4, 2019
1 parent a69886b commit 4e0d75a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions buildshiprun/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ func Handle(req []byte) string {
annotationWhitelist := []string{
"topic",
"schedule",
"com.openfaas.health.http.path",
"com.openfaas.health.http.initialDelay",
}

userAnnotations := buildAnnotations(annotationWhitelist, event.Annotations)
Expand Down
2 changes: 1 addition & 1 deletion stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ functions:
buildshiprun:
lang: go
handler: ./buildshiprun
image: functions/of-buildshiprun:0.12.0
image: functions/of-buildshiprun:0.13.0
labels:
openfaas-cloud: "1"
role: openfaas-system
Expand Down

0 comments on commit 4e0d75a

Please sign in to comment.