Ceph-storage-init : make configmap and secret names to be driven via chart values
This is make ceph configmap and admin keyring secret names using in storage init scripts to be read from chart values as we may have two ceph clusters gets activated in one namespace and each ceph clsuter will have its own configmap and admin secret names. Change-Id: I84d94f3ac21e602c50619e456ff327ae1da53622
This commit is contained in:
parent
07c95b04b0
commit
b2714cb111
@ -207,7 +207,7 @@ spec:
|
|||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
- name: ceph-etc
|
- name: ceph-etc
|
||||||
configMap:
|
configMap:
|
||||||
name: ceph-etc
|
name: {{ .Values.ceph_client.configmap }}
|
||||||
defaultMode: 0444
|
defaultMode: 0444
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{- if eq .Values.conf.cinder.DEFAULT.backup_driver "cinder.backup.drivers.ceph" }}
|
{{- if eq .Values.conf.cinder.DEFAULT.backup_driver "cinder.backup.drivers.ceph" }}
|
||||||
|
@ -167,7 +167,7 @@ spec:
|
|||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
- name: ceph-etc
|
- name: ceph-etc
|
||||||
configMap:
|
configMap:
|
||||||
name: ceph-etc
|
name: {{ .Values.ceph_client.configmap }}
|
||||||
defaultMode: 0444
|
defaultMode: 0444
|
||||||
- name: ceph-keyring
|
- name: ceph-keyring
|
||||||
secret:
|
secret:
|
||||||
|
@ -155,7 +155,7 @@ spec:
|
|||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
- name: ceph-etc
|
- name: ceph-etc
|
||||||
configMap:
|
configMap:
|
||||||
name: ceph-etc
|
name: {{ .Values.ceph_client.configmap }}
|
||||||
defaultMode: 0444
|
defaultMode: 0444
|
||||||
{{- if .Values.backup.external_ceph_rbd.enabled }}
|
{{- if .Values.backup.external_ceph_rbd.enabled }}
|
||||||
- name: cinder-etc
|
- name: cinder-etc
|
||||||
@ -166,7 +166,7 @@ spec:
|
|||||||
{{- if empty .Values.conf.ceph.admin_keyring }}
|
{{- if empty .Values.conf.ceph.admin_keyring }}
|
||||||
- name: ceph-keyring
|
- name: ceph-keyring
|
||||||
secret:
|
secret:
|
||||||
secretName: pvc-ceph-client-key
|
secretName: {{ .Values.ceph_client.user_secret_name }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -141,12 +141,12 @@ spec:
|
|||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
- name: ceph-etc
|
- name: ceph-etc
|
||||||
configMap:
|
configMap:
|
||||||
name: ceph-etc
|
name: {{ .Values.ceph_client.configmap }}
|
||||||
defaultMode: 0444
|
defaultMode: 0444
|
||||||
{{- if empty .Values.conf.ceph.admin_keyring }}
|
{{- if empty .Values.conf.ceph.admin_keyring }}
|
||||||
- name: ceph-keyring
|
- name: ceph-keyring
|
||||||
secret:
|
secret:
|
||||||
secretName: pvc-ceph-client-key
|
secretName: {{ .Values.ceph_client.user_secret_name }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -270,6 +270,10 @@ network:
|
|||||||
enabled: false
|
enabled: false
|
||||||
port: 30877
|
port: 30877
|
||||||
|
|
||||||
|
ceph_client:
|
||||||
|
configmap: ceph-etc
|
||||||
|
user_secret_name: pvc-ceph-client-key
|
||||||
|
|
||||||
conf:
|
conf:
|
||||||
paste:
|
paste:
|
||||||
composite:osapi_volume:
|
composite:osapi_volume:
|
||||||
|
@ -173,7 +173,7 @@ spec:
|
|||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
- name: ceph-etc
|
- name: ceph-etc
|
||||||
configMap:
|
configMap:
|
||||||
name: ceph-etc
|
name: {{ .Values.ceph_client.configmap }}
|
||||||
defaultMode: 0444
|
defaultMode: 0444
|
||||||
- name: ceph-keyring
|
- name: ceph-keyring
|
||||||
secret:
|
secret:
|
||||||
|
@ -156,12 +156,12 @@ spec:
|
|||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
- name: ceph-etc
|
- name: ceph-etc
|
||||||
configMap:
|
configMap:
|
||||||
name: ceph-etc
|
name: {{ .Values.ceph_client.configmap }}
|
||||||
defaultMode: 0444
|
defaultMode: 0444
|
||||||
{{- if empty .Values.conf.ceph.admin_keyring }}
|
{{- if empty .Values.conf.ceph.admin_keyring }}
|
||||||
- name: ceph-keyring
|
- name: ceph-keyring
|
||||||
secret:
|
secret:
|
||||||
secretName: pvc-ceph-client-key
|
secretName: {{ .Values.ceph_client.user_secret_name }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{- if eq .Values.storage "pvc" }}
|
{{- if eq .Values.storage "pvc" }}
|
||||||
|
@ -79,6 +79,10 @@ bootstrap:
|
|||||||
hypervisor_type: "qemu"
|
hypervisor_type: "qemu"
|
||||||
os_distro: "cirros"
|
os_distro: "cirros"
|
||||||
|
|
||||||
|
ceph_client:
|
||||||
|
configmap: ceph-etc
|
||||||
|
user_secret_name: pvc-ceph-client-key
|
||||||
|
|
||||||
conf:
|
conf:
|
||||||
rally_tests:
|
rally_tests:
|
||||||
run_tempest: false
|
run_tempest: false
|
||||||
|
@ -109,7 +109,7 @@ spec:
|
|||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
- name: ceph-etc
|
- name: ceph-etc
|
||||||
configMap:
|
configMap:
|
||||||
name: ceph-etc
|
name: {{ .Values.ceph_client.configmap }}
|
||||||
- name: ceph-keyring
|
- name: ceph-keyring
|
||||||
secret:
|
secret:
|
||||||
secretName: {{ .Values.secrets.rbd | quote }}
|
secretName: {{ .Values.secrets.rbd | quote }}
|
||||||
|
@ -115,7 +115,7 @@ spec:
|
|||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
- name: ceph-etc
|
- name: ceph-etc
|
||||||
configMap:
|
configMap:
|
||||||
name: ceph-etc
|
name: {{ .Values.ceph_client.configmap }}
|
||||||
- name: ceph-keyring
|
- name: ceph-keyring
|
||||||
secret:
|
secret:
|
||||||
secretName: {{ .Values.secrets.rbd | quote }}
|
secretName: {{ .Values.secrets.rbd | quote }}
|
||||||
|
@ -134,7 +134,7 @@ spec:
|
|||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
- name: ceph-etc
|
- name: ceph-etc
|
||||||
configMap:
|
configMap:
|
||||||
name: ceph-etc
|
name: {{ .Values.ceph_client.configmap }}
|
||||||
- name: ceph-keyring
|
- name: ceph-keyring
|
||||||
secret:
|
secret:
|
||||||
secretName: {{ .Values.secrets.rbd | quote }}
|
secretName: {{ .Values.secrets.rbd | quote }}
|
||||||
|
@ -87,7 +87,7 @@ spec:
|
|||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
- name: ceph-etc
|
- name: ceph-etc
|
||||||
configMap:
|
configMap:
|
||||||
name: ceph-etc
|
name: {{ .Values.ceph_client.configmap }}
|
||||||
- name: ceph-keyring
|
- name: ceph-keyring
|
||||||
secret:
|
secret:
|
||||||
secretName: {{ .Values.secrets.rbd | quote }}
|
secretName: {{ .Values.secrets.rbd | quote }}
|
||||||
|
@ -124,9 +124,9 @@ spec:
|
|||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
- name: ceph-etc
|
- name: ceph-etc
|
||||||
configMap:
|
configMap:
|
||||||
name: ceph-etc
|
name: {{ .Values.ceph_client.configmap }}
|
||||||
defaultMode: 0444
|
defaultMode: 0444
|
||||||
- name: ceph-keyring
|
- name: ceph-keyring
|
||||||
secret:
|
secret:
|
||||||
secretName: pvc-ceph-client-key
|
secretName: {{ .Values.ceph_client.user_secret_name }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -422,6 +422,10 @@ conf:
|
|||||||
auth_version: v3
|
auth_version: v3
|
||||||
memcache_security_strategy: ENCRYPT
|
memcache_security_strategy: ENCRYPT
|
||||||
|
|
||||||
|
ceph_client:
|
||||||
|
configmap: ceph-etc
|
||||||
|
user_secret_name: pvc-ceph-client-key
|
||||||
|
|
||||||
secrets:
|
secrets:
|
||||||
identity:
|
identity:
|
||||||
admin: gnocchi-keystone-admin
|
admin: gnocchi-keystone-admin
|
||||||
|
@ -195,12 +195,12 @@ spec:
|
|||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
- name: ceph-etc
|
- name: ceph-etc
|
||||||
configMap:
|
configMap:
|
||||||
name: ceph-etc
|
name: {{ .Values.ceph_client.configmap }}
|
||||||
defaultMode: 0444
|
defaultMode: 0444
|
||||||
{{- if empty .Values.conf.ceph.cinder.keyring }}
|
{{- if empty .Values.conf.ceph.cinder.keyring }}
|
||||||
- name: ceph-keyring
|
- name: ceph-keyring
|
||||||
secret:
|
secret:
|
||||||
secretName: pvc-ceph-client-key
|
secretName: {{ .Values.ceph_client.user_secret_name }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
- name: libmodules
|
- name: libmodules
|
||||||
|
@ -58,6 +58,10 @@ endpoints:
|
|||||||
registry:
|
registry:
|
||||||
node: 5000
|
node: 5000
|
||||||
|
|
||||||
|
ceph_client:
|
||||||
|
configmap: ceph-etc
|
||||||
|
user_secret_name: pvc-ceph-client-key
|
||||||
|
|
||||||
conf:
|
conf:
|
||||||
ceph:
|
ceph:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
@ -298,12 +298,12 @@ spec:
|
|||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
- name: ceph-etc
|
- name: ceph-etc
|
||||||
configMap:
|
configMap:
|
||||||
name: ceph-etc
|
name: {{ .Values.ceph_client.configmap }}
|
||||||
defaultMode: 0444
|
defaultMode: 0444
|
||||||
{{- if empty .Values.conf.ceph.cinder.keyring }}
|
{{- if empty .Values.conf.ceph.cinder.keyring }}
|
||||||
- name: ceph-keyring
|
- name: ceph-keyring
|
||||||
secret:
|
secret:
|
||||||
secretName: pvc-ceph-client-key
|
secretName: {{ .Values.ceph_client.user_secret_name }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
- name: libmodules
|
- name: libmodules
|
||||||
|
@ -443,6 +443,10 @@ ssh:
|
|||||||
- ecdsa
|
- ecdsa
|
||||||
- ed25519
|
- ed25519
|
||||||
|
|
||||||
|
ceph_client:
|
||||||
|
configmap: ceph-etc
|
||||||
|
user_secret_name: pvc-ceph-client-key
|
||||||
|
|
||||||
conf:
|
conf:
|
||||||
ceph:
|
ceph:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
Loading…
Reference in New Issue
Block a user