This repository has been archived by the owner on Jun 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: difference between coreos & spec API
Explicitly documents the difference between the two APIs we support. Signed-off-by: Andy Sadler <[email protected]>
- Loading branch information
Showing
2 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 77 additions & 0 deletions
77
docs/userguide/modules/binding-workloads-using-sbo/pages/api-differences.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
[#api-differences] | ||
= API differences | ||
|
||
{servicebinding-title} supports two resources for making service bindings: | ||
|
||
. `ServiceBinding.binding.operators.coreos.com` | ||
. `ServiceBinding.servicebinding.io` | ||
|
||
Both of these binding types have similar features, but they are not completely identical. Here, the | ||
differences between these binding types are fully listed. | ||
|
||
[cols="1,1,1,1"] | ||
|=== | ||
| Feature | Supported by `coreos.com` bindings | Supported by `servicebinding.io` bindings | Notes | ||
|
||
| Binding to provisioned services | ||
| Yes | ||
| Yes | ||
| | ||
|
||
| Direct secret projection | ||
| Yes | ||
| Yes | ||
| | ||
|
||
| Bind as Files | ||
| Yes | ||
| Yes | ||
| Default behavior for `servicebinding.io` bindings, opt-in for `coreos.com` bindings. | ||
|
||
| Bind as Environment Variables | ||
| Yes | ||
| Yes | ||
| Default behavior for `coreos.com` bindings. Opt-in functionality for `servicebinding.io` bindings: | ||
environment variables will be created alongside files. | ||
|
||
| Selecting workload with a label selector | ||
| Yes | ||
| Yes | ||
| | ||
|
||
| Detecting Binding Resources (`.spec.detectBindingResources`) | ||
| Yes | ||
| No | ||
| There is no equivalent feature within `servicebinding.io` bindings. | ||
|
||
| Naming strategies | ||
| Yes | ||
| No | ||
| There is no current mechanism within `servicebinding.io` bindings to interpret the templates that | ||
naming strategies use. | ||
|
||
| Container Path | ||
| Yes | ||
| Partial | ||
| The specification allows `ClusterWorkloadResourceMapping` resources to project binding information | ||
into arbitrary locations within a workload's resource, which serves as a more powerful version of the | ||
binding path field. However, since a service binding could specify mapping behavior per binding, a | ||
`servicebinding.io` binding cannot fully support equivalent behavior without more information about | ||
the workload. | ||
|
||
| Container Name Filtering | ||
| No | ||
| Yes | ||
| `coreos.com` bindings do not have an equivalent feature. | ||
|
||
| Secret Path | ||
| Yes | ||
| No | ||
| `servicebinding.io` bindings have no equivalent feature. | ||
|
||
| Alternative binding sources (for instance, binding data from annotations) | ||
| Yes | ||
| Allowed by {servicebinding-title} | ||
| Strictly speaking, the specification is silent on this. However, for the sake of convenience, | ||
{servicebinding-title} supports these binding methods on both binding types. | ||
|=== |