File tree Expand file tree Collapse file tree 7 files changed +20
-22
lines changed
inventory-helidon-se/src/main/resources Expand file tree Collapse file tree 7 files changed +20
-22
lines changed Original file line number Diff line number Diff line change @@ -82,10 +82,12 @@ public String ListenForMessages()
82
82
String tnsAdmin = Environment . GetEnvironmentVariable ( "TNS_ADMIN" ) ;
83
83
OracleConfiguration . WalletLocation = tnsAdmin ;
84
84
string connString =
85
- "User Id=INVENTORYUSER;Password=" +
86
- Environment . GetEnvironmentVariable ( "dbpassword" ) +
85
+ "User Id=" +
86
+ Environment . GetEnvironmentVariable ( "DB_USER" ) +
87
+ ";Password=" +
88
+ Environment . GetEnvironmentVariable ( "DB_PASSWORD" ) +
87
89
";Data Source=" +
88
- Environment . GetEnvironmentVariable ( "INVENTORY_PDB_NAME " ) +
90
+ Environment . GetEnvironmentVariable ( "DB_CONNECT_STRING " ) +
89
91
";" ;
90
92
Console
91
93
. WriteLine ( "tnsAdmin:" +
Original file line number Diff line number Diff line change 6
6
SCRIPT_DIR=$( dirname $0 )
7
7
8
8
export DOCKER_REGISTRY=" $( state_get DOCKER_REGISTRY) "
9
- export INVENTORY_PDB_NAME=" $( state_get RUN_NAME ) X2 "
10
- export OCI_REGION=" $( state_get OCI_REGION ) "
9
+ export INVENTORY_PDB_NAME=" $( state_get INVENTORY_DB_NAME ) "
10
+ export OCI_REGION=" $( state_get REGION ) "
11
11
export VAULT_SECRET_OCID=" "
12
12
13
13
echo create inventory-dotnet deployment and service...
@@ -30,4 +30,4 @@ if [ -z "$1" ]; then
30
30
kubectl apply -f $SCRIPT_DIR /inventory-dotnet-deployment-$CURRENTTIME .yaml -n msdataworkshop
31
31
else
32
32
kubectl apply -f <( istioctl kube-inject -f $SCRIPT_DIR /inventory-dotnet-deployment-$CURRENTTIME .yaml) -n msdataworkshop
33
- fi
33
+ fi
Original file line number Diff line number Diff line change @@ -22,19 +22,17 @@ spec:
22
22
image : %DOCKER_REGISTRY%/inventory-dotnet:0.1
23
23
imagePullPolicy : Always
24
24
env :
25
- - name : user
25
+ - name : DB_USER
26
26
value : " inventoryuser"
27
27
- name : TNS_ADMIN
28
28
value : " /msdataworkshop/creds"
29
- - name : INVENTORY_PDB_NAME
29
+ - name : DB_CONNECT_STRING
30
30
value : " %INVENTORY_PDB_NAME%_tp"
31
31
- name : OCI_REGION
32
32
value : " %OCI_REGION%"
33
- - name : OCI_REGION
34
- value : " %OCI_REGION%"
35
33
- name : VAULT_SECRET_OCID
36
34
value : " %VAULT_SECRET_OCID%"
37
- - name : dbpassword
35
+ - name : DB_PASSWORD
38
36
valueFrom :
39
37
secretKeyRef :
40
38
name : dbuser
49
47
volumes :
50
48
- name : creds
51
49
secret :
52
- secretName : db-wallet-secret
50
+ secretName : db-wallet-secret
Original file line number Diff line number Diff line change 6
6
SCRIPT_DIR=$( dirname $0 )
7
7
8
8
export DOCKER_REGISTRY=" $( state_get DOCKER_REGISTRY) "
9
- export INVENTORY_PDB_NAME=" $( state_get RUN_NAME ) X2 "
10
- export OCI_REGION=" $( state_get OCI_REGION ) "
9
+ export INVENTORY_PDB_NAME=" $( state_get INVENTORY_DB_NAME ) "
10
+ export OCI_REGION=" $( state_get REGION ) "
11
11
export VAULT_SECRET_OCID=" "
12
12
13
13
echo create inventory-go deployment and service...
@@ -30,4 +30,4 @@ if [ -z "$1" ]; then
30
30
kubectl apply -f $SCRIPT_DIR /inventory-go-deployment-$CURRENTTIME .yaml -n msdataworkshop
31
31
else
32
32
kubectl apply -f <( istioctl kube-inject -f $SCRIPT_DIR /inventory-go-deployment-$CURRENTTIME .yaml) -n msdataworkshop
33
- fi
33
+ fi
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
1
2
<!--
2
3
3
4
7
8
8
9
9
10
-->
10
- <?xml version =" 1.0" encoding =" UTF-8" ?>
11
11
<configuration >
12
12
<variable name =" LOG_LEVEL" value =" ${LOG_LEVEL:-INFO}" />
13
13
<appender name =" STDOUT" class =" ch.qos.logback.core.ConsoleAppender" >
32
32
<appender-ref ref =" STDOUT" />
33
33
</logger >
34
34
35
- </configuration >
35
+ </configuration >
Original file line number Diff line number Diff line change 16
16
db_user = env .get ('DB_USER' ).strip ()
17
17
region_id = env .get ('OCI_REGION' ).strip ()
18
18
vault_secret_ocid = env .get ('VAULT_SECRET_OCID' ).strip ()
19
- k8s_secret_dbpassword = env .get ('dbpassword ' ).strip ()
19
+ k8s_secret_dbpassword = env .get ('DB_PASSWORD ' ).strip ()
20
20
db_connect_string = env .get ('DB_CONNECT_STRING' )
21
- region_id = env .get ('OCI_REGION' ).strip ()
22
21
23
22
readyfile = ""
24
23
logger = None
@@ -138,4 +137,3 @@ def reportUp():
138
137
class DatabaseDown (Exception ):
139
138
def __init__ (self ):
140
139
pass
141
-
Original file line number Diff line number Diff line change 48
48
value : " %OCI_REGION%"
49
49
- name : VAULT_SECRET_OCID
50
50
value : " %VAULT_SECRET_OCID%"
51
- - name : dbpassword
51
+ - name : DB_PASSWORD
52
52
valueFrom :
53
53
secretKeyRef :
54
54
name : dbuser
71
71
volumes :
72
72
- name : creds
73
73
secret :
74
- secretName : db-wallet-secret
74
+ secretName : db-wallet-secret
You can’t perform that action at this time.
0 commit comments