Skip to content

Commit

Permalink
Merge pull request #218 from scothis/service-available-condition
Browse files Browse the repository at this point in the history
Define ServiceAvailable condition
  • Loading branch information
arthurdm authored May 14, 2022
2 parents b8f444d + 6c97088 commit 24fff89
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ Participation in the Service Binding community is governed by the [Contributor C
- [Environment Variables Example Resource](#environment-variables-example-resource)
- [Reconciler Implementation](#reconciler-implementation)
- [Ready Condition Status](#ready-condition-status)
- [ServiceAvailable Condition Status](#serviceavailable-condition-status)
- [Direct Secret Reference](#direct-secret-reference)
- [Direct Secret Reference Example Resource](#direct-secret-reference-example-resource)
- [Workload Resource Mapping](#workload-resource-mapping)
Expand Down Expand Up @@ -414,6 +415,10 @@ The `ServiceBinding` status **MUST** be updated for the result of an error when

If the service binding is completed successfully, the `Ready` condition status **MUST** be set to `True`. If the service binding cannot be completed, including cases where the service or workload resource are not found or do not conform to the specification requirements, the `Ready` condition status **MUST** be set to `False`. If the `Ready` condition status is neither actively `True` nor `False` it **SHOULD** be set to `Unknown`.

### ServiceAvailable Condition Status

If the referenced Provisioned Service exists and exposes a binding secret, the `ServiceAvailable` condition status **MUST** be set to `True`. If the referenced Provisioned Service either does not exist, or it cannot be determined if the resource exists, the `ServiceAvailable` condition status **MUST** be set to `False` with a meaningful message. If the `ServiceAvailable` condition status is neither actively `True` nor `False` it **SHOULD** be set to `Unknown`.

# Direct Secret Reference

There are scenarios where an appropriate resource conforming to the Provisioned Service duck-type does not exist, but there is a `Secret` available for binding. This feature allows a `ServiceBinding` to directly reference a `Secret`.
Expand Down

0 comments on commit 24fff89

Please sign in to comment.