From 8c6d2c8543d8d7b079a1a9b65915d0cee22f372c Mon Sep 17 00:00:00 2001
From: "rong.zhang" <rong.zhang@easystack.cn>
Date: Fri, 8 Dec 2017 16:51:25 +0800
Subject: [PATCH] Add imageFormat and imageFeature support

Add imageFormat and imageFeature support

Change-Id: I441bbf82031c70da8ac49730b8dc4e5ea08a6b7e
---
 ceph/templates/storageclass.yaml | 2 ++
 ceph/values.yaml                 | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/ceph/templates/storageclass.yaml b/ceph/templates/storageclass.yaml
index 4916d0caa8..8f187ccb55 100644
--- a/ceph/templates/storageclass.yaml
+++ b/ceph/templates/storageclass.yaml
@@ -32,6 +32,8 @@ parameters:
     pool: {{ .Values.storageclass.pool }}
     userId: {{ .Values.storageclass.user_id }}
     userSecretName: {{ .Values.storageclass.user_secret_name }}
+    imageFormat: {{ .Values.storageclass.image_format | quote }}
+    imageFeatures: {{ .Values.storageclass.image_features }}
 {{- end }}
 {{- end }}
 {{- end }}
diff --git a/ceph/values.yaml b/ceph/values.yaml
index 12ad5cb5c7..ae698e6468 100644
--- a/ceph/values.yaml
+++ b/ceph/values.yaml
@@ -309,6 +309,8 @@ storageclass:
   admin_secret_namespace: ceph
   user_id: admin
   user_secret_name: pvc-ceph-client-key
+  image_format: "2"
+  image_features: layering
 
 endpoints:
   cluster_domain_suffix: cluster.local