mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-04-26 00:29:44 -04:00
In most cases `dir` arg of `SetUpAt()` method of `volume.Mounter` interface is the same as `mounter.GetPath()` because we usually call `SetUpAt()` from `SetUp()` like this:"
```
func (ed *emptyDir) SetUp(mounterArgs volume.MounterArgs) error {
return ed.SetUpAt(ed.GetPath(), mounterArgs)
}
```
(this example is from `volume/emptydir/empty_dir.go`, but there are plenty other examples like that in `volume/*`)
However, there is currently one exception. This is from `volume/projected/projected.go`:
```
if err := wrapped.SetUpAt(dir, mounterArgs); err != nil {
return err
}
```
(see
|
||
|---|---|---|
| .. | ||
| attacher-defaults.go | ||
| attacher.go | ||
| attacher_test.go | ||
| common_test.go | ||
| detacher-defaults.go | ||
| detacher.go | ||
| detacher_test.go | ||
| driver-call.go | ||
| driver-call_test.go | ||
| expander-defaults.go | ||
| expander.go | ||
| fake_watcher.go | ||
| flexvolume_test.go | ||
| mounter-defaults.go | ||
| mounter.go | ||
| mounter_test.go | ||
| OWNERS | ||
| plugin-defaults.go | ||
| plugin.go | ||
| plugin_test.go | ||
| probe.go | ||
| probe_test.go | ||
| unmounter-defaults.go | ||
| unmounter.go | ||
| unmounter_test.go | ||
| util.go | ||
| volume.go | ||