Skip to content

Commit

Permalink
Database, Image, and chart changes (#56)
Browse files Browse the repository at this point in the history
* pull only tefca-viewer changes from upgrade dibbs charts to 1.6.4 and added latest image location and tag

* fix linting

* code is not obsolete
  • Loading branch information
shanice-skylight authored Oct 18, 2024
1 parent e89139d commit f526b4e
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/tefca-viewer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ apiVersion: v2
name: tefca-viewer
description: A Helm chart for Kubernetes
type: application
version: 0.3.0
version: 0.4.26
4 changes: 3 additions & 1 deletion charts/tefca-viewer/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
imagePullSecrets:
containers:
- name: {{.Chart.Name}}
image: ghcr.io/cdcgov/phdi/{{.Values.name}}:{{ .Values.image.tag }}
image: ghcr.io/cdcgov/phdi/{{.Values.name}}:{{.Values.image.tag}}
imagePullPolicy: {{.Values.image.pullPolicy}}
ports:
- name: {{.Chart.Name | trunc 15}}
Expand All @@ -28,3 +28,5 @@ spec:
value: {{.Values.fhirUrl}}
- name: cred_manager
value: {{.Values.credManager}}
- name: DATABASE_URL
value: "{{.Values.databaseConnectionString}}"
6 changes: 6 additions & 0 deletions charts/tefca-viewer/templates/tests/serviceAccount.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{.Values.name}}
annotations:
eks.amazonaws.com/role-arn: {{.Values.tefcaViewerDBRoleArn}}
4 changes: 2 additions & 2 deletions charts/tefca-viewer/templates/tests/test-connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ spec:
image: busybox
command: ["wget"]
args: [
"{{.Release.Name}}-{{.Values.serviceName}}:{{ .Values.service.port}}/tefca-viewer"
"{{.Release.Name}}-{{.Values.serviceName}}:{{.Values.service.port}}/tefca-viewer"
]
restartPolicy: Never
restartPolicy: Never
7 changes: 7 additions & 0 deletions charts/tefca-viewer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,10 @@ service:
name: tefca-viewer
appName: tefca-viewer-app
serviceName: tefca-viewer-service
tefcaViewerDBRoleArn: placeholder-arn
jdbcDatabaseUrl: jdbc-placeholder-string
jdbcDatabaseUser: postgres
jdbcDatabasePassword: pw
#jdbc:postgresql://db:5432/tefca_db?user=postgres&password=pw&ssl=true
databaseConnectionString: jdbc-placeholder-string
#postgres://postgres:pw@db:5432/tefca_db

0 comments on commit f526b4e

Please sign in to comment.