mirror of https://github.com/k3s-io/k3s
Merge pull request #68880 from houjun41544/20180920-downward
Remove unused function in downwardapi.gopull/58/head
commit
703ac550a3
|
@ -18,7 +18,6 @@ package downwardapi
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"path"
|
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"k8s.io/api/core/v1"
|
"k8s.io/api/core/v1"
|
||||||
|
@ -299,10 +298,6 @@ func (c *downwardAPIVolumeUnmounter) TearDownAt(dir string) error {
|
||||||
return volumeutil.UnmountViaEmptyDir(dir, c.plugin.host, c.volName, wrappedVolumeSpec(), c.podUID)
|
return volumeutil.UnmountViaEmptyDir(dir, c.plugin.host, c.volName, wrappedVolumeSpec(), c.podUID)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *downwardAPIVolumeMounter) getMetaDir() string {
|
|
||||||
return path.Join(b.plugin.host.GetPodPluginDir(b.podUID, utilstrings.EscapeQualifiedNameForDisk(downwardAPIPluginName)), b.volName)
|
|
||||||
}
|
|
||||||
|
|
||||||
func getVolumeSource(spec *volume.Spec) (*v1.DownwardAPIVolumeSource, bool) {
|
func getVolumeSource(spec *volume.Spec) (*v1.DownwardAPIVolumeSource, bool) {
|
||||||
var readOnly bool
|
var readOnly bool
|
||||||
var volumeSource *v1.DownwardAPIVolumeSource
|
var volumeSource *v1.DownwardAPIVolumeSource
|
||||||
|
|
Loading…
Reference in New Issue