Direct secret reference

When a resource is not available as a Provisioned service, but all the required binding data values are available in a Secret resource that you can reference in your Service Binding definition, use the Direct secret reference method. In this method, a ServiceBinding resource directly references a Secret resource to connect to a service. All the keys in the Secret resource are exposed as binding data.

Example: Specification with the binding.operators.coreos.com API
apiVersion: binding.operators.coreos.com/v1alpha1
kind: ServiceBinding
metadata:
  name: account-service
spec:
  ...
  services:
  - group: ""
    version: v1
    kind: Secret
    name: production-db-secret
Example: Specification that is compliant with the servicebinding.io API
apiVersion: servicebinding.io/v1beta1
kind: ServiceBinding
metadata:
  name: account-service
spec:
  ...
  service:
    apiVersion: v1
    kind: Secret
    name: production-db-secret