Skip to content

Commit

Permalink
feat(Cleaning): Add new workflow for cleaning service module on build
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiodmota committed Sep 19, 2023
1 parent fdf6762 commit d330f99
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,7 @@ Create name of application secret
{{- printf "%s-application" (include "bpdm.fullname" .) }}
{{- end }}

{/*
Determine postgres service/host name to connect to
*/}}
{{- define "bpdm.postgresDependency" -}}
{{- include "includeWithPostgresContext" (list $ "postgresql.primary.fullname") }}
{{- end }}}



{{/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@ data:
deployment.yml: |-
# Place for putting standard deployment configuration
# which can be overwritten by external.yml
# bpdm:
# datasource:
# host: {{ include "bpdm.postgresDependency" . }}
# pool:
# base-url: {{include "bpdm-bridge.poolServiceName" .}}
# gate:
# base-url: {{include "bpdm-bridge.gateServiceName" .}}
external.yml: |-
# External properties for overwriting application config
{{- if .Values.applicationConfig }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,40 +58,40 @@ spec:
value: {{.Values.springProfiles | join "," }}
- name: SPRING_CONFIG_IMPORT
value: "/etc/conf/deployment.yml,/etc/conf/external.yml,/etc/conf/secrets.yml"
ports:
- name: http
containerPort: 8084
protocol: TCP
# @url: https://cloud.google.com/blog/products/containers-kubernetes/kubernetes-best-practices-setting-up-health-checks-with-readiness-and-liveness-probes
livenessProbe:
{{- toYaml .Values.livenessProbe | nindent 12}}
readinessProbe:
{{- toYaml .Values.readinessProbe | nindent 12}}
startupProbe:
{{- toYaml .Values.startupProbe | nindent 12}}
resources:
{{- toYaml .Values.resources | nindent 12}}
volumeMounts:
- mountPath: /etc/conf
name: config
readOnly: true
{{- with .Values.nodeSelector}}
nodeSelector:
{{- toYaml . | nindent 8}}
{{- end}}
{{- with .Values.affinity}}
affinity:
{{- toYaml . | nindent 8}}
{{- end}}
{{- with .Values.tolerations}}
tolerations:
{{- toYaml . | nindent 8}}
{{- end}}
volumes:
- name: config
projected:
sources:
- configMap:
name: {{include "bpdm.fullname" .}}
- secret:
name: {{include "bpdm.fullname" .}}
ports:
- name: http
containerPort: 8084
protocol: TCP
# @url: https://cloud.google.com/blog/products/containers-kubernetes/kubernetes-best-practices-setting-up-health-checks-with-readiness-and-liveness-probes
livenessProbe:
{{- toYaml .Values.livenessProbe | nindent 12}}
readinessProbe:
{{- toYaml .Values.readinessProbe | nindent 12}}
startupProbe:
{{- toYaml .Values.startupProbe | nindent 12}}
resources:
{{- toYaml .Values.resources | nindent 12}}
volumeMounts:
- mountPath: /etc/conf
name: config
readOnly: true
{{- with .Values.nodeSelector}}
nodeSelector:
{{- toYaml . | nindent 8}}
{{- end}}
{{- with .Values.affinity}}
affinity:
{{- toYaml . | nindent 8}}
{{- end}}
{{- with .Values.tolerations}}
tolerations:
{{- toYaml . | nindent 8}}
{{- end}}
volumes:
- name: config
projected:
sources:
- configMap:
name: {{include "bpdm.fullname" .}}
- secret:
name: {{include "bpdm.fullname" .}}

0 comments on commit d330f99

Please sign in to comment.