🔥 Remove the -A flag and allnamespaces field from config.yaml

This commit is contained in:
M. Mert Yildiran
2023-04-19 20:52:28 +03:00
parent 90e6e99386
commit 686dd5fba1
6 changed files with 4 additions and 23 deletions

View File

@@ -128,7 +128,7 @@ var hubPodMappings = map[string]interface{}{
},
{
"name": "NAMESPACES",
"value": "{{ .Values.tap.allnamespaces | ternary \"\" .Values.tap.namespaces }}",
"value": "{{ gt (len .Values.tap.namespaces) 0 | ternary (join \",\" .Values.tap.namespaces) \"\" }}",
},
{
"name": "STORAGE_LIMIT",

View File

@@ -51,7 +51,6 @@ func init() {
tapCmd.Flags().Uint16(configStructs.ProxyHubPortLabel, defaultTapConfig.Proxy.Hub.SrcPort, "Provide a custom port for the Hub proxy/port-forward")
tapCmd.Flags().String(configStructs.ProxyHostLabel, defaultTapConfig.Proxy.Host, "Provide a custom host for the proxy/port-forward")
tapCmd.Flags().StringSliceP(configStructs.NamespacesLabel, "n", defaultTapConfig.Namespaces, "Namespaces selector")
tapCmd.Flags().BoolP(configStructs.AllNamespacesLabel, "A", defaultTapConfig.AllNamespaces, "Tap all namespaces")
tapCmd.Flags().StringP(configStructs.SelfNamespaceLabel, "s", defaultTapConfig.SelfNamespace, "Self-namespace of Kubeshark")
tapCmd.Flags().String(configStructs.StorageLimitLabel, defaultTapConfig.StorageLimit, "Override the default storage limit. (per node)")
tapCmd.Flags().Bool(configStructs.DryRunLabel, defaultTapConfig.DryRun, "Preview of all pods matching the regex, without tapping them")