Browse Source

Fixes pv/pvc creation for latest builds

Jason DeTiberus 9 years ago
parent
commit
47f9954a0a

+ 2 - 1
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:

+ 2 - 1
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: