diff --git a/README.md b/README.md index f8250d7..bc5dffa 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Applications and libraries, provided by [Gamote](https://github.com/Gamote), ready to launch on Kubernetes using [Kubernetes Helm](https://github.com/helm/helm). -## TL;DR +## Usage ```bash $ helm repo add gamote https://gamote.github.io/charts @@ -11,6 +11,14 @@ $ helm search repo gamote $ helm install my-release gamote/ ``` +## Development + +1. Work on the `main` branch or create a new branch from `main` + > DO NOT WORK ON THE `gh-pages` BRANCH, that is automatically generated by the GitHub Action. +2. Update the chart +3. Bump the chart version in the `Chart.yaml` file +4. Push to `main` and the action will automatically deploy the chart to the Helm repository + ## Notes ### Commands diff --git a/charts/deployer/Chart.yaml b/charts/deployer/Chart.yaml index 6f315db..7eda3d8 100644 --- a/charts/deployer/Chart.yaml +++ b/charts/deployer/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.0.1 +version: 0.0.2 # 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 @@ -23,4 +23,4 @@ version: 0.0.1 # It is recommended to use it with quotes. # # * We don't have an application, so we'll just use the chart version. -appVersion: "0.0.1" +appVersion: "0.0.2" diff --git a/charts/deployer/templates/deployment.yaml b/charts/deployer/templates/deployment.yaml index b1c0c26..90c5493 100644 --- a/charts/deployer/templates/deployment.yaml +++ b/charts/deployer/templates/deployment.yaml @@ -58,15 +58,29 @@ spec: {{- if .Values.sidecars }} {{- toYaml .Values.sidecars | nindent 8 }} {{- end }} -# {{- with .Values.nodeSelector }} -# nodeSelector: -# {{- toYaml . | nindent 8 }} -# {{- end }} -# {{- with .Values.affinity }} -# affinity: -# {{- toYaml . | nindent 8 }} -# {{- end }} -# {{- with .Values.tolerations }} -# tolerations: -# {{- toYaml . | nindent 8 }} -# {{- end }} + {{- with .Values.topologySpreadConstraints }} + topologySpreadConstraints: + {{- range . }} + - maxSkew: {{ default $.Values.defaultTopologySpreadConstraints.maxSkew .maxSkew }} + topologyKey: {{ required "topologyKey is required!" .topologyKey }} + whenUnsatisfiable: {{ default $.Values.defaultTopologySpreadConstraints.whenUnsatisfiable .whenUnsatisfiable }} + labelSelector: + matchLabels: + {{- include "helpers.selectorLabels" $ | nindent 16 }} + {{- with .additionalLabels }} + {{- toYaml . | nindent 16 }} + {{- end }} + {{- end }} + {{- end }} + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }}