flag.StringVar(&loggingFormat,"loggingFormat",logging.TextFormat,"This determines the output format of the logger.")
checkErr(flag.Set("v","2"),"failed to init flags")
}
funcinitProfilingFlags(){
flag.BoolVar(&profilingEnabled,"profile",false,"Set this flag to 'true', to enable profiling.")
flag.StringVar(&profilingPort,"profilePort","6060","Profiling server port, defaults to '6060'.")
flag.StringVar(&profilingAddress,"profileAddress","","Profiling server address, defaults to ''.")
}
funcinitTracingFlags(){
flag.BoolVar(&tracingEnabled,"enableTracing",false,"Set this flag to 'true', to enable tracing.")
flag.StringVar(&tracingPort,"tracingPort","4317","Tracing receiver port, defaults to '4317'.")
flag.StringVar(&tracingAddress,"tracingAddress","","Tracing receiver address, defaults to ''.")
flag.StringVar(&tracingCreds,"tracingCreds","","Set this flag to the CA secret containing the certificate which is used by our Opentelemetry Tracing Client. If empty string is set, means an insecure connection will be used")
flag.StringVar(&otel,"otelConfig","prometheus","Set this flag to 'grpc', to enable exporting metrics to an Opentelemetry Collector. The default collector is set to \"prometheus\"")
flag.StringVar(&otelCollector,"otelCollector","opentelemetrycollector.kyverno.svc.cluster.local","Set this flag to the OpenTelemetry Collector Service Address. Kyverno will try to connect to this on the metrics port.")
flag.StringVar(&transportCreds,"transportCreds","","Set this flag to the CA secret containing the certificate which is used by our Opentelemetry Metrics Client. If empty string is set, means an insecure connection will be used")
flag.StringVar(&metricsPort,"metricsPort","8000","Expose prometheus metrics at the given port, default to 8000.")
flag.BoolVar(&disableMetricsExport,"disableMetrics",false,"Set this flag to 'true' to disable metrics.")
flag.Float64Var(&clientRateLimitQPS,"clientRateLimitQPS",qps,"Configure the maximum QPS to the Kubernetes API server from Kyverno. Uses the client default if zero.")
flag.IntVar(&clientRateLimitBurst,"clientRateLimitBurst",burst,"Configure the maximum burst for throttle. Uses the client default if zero.")
flag.StringVar(&imageSignatureRepository,"imageSignatureRepository","","(DEPRECATED, will be removed in 1.12) Alternate repository for image signatures. Can be overridden per rule via `verifyImages.Repository`.")
flag.BoolVar(&allowInsecureRegistry,"allowInsecureRegistry",false,"Whether to allow insecure connections to registries. Don't use this for anything but testing.")
flag.StringVar(&imagePullSecrets,"imagePullSecrets","","Secret resource names for image registry access credentials.")
flag.StringVar(®istryCredentialHelpers,"registryCredentialHelpers","","Credential helpers to enable (default,google,amazon,azure,github). No helpers are added when this flag is empty.")
logger.Info("Warning: imageSignatureRepository is deprecated and will be removed in 1.12. Use per rule configuration `verifyImages.Repository` instead.")