mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-13 11:25:19 +00:00
Create /var/lib/etcd with 0700
If we let the hostpath with DirectoryOrCreate to create this directory it defaults to 0755. A default install should use 0700 for better security especially if the directory is not present. Change-Id: Idc0266685895767b0d1c5710c8a4fb704805652f
This commit is contained in:
@@ -67,7 +67,7 @@ func TestCreateLocalEtcdStaticPodManifestFile(t *testing.T) {
|
||||
KubernetesVersion: "v1.7.0",
|
||||
Etcd: kubeadmapi.Etcd{
|
||||
Local: &kubeadmapi.LocalEtcd{
|
||||
DataDir: "/var/lib/etcd",
|
||||
DataDir: tmpdir + "/etcd",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user