Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(docs): rename killer to enforcer #2887

Merged
merged 1 commit into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/v1/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/v1/tetragon/tetragon.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/v1/tetragon/tetragon.proto
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ enum KprobeAction {
KPROBE_ACTION_TRACKSOCK = 11;
// UntrackSock action un-tracks socket.
KPROBE_ACTION_UNTRACKSOCK = 12;
// NotifyEnforcer action notifies killer sensor.
// NotifyEnforcer action notifies enforcer sensor.
KPROBE_ACTION_NOTIFYENFORCER = 13;
}

Expand Down
4 changes: 2 additions & 2 deletions bpf/process/types/basic.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ enum {
ACTION_SIGNAL = 9,
ACTION_TRACKSOCK = 10,
ACTION_UNTRACKSOCK = 11,
ACTION_NOTIFY_KILLER = 12,
ACTION_NOTIFY_ENFORCER = 12,
mtardy marked this conversation as resolved.
Show resolved Hide resolved
};

enum {
Expand Down Expand Up @@ -2257,7 +2257,7 @@ do_action(void *ctx, __u32 i, struct selector_action *actions,
socki = actions->act[++i];
err = tracksock(e, socki, action == ACTION_TRACKSOCK);
break;
case ACTION_NOTIFY_KILLER:
case ACTION_NOTIFY_ENFORCER:
error = actions->act[++i];
signal = actions->act[++i];
do_action_notify_enforcer(error, signal);
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/content/en/docs/reference/grpc-api.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion install/kubernetes/schemas/tracingpolicy-cilium.io.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"additionalProperties": false
},
"enforcers": {
"description": "A killer spec.",
"description": "A enforcer spec.",
"items": {
"properties": {
"calls": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"additionalProperties": false
},
"enforcers": {
"description": "A killer spec.",
"description": "A enforcer spec.",
"items": {
"properties": {
"calls": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ spec:
type: object
type: object
enforcers:
description: A killer spec.
description: A enforcer spec.
items:
properties:
calls:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ spec:
type: object
type: object
enforcers:
description: A killer spec.
description: A enforcer spec.
items:
properties:
calls:
Expand Down
26 changes: 13 additions & 13 deletions pkg/api/tracingapi/client_kprobe.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ const (
)

const (
ActionPost = 0
ActionFollowFd = 1
ActionSigKill = 2
ActionUnfollowFd = 3
ActionOverride = 4
ActionCopyFd = 5
ActionGetUrl = 6
ActionLookupDns = 7
ActionNoPost = 8
ActionSignal = 9
ActionTrackSock = 10
ActionUntrackSock = 11
ActionNotifyKiller = 12
ActionPost = 0
ActionFollowFd = 1
ActionSigKill = 2
ActionUnfollowFd = 3
ActionOverride = 4
ActionCopyFd = 5
ActionGetUrl = 6
ActionLookupDns = 7
ActionNoPost = 8
ActionSignal = 9
ActionTrackSock = 10
ActionUntrackSock = 11
ActionNotifyEnforcer = 12
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/grpc/tracing/tracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func kprobeAction(act uint64) tetragon.KprobeAction {
return tetragon.KprobeAction_KPROBE_ACTION_TRACKSOCK
case tracingapi.ActionUntrackSock:
return tetragon.KprobeAction_KPROBE_ACTION_UNTRACKSOCK
case tracingapi.ActionNotifyKiller:
case tracingapi.ActionNotifyEnforcer:
return tetragon.KprobeAction_KPROBE_ACTION_NOTIFYENFORCER
default:
return tetragon.KprobeAction_KPROBE_ACTION_UNKNOWN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ spec:
type: object
type: object
enforcers:
description: A killer spec.
description: A enforcer spec.
items:
properties:
calls:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ spec:
type: object
type: object
enforcers:
description: A killer spec.
description: A enforcer spec.
items:
properties:
calls:
Expand Down
2 changes: 1 addition & 1 deletion pkg/k8s/apis/cilium.io/v1alpha1/tracing_policy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ type TracingPolicySpec struct {
Lists []ListSpec `json:"lists,omitempty"`

// +kubebuilder:validation:Optional
// A killer spec.
// A enforcer spec.
Enforcers []EnforcerSpec `json:"enforcers,omitempty"`

// +kubebuilder:validation:Optional
Expand Down
2 changes: 1 addition & 1 deletion pkg/k8s/apis/cilium.io/v1alpha1/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ package v1alpha1
// Used to determine if CRD needs to be updated in cluster
//
// Developers: Bump patch for each change in the CRD schema.
const CustomResourceDefinitionSchemaVersion = "1.3.0"
const CustomResourceDefinitionSchemaVersion = "1.3.1"

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading