You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a type key under the credentials field of the service instance. This is a deviation from the CF v3 API spec and can break strict json unmarshalling in spme apps.
Acceptance
GIVEN I have an app called dorifi runnnig on Korifi WHEN I cf create-user-provided-service upsi -p '{"x": {"y": "z"}}' AND I cf bind-service dorifi upsi THEN I can see that the VCAP_SERVICES env var of dorifi looks something like this:
ANDcat /bindings/<biding-guid>/type is user-provided AND the backing secret in the k8s cluster is of type servicebinding.io/user-provided
GIVEN I have an app called dorifi runnnig on Korifi WHEN I cf create-user-provided-service upsi -p '{"x": "y", "type": "my-type"}' AND I cf bind-service dorifi upsi THEN I can see that the VCAP_SERVICES env var of dorifi looks something like this:
* `type` has no special treatment outside the servicebinding.io secret
* Remove the validation of the `type` value change from the service
instance repository
* Whenever the `type` value changes, the binding controller recreates
the servicebinding.io secret with the new type. Recreation is needed
as secrets' type is immutable
fixes#3169
WIP
Do not default/validate upsi credentials `type` in service instance
repository
Co-authored-by: Georgi Sabev <georgethebeatle@gmail.com>
WIP: binding controller recreates the secret on type change
Co-authored-by: Georgi Sabev <georgethebeatle@gmail.com>
wip
Co-authored-by: Georgi Sabev <georgethebeatle@gmail.com>
* `type` has no special treatment outside the servicebinding.io secret
* Remove the validation of the `type` value change from the service
instance repository
* Whenever the `type` value changes, the binding controller recreates
the servicebinding.io secret with the new type. Recreation is needed
as secrets' type is immutable
fixes#3169
WIP
Do not default/validate upsi credentials `type` in service instance
repository
Co-authored-by: Georgi Sabev <georgethebeatle@gmail.com>
WIP: binding controller recreates the secret on type change
Co-authored-by: Georgi Sabev <georgethebeatle@gmail.com>
wip
Co-authored-by: Georgi Sabev <georgethebeatle@gmail.com>
Background
Right now when we bind a user provided service created with the following command
cf create-user-provided-service upsi1 -p '{"x": {"y": "z"}}'
to an app we get a VCAP_SERVICES env var value like this:
There is a
type
key under thecredentials
field of the service instance. This is a deviation from the CF v3 API spec and can break strict json unmarshalling in spme apps.Acceptance
GIVEN I have an app called
dorifi
runnnig on KorifiWHEN I
cf create-user-provided-service upsi -p '{"x": {"y": "z"}}'
AND I
cf bind-service dorifi upsi
THEN I can see that the VCAP_SERVICES env var of dorifi looks something like this:
AND
cat /bindings/<biding-guid>/type
isuser-provided
AND the backing secret in the k8s cluster is of type
servicebinding.io/user-provided
GIVEN I have an app called
dorifi
runnnig on KorifiWHEN I
cf create-user-provided-service upsi -p '{"x": "y", "type": "my-type"}'
AND I
cf bind-service dorifi upsi
THEN I can see that the VCAP_SERVICES env var of dorifi looks something like this:
AND
cat /bindings/<biding-guid>/type
ismy-type
AND the backing secret in the k8s cluster is of type
servicebinding.io/my-type
Dev Notes
Keep in mind that the secret type in Kubernetes is immutable and we have to somehow handle this when we update the service instance type. We could:
The text was updated successfully, but these errors were encountered: