From 50c8c7a7f7d75e61ad5c3cbe9f2e72915f77b3ba Mon Sep 17 00:00:00 2001 From: "n.fraison" Date: Thu, 8 Jul 2021 10:25:33 +0200 Subject: [PATCH] ceph: add image pull secrets option on new helm cluster Allow to specify imagePullSecrets to pull operator/ceph images from private registry Signed-off-by: n.fraison --- .../charts/rook-ceph-cluster/templates/serviceaccount.yaml | 3 +++ cluster/charts/rook-ceph-cluster/values.yaml | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/cluster/charts/rook-ceph-cluster/templates/serviceaccount.yaml b/cluster/charts/rook-ceph-cluster/templates/serviceaccount.yaml index 25c2b2dac..cc8724de9 100644 --- a/cluster/charts/rook-ceph-cluster/templates/serviceaccount.yaml +++ b/cluster/charts/rook-ceph-cluster/templates/serviceaccount.yaml @@ -4,14 +4,17 @@ apiVersion: v1 kind: ServiceAccount metadata: name: rook-ceph-osd +{{ template "imagePullSecrets" . }} --- apiVersion: v1 kind: ServiceAccount metadata: name: rook-ceph-mgr +{{ template "imagePullSecrets" . }} --- apiVersion: v1 kind: ServiceAccount metadata: name: rook-ceph-cmd-reporter +{{ template "imagePullSecrets" . }} {{- end }} diff --git a/cluster/charts/rook-ceph-cluster/values.yaml b/cluster/charts/rook-ceph-cluster/values.yaml index 55c229856..c07f730d8 100644 --- a/cluster/charts/rook-ceph-cluster/values.yaml +++ b/cluster/charts/rook-ceph-cluster/values.yaml @@ -29,6 +29,10 @@ monitoring: enabled: false rulesNamespaceOverride: +# imagePullSecrets option allow to pull docker images from private docker registry. Option will be passed to all service accounts. +# imagePullSecrets: +# - name: my-registry-secret + # All values below are taken from the CephCluster CRD # More information can be found at [Ceph Cluster CRD](/Documentation/ceph-cluster-crd.md) cephClusterSpec: