Merge pull request #17217 from ygalblum/ygal-quadlet-blockdev-support

quadlet: Add device support for .volume files
This commit is contained in:
OpenShift Merge Robot
2023-01-26 10:20:52 -05:00
committed by GitHub
5 changed files with 93 additions and 3 deletions

View File

@@ -0,0 +1,13 @@
## assert-key-contains Service ExecStart " --opt o=uid=0,gid=11,rw,compress=zstd "
## assert-key-contains Service ExecStart " --opt type=btrfs "
## assert-key-contains Service ExecStart " --opt device=/dev/vda1 "
## assert-key-contains Service ExecStart " --opt copy "
[Volume]
# Test usernames too
User=root
Group=11
Device=/dev/vda1
Type=btrfs
Options=rw,compress=zstd
Copy=yes

View File

@@ -0,0 +1,13 @@
## assert-key-contains Service ExecStart " --opt o=uid=0,gid=11,rw,compress=zstd "
## assert-key-contains Service ExecStart " --opt type=btrfs "
## assert-key-contains Service ExecStart " --opt device=/dev/vda1 "
## assert-key-contains Service ExecStart " --opt nocopy "
[Volume]
# Test usernames too
User=root
Group=11
Device=/dev/vda1
Type=btrfs
Options=rw,compress=zstd
Copy=no

View File

@@ -482,6 +482,7 @@ var _ = Describe("quadlet system generator", func() {
Entry("basic.volume", "basic.volume"),
Entry("label.volume", "label.volume"),
Entry("uid.volume", "uid.volume"),
Entry("device.volume", "device-copy.volume"),
Entry("Basic kube", "basic.kube"),
Entry("Syslog Identifier", "syslog.identifier.kube"),