Skip to content

Commit 5ca9ae6

Browse files
committed
Fix lint warnings
Change-Id: I343d41fe293ff291bdde2c173bba53b3d8fffc5f Signed-off-by: Cosmin Cojocar <ccojocar@google.com>
1 parent 99be8df commit 5ca9ae6

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

api/profilerecording/v1alpha1/profilerecording_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ func (pr *ProfileRecording) ctrAnnotationApparmor(ctrName string) (key, value st
194194
switch pr.Spec.Recorder {
195195
case ProfileRecorderBpf:
196196
annotationPrefix = config.ApparmorProfileRecordBpfAnnotationKey
197+
case ProfileRecorderLogs:
197198
default:
198199
return "", "", fmt.Errorf(
199200
"invalid recorder: %s, only %s is supported", pr.Spec.Recorder, ProfileRecorderBpf,

dependencies.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ dependencies:
5050
match: cert-manager/cert-manager
5151
- path: hack/ci/e2e-olm.sh
5252
match: cert-manager/cert-manager
53-
- path: hack/ci/e2e-seccomp.sh
53+
- path: hack/ci/install-spo.sh
5454
match: cert-manager/cert-manager
5555

5656
- name: kind
@@ -235,5 +235,5 @@ dependencies:
235235
- name: yq
236236
version: 4.35.2
237237
refPaths:
238-
- path: hack/ci/e2e-seccomp.sh
238+
- path: hack/ci/install-yq.sh
239239
match: YQ_VERSION

internal/pkg/daemon/bpfrecorder/bpfrecorder.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,8 @@ func (b *BpfRecorder) findProfileForContainerID(id string) (string, error) {
824824

825825
for _, annotation := range []string{
826826
config.SeccompProfileRecordBpfAnnotationKey,
827-
config.ApparmorProfileRecordBpfAnnotationKey} {
827+
config.ApparmorProfileRecordBpfAnnotationKey,
828+
} {
828829
key := annotation + containerName
829830
profile, ok := pod.Annotations[key]
830831
if ok && profile != "" {

0 commit comments

Comments
 (0)