- All Implemented Interfaces:
org.eclipse.microprofile.health.HealthCheck
@Liveness
@ApplicationScoped
public class KSinkInjectionHealthCheck
extends Object
implements org.eclipse.microprofile.health.HealthCheck
Checks if the K_SINK variable is injected in the environment.
In the cloud this is relevant for the underlying HTTP connector to send events to a Knative Sink.
Having a health check, would hold the pod to start until the Sink is injected, avoiding the application to produce events to nowhere.
- See Also:
- Knative - About Sinks