Merge discovery package into k8s package
This commit is contained in:
@ -2,30 +2,32 @@ package k8s
|
||||
|
||||
import "github.com/TwinProduction/gatus/core"
|
||||
|
||||
//Config for Kubernetes auto-discovery
|
||||
// Config for Kubernetes auto-discovery
|
||||
type Config struct {
|
||||
//AutoDiscover to discover services to monitor
|
||||
// AutoDiscover to discover services to monitor
|
||||
AutoDiscover bool `yaml:"auto-discover"`
|
||||
|
||||
//ServiceTemplate Template for auto disocovered services
|
||||
// ServiceTemplate Template for auto disocovered services
|
||||
ServiceTemplate core.Service `yaml:"service-template"`
|
||||
|
||||
//ExcludeSuffix Ignore services with this suffix
|
||||
ExcludeSuffix []string `yaml:"exclude-suffix"`
|
||||
// ExcludeSuffix Ignore services with this suffix
|
||||
ExcludeSuffix []string `yaml:"isExcluded-suffix"`
|
||||
|
||||
//ClusterMode to authenticate with kubernetes
|
||||
// ClusterMode to authenticate with kubernetes
|
||||
ClusterMode string `yaml:"cluster-mode"`
|
||||
|
||||
//Namespaces from which to discover services
|
||||
Namespaces []Namespace `yaml:"namespaces"`
|
||||
// Namespaces from which to discover services
|
||||
Namespaces []NamespaceConfig `yaml:"namespaces"`
|
||||
}
|
||||
|
||||
//Namespace level config
|
||||
type Namespace struct {
|
||||
//Name of namespace
|
||||
// NamespaceConfig level config
|
||||
type NamespaceConfig struct {
|
||||
// Name of namespace
|
||||
Name string `yaml:"name"`
|
||||
//ServiceSuffix to append to service name
|
||||
|
||||
// ServiceSuffix to append to service name
|
||||
ServiceSuffix string `yaml:"service-suffix"`
|
||||
//HealthAPI URI to append to service to reach health check API
|
||||
|
||||
// HealthAPI URI to append to service to reach health check API
|
||||
HealthAPI string `yaml:"health-api"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user