Updating charts to use common resource template
[oom.git] / kubernetes / policy / charts / pdp / templates / statefulset.yaml
index 5bc7b55..a3a8f6a 100644 (file)
@@ -59,7 +59,7 @@ spec:
         image: "{{ include "common.repository" . }}/{{ .Values.image }}"
         imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
         resources:
-{{ toYaml (pluck .Values.flavor .Values.resources| first) | indent 12 }}
+{{ include "common.resources" . | indent 12 }}
         ports:
         - containerPort: {{ .Values.service.externalPort }}
         {{- if eq .Values.liveness.enabled true }}