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

AppArmor profile binding #2510

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions api/apparmorprofile/v1alpha1/apparmorprofile_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ type AppArmorProfileSpec struct {
// AppArmorProfileStatus defines the observed state of AppArmorProfile.
type AppArmorProfileStatus struct {
profilebasev1alpha1.StatusBase `json:",inline"`
ActiveWorkloads []string `json:"activeWorkloads,omitempty"`
}

// +kubebuilder:object:root=true
Expand Down
5 changes: 5 additions & 0 deletions api/apparmorprofile/v1alpha1/zz_generated.deepcopy.go

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

9 changes: 5 additions & 4 deletions api/profilebinding/v1alpha1/profilebinding_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ import (
type ProfileBindingKind string

const (
ProfileBindingKindSeccompProfile ProfileBindingKind = "SeccompProfile"
ProfileBindingKindSelinuxProfile ProfileBindingKind = "SelinuxProfile"
SelectAllContainersImage string = "*"
ProfileBindingKindSeccompProfile ProfileBindingKind = "SeccompProfile"
ProfileBindingKindSelinuxProfile ProfileBindingKind = "SelinuxProfile"
ProfileBindingKindAppArmorProfile ProfileBindingKind = "AppArmorProfile"
SelectAllContainersImage string = "*"
)

// ProfileBindingSpec defines the desired state of ProfileBinding.
Expand All @@ -40,7 +41,7 @@ type ProfileBindingSpec struct {
// ProfileRef contains information that points to the profile being used.
type ProfileRef struct {
// Kind of object to be bound.
// +kubebuilder:validation:Enum=SeccompProfile;SelinuxProfile
// +kubebuilder:validation:Enum=SeccompProfile;SelinuxProfile;AppArmorProfile
Kind ProfileBindingKind `json:"kind"`
// Name of the profile within the current namespace to which to bind the selected pods.
Name string `json:"name"`
Expand Down
Loading
Loading