adding imagePullSecret to freeradius template
This will allow pulling the image from a secure repository.
Change-Id: I43c85e5fa2888b92bf052ec3cb1b3987a0b5b90a
diff --git a/freeradius/Chart.yaml b/freeradius/Chart.yaml
index b95d9ec..51b88a4 100644
--- a/freeradius/Chart.yaml
+++ b/freeradius/Chart.yaml
@@ -14,7 +14,7 @@
---
apiVersion: "v1"
name: "freeradius"
-version: "1.0.2"
+version: "1.0.3"
description: "A Helm chart to deploy an example RADIUS server"
keywords:
- "onf"
diff --git a/freeradius/templates/freeradius-deploy.yaml b/freeradius/templates/freeradius-deploy.yaml
index 5b0d07e..e325998 100644
--- a/freeradius/templates/freeradius-deploy.yaml
+++ b/freeradius/templates/freeradius-deploy.yaml
@@ -31,6 +31,10 @@
release: "{{ .Release.Name }}"
spec:
serviceAccountName: {{ tpl .Values.serviceaccount . }}
+ {{- with .Values.images.radius.pullSecrets }}
+ imagePullSecrets:
+ {{- toYaml . | nindent 8 }}
+ {{- end }}
containers:
- name: radius
image: {{ tpl .Values.images.radius.registry . }}{{ tpl .Values.images.radius.repository . }}:{{ tpl .Values.images.radius.tag . }}
diff --git a/freeradius/values.yaml b/freeradius/values.yaml
index 9608a23..ca30d34 100644
--- a/freeradius/values.yaml
+++ b/freeradius/values.yaml
@@ -26,3 +26,6 @@
repository: "freeradius/freeradius-server"
tag: "{{ .Chart.AppVersion }}"
pullPolicy: "{{ .Values.defaults.image_pullPolicy }}"
+# pullSecrets:
+# - name: regcred
+