From 4f94ba90c4712295f6638d9f0f6adb2af31d9b85 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Tue, 15 Oct 2024 09:33:04 +0200 Subject: [PATCH] add support for bind mount recursive Signed-off-by: Nicolas De Loof --- schema/compose-spec.json | 3 ++- types/derived.gen.go | 1 + types/types.go | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/schema/compose-spec.json b/schema/compose-spec.json index 8fdda4ac..0174c6d8 100644 --- a/schema/compose-spec.json +++ b/schema/compose-spec.json @@ -419,7 +419,8 @@ "properties": { "propagation": {"type": "string"}, "create_host_path": {"type": ["boolean", "string"]}, - "selinux": {"type": "string", "enum": ["z", "Z"]} + "recursive": {"type": "string", "enum": ["z", "Z"]}, + "selinux": {"type": "string", "enum": ["enabled", "disabled", "writable", "readonly"]} }, "additionalProperties": false, "patternProperties": {"^x-": {}} diff --git a/types/derived.gen.go b/types/derived.gen.go index 31323d08..d33ae280 100644 --- a/types/derived.gen.go +++ b/types/derived.gen.go @@ -2096,6 +2096,7 @@ func deriveDeepCopy_51(dst, src *ServiceVolumeBind) { dst.SELinux = src.SELinux dst.Propagation = src.Propagation dst.CreateHostPath = src.CreateHostPath + dst.Recursive = src.Recursive if src.Extensions != nil { dst.Extensions = make(map[string]any, len(src.Extensions)) src.Extensions.DeepCopy(dst.Extensions) diff --git a/types/types.go b/types/types.go index 732e46db..87474e45 100644 --- a/types/types.go +++ b/types/types.go @@ -556,6 +556,7 @@ type ServiceVolumeBind struct { SELinux string `yaml:"selinux,omitempty" json:"selinux,omitempty"` Propagation string `yaml:"propagation,omitempty" json:"propagation,omitempty"` CreateHostPath bool `yaml:"create_host_path,omitempty" json:"create_host_path,omitempty"` + Recursive string `yaml:"recursive,omitempty" json:"recursive,omitempty"` Extensions Extensions `yaml:"#extensions,inline,omitempty" json:"-"` }