diff --git a/README.md b/README.md index 7534aa8..b3dc4b6 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/README.rst b/README.rst index 8734ba9..8d0ef85 100644 --- a/README.rst +++ b/README.rst @@ -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 diff --git a/berth/templates/bin/_startvm.txt b/berth/templates/bin/_startvm.sh.tpl similarity index 100% rename from berth/templates/bin/_startvm.txt rename to berth/templates/bin/_startvm.sh.tpl diff --git a/berth/templates/iter-configmap.yaml b/berth/templates/iter-configmap.yaml index 2b2fcff..4840621 100644 --- a/berth/templates/iter-configmap.yaml +++ b/berth/templates/iter-configmap.yaml @@ -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 }} --- diff --git a/berth/templates/iter-deployment.yaml b/berth/templates/iter-deployment.yaml index e615a98..fecd008 100644 --- a/berth/templates/iter-deployment.yaml +++ b/berth/templates/iter-deployment.yaml @@ -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 }}