mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
commit
9d7eff0dca
@ -125,7 +125,7 @@ func (sv *secretVolume) SetUpAt(dir string) error {
|
|||||||
|
|
||||||
for name, data := range secret.Data {
|
for name, data := range secret.Data {
|
||||||
hostFilePath := path.Join(dir, name)
|
hostFilePath := path.Join(dir, name)
|
||||||
glog.V(3).Infof("Writing secret data %v/%v/%v (%v bytes) to host file %v", sv.podRef.Namespace, sv.secretName, len(data), hostFilePath)
|
glog.V(3).Infof("Writing secret data %v/%v/%v (%v bytes) to host file %v", sv.podRef.Namespace, sv.secretName, name, len(data), hostFilePath)
|
||||||
err := ioutil.WriteFile(hostFilePath, data, 0777)
|
err := ioutil.WriteFile(hostFilePath, data, 0777)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Errorf("Error writing secret data to host path: %v, %v", hostFilePath, err)
|
glog.Errorf("Error writing secret data to host path: %v, %v", hostFilePath, err)
|
||||||
|
Loading…
Reference in New Issue
Block a user