Files
Bishoy YoussefandBishoy Youssef 8e93db665c stable/concourse: separate worker, web deployments (#12920)
* stable/concourse: separate worker, web deployments

- Added .Values.Web.enabled and .Values.worker.enabled (with default to
true).
- if only .Values.web.enable is enabled: only web resources are going to
be created, as well as secrets namespace.
- if only .Values.worker.enable is enabled: only worker resources are going to
be created.
- moved the worker specific and web specific secrets each to a seprate
file and secrets object.
- added .Values.concourse.worker.tsa.port and utilised
.Values.concourse.worker.host in order to alow the user to set the
`CONCOURSE_TSA_HOST` easily.
- removed the template `concourse.concourse.fullname` as it is not used
anymore.
- bumped the chart version to 6.0.0, as this adds new ways to use the
chart.
- added the new variables to the README doc.

for the issue: helm/charts#11280

Signed-off-by: Taylor Silva <tsilva@pivotal.io>
Co-authored-by: Bishoy Youssef <byoussef@pivotal.io>
Signed-off-by: Taylor Silva <tsilva@pivotal.io>

* [stable/concourse] bumping chart version and updating the Readme

Signed-off-by: Taylor Silva <tsilva@pivotal.io>
Co-authored-by: Bishoy Youssef <byoussef@pivotal.io>

* Adds a required check yaml for having either the web or worker enabled

Signed-off-by: Bishoy Youssef <byoussef@pivotal.io>

* Adds required for concourse.worker.tsa in case of worker only deployments

Signed-off-by: Bishoy Youssef <byoussef@pivotal.io>

* updates readme

Signed-off-by: Bishoy Youssef <byoussef@pivotal.io>

* adds changelog file

Signed-off-by: Bishoy Youssef <byoussef@pivotal.io>

* Apply suggestions from code review

Signed-off-by: Bishoy Youssef <byoussef@pivotal.io>
2019-04-25 13:30:32 -07:00

21 lines
644 B
YAML

{{- if .Values.web.enabled -}}
{{- if and .Values.concourse.web.kubernetes.enabled .Values.concourse.web.kubernetes.createTeamNamespaces -}}
{{- range .Values.concourse.web.kubernetes.teams }}
---
apiVersion: v1
kind: Namespace
metadata:
{{- if $.Values.concourse.web.kubernetes.keepNamespaces }}
annotations:
"helm.sh/resource-policy": keep
{{- end }}
name: {{ template "concourse.namespacePrefix" $ }}{{ . }}
labels:
app: {{ template "concourse.web.fullname" $ }}
chart: "{{ $.Chart.Name }}-{{ $.Chart.Version }}"
release: "{{ $.Release.Name }}"
heritage: "{{ $.Release.Service }}"
{{- end }}
{{- end }}
{{- end -}}