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

AppArmor profile binding #2510

wants to merge 2 commits into from

Conversation

k0vd3n
Copy link

@k0vd3n k0vd3n commented Oct 19, 2024

What type of PR is this?

/kind feature

What this PR does / why we need it:

This PR adds support for App Armor profile binding

Which issue(s) this PR fixes:

None

Does this PR have test?

No

Special notes for your reviewer:

Please review my app armor profile binding implementation and cover it with tests. I would appreciate any feedback.

Does this PR introduce a user-facing change?

This change introduces new configuration options for App Armor profiles.

This commit adds support for App Armor profile binding

dependabot bot and others added 2 commits October 18, 2024 23:44
Bumps the kubernetes group with 7 updates:

| Package | From | To |
| --- | --- | --- |
| [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) | `0.29.5` | `0.31.1` |
| [k8s.io/cli-runtime](https://github.com/kubernetes/cli-runtime) | `0.29.3` | `0.31.1` |
| [k8s.io/client-go](https://github.com/kubernetes/client-go) | `0.29.5` | `0.31.1` |
| [k8s.io/klog/v2](https://github.com/kubernetes/klog) | `2.120.1` | `2.130.1` |
| [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) | `0.17.3` | `0.19.0` |
| [sigs.k8s.io/controller-tools](https://github.com/kubernetes-sigs/controller-tools) | `0.14.0` | `0.16.4` |
| [sigs.k8s.io/release-utils](https://github.com/kubernetes-sigs/release-utils) | `0.8.1` | `0.8.5` |


Updates `k8s.io/apimachinery` from 0.29.5 to 0.31.1
- [Commits](kubernetes/apimachinery@v0.29.5...v0.31.1)

Updates `k8s.io/cli-runtime` from 0.29.3 to 0.31.1
- [Commits](kubernetes/cli-runtime@v0.29.3...v0.31.1)

Updates `k8s.io/client-go` from 0.29.5 to 0.31.1
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](kubernetes/client-go@v0.29.5...v0.31.1)

Updates `k8s.io/klog/v2` from 2.120.1 to 2.130.1
- [Release notes](https://github.com/kubernetes/klog/releases)
- [Changelog](https://github.com/kubernetes/klog/blob/main/RELEASE.md)
- [Commits](kubernetes/klog@v2.120.1...v2.130.1)

Updates `sigs.k8s.io/controller-runtime` from 0.17.3 to 0.19.0
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](kubernetes-sigs/controller-runtime@v0.17.3...v0.19.0)

Updates `sigs.k8s.io/controller-tools` from 0.14.0 to 0.16.4
- [Release notes](https://github.com/kubernetes-sigs/controller-tools/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-tools/blob/main/envtest-releases.yaml)
- [Commits](kubernetes-sigs/controller-tools@v0.14.0...v0.16.4)

Updates `sigs.k8s.io/release-utils` from 0.8.1 to 0.8.5
- [Release notes](https://github.com/kubernetes-sigs/release-utils/releases)
- [Commits](kubernetes-sigs/release-utils@v0.8.1...v0.8.5)

---
updated-dependencies:
- dependency-name: k8s.io/apimachinery
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: kubernetes
- dependency-name: k8s.io/cli-runtime
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: kubernetes
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: kubernetes
- dependency-name: k8s.io/klog/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: kubernetes
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: kubernetes
- dependency-name: sigs.k8s.io/controller-tools
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: kubernetes
- dependency-name: sigs.k8s.io/release-utils
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: kubernetes
...

Signed-off-by: dependabot[bot] <support@github.com>
@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/feature Categorizes issue or PR as related to a new feature. labels Oct 19, 2024
Copy link

linux-foundation-easycla bot commented Oct 19, 2024

CLA Signed


The committers listed above are authorized under a signed CLA.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Oct 19, 2024
@k8s-ci-robot
Copy link
Contributor

Welcome @k0vd3n!

It looks like this is your first PR to kubernetes-sigs/security-profiles-operator 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/security-profiles-operator has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot
Copy link
Contributor

Hi @k0vd3n. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Oct 19, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: k0vd3n
Once this PR has been reviewed and has the lgtm label, please assign pjbgf for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Oct 19, 2024
@k0vd3n k0vd3n closed this Oct 19, 2024
@k0vd3n k0vd3n reopened this Oct 19, 2024
@saschagrunert
Copy link
Member

@k0vd3n thank you for the PR! Do you mind signing the CLA?

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 28.07692% with 187 lines in your changes missing coverage. Please review.

Project coverage is 41.11%. Comparing base (11d77f4) to head (d13f23e).
Report is 453 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2510      +/-   ##
==========================================
- Coverage   45.50%   41.11%   -4.39%     
==========================================
  Files          79      109      +30     
  Lines        7782    18456   +10674     
==========================================
+ Hits         3541     7588    +4047     
- Misses       4099    10364    +6265     
- Partials      142      504     +362     

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Oct 21, 2024
@k0vd3n
Copy link
Author

k0vd3n commented Oct 21, 2024

@k0vd3n thank you for the PR! Do you mind signing the CLA?

Thank you for pointing that out! I have now signed the CLA, and the status has been updated.

@saschagrunert
Copy link
Member

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Oct 21, 2024
@@ -1,6 +1,7 @@
module sigs.k8s.io/security-profiles-operator

go 1.21.0
toolchain go1.23.2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't use go 1.23 right now, because the go-toolset does not have it: https://catalog.redhat.com/software/containers/rhel8/go-toolset

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Kubernetes API that supports AppArmor Profile starts from version 0.30.0, which requires Go 1.22. However, the Go toolset only supports up to Go 1.21. This creates a problem, as I can’t use the necessary API while staying within the supported Go version

@k8s-ci-robot
Copy link
Contributor

@k0vd3n: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-security-profiles-operator-verify d13f23e link true /test pull-security-profiles-operator-verify
pull-security-profiles-operator-build-image d13f23e link true /test pull-security-profiles-operator-build-image
pull-security-profiles-operator-test-e2e d13f23e link true /test pull-security-profiles-operator-test-e2e

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants