I have had a number of interested parties asking for namespaced versions of ServiceBroker, ServiceClass and ServicePlan. I think this is perfectly valid and would be similar to what CF does (global and org-scoped brokers). We should consider this for the second beta release, but it is NOT a 0.1.0 item.
From #1233:
Right now brokers, classes and plans are global, meaning they are cluster-wide and are not scoped to a particular namespace. There are going to be times when people will want things localized to a namespace. We need to consider how we'll support these.
Some notes:
marking this a v0.1.0 since I think we need to discuss and make sure we don't need changes before beta. Of the ones listed above I think the "Global Instances" one might need to be addressed before beta because if we prepend the word "Local" to Broker/Class/Plan to indicate they're NS-specific, then perhaps our current ServiceInstance should be LocalServiceInstance too?
--
If we do support global instances I wonder how we'll create bindings/creds. I believe that secrets are bound to namespaces, so that might mean that to get the creds for a global instance we'd need to bind it to a namespace. While that may be necessary from an ACL perspective in Kube, it seems to defeat the purpose of a "global" instance. Although, having a "global" resource could mean that you're doing admin (cluster-wide) type of stuff anyway, so perhaps there won't be the notion of bindings/creds at all for these types of services. The ACL side of it will be done via the OriginatingIdentity header on the provision request. Just wondering....
We discussed the naming of resources re: this problem in the SIG Arch meeting on Sept 28, 2017. The consensus was that the cluster-scoped resources should be called Cluster*.
Created #1288 for this
Closing since #1288 should cover it
@duglin Hrm, the #1288 is only about renaming the current (cluster-scoped) resources. I guess we need to keep this issue open for tracking adding support for namespace-scoped ones?
yea I guess so
For the record, for anyone watching - we do not intend for this to block the beta, we are only interested in ensuring that we have a good forward-compatible design.
Having this feature would be very useful for us. We need it for namespaced integration testing of various usage scenarios. Both for OSB providers and for Instance/Binding consumers.
I've started a proposal on this, hope to have it for review Jan 29th 2018.
@eriknelson has #dibs on impl with lots of PRs merged and in-progress
/close
server-side complete, docs partially complete, client side in progress
Most helpful comment
I've started a proposal on this, hope to have it for review Jan 29th 2018.