Skip to content

Commit 855ee97

Browse files
authored
Fixes and updates (#1112)
* Fixes and updates Signed-off-by: Andy Tael <[email protected]> * LB URL Update --------- Signed-off-by: Andy Tael <[email protected]>
1 parent a30bfb1 commit 855ee97

File tree

8 files changed

+22
-17
lines changed

8 files changed

+22
-17
lines changed

helm/charts/obaas-sample-app/Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v2
2-
name: <your appliaction name> # Replace with your application name
2+
name: <your application name> # Replace with your application name
33
description: A Helm chart for the OBaaS Platform Kubernetes
44

55
# A chart can be either an 'application' or a 'library' chart.
@@ -15,10 +15,10 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.1.0
18+
version: 0.2.0
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
2323
# It is recommended to use it with quotes.
24-
appVersion: "1.16.0"
24+
appVersion: "0.0.1"

helm/charts/obaas-sample-app/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The OBaaS sample app chart is meant to serve as a developer template, and is ful
1010

1111
Standard parameters for Kubernetes options like node affinity, HPAs, ingress and more are provided in the [values.yaml file](./values.yaml).
1212

13-
#### OBaaS options
13+
## OBaaS options
1414

1515
Within the [values.yaml file](./values.yaml), the `obaas` key allows chart developers to enable or disable OBaaS integrations like database connectivity, OpenTelemetry, MicroProfile LRA, SpringBoot, and Eureka.
1616
enabled: true

helm/charts/obaas-sample-app/templates/deployment.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ apiVersion: apps/v1
33
kind: Deployment
44
metadata:
55
name: {{ include "obaas-app.fullname" . }}
6+
namespace: {{ .Values.obaas.namespace }}
67
labels:
78
{{- include "obaas-app.labels" . | nindent 4 }}
89
obaas.framework: SPRING_BOOT
@@ -50,9 +51,7 @@ spec:
5051
{{- $obaasObs := (lookup "v1" "ConfigMap" .Values.obaas.namespace "obaas-observability-config") }}
5152
{{- if $.Values.obaas.mp_lra.enabled }}
5253
- name: MP_LRA_COORDINATOR_URL
53-
value: {{ $obaas.data.MP_LRA_COORDINATOR_URL | quote }}
54-
- name: MP_LRA_PARTICIPANT_URL
55-
value: {{ $obaas.data.MP_LRA_PARTICIPANT_URL | quote }}
54+
value: {{ $obaas.data.otmm | quote }}
5655
{{- end }}
5756
{{- if $.Values.obaas.eureka.enabled }}
5857
- name: EUREKA_INSTANCE_PREFER_IP_ADDRESS
@@ -68,7 +67,7 @@ spec:
6867
{{- end }}
6968
{{- if $.Values.obaas.otel.enabled }}
7069
- name: OTEL_EXPORTER_OTLP_ENDPOINT
71-
value: {{ $obaasObs.data.signoz-otel-colletor | quote }}
70+
value: {{ (index $obaasObs.data "signoz-otel-collector") | quote }}
7271
{{- end }}
7372
{{- if $.Values.obaas.springboot.enabled }}
7473
- name: SPRING_PROFILES_ACTIVE
@@ -96,6 +95,8 @@ spec:
9695
secretKeyRef:
9796
name: {{ $.Values.obaas.database.credentialsSecret }}
9897
key: db.lb_password
98+
- name: LIQUIBASE_DATASOURCE_URL
99+
value: "jdbc:oracle:thin:@${SPRING_DB_SERVICE}?TNS_ADMIN=/oracle/tnsadmin"
99100
- name: SPRING_DB_SERVICE
100101
valueFrom:
101102
secretKeyRef:

helm/charts/obaas-sample-app/templates/hpa.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ apiVersion: autoscaling/v2
33
kind: HorizontalPodAutoscaler
44
metadata:
55
name: {{ include "obaas-app.fullname" . }}
6+
namespace: {{ .Values.obaas.namespace }}
67
labels:
78
{{- include "obaas-app.labels" . | nindent 4 }}
89
spec:

helm/charts/obaas-sample-app/templates/ingress.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ apiVersion: networking.k8s.io/v1
33
kind: Ingress
44
metadata:
55
name: {{ include "obaas-app.fullname" . }}
6+
namespace: {{ .Values.obaas.namespace }}
67
labels:
78
{{- include "obaas-app.labels" . | nindent 4 }}
89
{{- with .Values.ingress.annotations }}

helm/charts/obaas-sample-app/templates/service.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ apiVersion: v1
22
kind: Service
33
metadata:
44
name: {{ include "obaas-app.fullname" . }}
5+
namespace: {{ .Values.obaas.namespace }}
56
labels:
67
{{- include "obaas-app.labels" . | nindent 4 }}
78
spec:

helm/charts/obaas-sample-app/templates/serviceaccount.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ apiVersion: v1
33
kind: ServiceAccount
44
metadata:
55
name: {{ include "obaas-app.serviceAccountName" . }}
6+
namespace: {{ .Values.obaas.namespace }}
67
labels:
78
{{- include "obaas-app.labels" . | nindent 4 }}
89
{{- with .Values.serviceAccount.annotations }}

helm/charts/obaas-sample-app/values.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -136,20 +136,20 @@ tolerations: []
136136

137137
affinity: {}
138138

139+
# Oracle Backend for Microservices and AI Settings.
139140
obaas:
140-
namespace: application
141+
namespace: application # Replace with your namespace
141142
database:
142-
enabled: true
143-
credentialsSecret: obaas-app-db-secrets
144-
walletSecret: obaas-adb-tns-admin-1
143+
enabled: true # If true variables with DB secret content will be created
144+
credentialsSecret: obaas-app-db-secrets # Replace with your secret name
145+
walletSecret: obaas-adb-tns-admin-1 # Replace with your wallet secret name
145146
otel:
146-
enabled: true
147+
enabled: true # Enable OpenTelemetry
147148
# MicroProfile LRA
148149
mp_lra:
149-
enabled: false
150+
enabled: false # Enable OTMM
150151
# Spring Boot applications
151152
springboot:
152-
enabled: true
153+
enabled: true # Enable Spring Boot specific variables
153154
eureka:
154-
enabled: true
155-
155+
enabled: true # Enable Eureka client

0 commit comments

Comments
 (0)