<#7106 fix: suppress pflag usage output on startup...
# flyte-github
a
#7106 fix: suppress pflag usage output on startup errors Pull request opened by pingsutw Summary • Set
SilenceUsage: true
on the root cobra command so that runtime errors (e.g. database connection failures) only print the error message instead of dumping the full flags list Before: ``` {"json":{"src":"k8s.go:74"},"level":"info","msg":"Using kubeconfig from: /Users/kevin/.kube/cong","ts":"2026-03-27T112724-07:00"} Error: setup failed: failed to initialize Kubernetes client: failed to build k8s config from /Users/kevin/.kube/cong: stat /Users/kevin/.kube/cong: no such file or directory Usage: flyte [flags] Flags: --config string config file (default is ./config.yaml) --database.connMaxLifeTime string sets the maximum amount of time a connection may be reused (default "1h0m0s") --database.enableForeignKeyConstraintWhenMigrating Whether to enable gorm foreign keys when migrating the db --database.maxIdleConnections int maxIdleConnections sets the maximum number of connections in the idle connection pool. (default 10) --database.maxOpenConnections int maxOpenConnections sets the maximum number of open connections to the database. (default 100) --database.postgres.dbname string The database name (default "postgres") --database.postgres.debug --database.postgres.host string The host name of the database server (default "localhost") --database.postgres.options string See http://gorm.io/docs/connecting_to_the_database.html for available options passed, in addition to the above. (default "sslmode=disable") --database.postgres.password string The database password. (default "postgres") --database.postgres.passwordPath string Points to the file containing the database password. --database.postgres.port int The port name of the database server (default 30001) --database.postgres.readReplicaHost string The host name of the read replica database server (default "localhost") --database.postgres.username string The database user who is connecting to the server. (default "postgres") --database.sqlite.file string The path to the file (existing or new) where the DB should be created / stored. If existing, then this will be reused, else a new will be created --dataproxy.download.maxExpiresIn string Maximum allowed expiration duration. (default "1h0m0s") --dataproxy.upload.defaultFileNameLength int Default length for the generated file name if file name not provided in the request. (default 20) --dataproxy.upload.maxExpiresIn string Maximum allowed expiration duration. (default "1h0m0s") --dataproxy.upload.maxSize string Maximum allowed upload size. (default "100Mi") --dataproxy.upload.storagePrefix string Storage prefix to use for all upload requests. (default "uploads") --executor.EventsServiceURL string URL of the Event Service for action event updates (default "http://localhost:8090") --executor.cluster string Cluster identifier for action events --executor.enableHTTP2 Enable HTTP/2 for metrics and webhook servers --executor.gc.interval string How often the garbage collector runs. 0 disables GC. (default "30m0s") --executor.gc.maxTTL string Time-to-live for terminal TaskActions before deletion. (default "1h0m0s") --executor.healthProbeBindAddress string Address the probe endpoint binds to (default ":8081") --executor.leaderElect Enable leader election for controller manager --executor.metricsBindAddress string Address the metrics endpoint binds to (default ":10254") --executor.metricsCertKey string Name of the metrics server key file (default "tls.key") --executor.metricsCertName string Name of the metrics server certificate file (default "tls.crt") --executor.metricsCertPath string Directory containing the metrics server certificate --executor.metricsSecure Serve metrics endpoint via HTTPS (default true) --executor.webhookCertKey string Name of the webhook key file (default "tls.key") --executor.webhookCertName string Name of the webhook certificate file (default "tls.crt") --executor.webhookCertPath string Directory containing the webhook certificate -h, --help help for flyte --logger.formatter.type string Sets logging format type. (default "json") --logger.level int Sets the minimum logging level. (default 3) --logger.mute Mutes all logs regardless of severity. Intended for benchmarks/tests only. --logger.show-source Includes source code location in logs. --manager.executor.healthProbePort int Port for executor health probes (default 8081) --manager.kubernetes.burst int Max burst queries to the API server (default 2000) --manager.kubernetes.kubeconfig string Path to kubeconfig file (optional) --manager.kubernetes.namespace string Kubernetes namespace (default "flyte") --manager.kubernetes.qps int Max sustained queries per second to the API server (default 1000) --manager.kubernetes.timeout string Default timeout for API server requests (e.g. 30s) (default "30s") --manager.server.host string Host to bind the HTTP server (default "0.0.0.0") --manager.server.port int Port to bind the HTTP server (default 8090) --otel.file.filename string Filename to store exported telemetry traces (default "/tmp/trace.txt") --otel.jaeger.endpoint string Endpoint for the jaeger telemetry trace ingestor (defau… flyteorg/flyte