SCC: Promote sysctl annotations to fields#20151
SCC: Promote sysctl annotations to fields#20151openshift-merge-robot merged 5 commits intoopenshift:masterfrom
Conversation
pkg/oc/cli/describe/describer.go
Outdated
| } | ||
| if len(scc.ForbiddenSysctls) > 0 { | ||
| fmt.Fprintf(out, " Forbidden Sysctls:\t%s\n", sysctlsToString(scc.ForbiddenSysctls)) | ||
| } |
There was a problem hiding this comment.
Looks like we always show the fields. If their content is empty, we just represent it as <all> or <none>. So, could you remove these if-s then?
17a47f7 to
eff8d35
Compare
| } | ||
|
|
||
| const sysctlPatternSegmentFmt string = "([a-z0-9][-_a-z0-9]*)?[a-z0-9*]" | ||
| const SysctlPatternFmt string = "(" + kapivalidation.SysctlSegmentFmt + "\\.)*" + sysctlPatternSegmentFmt |
There was a problem hiding this comment.
Could we make it non-pubic or something else depends on it?
There was a problem hiding this comment.
I believe it should be alright to make it private, I'll change that.
|
/test cross |
|
Apparently one of the dependencies is breaking the build: |
898677a to
1a60d00
Compare
|
/hold cancel |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
travis failure is due to old commit checking, fixed in #20381 CI is green otherwise |
1a60d00 to
d4a61f6
Compare
|
fixed bump commit title, re-tagging |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liggitt, simo5, stlaz The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
@stlaz: The following tests failed, say
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. DetailsInstructions 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/test-infra repository. I understand the commands that are listed here. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
This PR promotes the experimental SCCs' sysctl-related annotations to fields.
privilegedSCC to allow all sysctlsTrello: https://trello.com/c/WP50iqpB/222-add-forbiddensysctls-and-allowedunsafesysctls-options-to-sccs