File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
quarkus/callee-service/application
spring/person-service/application Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,12 @@ IMAGE_ARCH=$2
5
5
[[ ` kubectl get configmaps authentication-config --ignore-not-found -o jsonpath=' {.data.authentication}' -n default` = " oidc" ]] && INGRESS_AUTHENTICATION=" --set ingress.authentication=oidc"
6
6
7
7
function up() {
8
+ kubectl create secret generic postgresql-secret -n example \
9
+ --from-literal=spring.datasource.username=main \
10
+ --from-literal=spring.datasource.password=postgres \
11
+ --from-literal=quarkus.datasource.username=main \
12
+ --from-literal=quarkus.datasource.password=postgres
13
+
8
14
helm install --create-namespace \
9
15
--set image.arch=$IMAGE_ARCH $INGRESS_AUTHENTICATION \
10
16
--set ingress.hosts=` kubectl get configmaps cluster-config -o jsonpath=' {.data.hostname}' -n default` \
@@ -15,6 +21,7 @@ function up() {
15
21
}
16
22
17
23
function down() {
24
+ kubectl delete secret generic postgresql-secret -n example
18
25
helm uninstall \
19
26
--namespace ` pwd | rev | cut -d ' /' -f4 | rev` \
20
27
` cat ./Chart.yaml | grep " name" | cut -d' :' -f2 | xargs`
Original file line number Diff line number Diff line change @@ -5,6 +5,12 @@ IMAGE_ARCH=$2
5
5
[[ ` kubectl get configmaps authentication-config --ignore-not-found -o jsonpath=' {.data.authentication}' -n default` = " oidc" ]] && INGRESS_AUTHENTICATION=" --set ingress.authentication=oidc"
6
6
7
7
function up() {
8
+ kubectl create secret generic postgresql-secret -n example \
9
+ --from-literal=spring.datasource.username=main \
10
+ --from-literal=spring.datasource.password=postgres \
11
+ --from-literal=quarkus.datasource.username=main \
12
+ --from-literal=quarkus.datasource.password=postgres
13
+
8
14
helm install --create-namespace \
9
15
--set image.arch=$IMAGE_ARCH $INGRESS_AUTHENTICATION \
10
16
--set ingress.hosts=` kubectl get configmaps cluster-config -o jsonpath=' {.data.hostname}' -n default` \
@@ -15,6 +21,7 @@ function up() {
15
21
}
16
22
17
23
function down() {
24
+ kubectl delete secret generic postgresql-secret -n example
18
25
helm uninstall \
19
26
--namespace ` pwd | rev | cut -d ' /' -f4 | rev` \
20
27
` cat ./Chart.yaml | grep " name" | cut -d' :' -f2 | xargs`
You can’t perform that action at this time.
0 commit comments