[teiid-issues] [JBoss JIRA] (TEIIDSB-142) teiid-openshift-examples enhancements

Bilgin Ibryam (Jira) issues at jboss.org
Tue Nov 26 10:52:00 EST 2019


    [ https://issues.jboss.org/browse/TEIIDSB-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13818092#comment-13818092 ] 

Bilgin Ibryam commented on TEIIDSB-142:
---------------------------------------

cool, I see I can do the following:

    - name: SPRING_DATASOURCE_SAMPLEDB_USERNAME
      valueFrom:
        secretKeyRef:
          key: database-user
          name: postgresql

I will try to update example

> teiid-openshift-examples enhancements
> -------------------------------------
>
>                 Key: TEIIDSB-142
>                 URL: https://issues.jboss.org/browse/TEIIDSB-142
>             Project: Teiid Spring Boot
>          Issue Type: Enhancement
>          Components: examples
>            Reporter: Bilgin Ibryam
>            Priority: Optional
>
> While setting up the example [scenarios|https://github.com/teiid/teiid-openshift-examples/blob/master/rdbms-example/Readme.adoc]  the Secret seems unnecessary? Is it really used?
> # CREATE SECRET TO CONNECT TO DATABASE (ADJUST TO YOUR VALUES)
> oc create -f - <<EOF
> apiVersion: v1
> kind: Secret
> metadata:
>   name: postgresql
> type: Opaque
> stringData:
>   database-user: user
>   database-name: sampledb
>   database-password: mypassword
> EOF
> Also the following steps can be shortened:
> oc get pods
> oc rsh postgres-xxxxx
> to 
> oc rsh $(oc get pods -o name -l app=postgresql)



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the teiid-issues mailing list