mirror of
https://github.com/containers/podman.git
synced 2025-06-24 11:28:24 +08:00
Merge pull request #17417 from rhatdan/rootfs
Sort quadlet keys to make it easier to read
This commit is contained in:
@ -16,70 +16,70 @@ const (
|
|||||||
UnitDirDistro = "/usr/share/containers/systemd"
|
UnitDirDistro = "/usr/share/containers/systemd"
|
||||||
|
|
||||||
// Names of commonly used systemd/quadlet group names
|
// Names of commonly used systemd/quadlet group names
|
||||||
UnitGroup = "Unit"
|
|
||||||
InstallGroup = "Install"
|
|
||||||
ServiceGroup = "Service"
|
|
||||||
ContainerGroup = "Container"
|
ContainerGroup = "Container"
|
||||||
XContainerGroup = "X-Container"
|
InstallGroup = "Install"
|
||||||
VolumeGroup = "Volume"
|
|
||||||
XVolumeGroup = "X-Volume"
|
|
||||||
KubeGroup = "Kube"
|
KubeGroup = "Kube"
|
||||||
XKubeGroup = "X-Kube"
|
|
||||||
NetworkGroup = "Network"
|
NetworkGroup = "Network"
|
||||||
|
ServiceGroup = "Service"
|
||||||
|
UnitGroup = "Unit"
|
||||||
|
VolumeGroup = "Volume"
|
||||||
|
XContainerGroup = "X-Container"
|
||||||
|
XKubeGroup = "X-Kube"
|
||||||
XNetworkGroup = "X-Network"
|
XNetworkGroup = "X-Network"
|
||||||
|
XVolumeGroup = "X-Volume"
|
||||||
)
|
)
|
||||||
|
|
||||||
// All the supported quadlet keys
|
// All the supported quadlet keys
|
||||||
const (
|
const (
|
||||||
|
KeyAddCapability = "AddCapability"
|
||||||
|
KeyAddDevice = "AddDevice"
|
||||||
|
KeyAnnotation = "Annotation"
|
||||||
|
KeyConfigMap = "ConfigMap"
|
||||||
KeyContainerName = "ContainerName"
|
KeyContainerName = "ContainerName"
|
||||||
KeyImage = "Image"
|
KeyCopy = "Copy"
|
||||||
|
KeyDevice = "Device"
|
||||||
|
KeyDropCapability = "DropCapability"
|
||||||
KeyEnvironment = "Environment"
|
KeyEnvironment = "Environment"
|
||||||
KeyEnvironmentFile = "EnvironmentFile"
|
KeyEnvironmentFile = "EnvironmentFile"
|
||||||
KeyEnvironmentHost = "EnvironmentHost"
|
KeyEnvironmentHost = "EnvironmentHost"
|
||||||
KeyExec = "Exec"
|
KeyExec = "Exec"
|
||||||
KeyNoNewPrivileges = "NoNewPrivileges"
|
|
||||||
KeyDropCapability = "DropCapability"
|
|
||||||
KeyAddCapability = "AddCapability"
|
|
||||||
KeyReadOnly = "ReadOnly"
|
|
||||||
KeyRemapUsers = "RemapUsers"
|
|
||||||
KeyRemapUID = "RemapUid"
|
|
||||||
KeyRemapGID = "RemapGid"
|
|
||||||
KeyRemapUIDSize = "RemapUidSize"
|
|
||||||
KeyRootfs = "Rootfs"
|
|
||||||
KeyNotify = "Notify"
|
|
||||||
KeyExposeHostPort = "ExposeHostPort"
|
KeyExposeHostPort = "ExposeHostPort"
|
||||||
KeyPublishPort = "PublishPort"
|
|
||||||
KeyUser = "User"
|
|
||||||
KeyGroup = "Group"
|
KeyGroup = "Group"
|
||||||
KeyDevice = "Device"
|
KeyImage = "Image"
|
||||||
KeyType = "Type"
|
|
||||||
KeyOptions = "Options"
|
|
||||||
KeyCopy = "Copy"
|
|
||||||
KeyVolume = "Volume"
|
|
||||||
KeyPodmanArgs = "PodmanArgs"
|
|
||||||
KeyLabel = "Label"
|
KeyLabel = "Label"
|
||||||
KeyAnnotation = "Annotation"
|
|
||||||
KeyRunInit = "RunInit"
|
|
||||||
KeyVolatileTmp = "VolatileTmp"
|
|
||||||
KeyTimezone = "Timezone"
|
|
||||||
KeySeccompProfile = "SeccompProfile"
|
|
||||||
KeySecurityLabelDisable = "SecurityLabelDisable"
|
|
||||||
KeySecurityLabelFileType = "SecurityLabelFileType"
|
|
||||||
KeySecurityLabelType = "SecurityLabelType"
|
|
||||||
KeySecurityLabelLevel = "SecurityLabelLevel"
|
|
||||||
KeyAddDevice = "AddDevice"
|
|
||||||
KeyNetwork = "Network"
|
KeyNetwork = "Network"
|
||||||
KeyYaml = "Yaml"
|
|
||||||
KeyNetworkDisableDNS = "DisableDNS"
|
KeyNetworkDisableDNS = "DisableDNS"
|
||||||
KeyNetworkDriver = "Driver"
|
KeyNetworkDriver = "Driver"
|
||||||
KeyNetworkGateway = "Gateway"
|
KeyNetworkGateway = "Gateway"
|
||||||
KeyNetworkInternal = "Internal"
|
|
||||||
KeyNetworkIPRange = "IPRange"
|
|
||||||
KeyNetworkIPAMDriver = "IPAMDriver"
|
KeyNetworkIPAMDriver = "IPAMDriver"
|
||||||
|
KeyNetworkIPRange = "IPRange"
|
||||||
KeyNetworkIPv6 = "IPv6"
|
KeyNetworkIPv6 = "IPv6"
|
||||||
|
KeyNetworkInternal = "Internal"
|
||||||
KeyNetworkOptions = "Options"
|
KeyNetworkOptions = "Options"
|
||||||
KeyNetworkSubnet = "Subnet"
|
KeyNetworkSubnet = "Subnet"
|
||||||
KeyConfigMap = "ConfigMap"
|
KeyNoNewPrivileges = "NoNewPrivileges"
|
||||||
|
KeyNotify = "Notify"
|
||||||
|
KeyOptions = "Options"
|
||||||
|
KeyPodmanArgs = "PodmanArgs"
|
||||||
|
KeyPublishPort = "PublishPort"
|
||||||
|
KeyReadOnly = "ReadOnly"
|
||||||
|
KeyRemapGID = "RemapGid"
|
||||||
|
KeyRemapUID = "RemapUid"
|
||||||
|
KeyRemapUIDSize = "RemapUidSize"
|
||||||
|
KeyRemapUsers = "RemapUsers"
|
||||||
|
KeyRootfs = "Rootfs"
|
||||||
|
KeyRunInit = "RunInit"
|
||||||
|
KeySeccompProfile = "SeccompProfile"
|
||||||
|
KeySecurityLabelDisable = "SecurityLabelDisable"
|
||||||
|
KeySecurityLabelFileType = "SecurityLabelFileType"
|
||||||
|
KeySecurityLabelLevel = "SecurityLabelLevel"
|
||||||
|
KeySecurityLabelType = "SecurityLabelType"
|
||||||
|
KeyTimezone = "Timezone"
|
||||||
|
KeyType = "Type"
|
||||||
|
KeyUser = "User"
|
||||||
|
KeyVolatileTmp = "VolatileTmp"
|
||||||
|
KeyVolume = "Volume"
|
||||||
|
KeyYaml = "Yaml"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -87,77 +87,77 @@ var (
|
|||||||
|
|
||||||
// Supported keys in "Container" group
|
// Supported keys in "Container" group
|
||||||
supportedContainerKeys = map[string]bool{
|
supportedContainerKeys = map[string]bool{
|
||||||
|
KeyAddCapability: true,
|
||||||
|
KeyAddDevice: true,
|
||||||
|
KeyAnnotation: true,
|
||||||
KeyContainerName: true,
|
KeyContainerName: true,
|
||||||
KeyImage: true,
|
KeyDropCapability: true,
|
||||||
KeyEnvironment: true,
|
KeyEnvironment: true,
|
||||||
KeyEnvironmentFile: true,
|
KeyEnvironmentFile: true,
|
||||||
KeyEnvironmentHost: true,
|
KeyEnvironmentHost: true,
|
||||||
KeyExec: true,
|
KeyExec: true,
|
||||||
KeyNoNewPrivileges: true,
|
|
||||||
KeyDropCapability: true,
|
|
||||||
KeyAddCapability: true,
|
|
||||||
KeyReadOnly: true,
|
|
||||||
KeyRemapUsers: true,
|
|
||||||
KeyRemapUID: true,
|
|
||||||
KeyRemapGID: true,
|
|
||||||
KeyRemapUIDSize: true,
|
|
||||||
KeyRootfs: true,
|
|
||||||
KeyNotify: true,
|
|
||||||
KeyExposeHostPort: true,
|
KeyExposeHostPort: true,
|
||||||
KeyPublishPort: true,
|
|
||||||
KeyUser: true,
|
|
||||||
KeyGroup: true,
|
KeyGroup: true,
|
||||||
KeyVolume: true,
|
KeyImage: true,
|
||||||
KeyPodmanArgs: true,
|
|
||||||
KeyLabel: true,
|
KeyLabel: true,
|
||||||
KeyAnnotation: true,
|
KeyNetwork: true,
|
||||||
|
KeyNoNewPrivileges: true,
|
||||||
|
KeyNotify: true,
|
||||||
|
KeyPodmanArgs: true,
|
||||||
|
KeyPublishPort: true,
|
||||||
|
KeyReadOnly: true,
|
||||||
|
KeyRemapGID: true,
|
||||||
|
KeyRemapUID: true,
|
||||||
|
KeyRemapUIDSize: true,
|
||||||
|
KeyRemapUsers: true,
|
||||||
|
KeyRootfs: true,
|
||||||
KeyRunInit: true,
|
KeyRunInit: true,
|
||||||
KeyVolatileTmp: true,
|
|
||||||
KeyTimezone: true,
|
|
||||||
KeySeccompProfile: true,
|
KeySeccompProfile: true,
|
||||||
KeySecurityLabelDisable: true,
|
KeySecurityLabelDisable: true,
|
||||||
KeySecurityLabelFileType: true,
|
KeySecurityLabelFileType: true,
|
||||||
KeySecurityLabelType: true,
|
|
||||||
KeySecurityLabelLevel: true,
|
KeySecurityLabelLevel: true,
|
||||||
KeyAddDevice: true,
|
KeySecurityLabelType: true,
|
||||||
KeyNetwork: true,
|
KeyTimezone: true,
|
||||||
|
KeyUser: true,
|
||||||
|
KeyVolatileTmp: true,
|
||||||
|
KeyVolume: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Supported keys in "Volume" group
|
// Supported keys in "Volume" group
|
||||||
supportedVolumeKeys = map[string]bool{
|
supportedVolumeKeys = map[string]bool{
|
||||||
KeyUser: true,
|
|
||||||
KeyGroup: true,
|
|
||||||
KeyDevice: true,
|
|
||||||
KeyType: true,
|
|
||||||
KeyOptions: true,
|
|
||||||
KeyCopy: true,
|
KeyCopy: true,
|
||||||
|
KeyDevice: true,
|
||||||
|
KeyGroup: true,
|
||||||
KeyLabel: true,
|
KeyLabel: true,
|
||||||
|
KeyOptions: true,
|
||||||
|
KeyType: true,
|
||||||
|
KeyUser: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Supported keys in "Volume" group
|
// Supported keys in "Volume" group
|
||||||
supportedNetworkKeys = map[string]bool{
|
supportedNetworkKeys = map[string]bool{
|
||||||
|
KeyLabel: true,
|
||||||
KeyNetworkDisableDNS: true,
|
KeyNetworkDisableDNS: true,
|
||||||
KeyNetworkDriver: true,
|
KeyNetworkDriver: true,
|
||||||
KeyNetworkGateway: true,
|
KeyNetworkGateway: true,
|
||||||
KeyNetworkInternal: true,
|
|
||||||
KeyNetworkIPRange: true,
|
|
||||||
KeyNetworkIPAMDriver: true,
|
KeyNetworkIPAMDriver: true,
|
||||||
|
KeyNetworkIPRange: true,
|
||||||
KeyNetworkIPv6: true,
|
KeyNetworkIPv6: true,
|
||||||
|
KeyNetworkInternal: true,
|
||||||
KeyNetworkOptions: true,
|
KeyNetworkOptions: true,
|
||||||
KeyNetworkSubnet: true,
|
KeyNetworkSubnet: true,
|
||||||
KeyLabel: true,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Supported keys in "Kube" group
|
// Supported keys in "Kube" group
|
||||||
supportedKubeKeys = map[string]bool{
|
supportedKubeKeys = map[string]bool{
|
||||||
KeyYaml: true,
|
|
||||||
KeyRemapUID: true,
|
|
||||||
KeyRemapGID: true,
|
|
||||||
KeyRemapUsers: true,
|
|
||||||
KeyRemapUIDSize: true,
|
|
||||||
KeyNetwork: true,
|
|
||||||
KeyConfigMap: true,
|
KeyConfigMap: true,
|
||||||
|
KeyNetwork: true,
|
||||||
KeyPublishPort: true,
|
KeyPublishPort: true,
|
||||||
|
KeyRemapGID: true,
|
||||||
|
KeyRemapUID: true,
|
||||||
|
KeyRemapUIDSize: true,
|
||||||
|
KeyRemapUsers: true,
|
||||||
|
KeyYaml: true,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user