🔧 Add TelemetryConfig struct and --telemetry-enabled flag to tap command

This commit is contained in:
M. Mert Yildiran
2023-08-31 03:50:14 +03:00
parent bf182b6330
commit fa1e7bcf01
6 changed files with 16 additions and 0 deletions

View File

@@ -61,4 +61,5 @@ func init() {
tapCmd.Flags().Bool(configStructs.TlsLabel, defaultTapConfig.Tls, "Capture the traffic that's encrypted with OpenSSL or Go crypto/tls libraries")
tapCmd.Flags().Bool(configStructs.IgnoreTaintedLabel, defaultTapConfig.IgnoreTainted, "Ignore tainted pods while running Worker DaemonSet")
tapCmd.Flags().Bool(configStructs.IngressEnabledLabel, defaultTapConfig.Ingress.Enabled, "Enable Ingress")
tapCmd.Flags().Bool(configStructs.TelemetryEnabledLabel, defaultTapConfig.Telemetry.Enabled, "Enable/disable Telemetry")
}