Skip to content

send node profile periodically through synchronizer - #295

Merged
dwertent merged 1 commit into
mainfrom
profiles
May 26, 2024
Merged

dwertent merged 1 commit into
mainfrom
profiles

Conversation

@matthyx

@matthyx matthyx commented May 23, 2024

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

Copy link
Copy Markdown

Summary:

  • License scan: success
  • Credentials scan: failure
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
@github-actions

Copy link
Copy Markdown

Summary:

  • License scan: success
  • Credentials scan: failure
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

@matthyx
matthyx requested a review from dwertent May 24, 2024 10:30
@matthyx
matthyx marked this pull request as ready for review May 24, 2024 10:31
@github-actions

Copy link
Copy Markdown

Summary:

  • License scan: success
  • Credentials scan: failure
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

@dwertent dwertent left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No blocking comments

}

func (rm *RelevancyManager) HasRelevancyCalculating(pod *v1.Pod) bool {
for _, c := range pod.Status.ContainerStatuses {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

InitContainers and ephemeral containers

ReportNetworkEvent(k8sContainerID string, event tracernetworktype.Event)
ReportDNSEvent(event tracerdnstype.Event)
ReportRandomxEvent(k8sContainerID string, event tracerrandomxtype.Event)
HasApplicableRuleBindings(namespace, name string) bool

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure why these functions are related to the RuleManager interface

for _, pod := range n.k8sObjectCache.GetPods() {
var app string
if pod.Labels != nil {
app = pod.Labels["app"]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if this label is empty? Consider looking at the app.kubernetes.io/name label as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release Create release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants