diff --git a/charts/neighborhoods-apps/CHANGELOG.md b/charts/neighborhoods-apps/CHANGELOG.md index 0490747..9219bac 100644 --- a/charts/neighborhoods-apps/CHANGELOG.md +++ b/charts/neighborhoods-apps/CHANGELOG.md @@ -1,4 +1,6 @@ # Changelog +## 2.11.4 +- add service account ## 2.11.3 - Added chart.chart ## 2.11.2 diff --git a/charts/neighborhoods-apps/Chart.yaml b/charts/neighborhoods-apps/Chart.yaml index 812cebf..eaa0bfa 100644 --- a/charts/neighborhoods-apps/Chart.yaml +++ b/charts/neighborhoods-apps/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 description: Neighborhoods standard chart setup with Nginx fronting the HTTP deployment name: neighborhoods-app -version: 2.11.3 +version: 2.11.4 kubeVersion: ">=1.23.0-0" home: https://github.com/neighborhoods/neighborhoods-chart sources: diff --git a/charts/neighborhoods-apps/templates/_common.tpl b/charts/neighborhoods-apps/templates/_common.tpl index a1c517d..032d798 100644 --- a/charts/neighborhoods-apps/templates/_common.tpl +++ b/charts/neighborhoods-apps/templates/_common.tpl @@ -37,6 +37,25 @@ Create chart name and version as used by the chart label. {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} {{- end }} +{{/* +Selector labels +*/}} +{{- define "chart.selectorLabels" -}} +app.kubernetes.io/name: {{ include "chart.name" . }} +app.kubernetes.io/instance: {{ .Release.Name }} +{{- end }} + +{{/* +Create the name of the service account to use +*/}} +{{- define "chart.serviceAccountName" -}} +{{- if .Values.serviceAccount.create }} +{{- default (include "chart.fullname" .) .Values.serviceAccount.name }} +{{- else }} +{{- default "default" .Values.serviceAccount.name }} +{{- end }} +{{- end }} + {{/* Common labels */}}