summaryrefslogtreecommitdiffstats
path: root/roles/openshift_storage_glusterfs/templates/v3.8/glusterfs-storageclass.yml.j2
diff options
context:
space:
mode:
authorRussell Teague <rteague@redhat.com>2017-12-13 10:12:09 -0500
committerGitHub <noreply@github.com>2017-12-13 10:12:09 -0500
commit3c99f16b78b331f8461cf196f5d96f335d941542 (patch)
treef3036c3de2009b52ce1cdfdf1216446c89c6931e /roles/openshift_storage_glusterfs/templates/v3.8/glusterfs-storageclass.yml.j2
parent0aa01db01608dc01550336d55f33f248ef81ead6 (diff)
parent89472a43bf58160d58eeeaee54922dbad141eeb3 (diff)
downloadopenshift-3c99f16b78b331f8461cf196f5d96f335d941542.tar.gz
openshift-3c99f16b78b331f8461cf196f5d96f335d941542.tar.bz2
openshift-3c99f16b78b331f8461cf196f5d96f335d941542.tar.xz
openshift-3c99f16b78b331f8461cf196f5d96f335d941542.zip
Merge pull request #6182 from jmencak/glusterfs_storageclass-default
Support for making glusterfs storage class a default one.
Diffstat (limited to 'roles/openshift_storage_glusterfs/templates/v3.8/glusterfs-storageclass.yml.j2')
-rw-r--r--roles/openshift_storage_glusterfs/templates/v3.8/glusterfs-storageclass.yml.j24
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/openshift_storage_glusterfs/templates/v3.8/glusterfs-storageclass.yml.j2 b/roles/openshift_storage_glusterfs/templates/v3.8/glusterfs-storageclass.yml.j2
index 095fb780f..ca87807fe 100644
--- a/roles/openshift_storage_glusterfs/templates/v3.8/glusterfs-storageclass.yml.j2
+++ b/roles/openshift_storage_glusterfs/templates/v3.8/glusterfs-storageclass.yml.j2
@@ -3,6 +3,10 @@ apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: glusterfs-{{ glusterfs_name }}
+{% if glusterfs_storageclass_default is defined and glusterfs_storageclass_default %}
+ annotations:
+ storageclass.kubernetes.io/is-default-class: "true"
+{% endif %}
provisioner: kubernetes.io/glusterfs
parameters:
resturl: "http://{% if glusterfs_heketi_is_native %}{{ glusterfs_heketi_route }}{% else %}{{ glusterfs_heketi_url }}:{{ glusterfs_heketi_port }}{% endif %}"