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

selinux: Print diagnostic message from selinuxd in event on failure #552

Merged
merged 1 commit into from
Jul 28, 2021

Conversation

jhrozek
Copy link
Contributor

@jhrozek jhrozek commented Jul 27, 2021

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

selinuxd does include a diagnostic message for some time and we even
parse it, it was just unused. Instead of changing the CRD just to
include an error message, we might as well just dump the message in an
event.

Which issue(s) this PR fixes:

Fixes #223 (sort of? The issue talked about enhancing the CRD which I
don't think is needed honestly..)

Does this PR have test?

N/A

Special notes for your reviewer:

N/A

Does this PR introduce a user-facing change?

NONE

selinuxd does include a diagnostic message for some time and we even
parse it, it was just unused. Instead of changing the CRD just to
include an error message, we might as well just dump the message in an
event.
@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jul 27, 2021
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jul 27, 2021
@codecov-commenter
Copy link

Codecov Report

Merging #552 (d97c1e5) into master (7ed53f8) will increase coverage by 0.28%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #552      +/-   ##
==========================================
+ Coverage   43.73%   44.02%   +0.28%     
==========================================
  Files          26       26              
  Lines        1324     1338      +14     
==========================================
+ Hits          579      589      +10     
- Misses        705      709       +4     
  Partials       40       40              

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 28, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jhrozek, 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 Jul 28, 2021
@k8s-ci-robot k8s-ci-robot merged commit ecdf687 into kubernetes-sigs:master Jul 28, 2021
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/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

selinux: expand the selinuxpolicy status subresource to include error messages
4 participants