-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Unable to bind service to create a secret #16141
Comments
Please include the client requests being made. Normally --loglevel=8 |
@jeff-phillips-18 how are you deploying catalog? oc cluster up? |
@jpeeler is going to take a look at this. |
Here the controller output at loglevel 8 with the issue reproduced: |
|
Is this because they are now called |
@djzager no - that change hasn't landed in origin yet. |
@pmorie Origin does not use the openshift fork of the service-catalog? Just when I thought I had the connections made. |
I believe the issue here is that the garbage collector doesn't know about aggregated APIs until 1.8 |
Looks like the wired rest mapper only knows about compiled types. Pretty sure you would need to use a dynamic mapper backed by a discovery client to map custom resource instances. |
Yeah, I'm looking for that pull to pick now |
Opened #16215 . It won't make GC work for you, but you'll at least be able to create resources. |
I can confirm that the rest mapping problem goes away and the error changes slightly:
|
That's a permissions problem. You cannot set |
Fixes this error: secrets "mongodb-persistent-c6ztb-credentials-vp2y8" is forbidden: cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on: User "system:serviceaccount:kube-service-catalog:service-catalog-controller" cannot update bindings/finalizers.servicecatalog.k8s.io in project "meproject" (openshift#16141)
@deads2k To be clear, "referee" is referring to bindings, and not some other k8s type I don't know about right? (Edit: my understanding is correct.) |
After merging the 2 PRs (#16215 and #16253), I was able to create bindings:
|
Automatic merge from submit-queue add dynamic rest mapper to the admission plugin initializer fixes #16141 picks the dynamic memcache discovery for the RESTMapper and wires it for admission. There's a post-start hook that starts it refreshing.
Attempting to create the binding for a service is failing.
Error:
Error injecting binding results for Binding "myproject/mongodb-persistent-kqwxg-cjxwq": Unexpected error in response: secrets "mongodb-persistent-kqwxg-7ieki" is forbidden: cannot set blockOwnerDeletion in this case because cannot find RESTMapping for APIVersion servicecatalog.k8s.io/v1alpha1 Kind Binding: allowed by openshift authorizer, no matches for servicecatalog.k8s.io/, Kind=Binding
Version
$ oc version
oc v1.5.0-alpha.2+631de37-4492
kubernetes v1.7.0+695f48a16f
features: Basic-Auth
Server https://127.0.0.1:8443
openshift v3.7.0-alpha.1+631de37-125
kubernetes v1.7.0+695f48a16f
The text was updated successfully, but these errors were encountered: