mirror of
https://github.com/TwiN/gatus.git
synced 2025-02-01 19:09:37 +01:00
Add warning log about possible deprecation of Kubernetes integration
This commit is contained in:
parent
892f3ada6f
commit
3293222cd6
@ -209,6 +209,7 @@ func validateWebConfig(config *Config) error {
|
||||
// I don't like the current implementation.
|
||||
func validateKubernetesConfig(config *Config) error {
|
||||
if config.Kubernetes != nil && config.Kubernetes.AutoDiscover {
|
||||
log.Println("WARNING - The Kubernetes integration is planned to be removed in v3.0.0. If you're seeing this message, it's because you're currently using it, and you may want to give your opinion at https://github.com/TwinProduction/gatus/discussions/135")
|
||||
if config.Kubernetes.ServiceTemplate == nil {
|
||||
return errors.New("kubernetes.service-template cannot be nil")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user