fix: enable healt checks for Quarkus (#477)

Signed-off-by: Matej Vasek <mvasek@redhat.com>
This commit is contained in:
Matej Vasek 2021-08-12 15:27:35 +02:00 committed by GitHub
parent 78d7a1af3a
commit 72a1cf885e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 17 additions and 5 deletions

View File

@ -156,10 +156,8 @@ func generateNewService(f fn.Function) (*servingv1.Service, error) {
},
}
if f.Runtime != "quarkus" {
containers[0].LivenessProbe = probeFor("/health/liveness")
containers[0].ReadinessProbe = probeFor("/health/readiness")
}
containers[0].LivenessProbe = probeFor("/health/liveness")
containers[0].ReadinessProbe = probeFor("/health/readiness")
referencedSecrets := sets.NewString()
referencedConfigMaps := sets.NewString()

File diff suppressed because one or more lines are too long

View File

@ -34,6 +34,10 @@
<groupId>io.quarkus</groupId>
<artifactId>quarkus-funqy-knative-events</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-smallrye-health</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-junit5</artifactId>

View File

@ -2,3 +2,6 @@
# key = value
quarkus.funqy.export=function
quarkus.package.type=legacy-jar
quarkus.smallrye-health.root-path=/health
quarkus.smallrye-health.liveness-path=liveness
quarkus.smallrye-health.readiness-path=readiness

View File

@ -34,6 +34,10 @@
<groupId>io.quarkus</groupId>
<artifactId>quarkus-funqy-knative-events</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-smallrye-health</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-junit5</artifactId>

View File

@ -2,3 +2,6 @@
# key = value
quarkus.funqy.export=function
quarkus.package.type=legacy-jar
quarkus.smallrye-health.root-path=/health
quarkus.smallrye-health.liveness-path=liveness
quarkus.smallrye-health.readiness-path=readiness