-
Epic
-
Resolution: Done
-
Major
-
None
-
None
-
Advanced data mapping
-
Done
-
QE Needed, Docs Needed, TE Needed, Customer Facing
-
0% To Do, 0% In Progress, 100% Done
Custom environment variables help ServiceBinding users to define their own environment variables using by stitching together information from multiple backing services.
This epic makes improvements to make it usable for multiple backing services as well as support another simpler syntax.
apiVersion: apps.openshift.io/v1alpha1
kind: ServiceBindingRequest
metadata:
name: binding-request
namespace: service-binding-demo
spec:
applications:
- resourceRef: java-app
group: apps
version: v1
resource: deployments
services:
- group: postgresql.baiju.dev
version: v1alpha1
kind: Database
resourceRef: db-demo
dataMapping:
- name: JDBC_URL
value: 'jdbc:postgresql://{{ .status.dbConnectionIP }}:{{ .status.dbConnectionPort }}/{{ .status.dbName }}'
- name: DB_USER
value: '{{ index .status.dbConfigMap "db.username" }}'
- name: DB_PASSWORD
value: '{{ index .status.dbConfigMap "db.password" }}'