Skip to content
This repository was archived by the owner on Jul 30, 2021. It is now read-only.

Commit 9727dd9

Browse files
author
Diego Pontoriero
committed
Change temporary secrets path to /etc/kubernetes/bootstrap-secrets.
This reduces the number of paths that users need to make available to bootkube, especially if running in a container.
1 parent f196ec5 commit 9727dd9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/asset/asset.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const (
4949
AssetPathBootstrapControllerManager = "bootstrap-manifests/bootstrap-controller-manager.yaml"
5050
AssetPathBootstrapScheduler = "bootstrap-manifests/bootstrap-scheduler.yaml"
5151
AssetPathBootstrapEtcd = "bootstrap-manifests/bootstrap-etcd.yaml"
52-
BootstrapSecretsDir = "/tmp/bootkube/secrets"
52+
BootstrapSecretsDir = "/etc/kubernetes/bootstrap-secrets"
5353
)
5454

5555
// AssetConfig holds all configuration needed when generating

pkg/bootkube/bootstrap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func CreateBootstrapControlPlane(assetDir string, podManifestPath string) error
1818
if err := os.RemoveAll(asset.BootstrapSecretsDir); err != nil {
1919
return err
2020
}
21-
if err := os.MkdirAll(asset.BootstrapSecretsDir, os.FileMode(0700)); err != nil {
21+
if err := os.Mkdir(asset.BootstrapSecretsDir, os.FileMode(0700)); err != nil {
2222
return err
2323
}
2424
secretsDir := filepath.Join(assetDir, asset.AssetPathSecrets)

0 commit comments

Comments
 (0)