Skip to content

Commit

Permalink
create configmap for configuration of ogc-feature (#25)
Browse files Browse the repository at this point in the history
* create configmap for configuration
  • Loading branch information
jeanmi151 authored Sep 12, 2024
1 parent b5743f0 commit 22e8550
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 3 deletions.
2 changes: 1 addition & 1 deletion opendata-ogc-features/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ description: Helm chart for data-api (opendata-ogc-features)

type: application

version: 0.0.3
version: 0.0.4

appVersion: "1.0.0"
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{{- if .Values.ogcFeatConfig }}
apiVersion: v1
kind: ConfigMap
metadata:
labels:
app.kubernetes.io/component: opendata-ogc-features
name: ogc-feat-config-cm
data:
application.yaml: |
{{- .Values.ogcFeatConfig | nindent 4 }}
{{- end }}
17 changes: 15 additions & 2 deletions opendata-ogc-features/templates/opendata-ogc-features-depl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Deployment
metadata:
creationTimestamp: null
labels:
app.mel.fr/name: opendata-ogc-features
app.kubernetes.io/name: opendata-ogc-features
name: opendata-ogc-features-depl
spec:
replicas: {{ .Values.replicaCount }}
Expand All @@ -27,6 +27,10 @@ spec:
{{- with .Values.environment }}
{{- . | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.ogcFeatConfig }}
- name: JAVA_TOOL_OPTIONS
value: "-Ddataapi.configdir=/etc"
{{- end }}
livenessProbe:
httpGet:
path: {{ .Values.livenessProbeHttpUrl }}
Expand All @@ -40,7 +44,16 @@ spec:
port: 8081
initialDelaySeconds: 60
periodSeconds: 10
{{- if .Values.ogcFeatConfig }}
volumeMounts:
- mountPath: /etc/data-api/
name: ogc-feat-config
volumes:
- name: ogc-feat-config
configMap:
name: ogc-feat-config-cm
{{- end }}
{{- if .Values.tolerations }}
tolerations:
{{- .Values.tolerations | toYaml | nindent 6 }}
{{- end }}
{{- end }}
1 change: 1 addition & 0 deletions opendata-ogc-features/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ environment:
key: password
name: georchestra-database-geodata-secret
tolerations: []
ogcFeatConfig: {}

0 comments on commit 22e8550

Please sign in to comment.