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

feat: Add support for microshift #1437

Merged
merged 2 commits into from
Oct 24, 2023
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions getting-started/support_matrix.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ KubeArmor supports following types of workloads:
| AWS | [Graviton] | Amazon Linux 2 | ARM | :heavy_check_mark: | :heavy_check_mark: | :x: | :heavy_check_mark: | SELinux |
| RedHat | [OpenShift] | [RHEL] <=8.4 | x86_64 | :heavy_check_mark: | :heavy_check_mark: | :x: | :heavy_check_mark: | SELinux |
| RedHat | [OpenShift] | [RHEL] >=8.5 | x86_64 | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | [BPFLSM] |
| RedHat | [MicroShift] | [RHEL] >=9.2 | x86_64 | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | [BPFLSM] |
| Rancher | [RKE] | [SUSE] | x86_64 | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | [BPFLSM], AppArmor |
| Rancher | [K3S] | [Distros] | x86_64 | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | [BPFLSM], AppArmor |
| Oracle | [Ampere] | [UEK] | ARM | :heavy_check_mark: | :heavy_check_mark: | :x: | :heavy_check_mark: | SELinux | [1084] |
Expand All @@ -41,6 +42,7 @@ KubeArmor supports following types of workloads:
[GKE-REL]: https://cloud.google.com/kubernetes-engine/docs/concepts/release-channels
[bottlerocket]: https://github.com/bottlerocket-os/bottlerocket#bottlerocket-os
[OPENSHIFT]: https://www.redhat.com/en/technologies/cloud-computing/openshift
[MicroShift]: https://microshift.io/
[SUSE]: https://www.suse.com/
[RHEL]: https://www.redhat.com/en/technologies/linux-platforms/enterprise-linux
[RKE]: https://rancher.com/docs/rke/latest/en/
Expand Down
4 changes: 1 addition & 3 deletions pkg/KubeArmorController/handlers/pod_mutation.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ func (a *PodAnnotator) Handle(ctx context.Context, req admission.Request) admiss

// == LSM == //

if a.Enforcer == "" || a.Enforcer == "SELinux" {
pod.Annotations["kubearmor-policy"] = "audited"
} else if a.Enforcer == "AppArmor" {
if a.Enforcer == "AppArmor" {
appArmorAnnotator(pod)
}

Expand Down