Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

Commit

Permalink
Remove seemingly unnecessary sudo calls
Browse files Browse the repository at this point in the history
  • Loading branch information
redbaron committed Jan 11, 2017
1 parent 96bd99f commit 5a63386
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config/templates/cloud-config-controller
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ write_files:
content: |
#!/bin/bash -e

sudo rkt run \
rkt run \
--volume=ssl,kind=host,source=/etc/kubernetes/ssl,readOnly=false \
--mount=volume=ssl,target=/etc/kubernetes/ssl \
--uuid-file-save=/var/run/coreos/decrypt-tls-assets.uuid \
Expand All @@ -448,7 +448,7 @@ write_files:
done;
echo done.'

sudo rkt rm --uuid-file=/var/run/coreos/decrypt-tls-assets.uuid
rkt rm --uuid-file=/var/run/coreos/decrypt-tls-assets.uuid || :

- path: /opt/bin/taint-and-uncordon
owner: root:root
Expand Down
4 changes: 2 additions & 2 deletions config/templates/cloud-config-worker
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ write_files:
content: |
#!/bin/bash -e

sudo rkt run \
rkt run \
--volume=ssl,kind=host,source=/etc/kubernetes/ssl,readOnly=false \
--mount=volume=ssl,target=/etc/kubernetes/ssl \
--uuid-file-save=/var/run/coreos/decrypt-tls-assets.uuid \
Expand All @@ -466,7 +466,7 @@ write_files:
done;
echo done.'

sudo rkt rm --uuid-file=/var/run/coreos/decrypt-tls-assets.uuid
rkt rm --uuid-file=/var/run/coreos/decrypt-tls-assets.uuid || :

{{if .Worker.SpotFleet.Enabled}}
- path: /opt/bin/tag-spot-instance
Expand Down

0 comments on commit 5a63386

Please sign in to comment.