Merge "Allow glance to use file method"

This commit is contained in:
Jenkins 2017-05-25 18:55:29 +00:00 committed by Gerrit Code Review
commit ea5f33de95
4 changed files with 7 additions and 7 deletions

View File

@ -80,7 +80,7 @@ spec:
mountPath: /etc/glance/policy.json mountPath: /etc/glance/policy.json
subPath: policy.json subPath: policy.json
readOnly: true readOnly: true
{{- if eq .Values.storage "file" }} {{- if eq .Values.storage "pvc" }}
- name: glance-images - name: glance-images
mountPath: {{ .Values.conf.glance.glance_store.glance.store.filesystem_store_datadir }} mountPath: {{ .Values.conf.glance.glance_store.glance.store.filesystem_store_datadir }}
{{- else }} {{- else }}
@ -98,7 +98,7 @@ spec:
- name: glance-etc - name: glance-etc
configMap: configMap:
name: glance-etc name: glance-etc
{{- if eq .Values.storage "file" }} {{- if eq .Values.storage "pvc" }}
- name: glance-images - name: glance-images
persistentVolumeClaim: persistentVolumeClaim:
claimName: glance-images claimName: glance-images

View File

@ -12,16 +12,15 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
{{- if eq .Values.storage "file" }} {{- if eq .Values.storage "pvc" }}
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
apiVersion: v1 apiVersion: v1
metadata: metadata:
name: glance-images name: glance-images
annotations:
{{ .Values.volume.class_path }}: {{ .Values.volume.class_name }}
spec: spec:
accessModes: [ "ReadWriteOnce" ] accessModes: [ "ReadWriteOnce" ]
resources: resources:
requests: requests:
storage: {{ .Values.volume.size }} storage: {{ .Values.volume.size }}
storageClassName: {{ .Values.volume.class_name }}
{{- end }} {{- end }}

View File

@ -21,6 +21,7 @@ replicas:
api: 1 api: 1
registry: 1 registry: 1
# ceph or pvc
storage: ceph storage: ceph
labels: labels:
@ -118,6 +119,7 @@ conf:
rbd_store_pool: images rbd_store_pool: images
rbd_store_user: admin rbd_store_user: admin
rbd_store_ceph_conf: /etc/ceph/ceph.conf rbd_store_ceph_conf: /etc/ceph/ceph.conf
filesystem_store_datadir: /var/lib/glance/store
paste_registry: paste_registry:
override: override:
append: append:
@ -153,7 +155,6 @@ network:
port: 30091 port: 30091
volume: volume:
class_path: volume.beta.kubernetes.io/storage-class
class_name: general class_name: general
size: 2Gi size: 2Gi

View File

@ -17,7 +17,7 @@
# OpenStack-Helm Single node gates, and local development use. It should be # OpenStack-Helm Single node gates, and local development use. It should be
# kept to the bare minimum required for this purpose. # kept to the bare minimum required for this purpose.
storage: file storage: pvc
conf: conf:
glance: glance: