mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-06-22 14:32:35 +00:00
⚡ Remove an unnecessary check
This commit is contained in:
parent
3c25cec633
commit
f7ce141d0d
@ -77,13 +77,6 @@ func tap() {
|
|||||||
|
|
||||||
state.targetNamespaces = kubernetesProvider.GetNamespaces()
|
state.targetNamespaces = kubernetesProvider.GetNamespaces()
|
||||||
|
|
||||||
if config.Config.IsNsRestrictedMode() {
|
|
||||||
if len(state.targetNamespaces) != 1 || !utils.Contains(state.targetNamespaces, config.Config.Tap.ReleaseNamespace) {
|
|
||||||
log.Error().Msg(fmt.Sprintf("%s can't resolve IPs in other namespaces when running in namespace restricted mode. You can use the same namespace for --%s and --%s", misc.Software, configStructs.NamespacesLabel, configStructs.ReleaseNamespaceLabel))
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
log.Info().Strs("namespaces", state.targetNamespaces).Msg("Targeting pods in:")
|
log.Info().Strs("namespaces", state.targetNamespaces).Msg("Targeting pods in:")
|
||||||
|
|
||||||
if err := printTargetedPodsPreview(ctx, kubernetesProvider, state.targetNamespaces); err != nil {
|
if err := printTargetedPodsPreview(ctx, kubernetesProvider, state.targetNamespaces); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user