You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal/config/config.go
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ type Config struct {
18
18
DefaultInterval time.Duration
19
19
DefaultDNSResolverstring
20
20
TemplateAnnotationstring
21
+
GuardedAnnotationstring
21
22
EnabledAnnotationstring
22
23
}
23
24
@@ -26,15 +27,16 @@ func Load() *Config {
26
27
flag.StringVar(&cfg.Namespace, "namespace", "", "Namespace to watch (empty for all)")
27
28
flag.StringVar(&cfg.GatewayName, "gateway-name", "", "Gateway name to filter HTTPRoutes (optional)")
28
29
flag.StringVar(&cfg.IngressClass, "ingress-class", "", "Ingress class to filter Ingresses (optional)")
29
-
flag.BoolVar(&cfg.AutoRoutes, "auto-routes", true, "Automatically create endpoints for HTTPRoutes")
30
-
flag.BoolVar(&cfg.AutoIngresses, "auto-ingresses", true, "Automatically create endpoints for Ingresses")
30
+
flag.BoolVar(&cfg.AutoRoutes, "auto-routes", false, "Automatically create endpoints for HTTPRoutes")
31
+
flag.BoolVar(&cfg.AutoIngresses, "auto-ingresses", false, "Automatically create endpoints for Ingresses")
31
32
flag.BoolVar(&cfg.AutoServices, "auto-services", false, "Automatically create endpoints for Services")
32
33
flag.BoolVar(&cfg.AutoGroup, "auto-group", false, "Automatically group endpoints by namespace (for Services) or gateway/ingress class (for HTTPRoutes/Ingresses)")
33
34
flag.StringVar(&cfg.Output, "output", "/config/gatus-sidecar.yaml", "File to write generated YAML")
34
35
flag.DurationVar(&cfg.DefaultInterval, "default-interval", time.Minute, "Default interval value for endpoints")
35
36
flag.StringVar(&cfg.DefaultDNSResolver, "default-dns", "tcp://1.1.1.1:53", "Default DNS resolver for endpoints")
36
37
flag.StringVar(&cfg.TemplateAnnotation, "annotation-config", "gatus.home-operations.com/endpoint", "Annotation key for YAML config override")
37
38
flag.StringVar(&cfg.EnabledAnnotation, "annotation-enabled", "gatus.home-operations.com/enabled", "Annotation key for enabling/disabling resource processing")
39
+
flag.StringVar(&cfg.GuardedAnnotation, "annotation-guarded", "gatus.home-operations.com/guarded", "Annotation key for guarding endpoints")
0 commit comments