Skip to content

Commit

Permalink
pre-install: Pass SNAPSHOTTER to the script
Browse files Browse the repository at this point in the history
Signed-off-by: ChengyuZhu6 <[email protected]>
  • Loading branch information
ChengyuZhu6 committed Aug 23, 2023
1 parent dfc83b1 commit ee45611
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/samples/ccruntime/base/ccruntime.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ spec:
path: /etc/systemd/system/
type: ""
name: etc-systemd-system
environmentVariables:
- name: "SNAPSHOTTER"
value: "nydus"
preInstall:
image: quay.io/confidential-containers/container-engine-for-cc-payload
volumeMounts:
Expand All @@ -80,6 +83,9 @@ spec:
path: /etc/systemd/system/
type: ""
name: etc-systemd-system
environmentVariables:
- name: "SNAPSHOTTER"
value: "nydus"
environmentVariables:
- name: NODE_NAME
valueFrom:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ function print_help() {
}

function main() {
echo "SNAPSHOTTER: ${SNAPSHOTTER}"
# script requires that user is root
local euid=$(id -u)
if [ ${euid} -ne 0 ]; then
Expand Down

0 comments on commit ee45611

Please sign in to comment.