diff --git a/charts/data-api/Chart.yaml b/charts/data-api/Chart.yaml index 6328d70..0919bd3 100644 --- a/charts/data-api/Chart.yaml +++ b/charts/data-api/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.9.0 +version: 1.0.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/data-api/templates/configmap.yml b/charts/data-api/templates/configmap.yml index 89bd6a5..cc925e3 100644 --- a/charts/data-api/templates/configmap.yml +++ b/charts/data-api/templates/configmap.yml @@ -1,3 +1,4 @@ +{{- if .Values.configmap.enabled -}} apiVersion: v1 kind: ConfigMap metadata: @@ -7,4 +8,5 @@ metadata: data: {{- range $key, $val := .Values.configmap.data }} {{$key}}: {{ $val | quote }} - {{- end }} \ No newline at end of file + {{- end }} +{{- end }} \ No newline at end of file diff --git a/charts/data-api/templates/deployment.yml b/charts/data-api/templates/deployment.yml index fc15e42..cfc24d3 100644 --- a/charts/data-api/templates/deployment.yml +++ b/charts/data-api/templates/deployment.yml @@ -15,7 +15,7 @@ spec: type: RollingUpdate rollingUpdate: maxSurge: 1 - maxUnavailable: 0 + maxUnavailable: 1 template: metadata: {{- with .Values.podAnnotations }} @@ -41,17 +41,15 @@ spec: - name: http containerPort: 5000 protocol: TCP - # livenessProbe: - # httpGet: - # path: / - # port: http - # readinessProbe: - # httpGet: - # path: / - # port: http envFrom: + {{- if .Values.configmap.enabled }} - configMapRef: name: {{ .Release.Name }}-config + {{- end }} + {{- if .Values.existingSecret }} + - secretRef: + name: {{ .Values.existingSecret }} + {{- end }} resources: {{- toYaml .Values.resources | nindent 12 }} {{- with .Values.nodeSelector }} diff --git a/charts/data-api/values.yaml b/charts/data-api/values.yaml index f38c295..c6489f1 100644 --- a/charts/data-api/values.yaml +++ b/charts/data-api/values.yaml @@ -69,4 +69,7 @@ tolerations: [] affinity: {} configmap: + enabled: false data: [] + +existingSecret: \ No newline at end of file