Skip to content

Move CapabilityAll from k8s types and rename it to AllowAllCapabilities - #15135

Merged
openshift-merge-robot merged 2 commits into
openshift:masterfrom
php-coder:capabilities_all_refactoring
Jul 28, 2017
Merged

openshift-merge-robot merged 2 commits into
openshift:masterfrom
php-coder:capabilities_all_refactoring

Conversation

@php-coder

@php-coder php-coder commented Jul 11, 2017 •

Copy link
Copy Markdown

Move CapabilityAll from k8s types to openshift, close to the SCC definition and also rename it to AllowAllCapabilities.

Addresses #12875 (comment) and fixes #15273

PTAL @deads2k @pweil-
CC @simo5

@deads2k

deads2k commented Jul 11, 2017

Copy link
Copy Markdown
Contributor

There should be a comment that gets removed from the upstream types and added to the SCC type

@php-coder

Copy link
Copy Markdown
Author

@deads2k Where it should be? In the vendor/k8s.io/kubernetes/pkg/api/types.go/vendor/k8s.io/kubernetes/pkg/api/v1/types.go files? To mention that this constant was moved?

@deads2k

deads2k commented Jul 11, 2017

Copy link
Copy Markdown
Contributor

@deads2k Where it should be? In the vendor/k8s.io/kubernetes/pkg/api/types.go/vendor/k8s.io/kubernetes/pkg/api/v1/types.go files? To mention that this constant was moved?

No as I recall the original, it modified the godoc on the Capabilties type that was only valid when used inside of an SCC object.

@php-coder

Copy link
Copy Markdown
Author

it modified the godoc on the Capabilties type

There were modifications only on the SCC type: 25ade46

@php-coder

Copy link
Copy Markdown
Author

@deads2k I believe that it's ready to merge. Could you merge or do you have other comments?

@php-coder

Copy link
Copy Markdown
Author

@deads2k Can we merge it now?

@deads2k

deads2k commented Jul 20, 2017

Copy link
Copy Markdown
Contributor

@deads2k Can we merge it now?

rename your commit as a revert of UPSTREAM: <carry>: allow to use * as a capability in Security Context so we can find it in the rebase, then lgtm

@php-coder
php-coder force-pushed the capabilities_all_refactoring branch from 6070786 to 08d7aa1 Compare July 20, 2017 13:01
@php-coder

Copy link
Copy Markdown
Author

rename your commit as a revert of UPSTREAM

@deads2k Done.

@deads2k

deads2k commented Jul 20, 2017

Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 20, 2017
@php-coder
php-coder force-pushed the capabilities_all_refactoring branch from 08d7aa1 to af9f4c6 Compare July 20, 2017 13:15
@0xmichalis

Copy link
Copy Markdown
Contributor

/lgtm cancel

@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Jul 20, 2017
@deads2k

deads2k commented Jul 20, 2017

Copy link
Copy Markdown
Contributor

/lgtm

[merge]

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 20, 2017
@openshift-bot

Copy link
Copy Markdown
Contributor

[Test]ing while waiting on the merge queue

@php-coder

Copy link
Copy Markdown
Author

I hope that this won't be merged because I still couldn't name the commit properly :-(

@php-coder
php-coder force-pushed the capabilities_all_refactoring branch from af9f4c6 to 11f06b9 Compare July 20, 2017 13:32
@php-coder

Copy link
Copy Markdown
Author

I added a missing colon to the commit message.

@0xmichalis 0xmichalis removed their assignment Jul 20, 2017
@php-coder

Copy link
Copy Markdown
Author

Test flake #14897

@mfojtik

mfojtik commented Jul 24, 2017

Copy link
Copy Markdown
Contributor

[merge]

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to 11f06b9

@openshift-bot

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/merge FAILURE (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/1367/) (Base Commit: 883e926) (PR Branch Commit: 11f06b9)

@php-coder
php-coder force-pushed the capabilities_all_refactoring branch from d1f17c6 to ae961cc Compare July 24, 2017 11:31
@openshift-merge-robot openshift-merge-robot removed the lgtm Indicates that a PR is ready to be merged. label Jul 24, 2017
@openshift-merge-robot openshift-merge-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jul 24, 2017
@php-coder
php-coder force-pushed the capabilities_all_refactoring branch from ae961cc to c749133 Compare July 25, 2017 10:44
@openshift-merge-robot openshift-merge-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 25, 2017
@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to c749133

@openshift-bot

Copy link
Copy Markdown
Contributor

Origin Action Required: Please contact #openshift-dev to have this pull request manually reviewed and tested

@openshift-bot

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/3480/) (Base Commit: 970dc61) (PR Branch Commit: c749133)

