mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-03 18:22:09 +02:00
feat: Add SubPathExpr option for additionalVolumes (#2463)
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user