Skip to content

Commit

Permalink
Merge pull request #336 from nanderson94/master
Browse files Browse the repository at this point in the history
Add support for deploymentAnnotations
  • Loading branch information
Rui Yang authored Aug 30, 2023
2 parents 6ee720c + b2e241f commit e46d5f7
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ The following table lists the configurable parameters of the Concourse chart and
| `web.ingress.tls` | Concourse Web Ingress TLS configuration | `[]` |
| `web.keySecretsPath` | Specify the mount directory of the web keys secrets | `/concourse-keys` |
| `web.labels`| Additional labels to be added to the web deployment `metadata.labels` | `{}` |
| `web.deploymentAnnotations` | Additional annotations to be added to the web deployment `metadata.annotations` | `{}` |
| `web.livenessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded | `5` |
| `web.livenessProbe.httpGet.path` | Path to access on the HTTP server when performing the healthcheck | `/api/v1/info` |
| `web.livenessProbe.httpGet.port` | Name or number of the port to access on the container | `atc` |
Expand Down Expand Up @@ -261,6 +262,7 @@ The following table lists the configurable parameters of the Concourse chart and
| `worker.hardAntiAffinity` | Should the workers be forced (as opposed to preferred) to be on different nodes? | `false` |
| `worker.hardAntiAffinityLabels` | Set of labels used for hard anti affinity rule | `{}` |
| `worker.keySecretsPath` | Specify the mount directory of the worker keys secrets | `/concourse-keys` |
| `worker.deploymentAnnotations` | Additional annotations to be added to the worker deployment `metadata.annotations` | `{}` |
| `worker.certsPath` | Specify the path for additional worker certificates | `/etc/ssl/certs` |
| `worker.kind` | Choose between `StatefulSet` to preserve state or `Deployment` for ephemeral workers | `StatefulSet` |
| `worker.livenessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded | `5` |
Expand Down
4 changes: 4 additions & 0 deletions templates/web-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ apiVersion: {{ template "concourse.deployment.apiVersion" . }}
kind: Deployment
metadata:
name: {{ template "concourse.web.fullname" . }}
{{- if .Values.web.deploymentAnnotations }}
annotations:
{{ toYaml .Values.web.deploymentAnnotations | indent 4 }}
{{- end }}
labels:
app: {{ template "concourse.web.fullname" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
Expand Down
4 changes: 4 additions & 0 deletions templates/worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ apiVersion: {{ template "concourse.deployment.apiVersion" . }}
kind: Deployment
metadata:
name: {{ template "concourse.worker.fullname" . }}
{{- if .Values.worker.deploymentAnnotations }}
annotations:
{{ toYaml .Values.worker.deploymentAnnotations | indent 4 }}
{{- end }}
labels:
app: {{ template "concourse.worker.fullname" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
Expand Down
22 changes: 22 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2163,6 +2163,17 @@ web:
##
labels: {}

## Additional Annotations to be added to the web deployment
## Per Kubernetes spec, the values of each annotation must be a string.
##
## Example:
## key1: "value1"
## key2: "value2"
##
## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
##
deploymentAnnotations: {}

## Additional Labels to be added to the web pods.
##
## Example:
Expand Down Expand Up @@ -2491,6 +2502,17 @@ worker:
##
additionalVolumeMounts: []

## Additional Annotations to be added to the web deployment
## Per Kubernetes spec, the values of each annotation must be a string.
##
## Example:
## key1: "value1"
## key2: "value2"
##
## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
##
deploymentAnnotations: {}

## Additional Labels to be added to the worker pods.
##
## Example:
Expand Down

0 comments on commit e46d5f7

Please sign in to comment.