@php-coder

Copy link
Copy Markdown
Author

Test flake #13536

@openshift-merge-robot openshift-merge-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 25, 2017
@php-coder

Copy link
Copy Markdown
Author

@deads2k @pweil- Could one of you put lgtm label or re-run failed merge somehow?

@deads2k

deads2k commented Jul 28, 2017

Copy link
Copy Markdown
Contributor

/test all
/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 28, 2017
@openshift-merge-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deads2k, php-coder

Associated issue: 15273

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

Details Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@openshift-merge-robot

Copy link
Copy Markdown
Contributor

Automatic merge from submit-queue

@openshift-merge-robot
openshift-merge-robot merged commit 4c1e092 into openshift:master Jul 28, 2017
@php-coder
php-coder deleted the capabilities_all_refactoring branch July 30, 2017 11:00
k8s-github-robot pushed a commit to kubernetes/kubernetes that referenced this pull request Sep 20, 2017
Automatic merge from submit-queue (batch tested with PRs 51337, 47080, 52646, 52635, 52666). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>..

PodSecurityPolicy.allowedCapabilities: add support for * to allow to request any capabilities

**What this PR does / why we need it**:
Prior this change there was no way to allow to pods to request any capabilities. Cluster admin had always specify a full list of capabilities explicitly. Because there are many of them, it gets tedious. This PR makes possible to use `*` to allow all possible capabilities. Non-paranoid (and lazy) cluster admins can use it. Those who are super strict and paranoid of course won't use it because `*` allows capabilities that don't exist today but may be introduced in the future.

"privileged" PSP in examples was modified to allow privileged users to use this feature.

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #50055

**Special notes for your reviewer**:
This functional is already present in OpenShift: openshift/origin#12875 and openshift/origin#15135

**Release note**:
```release-note
PSP: add support for using `*` as a value in `allowedCapabilities` to allow to request any capabilities
```

CC @simo5 @pweil- @gyliu513 @liqlin2015
mhan8796 pushed a commit to mhan8796/kubernetes that referenced this pull request Jun 26, 2026
…d_caps

Automatic merge from submit-queue (batch tested with PRs 51337, 47080, 52646, 52635, 52666). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>..

PodSecurityPolicy.allowedCapabilities: add support for * to allow to request any capabilities

**What this PR does / why we need it**:
Prior this change there was no way to allow to pods to request any capabilities. Cluster admin had always specify a full list of capabilities explicitly. Because there are many of them, it gets tedious. This PR makes possible to use `*` to allow all possible capabilities. Non-paranoid (and lazy) cluster admins can use it. Those who are super strict and paranoid of course won't use it because `*` allows capabilities that don't exist today but may be introduced in the future.

"privileged" PSP in examples was modified to allow privileged users to use this feature.

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes kubernetes#50055

**Special notes for your reviewer**:
This functional is already present in OpenShift: openshift/origin#12875 and openshift/origin#15135

**Release note**:
```release-note
PSP: add support for using `*` as a value in `allowedCapabilities` to allow to request any capabilities
```

CC @simo5 @pweil- @gyliu513 @liqlin2015
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. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove CapabilitiesAll from main api types

7 participants