Browse code

Fix missing 'apiVersion' in example templates

When the template.apiVersion is missing, the runtime.Object parser
can't figure out the Template object properly and thus the
TemplateProcessor produces a Config with null items.

Bug 1146024 - https://bugzilla.redhat.com/show_bug.cgi?id=1146024

Vojtech Vitek (V-Teq) authored on 2014/09/26 20:06:01
Showing 3 changed files
... ...
@@ -1,6 +1,7 @@
1 1
 {
2
-  "kind": "Template",
3 2
   "id": "example1",
3
+  "kind": "Template",
4
+  "apiVersion": "v1beta1",
4 5
   "name": "My awesome PHP app",
5 6
   "description": "Example PHP application with PostgreSQL database",
6 7
   "parameters": [
... ...
@@ -136,4 +137,4 @@
136 136
       }
137 137
     }
138 138
   ]
139
-}
140 139
\ No newline at end of file
140
+}
... ...
@@ -1,7 +1,7 @@
1 1
 {
2 2
   "id": "guestbook",
3
-  "apiVersion": "v1beta1",
4 3
   "kind": "Template",
4
+  "apiVersion": "v1beta1",
5 5
   "name": "guestbook-example",
6 6
   "description": "Example shows how to build a simple multi-tier application using Kubernetes and Docker",
7 7
   "parameters": [
... ...
@@ -1,6 +1,7 @@
1 1
 {
2 2
   "id": "ruby-helloworld-sample-template",
3 3
   "kind": "Template",
4
+  "apiVersion": "v1beta1",
4 5
   "name": "ruby-hello-world-template",
5 6
   "description": "This example shows how to create a simple ruby application in openshift origin v3",
6 7
   "parameters": [