Ceph-rgw: make configmap names to be driven via chart values

This to avoid configmap names conflicts with ther ceph charts

Change-Id: I73906fe69dd729fef0299149350caf021aab07e5
This commit is contained in:
Chinasubbareddy M 2018-09-04 12:51:22 -05:00
parent d119744c6e
commit b39e27891b
4 changed files with 7 additions and 6 deletions

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/}}
{{- if and .Values.manifests.configmap_bin .Values.deployment.ceph }}
{{- if or (.Values.deployment.rgw_keystone_user_and_endpoints) (.Values.deployment.ceph) }}
{{- $envAll := . }}
---
apiVersion: v1
@ -38,7 +38,5 @@ data:
{{ tuple "bin/_ceph-rgw-storage-init.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
ceph-admin-keyring.sh: |
{{ tuple "bin/_ceph-admin-keyring.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
rgw-s3-admin.sh: |
{{ tuple "bin/rgw/_rgw-s3-admin.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
{{- end }}

View File

@ -20,7 +20,7 @@ limitations under the License.
apiVersion: v1
kind: ConfigMap
metadata:
name: ceph-templates
name: {{ printf "%s-%s" $envAll.Release.Name "ceph-templates" | quote }}
data:
bootstrap.keyring.rgw: |
{{ .Values.conf.templates.keyring.bootstrap.rgw | indent 4 }}

View File

@ -121,11 +121,11 @@ spec:
emptyDir: {}
- name: ceph-etc
configMap:
name: ceph-etc
name: {{ .Values.ceph_client.configmap }}
defaultMode: 0444
- name: ceph-templates
configMap:
name: ceph-templates
name: {{ printf "%s-%s" $envAll.Release.Name "ceph-templates" | quote }}
defaultMode: 0444
- name: ceph-keyring
secret:

View File

@ -111,6 +111,9 @@ pod:
memory: "1024Mi"
cpu: "2000m"
ceph_client:
configmap: ceph-etc
secrets:
keyrings:
mon: ceph-mon-keyring