Skip to content

Commit

Permalink
do not store raw profile
Browse files Browse the repository at this point in the history
  • Loading branch information
mhils committed Jul 31, 2024
1 parent 5a1e2a3 commit 6422c97
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions internal/pkg/daemon/profilerecorder/profilerecorder.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ import (
spodv1alpha1 "sigs.k8s.io/security-profiles-operator/api/spod/v1alpha1"
"sigs.k8s.io/security-profiles-operator/internal/pkg/config"
"sigs.k8s.io/security-profiles-operator/internal/pkg/controller"
"sigs.k8s.io/security-profiles-operator/internal/pkg/daemon/apparmorprofile/crd2armor"
"sigs.k8s.io/security-profiles-operator/internal/pkg/daemon/bpfrecorder"
"sigs.k8s.io/security-profiles-operator/internal/pkg/daemon/enricher"
"sigs.k8s.io/security-profiles-operator/internal/pkg/daemon/metrics"
Expand Down Expand Up @@ -869,13 +868,6 @@ func (r *RecorderReconciler) collectApparmorBpfProfile(
Abstract: r.generateAppArmorProfileAbstract(response),
}

// Stored the raw profile in the required policy field.
policy, err := crd2armor.GenerateProfile(profileToCollect.name, &spec.Abstract)
if err != nil {
return nil, fmt.Errorf("generating raw apparmor profile: %w", err)
}
spec.Policy = policy

profile := &apparmorprofileapi.AppArmorProfile{
ObjectMeta: metav1.ObjectMeta{
Name: profileNamespacedName.Name,
Expand Down

0 comments on commit 6422c97

Please sign in to comment.