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

Improve exec/attach error message #11549

Merged
merged 1 commit into from
Oct 25, 2016
Merged

Improve exec/attach error message #11549

merged 1 commit into from
Oct 25, 2016

Conversation

liggitt
Copy link
Contributor

@liggitt liggitt commented Oct 25, 2016

Improves the message from:
$ oc rsh ruby-sample-build-1-build Error from server: pods "ruby-sample-build-1-build" is forbidden: unable to validate against any security context constraint: [spec.containers[0].securityContext.privileged: Invalid value: true: Privileged containers are not allowed spec.containers[0].securityContext.volumes[0]: Invalid value: "hostPath": hostPath volumes are not allowed to be used]
to
$ oc rsh ruby-sample-build-1-build Error from server: pods "ruby-sample-build-1-build" is forbidden: exec operation is not allowed because the pod's security context exceeds your permissions: unable to validate against any security context constraint: [spec.containers[0].securityContext.privileged: Invalid value: true: Privileged containers are not allowed spec.containers[0].securityContext.volumes[0]: Invalid value: "hostPath": hostPath volumes are not allowed to be used]

@liggitt
Copy link
Contributor Author

liggitt commented Oct 25, 2016

[test]

@liggitt
Copy link
Contributor Author

liggitt commented Oct 25, 2016

spawned from #11499

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 892d38c

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/10594/) (Base Commit: c4381c5)

@bparees
Copy link
Contributor

bparees commented Oct 25, 2016

flake #11563

otherwise lgtm [merge]

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 892d38c

@openshift-bot
Copy link
Contributor

openshift-bot commented Oct 25, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/10650/) (Base Commit: 30a00dc) (Image: devenv-rhel7_5240)

@openshift-bot openshift-bot merged commit 3f5cad6 into openshift:master Oct 25, 2016
@liggitt liggitt deleted the rsh-error branch October 27, 2016 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants