pl.allegro.tech.servicemesh.envoycontrol.infrastructure.health.EnvoyControlHealthIndicator.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of envoy-control-runner Show documentation
Show all versions of envoy-control-runner Show documentation
Production-ready Control Plane for Service Mesh based on Envoy Proxy.
The newest version!
package pl.allegro.tech.servicemesh.envoycontrol.infrastructure.health
import org.springframework.boot.actuate.health.AbstractHealthIndicator
import org.springframework.boot.actuate.health.Health
import org.springframework.stereotype.Component
import pl.allegro.tech.servicemesh.envoycontrol.services.LocalClusterStateChanges
@Component
class EnvoyControlHealthIndicator(private val localClusterStateChanges: LocalClusterStateChanges)
: AbstractHealthIndicator() {
override fun doHealthCheck(builder: Health.Builder?) {
if (localClusterStateChanges.isInitialStateLoaded()) {
builder!!.up()
} else {
builder!!.down()
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy