Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions deploy/charts/bitwarden-sdk-server/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ helm.sh/chart: {{ include "bitwarden-sdk-server.chart" . }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.commonLabels }}
{{ toYaml .Values.commonLabels }}
{{- end }}
{{- end }}

{{/*
Expand Down
6 changes: 6 additions & 0 deletions deploy/charts/bitwarden-sdk-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ metadata:
{{- end }}
labels:
{{- include "bitwarden-sdk-server.labels" . | nindent 4 }}
{{- with .Values.deploymentLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
Expand All @@ -22,6 +25,9 @@ spec:
{{- end }}
labels:
{{- include "bitwarden-sdk-server.selectorLabels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
Expand Down
7 changes: 7 additions & 0 deletions deploy/charts/bitwarden-sdk-server/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ metadata:
namespace: {{ template "bitwarden-sdk-server.namespace" . }}
labels:
{{- include "bitwarden-sdk-server.labels" . | nindent 4 }}
{{- with .Values.service.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ metadata:
namespace: {{ template "bitwarden-sdk-server.namespace" . }}
labels:
{{- include "bitwarden-sdk-server.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
Expand Down
12 changes: 12 additions & 0 deletions deploy/charts/bitwarden-sdk-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,14 @@ extraEnv: {}
# - name: HTTP_PROXY
# value: "http://example.com:8080/"

# Additional labels to add to all chart resources
commonLabels: {}

serviceAccount:
# Specifies whether a service account should be created
create: true
# Labels to add to the service account
labels: {}
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
Expand All @@ -50,6 +55,9 @@ podDnsConfig: {}
# value: "2"
# - name: edns0

podLabels: {}
deploymentLabels: {}

podAnnotations: {}
deploymentAnnotations: {}

Expand All @@ -67,6 +75,10 @@ securityContext: {}
service:
type: ClusterIP
port: 9998
# Labels to add to the service
labels: {}
# Annotations to add to the service
annotations: {}

ingress:
enabled: false
Expand Down