1
0
mirror of https://github.com/coreos/prometheus-operator.git synced 2026-02-05 06:45:27 +01:00

Add feature gate for Prometheus Agent's DaemonSet deployment (#6626)

* Add feature gate for Prometheus Agent's DaemonSet deployment
This commit is contained in:
Ha Anh Vu
2024-05-29 21:07:45 +07:00
committed by GitHub
parent 3b5d291163
commit d67afdd68b
3 changed files with 5 additions and 5 deletions

View File

@@ -170,9 +170,7 @@ func parseFlags(fs *flag.FlagSet) {
fs.Var(&cfg.SecretListWatchSelector, "secret-field-selector", "Field selector to filter Secrets to watch")
featureGates = k8sflag.NewMapStringBool(ptr.To(make(map[string]bool)))
fs.Var(featureGates, "feature-gates", "Feature gates are a set of key=value pairs that describe Prometheus-Operator features. At the moment there are no feature gates available.")
// Once the first feature gate is added, the line below should be uncommented and the line above deleted.
//fs.Var(featureGates, "feature-gates", fmt.Sprintf("Feature gates are a set of key=value pairs that describe Prometheus-Operator features. Available features: %q.", operator.AvailableFeatureGates()))
fs.Var(featureGates, "feature-gates", fmt.Sprintf("Feature gates are a set of key=value pairs that describe Prometheus-Operator features. Available features: %q.", operator.AvailableFeatureGates()))
logging.RegisterFlags(fs, &logConfig)
versionutil.RegisterFlags(fs)