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

Migrate to field based seccomp tests #1181

Merged
merged 1 commit into from
Jun 1, 2023

Conversation

saschagrunert
Copy link
Member

What type of PR is this?

/kind api-change

What this PR does / why we need it:

The seccomp profile path field is deprecated since many releases within Kubernetes, where CRI API consumers should use the native field.

We now migrate the tests to use them.

Which issue(s) this PR fixes:

None

Special notes for your reviewer:

Refers to cri-o/cri-o#7006

Does this PR introduce a user-facing change?

Switched to the `SecurityProfile` field for the seccomp related critest suite, making `SeccompProfilePath` obsolete.

The seccomp profile path field is deprecated since many releases within
Kubernetes, where CRI API consumers should use the native field.

We now migrate the tests to use them.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
@k8s-ci-robot k8s-ci-robot added kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jun 1, 2023
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: saschagrunert

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

The pull request process is described 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 approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 1, 2023
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jun 1, 2023
@haircommander
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 1, 2023
@k8s-ci-robot k8s-ci-robot merged commit 6c23601 into kubernetes-sigs:master Jun 1, 2023
22 checks passed
@saschagrunert saschagrunert deleted the seccomp-tests branch June 1, 2023 13:45

By("create seccomp sandbox and container")
podID, containerID = seccompTestContainer(rc, ic, seccompProfile)

By("verify seccomp profile")
verifySeccomp(rc, containerID, []string{"grep", "ecc", "/proc/self/status"}, false, "1") // seccomp enabled
Copy link
Contributor

@champtar champtar Aug 9, 2023

Choose a reason for hiding this comment

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

Trying to update cri-tools to 1.27.1 in containerd, the containerd CI fails (containerd/containerd#8937 (comment) / https://github.com/containerd/containerd/actions/runs/5802001382/job/15727585673?pr=8937#step:9:197)

    default:   [FAILED] Expected
    default:       <string>: Seccomp:	2
    default: 
    default:   to contain substring
    default:       <string>: 1

I have no idea if this test need to be improved or something weird is happening in containerd CI

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, this needs adoption. See: #1236

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants