diff --git a/Documentation/Helm-Charts/ceph-cluster-chart.md b/Documentation/Helm-Charts/ceph-cluster-chart.md index 57766a1b1..62f798656 100644 --- a/Documentation/Helm-Charts/ceph-cluster-chart.md +++ b/Documentation/Helm-Charts/ceph-cluster-chart.md @@ -89,10 +89,12 @@ The following table lists the configurable parameters of the rook-operator chart | `toolbox.affinity` | Toolbox affinity | `{}` | | `toolbox.containerSecurityContext` | Toolbox container security context | `{"capabilities":{"drop":["ALL"]},"runAsGroup":2016,"runAsNonRoot":true,"runAsUser":2016}` | | `toolbox.enabled` | Enable Ceph debugging pod deployment. See [toolbox](../Troubleshooting/ceph-toolbox.md) | `false` | -| `toolbox.image` | Toolbox image, defaults to the image used by the Ceph cluster | `nil` | +| `toolbox.image` | Toolbox image, superseded by `toolbox.repository` and `toolbox.tag` | the image used by the Ceph cluster | | `toolbox.labels` | Toolbox labels | `{}` | | `toolbox.priorityClassName` | Set the priority class for the toolbox if desired | `nil` | +| `toolbox.repository` | The repository from which to pull the toolbox image | `.Values.cephImage.repository` | | `toolbox.resources` | Toolbox resources | `{"limits":{"memory":"1Gi"},"requests":{"cpu":"100m","memory":"128Mi"}}` | +| `toolbox.tag` | The tag of the toolbox image | `.Values.cephImage.tag` | | `toolbox.tolerations` | Toolbox tolerations | `[]` | ### **Ceph Cluster Spec** diff --git a/deploy/charts/rook-ceph-cluster/templates/deployment.yaml b/deploy/charts/rook-ceph-cluster/templates/deployment.yaml index ff7bf8b53..6671e3757 100644 --- a/deploy/charts/rook-ceph-cluster/templates/deployment.yaml +++ b/deploy/charts/rook-ceph-cluster/templates/deployment.yaml @@ -36,7 +36,13 @@ spec: {{- end }} containers: - name: rook-ceph-tools - image: {{ .Values.toolbox.image | default (printf "%s:%s" .Values.cephImage.repository .Values.cephImage.tag) }} + {{- if or .Values.toolbox.repository .Values.toolbox.tag }} + image: "{{ .Values.toolbox.repository | default .Values.cephImage.repository }}:{{ .Values.toolbox.tag | default .Values.cephImage.tag }}" + {{- else if .Values.toolbox.image }} + image: {{ .Values.toolbox.image | quote }} + {{- else }} + image: "{{ .Values.cephImage.repository }}:{{ .Values.cephImage.tag }}" + {{- end }} command: - /bin/bash - -c diff --git a/deploy/charts/rook-ceph-cluster/values.yaml b/deploy/charts/rook-ceph-cluster/values.yaml index e25430ac3..3f709de28 100644 --- a/deploy/charts/rook-ceph-cluster/values.yaml +++ b/deploy/charts/rook-ceph-cluster/values.yaml @@ -24,7 +24,14 @@ configOverride: toolbox: # -- Enable Ceph debugging pod deployment. See [toolbox](../Troubleshooting/ceph-toolbox.md) enabled: false - # -- Toolbox image, defaults to the image used by the Ceph cluster + # -- The repository from which to pull the toolbox image + # @default -- `.Values.cephImage.repository` + repository: #quay.io/ceph/ceph + # -- The tag of the toolbox image + # @default -- `.Values.cephImage.tag` + tag: #v20.2.2 + # -- Toolbox image, superseded by `toolbox.repository` and `toolbox.tag` + # @default -- the image used by the Ceph cluster image: #quay.io/ceph/ceph:v20.2.2 # -- Toolbox tolerations tolerations: []