mirror of
https://github.com/GothenburgBitFactory/taskchampion-sync-server.git
synced 2026-07-16 16:35:41 +00:00
Compare commits
1 Commits
taskchampi
...
taskchampi
| Author | SHA1 | Date | |
|---|---|---|---|
| 3f78f2d4c5 |
@ -2,7 +2,7 @@ apiVersion: v2
|
|||||||
name: taskchampion-sync-server
|
name: taskchampion-sync-server
|
||||||
description: A Helm chart for deploying TaskChampion Sync Server on Kubernetes
|
description: A Helm chart for deploying TaskChampion Sync Server on Kubernetes
|
||||||
type: application
|
type: application
|
||||||
version: 0.2.0
|
version: 0.2.1
|
||||||
appVersion: "0.7.0"
|
appVersion: "0.7.0"
|
||||||
keywords:
|
keywords:
|
||||||
- taskchampion
|
- taskchampion
|
||||||
|
|||||||
@ -93,4 +93,8 @@ app.kubernetes.io/instance: {{ .Release.Name }}
|
|||||||
|
|
||||||
{{- define "taskchampion-sync-server.postgres-secret-name" -}}
|
{{- define "taskchampion-sync-server.postgres-secret-name" -}}
|
||||||
{{- printf "%s-connection" .Release.Name -}}
|
{{- printf "%s-connection" .Release.Name -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- define "taskchampion-sync-server.serviceAccountName" -}}
|
||||||
|
{{- default (include "taskchampion-sync-server.fullname" .) .Values.serviceAccount.name -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
@ -23,6 +23,9 @@ spec:
|
|||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.serviceAccount.create }}
|
||||||
|
serviceAccountName: {{ include "taskchampion-sync-server.serviceAccountName" . }}
|
||||||
|
{{- end }}
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.securityContext | nindent 8 }}
|
{{- toYaml .Values.securityContext | nindent 8 }}
|
||||||
{{- if and .Values.postgres.enabled .Values.postgres.initContainer.enabled }}
|
{{- if and .Values.postgres.enabled .Values.postgres.initContainer.enabled }}
|
||||||
|
|||||||
@ -0,0 +1,9 @@
|
|||||||
|
{{- if .Values.serviceAccount.create -}}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: {{ include "taskchampion-sync-server.serviceAccountName" . }}
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
{{- include "taskchampion-sync-server.labels" . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
@ -96,6 +96,16 @@ replicas:
|
|||||||
enabled: false
|
enabled: false
|
||||||
count: 1
|
count: 1
|
||||||
|
|
||||||
|
# ServiceAccount configuration
|
||||||
|
# The app does not access the Kubernetes API, so no RBAC permissions are needed.
|
||||||
|
# A dedicated ServiceAccount is created to give the pod a stable identity
|
||||||
|
# for network policies, pod security, or future RBAC.
|
||||||
|
serviceAccount:
|
||||||
|
# create specifies whether a ServiceAccount should be created
|
||||||
|
create: true
|
||||||
|
# name sets the ServiceAccount name
|
||||||
|
name: taskchampion-sync-server
|
||||||
|
|
||||||
# Security context for the pod
|
# Security context for the pod
|
||||||
# NOTE: runAsUser and runAsGroup are intentionally unset.
|
# NOTE: runAsUser and runAsGroup are intentionally unset.
|
||||||
# The Docker entrypoint requires root to chown the data directory and then
|
# The Docker entrypoint requires root to chown the data directory and then
|
||||||
|
|||||||
Reference in New Issue
Block a user