summaryrefslogtreecommitdiffstats
path: root/roles/openshift_storage_glusterfs/templates/v3.6/glusterfs-storageclass.yml.j2
diff options
context:
space:
mode:
authorJose A. Rivera <jarrpa@redhat.com>2017-07-11 15:54:42 -0500
committerJose A. Rivera <jarrpa@redhat.com>2017-07-14 10:37:29 -0500
commit0624a1f36583c832b5b2e0c791a6926e56053e3e (patch)
treea47f3d15978431a9c3c56022e4f0eb83a8c5e5eb /roles/openshift_storage_glusterfs/templates/v3.6/glusterfs-storageclass.yml.j2
parentaf667a6cf3befcaf0e6b02f26dbe4106decdafb1 (diff)
downloadopenshift-0624a1f36583c832b5b2e0c791a6926e56053e3e.tar.gz
openshift-0624a1f36583c832b5b2e0c791a6926e56053e3e.tar.bz2
openshift-0624a1f36583c832b5b2e0c791a6926e56053e3e.tar.xz
openshift-0624a1f36583c832b5b2e0c791a6926e56053e3e.zip
GlusterFS: Bug fixes for external GlusterFS nodes
Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
Diffstat (limited to 'roles/openshift_storage_glusterfs/templates/v3.6/glusterfs-storageclass.yml.j2')
-rw-r--r--roles/openshift_storage_glusterfs/templates/v3.6/glusterfs-storageclass.yml.j22
1 files changed, 2 insertions, 0 deletions
diff --git a/roles/openshift_storage_glusterfs/templates/v3.6/glusterfs-storageclass.yml.j2 b/roles/openshift_storage_glusterfs/templates/v3.6/glusterfs-storageclass.yml.j2
index 2ec9a9e9a..095fb780f 100644
--- a/roles/openshift_storage_glusterfs/templates/v3.6/glusterfs-storageclass.yml.j2
+++ b/roles/openshift_storage_glusterfs/templates/v3.6/glusterfs-storageclass.yml.j2
@@ -7,5 +7,7 @@ provisioner: kubernetes.io/glusterfs
parameters:
resturl: "http://{% if glusterfs_heketi_is_native %}{{ glusterfs_heketi_route }}{% else %}{{ glusterfs_heketi_url }}:{{ glusterfs_heketi_port }}{% endif %}"
restuser: "admin"
+{% if glusterfs_heketi_admin_key is defined %}
secretNamespace: "{{ glusterfs_namespace }}"
secretName: "heketi-{{ glusterfs_name }}-admin-secret"
+{%- endif -%}