Skip to content

Commit 34be33b

Browse files
authored
Merge pull request #420 from anfredette/fix-bpfapplication-validation
Fix validation for EBPFProgType in BpfApplication/BpfApplicationState objects
2 parents a3de6be + 78196aa commit 34be33b

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

apis/v1alpha1/bpf_application_state_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ type BpfApplicationProgramState struct {
3535
// type specifies the bpf program type
3636
// +unionDiscriminator
3737
// +required
38-
// +kubebuilder:validation:Enum:="XDP";"TC";"TCX";"Uprobe";"UretProbe"
38+
// +kubebuilder:validation:Enum:="XDP";"TC";"TCX";"UProbe";"URetProbe"
3939
Type EBPFProgType `json:"type"`
4040

4141
// xdp defines the desired state of the application's XdpPrograms.

apis/v1alpha1/bpf_application_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ type BpfApplicationProgram struct {
3838
// type specifies the bpf program type
3939
// +unionDiscriminator
4040
// +required
41-
// +kubebuilder:validation:Enum:="XDP";"TC";"TCX";"Uprobe";"UretProbe"
41+
// +kubebuilder:validation:Enum:="XDP";"TC";"TCX";"UProbe";"URetProbe"
4242
Type EBPFProgType `json:"type"`
4343

4444
// xdp defines the desired state of the application's XdpPrograms.

bundle/manifests/bpfman-operator.clusterserviceversion.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ metadata:
820820
capabilities: Basic Install
821821
categories: OpenShift Optional
822822
containerImage: quay.io/bpfman/bpfman-operator:latest
823-
createdAt: "2025-03-14T12:23:39Z"
823+
createdAt: "2025-03-21T19:22:04Z"
824824
description: The bpfman Operator is designed to manage eBPF programs for applications.
825825
features.operators.openshift.io/cnf: "false"
826826
features.operators.openshift.io/cni: "false"

bundle/manifests/bpfman.io_bpfapplications.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,8 @@ spec:
485485
- XDP
486486
- TC
487487
- TCX
488-
- Uprobe
489-
- UretProbe
488+
- UProbe
489+
- URetProbe
490490
type: string
491491
uprobe:
492492
description: uprobe defines the desired state of the application's

bundle/manifests/bpfman.io_bpfapplicationstates.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ spec:
252252
- XDP
253253
- TC
254254
- TCX
255-
- Uprobe
256-
- UretProbe
255+
- UProbe
256+
- URetProbe
257257
type: string
258258
uprobe:
259259
description: uprobe defines the desired state of the application's

config/crd/bases/bpfman.io_bpfapplications.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,8 @@ spec:
485485
- XDP
486486
- TC
487487
- TCX
488-
- Uprobe
489-
- UretProbe
488+
- UProbe
489+
- URetProbe
490490
type: string
491491
uprobe:
492492
description: uprobe defines the desired state of the application's

config/crd/bases/bpfman.io_bpfapplicationstates.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ spec:
252252
- XDP
253253
- TC
254254
- TCX
255-
- Uprobe
256-
- UretProbe
255+
- UProbe
256+
- URetProbe
257257
type: string
258258
uprobe:
259259
description: uprobe defines the desired state of the application's

0 commit comments

Comments
 (0)