From ecd92ceff6d536fecd8f4e04bd2dd43e9925b97a Mon Sep 17 00:00:00 2001 From: David Lewis Date: Sat, 7 Jul 2018 08:03:40 -0700 Subject: [PATCH] Set 644 on cloud-config --- cluster/cloud-provider.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster/cloud-provider.go b/cluster/cloud-provider.go index 32c069a6..ddfe713c 100644 --- a/cluster/cloud-provider.go +++ b/cluster/cloud-provider.go @@ -41,7 +41,7 @@ func doDeployConfigFile(ctx context.Context, host *hosts.Host, cloudConfig, alpi Cmd: []string{ "sh", "-c", - fmt.Sprintf("t=$(mktemp); echo -e \"$%s\" > $t && mv $t %s", CloudConfigEnv, CloudConfigPath), + fmt.Sprintf("t=$(mktemp); echo -e \"$%s\" > $t && mv $t %s && chmod 644 %s", CloudConfigEnv, CloudConfigPath, CloudConfigPath), }, Env: containerEnv, }