summaryrefslogtreecommitdiffstats
path: root/roles/openshift_persistent_volumes
diff options
context:
space:
mode:
authorBrenton Leanhardt <bleanhar@redhat.com>2016-02-11 15:53:02 -0500
committerBrenton Leanhardt <bleanhar@redhat.com>2016-02-11 15:53:02 -0500
commit1d65d7df8bc2829e8b536ba44ad2dd3a426f2461 (patch)
tree8904fc393d39256854605fc486a6a501ea58460a /roles/openshift_persistent_volumes
parentceda01624180edfded7f984468f87049665d376f (diff)
parent47f9954a0acc8917cabce817614bcfdf0dff4729 (diff)
downloadopenshift-1d65d7df8bc2829e8b536ba44ad2dd3a426f2461.tar.gz
openshift-1d65d7df8bc2829e8b536ba44ad2dd3a426f2461.tar.bz2
openshift-1d65d7df8bc2829e8b536ba44ad2dd3a426f2461.tar.xz
openshift-1d65d7df8bc2829e8b536ba44ad2dd3a426f2461.zip
Merge pull request #1386 from detiber/pv_fixes
Fixes pv/pvc creation for latest builds
Diffstat (limited to 'roles/openshift_persistent_volumes')
-rw-r--r--roles/openshift_persistent_volumes/templates/persistent-volume-claim.yml.j23
-rw-r--r--roles/openshift_persistent_volumes/templates/persistent-volume.yml.j23
2 files changed, 4 insertions, 2 deletions
diff --git a/roles/openshift_persistent_volumes/templates/persistent-volume-claim.yml.j2 b/roles/openshift_persistent_volumes/templates/persistent-volume-claim.yml.j2
index 58b3e1c67..d40417a9a 100644
--- a/roles/openshift_persistent_volumes/templates/persistent-volume-claim.yml.j2
+++ b/roles/openshift_persistent_volumes/templates/persistent-volume-claim.yml.j2
@@ -3,7 +3,8 @@ apiVersion: "v1"
kind: "List"
items:
{% for claim in persistent_volume_claims %}
-- kind: "PersistentVolumeClaim"
+- apiVersion: "v1"
+ kind: "PersistentVolumeClaim"
metadata:
name: "{{ claim.name }}"
spec:
diff --git a/roles/openshift_persistent_volumes/templates/persistent-volume.yml.j2 b/roles/openshift_persistent_volumes/templates/persistent-volume.yml.j2
index 5714b6b0d..877e88002 100644
--- a/roles/openshift_persistent_volumes/templates/persistent-volume.yml.j2
+++ b/roles/openshift_persistent_volumes/templates/persistent-volume.yml.j2
@@ -3,7 +3,8 @@ apiVersion: v1
kind: List
items:
{% for volume in persistent_volumes %}
-- kind: PersistentVolume
+- apiVersion: v1
+ kind: PersistentVolume
metadata:
name: "{{ volume.name }}"
spec: