🔥 Remove volumes and configmap

This commit is contained in:
M. Mert Yildiran
2022-12-29 03:38:38 +03:00
parent f21fe93664
commit 5e269831e4
3 changed files with 4 additions and 72 deletions

View File

@@ -2,14 +2,12 @@ package cmd
import (
"context"
"encoding/json"
"errors"
"fmt"
"path"
"regexp"
"time"
"github.com/kubeshark/base/pkg/models"
"github.com/kubeshark/kubeshark/config"
"github.com/kubeshark/kubeshark/errormessage"
"github.com/kubeshark/kubeshark/internal/connect"
@@ -113,12 +111,3 @@ func dumpLogsIfNeeded(ctx context.Context, kubernetesProvider *kubernetes.Provid
log.Error().Err(err).Msg("Failed to dump logs.")
}
}
func getSerializedTapConfig(conf *models.Config) (string, error) {
serializedConfig, err := json.Marshal(conf)
if err != nil {
return "", err
}
return string(serializedConfig), nil
}