mirror of
https://github.com/containers/podman.git
synced 2025-10-17 03:04:21 +08:00
quadlet: Drop the SocketActivated key
This was added in the old quadlet to work around issues with podman not passing on notify fds and pids. However, these are now fixed with: https://github.com/containers/podman/pull/11316 https://github.com/openSUSE/catatonit/pull/15 So, remove this key (which was never in a podman release anyway) Signed-off-by: Alexander Larsson <alexl@redhat.com>
This commit is contained in:
@ -56,7 +56,6 @@ const (
|
||||
KeyRemapUIDRanges = "RemapUidRanges"
|
||||
KeyRemapGIDRanges = "RemapGidRanges"
|
||||
KeyNotify = "Notify"
|
||||
KeySocketActivated = "SocketActivated"
|
||||
KeyExposeHostPort = "ExposeHostPort"
|
||||
KeyPublishPort = "PublishPort"
|
||||
KeyKeepID = "KeepId"
|
||||
@ -89,7 +88,6 @@ var supportedContainerKeys = map[string]bool{
|
||||
KeyRemapUIDRanges: true,
|
||||
KeyRemapGIDRanges: true,
|
||||
KeyNotify: true,
|
||||
KeySocketActivated: true,
|
||||
KeyExposeHostPort: true,
|
||||
KeyPublishPort: true,
|
||||
KeyKeepID: true,
|
||||
@ -428,18 +426,6 @@ func ConvertContainer(container *parser.UnitFile, isUser bool) (*parser.UnitFile
|
||||
podman.add("--read-only-tmpfs=false")
|
||||
}
|
||||
|
||||
socketActivated := container.LookupBoolean(ContainerGroup, KeySocketActivated, false)
|
||||
if socketActivated {
|
||||
// TODO: This will not be needed with later podman versions that support activation directly:
|
||||
// https://github.com/containers/podman/pull/11316
|
||||
podman.add("--preserve-fds=1")
|
||||
podmanEnv["LISTEN_FDS"] = "1"
|
||||
|
||||
// TODO: This will not be 2 when catatonit forwards fds:
|
||||
// https://github.com/openSUSE/catatonit/pull/15
|
||||
podmanEnv["LISTEN_PID"] = "2"
|
||||
}
|
||||
|
||||
defaultContainerUID := uint32(0)
|
||||
defaultContainerGID := uint32(0)
|
||||
|
||||
|
@ -287,7 +287,6 @@ var _ = Describe("quadlet system generator", func() {
|
||||
Entry("readonly-notmpfs.container", "readonly-notmpfs.container"),
|
||||
Entry("readwrite.container", "readwrite.container"),
|
||||
Entry("readwrite-notmpfs.container", "readwrite-notmpfs.container"),
|
||||
Entry("socketactivated.container", "socketactivated.container"),
|
||||
Entry("timezone.container", "timezone.container"),
|
||||
Entry("user.container", "user.container"),
|
||||
Entry("user-host.container", "user-host.container"),
|
||||
|
Reference in New Issue
Block a user