@@ -3,9 +3,12 @@ apiVersion: apps/v1
33kind : Deployment
44metadata :
55 name : {{ include "infrahub-helm.fullname" . }}-infrahub-server
6+ namespace : " {{ .Release.Namespace }}"
67 labels :
78 service : infrahub-server
89 {{- include "infrahub-helm.labels" . | nindent 4 }}
10+ annotations :
11+ {{- include "infrahub-helm.annotations" . | nindent 4 }}
912spec :
1013 replicas : {{ .Values.infrahubServer.replicas | default 1 }}
1114 selector :
2730 {{- with .Values.infrahubServer.runtimeClassName }}
2831 runtimeClassName : {{ . }}
2932 {{- end }}
33+ {{- with .Values.infrahubServer.podSecurityContext }}
34+ securityContext : {{- toYaml . | nindent 8 }}
35+ {{- end }}
3036 containers :
3137 - args : {{- toYaml .Values.infrahubServer.infrahubServer.args | nindent 12 }}
3238 env :
6167 name : {{ quote .name }}
6268 {{- end }}
6369 {{- end }}
64- resources : {}
70+ {{- with .Values.infrahubServer.resources }}
71+ resources : {{- toYaml . | nindent 12 }}
72+ {{- end }}
73+ {{- with .Values.infrahubServer.infrahubServer.securityContext }}
74+ securityContext : {{- toYaml . | nindent 12 }}
75+ {{- end }}
6576 tty : true
6677 volumeMounts :
6778 - mountPath : /opt/infrahub/storage
@@ -82,9 +93,12 @@ apiVersion: v1
8293kind : Service
8394metadata :
8495 name : {{ include "infrahub-helm.fullname" . }}-infrahub-server
96+ namespace : " {{ .Release.Namespace }}"
8597 labels :
8698 service : infrahub-server
8799 {{- include "infrahub-helm.labels" . | nindent 4 }}
100+ annotations :
101+ {{- include "infrahub-helm.annotations" . | nindent 4 }}
88102spec :
89103 type : {{ .Values.infrahubServer.type }}
90104 selector :
@@ -99,9 +113,12 @@ apiVersion: v1
99113kind : PersistentVolumeClaim
100114metadata :
101115 name : {{ include "infrahub-helm.fullname" . }}-infrahub-server-storage-data
116+ namespace : " {{ .Release.Namespace }}"
102117 labels :
103118 service : infrahub-server-storage-data
104119 {{- include "infrahub-helm.labels" . | nindent 4 }}
120+ annotations :
121+ {{- include "infrahub-helm.annotations" . | nindent 4 }}
105122spec :
106123 accessModes :
107124 - {{ .Values.infrahubServer.persistence.accessMode }}
0 commit comments