Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-11938

More structured datasource properties in DV custom resource

XMLWordPrintable

    • 0
    • 0% 0%
    • Todo

      The current way of specifying datasource settings for dv-operator is like this:

        env: 
        - name: SPRING_DATASOURCE_SAMPLEDB_USERNAME
          value: user
        - name: SPRING_DATASOURCE_SAMPLEDB_PASSWORD
          value: mypassword
        - name: SPRING_DATASOURCE_SAMPLEDB_DATABASENAME
          value: sampledb
        - name: SPRING_DATASOURCE_SAMPLEDB_JDBCURL
          value: jdbc:postgresql://postgresql/$(SPRING_DATASOURCE_SAMPLEDB_DATABASENAME)
      

      The SAMPLEDB part of each env var name is the name of the datasource, and this needs to match across all the env vars.

      I propose a more user-friendly format:

      datasources: 
           - sampledb: 
                user: user
                password: mypassword
                jdbc-url: jdbc:postgresql://postgresql/$(DATABASENAME)
                database-name: sampledb
      

      The operator could convert this format into the env vars as above and supply directly to teiid-spring-boot

            rhn-engineering-rareddy Ramesh Reddy
            asmigala@redhat.com Andrej Smigala
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day
                1d