mirror of https://github.com/knative/func.git
fix: enable healt checks for Quarkus (#477)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
This commit is contained in:
parent
78d7a1af3a
commit
72a1cf885e
|
@ -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()
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue