Skip to content

Commit

Permalink
chore: add initContainers (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidabbm authored Jul 18, 2024
1 parent b5c54a0 commit 4960ec5
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/lightdash/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,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: 1.3.1
version: 1.4.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
Expand Down
3 changes: 2 additions & 1 deletion charts/lightdash/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A Helm chart to deploy lightdash on kubernetes

![Version: 1.3.1](https://img.shields.io/badge/Version-1.3.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1121.0](https://img.shields.io/badge/AppVersion-0.1121.0-informational?style=flat-square)
![Version: 1.4.0](https://img.shields.io/badge/Version-1.4.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1121.0](https://img.shields.io/badge/AppVersion-0.1121.0-informational?style=flat-square)

## Prerequisites

Expand Down Expand Up @@ -90,6 +90,7 @@ If you don't want helm to manage this, you may wish to separately create a secre
| ingress.hosts[0].paths[0].path | string | `"/"` | |
| ingress.hosts[0].paths[0].pathType | string | `"ImplementationSpecific"` | |
| ingress.tls | list | `[]` | |
| initContainers | list | `[]` | |
| livenessProbe.initialDelaySeconds | int | `30` | |
| livenessProbe.periodSeconds | int | `30` | |
| livenessProbe.timeoutSeconds | int | `60` | |
Expand Down
4 changes: 4 additions & 0 deletions charts/lightdash/templates/backendDeployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ spec:
port: {{ .Values.service.port }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- if .Values.initContainers }}
initContainers:
{{- toYaml .Values.initContainers | nindent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/lightdash/templates/workerDeployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ spec:
port: {{ .Values.scheduler.port }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- if .Values.initContainers }}
initContainers:
{{- toYaml .Values.initContainers | nindent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
5 changes: 4 additions & 1 deletion charts/lightdash/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,12 @@ externalDatabase:
database: lightdash
port: 5432

## @param additional sidecar containers for the lightdash image
## @param additional main containers for the backend and worker deployments
extraContainers: []

## @param initContainers for the backend and worker deployments- these can be normal initContainers or side containers are just init containers with Always restart policy - docs: https://kubernetes.io/docs/concepts/workloads/pods/sidecar-containers/
initContainers: []

## @param additional k8s manifests to deploy with the helm chart
extraObjects: []

Expand Down

0 comments on commit 4960ec5

Please sign in to comment.