[Feature]: App Developer can run cf create-user-provided-service
to store service credentials in a user-provided service instance
#430
Labels
Blockers/Dependencies
Background
Note: User-provided Service Instance == UPSI
As an App Developer
I want to be able to create UPSIs
So that I can manually configure my apps with service credentials
Check out the Cloud Foundry User-Provided Service Instance docs for more information on this feature.
Acceptance Criteria
Creating a Service Instance with type
user-provided
(without params)GIVEN I have targeted an org / space
WHEN I run
cf create-user-provided-service my-upsi
THEN I see it was created successfully
AND I see the following request/response
Request:
POST /v3/service_instances
Request Body:
Response:
AND I can use
kubectl get cfserviceinstances -n <space-guid>
to see that aCFServiceInstance
resource was created that matches what I asked for and that an emptySecret
was created.Creating a Service Instance with type
user-provided
(with params)GIVEN I have targeted an org / space
WHEN I run
cf create-user-provided-service my-upsi -p '{"username":"admin","password":"pa55woRD"}'
THEN I see it was created successfully
AND I see the following request/response
Request:
POST /v3/service_instances
Request Body:
Response:
AND I can use
kubectl get cfserviceinstances -n <space-guid>
to see that aCFServiceInstance
resource was created that matches what I asked for and that aSecret
was created containing the username/password combo I provided.These should look similar to how they're defined in the proposal doc:
Example
CFServiceInstance
Example
Secret
Creating a Service Instance with type
managed
GIVEN I have targeted an org/space
WHEN I I attempt to create a "regular"/ managed service instance (
cf create-service
)THEN I get a
422
error with a message saying that managed services are not supportedCreating a Service Instance with
route_service_url
setGIVEN I have targeted an org/space
WHEN I I attempt to create a Route Service UPSI with the
-r
flagTHEN I get a
422
error with a message saying that route services are not supportedCreating a Service Instance with
syslog_drain_url
setGIVEN I have targeted an org/space
WHEN I I attempt to create a Syslog Drain Service UPSI with the
-l
flagTHEN I get a
422
error with a message saying that syslog drain services are not supportedDev Notes
ProvisionedService
status.binding.name
fields will be updated via controller work as part of [Feature]:CFServiceInstance
andCFServiceBinding
resources should implement theProvisionedService
duck type #549The text was updated successfully, but these errors were encountered: