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

Skip access-control-sys-nice-realtime-capability if there's no nodes using realtime kernel. #2763

Conversation

greyerof
Copy link
Contributor

@greyerof greyerof commented Feb 5, 2025

There's no point in running this check if there isn't any node using realtime kernel, so I added a custom skip function for it.

Anyway, if nodes with realtime kernel exist, it's still possible/compliant to deploy workload pods in non-realtime kernel nodes, irrespective of the sys_nice cap. For pods deployed in realtime kernel nodes, it's mandatory for this cap to be set at container level.

…using realtime kernel.

There's no point in running this check if there isn't any node using
realtime kernel, so I added a custom skip function for it.

Anyway, if nodes with realtime kernel exist, it's still possible/compliant
to deploy workload pods in non-realtime kernel nodes, irrespective of
the sys_nice cap. For pods deployed in realtime kernel nodes, it's
mandatory for this cap to be set at container level.
@greyerof greyerof added non backward compatible PR makes any NBC change in some TC, including removal or test ID changes. do not merge dci-disable self-hosted-disable labels Feb 5, 2025
@dcibot
Copy link
Collaborator

dcibot commented Feb 5, 2025

greyerof added a commit to greyerof/certsuite that referenced this pull request Feb 5, 2025
I removed the "disable-self-hosted" label from PR redhat-best-practices-for-k8s#2763 but the pre-main
self-hosted workflow jobs didn't run.

As suggested in github docs, the way to trigger the workflow when a
label is added removed is using pull_request's activity types.

We did this in the do-not-merge workflow file and it works well there.

See
https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#label

"If you want to run your workflow when a label is added to or removed
from an issue, pull request, or discussion, use the labeled or unlabeled
activity types for the issues, pull_request, pull_request_target, or
discussion events instead."
sebrandon1 pushed a commit that referenced this pull request Feb 5, 2025
I removed the "disable-self-hosted" label from PR #2763 but the pre-main
self-hosted workflow jobs didn't run.

As suggested in github docs, the way to trigger the workflow when a
label is added removed is using pull_request's activity types.

We did this in the do-not-merge workflow file and it works well there.

See
https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#label

"If you want to run your workflow when a label is added to or removed
from an issue, pull request, or discussion, use the labeled or unlabeled
activity types for the issues, pull_request, pull_request_target, or
discussion events instead."
@dcibot
Copy link
Collaborator

dcibot commented Feb 5, 2025

@sebrandon1 sebrandon1 merged commit 5b5a939 into redhat-best-practices-for-k8s:main Feb 5, 2025
39 checks passed
@dcibot
Copy link
Collaborator

dcibot commented Feb 5, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
non backward compatible PR makes any NBC change in some TC, including removal or test ID changes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants