
org.zalando.spring.k8s.config.PreStopHealthIndicatorAutoConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of k8s-prestop-starter Show documentation
Show all versions of k8s-prestop-starter Show documentation
Spring-Boot starter for Lifecycle PreStop Hook
The newest version!
package org.zalando.spring.k8s.config;
import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
import org.springframework.boot.actuate.health.AbstractHealthIndicator;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.zalando.spring.k8s.PreStopHealthIndicator;
@Configuration
@ConditionalOnClass({Endpoint.class, AbstractHealthIndicator.class})
public class PreStopHealthIndicatorAutoConfiguration {
@Bean
@ConditionalOnMissingBean
PreStopHealthIndicator preStopHealthIndicator() {
return new PreStopHealthIndicator();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy