Browse Source

Rename entry point file appropriately

Change-Id: I266cc07a18c68d82a78758784cbd6a9db547fc6b
Chris Wedgwood 1 year ago
parent
commit
6d249ac2fa

+ 1
- 1
README.md View File

@@ -79,7 +79,7 @@ At a high level, it works like this:
79 79
   ConfigMap mounts with the same name and turning them into an ISO
80 80
   presented to the guest.
81 81
 
82
-The startvm entry-point supports several environment variables:
82
+The startvm.sh entry-point supports several environment variables:
83 83
 
84 84
 * `IMG_SOURCE` which is an http or https URL that contains a qcow2
85 85
   image.  It can also be a full path to a local file baked into the

+ 1
- 1
README.rst View File

@@ -79,7 +79,7 @@ At a high level, it works like this:
79 79
     ConfigMap mounts with the same name and turning them into an ISO
80 80
     presented to the guest.
81 81
 
82
-The startvm entry-point supports several environment variables:
82
+The startvm.sh entry-point supports several environment variables:
83 83
 
84 84
   * `IMG_SOURCE` which is an http or https URL that contains a qcow2
85 85
     image.  It can also be a full path to a local file baked into the

berth/templates/bin/_startvm.txt → berth/templates/bin/_startvm.sh.tpl View File


+ 2
- 2
berth/templates/iter-configmap.yaml View File

@@ -14,8 +14,8 @@ kind: ConfigMap
14 14
 metadata:
15 15
   name: configmap-generic-startvm
16 16
 data:
17
-  startvm: |
18
-{{ tuple "bin/_startvm.txt" . | include "template" | indent 4 }}
17
+  startvm.sh: |
18
+{{ tuple "bin/_startvm.sh.tpl" . | include "template" | indent 4 }}
19 19
 
20 20
 ---
21 21
 

+ 4
- 4
berth/templates/iter-deployment.yaml View File

@@ -41,7 +41,7 @@ spec:
41 41
           securityContext:
42 42
             privileged: true
43 43
           command:
44
-            - /usr/local/bin/startvm
44
+            - /startvm.sh
45 45
 {{- if $vm.netconfig.ports }}
46 46
           ports:
47 47
 {{- range $for, $port := $vm.netconfig.ports }}
@@ -55,8 +55,8 @@ spec:
55 55
 {{- end }}
56 56
           volumeMounts:
57 57
             - name: volume-startvm
58
-              mountPath: /usr/local/bin/startvm
59
-              subPath: startvm
58
+              mountPath: /startvm.sh
59
+              subPath: startvm.sh
60 60
             - name: image
61 61
               mountPath: /image
62 62
             - name: dev
@@ -73,7 +73,7 @@ spec:
73 73
         - name: volume-startvm
74 74
           configMap:
75 75
             name: configmap-generic-startvm
76
-            defaultMode: 0755
76
+            defaultMode: 0555
77 77
         - name: image
78 78
           persistentVolumeClaim:
79 79
             claimName: {{ $name }}

Loading…
Cancel
Save