feat: Add SubPathExpr option for additionalVolumes (#2463)

This commit is contained in:
Samuel Mutel
2024-05-24 11:55:22 +02:00
committed by GitHub
parent 1839baaad3
commit 7bcb73a402
8 changed files with 78 additions and 7 deletions
+3
View File
@@ -168,6 +168,9 @@ var PostgresCRDResourceValidation = apiextv1.CustomResourceValidation{
"subPath": {
Type: "string",
},
"isSubPathExpr": {
Type: "boolean",
},
},
},
},
@@ -143,6 +143,7 @@ type AdditionalVolume struct {
Name string `json:"name"`
MountPath string `json:"mountPath"`
SubPath string `json:"subPath,omitempty"`
IsSubPathExpr bool `json:"isSubPathExpr,omitemtpy"`
TargetContainers []string `json:"targetContainers"`
VolumeSource v1.VolumeSource `json:"volumeSource"`
}