mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-23 18:40:53 +00:00
Merge pull request #25306 from pmorie/configmap-medium
Automatic merge from submit-queue Use local disk for ConfigMap volume instead of tmpfs So that ConfigMap volumes are counted against pod's storage quota. @kubernetes/sig-node cc @derekwaynecarr @vishh
This commit is contained in:
commit
4591aa0f3b
@ -107,7 +107,10 @@ func (sv *configMapVolume) GetAttributes() volume.Attributes {
|
||||
|
||||
// This is the spec for the volume that this plugin wraps.
|
||||
var wrappedVolumeSpec = volume.Spec{
|
||||
Volume: &api.Volume{VolumeSource: api.VolumeSource{EmptyDir: &api.EmptyDirVolumeSource{Medium: api.StorageMediumMemory}}},
|
||||
// This should be on a tmpfs instead of the local disk; the problem is
|
||||
// charging the memory for the tmpfs to the right cgroup. We should make
|
||||
// this a tmpfs when we can do the accounting correctly.
|
||||
Volume: &api.Volume{VolumeSource: api.VolumeSource{EmptyDir: &api.EmptyDirVolumeSource{}}},
|
||||
}
|
||||
|
||||
func (b *configMapVolumeMounter) SetUp(fsGroup *int64) error {
|
||||
|
Loading…
Reference in New Issue
Block a user