File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
internal/controller/postgrescluster
pkg/apis/postgres-operator.crunchydata.com/v1beta1 Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1254,7 +1254,7 @@ func (r *Reconciler) reconcileInstance(
1254
1254
}
1255
1255
1256
1256
// mount additional volumes to the Postgres instance containers
1257
- if err == nil && spec .Volumes != nil && spec .Volumes .Additional != nil {
1257
+ if err == nil && spec .Volumes != nil && len ( spec .Volumes .Additional ) > 0 {
1258
1258
addAdditionalVolumesToSpecifiedContainers (& instance .Spec .Template , spec .Volumes .Additional )
1259
1259
}
1260
1260
Original file line number Diff line number Diff line change @@ -538,7 +538,7 @@ type PostgresVolumesSpec struct {
538
538
// +listType=map
539
539
// +listMapKey=name
540
540
// +kubebuilder:validation:MaxItems=10
541
- Additional []* AdditionalVolume `json:"additional,omitempty"`
541
+ Additional []AdditionalVolume `json:"additional,omitempty"`
542
542
}
543
543
544
544
type AdditionalVolume struct {
@@ -549,8 +549,8 @@ type AdditionalVolume struct {
549
549
// The `Name` field is a `DNS1123Subdomain` type to enforce
550
550
// the max length and also allow us to more easily transition
551
551
// to CPK-provisioned volumes.
552
- // +kubebuilder:validation:Required
553
- Name DNS1123Subdomain `json:"name,omitempty "`
552
+ // +required
553
+ Name DNS1123Subdomain `json:"name"`
554
554
555
555
// A reference to a preexisting PVC.
556
556
// ---
You can’t perform that action at this time.
0 commit comments