Skip to content

Commit 6b87e7d

Browse files
committed
priority-pointer
Signed-off-by: Andreas Karis <[email protected]> auto-update Signed-off-by: Andreas Karis <[email protected]>
1 parent 65c51be commit 6b87e7d

27 files changed

+118
-68
lines changed

apis/v1alpha1/cluster_tc_program_types.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ type ClTcAttachInfo struct {
7474
// +optional
7575
// +kubebuilder:validation:Minimum=0
7676
// +kubebuilder:validation:Maximum=1000
77-
// +kubebuilder:default:=1000
78-
Priority int32 `json:"priority,omitempty"`
77+
Priority *int32 `json:"priority,omitempty"`
7978

8079
// proceedOn is an optional field and allows the user to call other TC programs
8180
// in a chain, or not call the next program in a chain based on the exit code
@@ -127,7 +126,7 @@ type ClTcAttachInfoState struct {
127126
// +required
128127
// +kubebuilder:validation:Minimum=0
129128
// +kubebuilder:validation:Maximum=1000
130-
Priority int32 `json:"priority"`
129+
Priority *int32 `json:"priority,omitempty"`
131130

132131
// proceedOn is the provisioned list of proceedOn values. proceedOn allows the
133132
// user to call other TC programs in a chain, or not call the next program in a

apis/v1alpha1/cluster_tcx_program_types.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ type ClTcxAttachInfo struct {
7272
// +optional
7373
// +kubebuilder:validation:Minimum=0
7474
// +kubebuilder:validation:Maximum=1000
75-
// +kubebuilder:default:=1000
76-
Priority int32 `json:"priority,omitempty"`
75+
Priority *int32 `json:"priority,omitempty"`
7776
}
7877

7978
type ClTcxProgramInfoState struct {
@@ -110,5 +109,5 @@ type ClTcxAttachInfoState struct {
110109
// +required
111110
// +kubebuilder:validation:Minimum=0
112111
// +kubebuilder:validation:Maximum=1000
113-
Priority int32 `json:"priority"`
112+
Priority *int32 `json:"priority,omitempty"`
114113
}

apis/v1alpha1/cluster_xdp_program_types.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ type ClXdpAttachInfo struct {
6161
// +optional
6262
// +kubebuilder:validation:Minimum=0
6363
// +kubebuilder:validation:Maximum=1000
64-
// +kubebuilder:default:=1000
65-
Priority int32 `json:"priority,omitempty"`
64+
Priority *int32 `json:"priority,omitempty"`
6665

6766
// proceedOn is an optional field and allows the user to call other XDP
6867
// programs in a chain, or not call the next program in a chain based on the
@@ -107,7 +106,7 @@ type ClXdpAttachInfoState struct {
107106
// +required
108107
// +kubebuilder:validation:Minimum=0
109108
// +kubebuilder:validation:Maximum=1000
110-
Priority int32 `json:"priority"`
109+
Priority *int32 `json:"priority,omitempty"`
111110

112111
// proceedOn is the provisioned list of proceedOn values. proceedOn allows the
113112
// user to call other TC programs in a chain, or not call the next program in a

apis/v1alpha1/tc_program_types.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ type TcAttachInfo struct {
7070
// +optional
7171
// +kubebuilder:validation:Minimum=0
7272
// +kubebuilder:validation:Maximum=1000
73-
// +kubebuilder:default:=1000
74-
Priority int32 `json:"priority,omitempty"`
73+
Priority *int32 `json:"priority,omitempty"`
7574

7675
// proceedOn is an optional field and allows the user to call other TC programs
7776
// in a chain, or not call the next program in a chain based on the exit code
@@ -123,7 +122,7 @@ type TcAttachInfoState struct {
123122
// +required
124123
// +kubebuilder:validation:Minimum=0
125124
// +kubebuilder:validation:Maximum=1000
126-
Priority int32 `json:"priority"`
125+
Priority *int32 `json:"priority,omitempty"`
127126

128127
// proceedOn is the provisioned list of proceedOn values. proceedOn allows the
129128
// user to call other TC programs in a chain, or not call the next program in a

apis/v1alpha1/tcx_program_types.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ type TcxAttachInfo struct {
7171
// +optional
7272
// +kubebuilder:validation:Minimum=0
7373
// +kubebuilder:validation:Maximum=1000
74-
// +kubebuilder:default:=1000
75-
Priority int32 `json:"priority,omitempty"`
74+
Priority *int32 `json:"priority,omitempty"`
7675
}
7776

7877
type TcxProgramInfoState struct {
@@ -109,5 +108,5 @@ type TcxAttachInfoState struct {
109108
// +required
110109
// +kubebuilder:validation:Minimum=0
111110
// +kubebuilder:validation:Maximum=1000
112-
Priority int32 `json:"priority"`
111+
Priority *int32 `json:"priority,omitempty"`
113112
}

apis/v1alpha1/xdp_program_types.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ type XdpAttachInfo struct {
5656
// +optional
5757
// +kubebuilder:validation:Minimum=0
5858
// +kubebuilder:validation:Maximum=1000
59-
// +kubebuilder:default:=1000
60-
Priority int32 `json:"priority,omitempty"`
59+
Priority *int32 `json:"priority,omitempty"`
6160

6261
// proceedOn is an optional field and allows the user to call other XDP
6362
// programs in a chain, or not call the next program in a chain based on the
@@ -102,7 +101,7 @@ type XdpAttachInfoState struct {
102101
// +required
103102
// +kubebuilder:validation:Minimum=0
104103
// +kubebuilder:validation:Maximum=1000
105-
Priority int32 `json:"priority"`
104+
Priority *int32 `json:"priority,omitempty"`
106105

107106
// proceedOn is the provisioned list of proceedOn values. proceedOn allows the
108107
// user to call other TC programs in a chain, or not call the next program in a

apis/v1alpha1/zz_generated.deepcopy.go

Lines changed: 60 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bundle/manifests/bpfman-operator.clusterserviceversion.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ metadata:
10121012
capabilities: Basic Install
10131013
categories: OpenShift Optional
10141014
containerImage: quay.io/bpfman/bpfman-operator:latest
1015-
createdAt: "2025-09-26T11:09:36Z"
1015+
createdAt: "2025-10-21T17:07:54Z"
10161016
description: The bpfman Operator is designed to manage eBPF programs for applications.
10171017
features.operators.openshift.io/cnf: "false"
10181018
features.operators.openshift.io/cni: "false"

bundle/manifests/bpfman.io_bpfapplications.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,6 @@ spec:
452452
- pods
453453
type: object
454454
priority:
455-
default: 1000
456455
description: |-
457456
priority is an optional field and determines the execution order of the TC
458457
program relative to other TC programs attached to the same attachment point.
@@ -676,7 +675,6 @@ spec:
676675
- pods
677676
type: object
678677
priority:
679-
default: 1000
680678
description: |-
681679
priority is an optional field and determines the execution order of the TCX
682680
program relative to other TCX programs attached to the same attachment
@@ -1161,7 +1159,6 @@ spec:
11611159
- pods
11621160
type: object
11631161
priority:
1164-
default: 1000
11651162
description: |-
11661163
priority is an optional field and determines the execution order of the XDP
11671164
program relative to other XDP programs attached to the same attachment

bundle/manifests/bpfman.io_bpfapplicationstates.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,6 @@ spec:
275275
- interfaceName
276276
- linkStatus
277277
- netnsPath
278-
- priority
279278
- proceedOn
280279
- shouldAttach
281280
- uuid
@@ -346,7 +345,6 @@ spec:
346345
- interfaceName
347346
- linkStatus
348347
- netnsPath
349-
- priority
350348
- shouldAttach
351349
- uuid
352350
type: object
@@ -598,7 +596,6 @@ spec:
598596
- interfaceName
599597
- linkStatus
600598
- netnsPath
601-
- priority
602599
- proceedOn
603600
- shouldAttach
604601
- uuid

0 commit comments

Comments
 (0)