VOL-3139 - add name helper template
- includes the {{ .Release.Name }} be default
- can be overriden with
- nameOverride: override the {{ .Release.Name }}-{{ .Chart.Name }}
porition
- fullNameOverride: override everything
Change-Id: I0e1dbccba8f1e484e13e6f9ae43ea35ce97aac4f
diff --git a/voltha-adapter-openonu/templates/openonu-py-statefulset.yaml b/voltha-adapter-openonu/templates/openonu-py-statefulset.yaml
index bba823b..adf3ca4 100644
--- a/voltha-adapter-openonu/templates/openonu-py-statefulset.yaml
+++ b/voltha-adapter-openonu/templates/openonu-py-statefulset.yaml
@@ -16,7 +16,7 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
- name: adapter-open-onu
+ name: "{{ template "fullname" . }}"
namespace: {{ .Release.Namespace }}
{{- if or (hasKey .Values "extra_deployment_labels") (hasKey .Values "openonu_deployment_labels") }}
labels:
@@ -86,6 +86,10 @@
--log_level={{ tpl .Values.adapter_open_onu.log_level . | upper }}
--totalReplicas={{ .Values.replicas.adapter_open_onu }}
--currentReplica=$REPLICA_ID"
+ {{- if .Values.securityContext.enabled }}
+ securityContext:
+ allowPrivilegeEscalation: false
+ {{- end }}
readinessProbe:
httpGet:
path: /readz