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

can't delete docker-type buildconfigs if docker strategy permission is removed #8655

Closed
bparees opened this issue Apr 27, 2016 · 0 comments
Closed
Assignees
Labels
component/build kind/bug Categorizes issue or PR as related to a bug. priority/P3

Comments

@bparees
Copy link
Contributor

bparees commented Apr 27, 2016

Create a docker type buildconfig

then (w/o running any builds), remove docker strategy permission from your user:
https://github.com/openshift/openshift-docs/pull/1909/files

then attempt to oc delete the buildconfig.

it will fail with:

Error from server: buildconfigs "ruby-hello-world" is forbidden: build strategy Docker is not allowed

This is because the reaper is attempting to first update the buildconfig to "paused" and the update is not permitted when you don't have docker buildconfig permissions.

The reaper should be slightly smarter: check if there are any builds to delete. If there are no builds to delete, don't bother to pause the buildconfig, just let it get deleted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/build kind/bug Categorizes issue or PR as related to a bug. priority/P3
Projects
None yet
Development

No branches or pull requests

3 participants