Merge pull request #12733 from rhatdan/copy

Set volume NeedsCopyUp to false iff data was copied up
This commit is contained in:
OpenShift Merge Robot
2022-01-07 20:38:59 +01:00
committed by GitHub
4 changed files with 58 additions and 7 deletions

View File

@ -48,4 +48,12 @@ type InspectVolumeData struct {
// volume for a specific container, and will be be removed when any
// container using it is removed.
Anonymous bool `json:"Anonymous,omitempty"`
// MountCount is the number of times this volume has been mounted.
MountCount uint `json:"MountCount"`
// NeedsCopyUp indicates that the next time the volume is mounted into
NeedsCopyUp bool `json:"NeedsCopyUp,omitempty"`
// NeedsChown indicates that the next time the volume is mounted into
// a container, the container will chown the volume to the container process
// UID/GID.
NeedsChown bool `json:"NeedsChown,omitempty"`
}