Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
jt-dd committed Oct 18, 2024
1 parent 5356ef7 commit 1ed1136
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/collector/k8s_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ func tunedListOptions() metav1.ListOptions {

// NewK8sAPICollector creates a new instance of the k8s live API collector from the provided application config.
func NewK8sAPICollector(ctx context.Context, cfg *config.KubehoundConfig) (CollectorClient, error) {
ctx = context.WithValue(ctx, log.ContextFieldComponent, K8sAPICollectorName)
l := log.Trace(ctx)

clusterName, err := config.GetClusterName(ctx)
if err != nil {
return nil, err
Expand Down

0 comments on commit 1ed1136

Please sign in to comment.