monitor-armada-app/monitor-helm/files/0012-Add-imagePullSecrets.patch
Angie Wang 56e309f772 Add missing imagePullSecrets overrides for monitor app
Clean up the Add-imagePullSecrets.patch to remove redundant
imagePullSecrets.

Update manifest with correct imagePullSecrets overrides in
order to allow stx-monitor to pull images from local docker
registry on each node.

stx-monitor app applied successfully and verified that each
running pod has the following in its spec:
imagePullSecrets:
  - name: default-registry-key

Change-Id: I330004bd44b255a46e2d1fb29ada63dbcd46e881
Closes-Bug: 1860132
Signed-off-by: Angie Wang <angie.wang@windriver.com>
2020-01-24 10:49:33 -05:00

36 lines
1.3 KiB
Diff

From 1f506385234b0f1ef088afdecb6002b3e9c84305 Mon Sep 17 00:00:00 2001
From: Angie Wang <angie.wang@windriver.com>
Date: Thu, 23 Jan 2020 14:37:40 -0500
Subject: [PATCH 1/1] Add imagePullSecrets
Add imagePullSecrets for the missing chart.
---
stable/metricbeat/templates/serviceaccount.yaml | 2 ++
stable/metricbeat/values.yaml | 2 ++
2 files changed, 4 insertions(+)
diff --git a/stable/metricbeat/templates/serviceaccount.yaml b/stable/metricbeat/templates/serviceaccount.yaml
index c53fc5a..c2378ec 100644
--- a/stable/metricbeat/templates/serviceaccount.yaml
+++ b/stable/metricbeat/templates/serviceaccount.yaml
@@ -8,4 +8,6 @@ metadata:
chart: {{ template "metricbeat.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
+imagePullSecrets:
+{{ toYaml .Values.serviceAccount.imagePullSecrets | indent 2 }}
{{- end -}}
diff --git a/stable/metricbeat/values.yaml b/stable/metricbeat/values.yaml
index b59c428..a784e7a 100644
--- a/stable/metricbeat/values.yaml
+++ b/stable/metricbeat/values.yaml
@@ -167,3 +167,5 @@ serviceAccount:
# The name of the ServiceAccount to use.
# If not set and create is true, a name is generated using the fullname template
name:
+ # Reference to one or more secrets to be used when pulling images
+ imagePullSecrets: []
--
1.8.3.1