Skip to content

Conversation

@dwindsor
Copy link
Contributor

@dwindsor dwindsor commented Sep 2, 2025

Fixes #4076

Description

Changelog

@dwindsor dwindsor requested a review from a team as a code owner September 2, 2025 14:40
@dwindsor dwindsor requested a review from jrfastab September 2, 2025 14:40
@dwindsor dwindsor added release-note/bug This PR fixes an issue in a previous release of Tetragon. release-note/misc This PR makes changes that have no direct user impact. and removed release-note/bug This PR fixes an issue in a previous release of Tetragon. labels Sep 2, 2025
@dwindsor dwindsor requested review from kkourt and olsajiri September 2, 2025 14:43
@dwindsor dwindsor changed the title draft: chore: consolidate action verification checks chore: consolidate action verification checks Sep 2, 2025
@dwindsor dwindsor changed the title chore: consolidate action verification checks chore(tetragon): consolidate action verification checks Sep 2, 2025
}

if selectors.HasSigkillAction(f) && !config.EnableLargeProgs() {
if selectors.HasAction(f, "sigkill") && !config.EnableLargeProgs() {
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe using ActionType... constants would be less error prone, like:
if selectors.HasAction(f, ActionTypeSigKill)

Copy link
Contributor

Choose a reason for hiding this comment

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

agreed

@dwindsor dwindsor force-pushed the david/combine-check-actions branch 3 times, most recently from b37831b to c81df36 Compare September 9, 2025 03:48
@dwindsor dwindsor force-pushed the david/combine-check-actions branch from c81df36 to 9951075 Compare September 9, 2025 03:50
@dwindsor dwindsor requested a review from olsajiri September 9, 2025 04:27
@dwindsor dwindsor force-pushed the david/combine-check-actions branch from 9951075 to 409935e Compare September 9, 2025 04:32
act := strings.ToLower(s.MatchActions[j].Action)
if act == "sigkill" {
// HasAction returns true if any selector in the KProbeSpec has the specified action
func HasAction(kspec *v1alpha1.KProbeSpec, actionName string) bool {
Copy link
Contributor

Choose a reason for hiding this comment

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

do we have user for this one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nope let's remove it, thanks

@mtardy
Copy link
Member

mtardy commented Sep 30, 2025

is it ready to be merged? Because it's approved but there's a comment on removing stuff that has not been removed yet iiuc, cc @dwindsor

@mtardy mtardy marked this pull request as draft October 15, 2025 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-note/misc This PR makes changes that have no direct user impact.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consolidate selector action verification checks

5 participants