Rename entry point file appropriately

Change-Id: I266cc07a18c68d82a78758784cbd6a9db547fc6b
This commit is contained in:
Chris Wedgwood 2017-10-31 02:24:56 +00:00
parent e9b9182f7f
commit 6d249ac2fa
5 changed files with 8 additions and 8 deletions

View File

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

View File

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

View File

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

View File

@ -41,7 +41,7 @@ spec:
securityContext:
privileged: true
command:
- /usr/local/bin/startvm
- /startvm.sh
{{- if $vm.netconfig.ports }}
ports:
{{- range $for, $port := $vm.netconfig.ports }}
@ -55,8 +55,8 @@ spec:
{{- end }}
volumeMounts:
- name: volume-startvm
mountPath: /usr/local/bin/startvm
subPath: startvm
mountPath: /startvm.sh
subPath: startvm.sh
- name: image
mountPath: /image
- name: dev
@ -73,7 +73,7 @@ spec:
- name: volume-startvm
configMap:
name: configmap-generic-startvm
defaultMode: 0755
defaultMode: 0555
- name: image
persistentVolumeClaim:
claimName: {{ $name }}