File tree Expand file tree Collapse file tree 3 files changed +10
-13
lines changed
pkg/apis/postgres-operator.crunchydata.com/v1beta1 Expand file tree Collapse file tree 3 files changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -1429,7 +1429,7 @@ spec:
1429
1429
running in Backup Job Pods.
1430
1430
properties:
1431
1431
path:
1432
- maxLength: 4096
1432
+ maxLength: 256
1433
1433
type: string
1434
1434
type: object
1435
1435
priorityClassName:
@@ -1596,7 +1596,7 @@ spec:
1596
1596
running in postgres instance pods.
1597
1597
properties:
1598
1598
path:
1599
- maxLength: 4096
1599
+ maxLength: 256
1600
1600
type: string
1601
1601
type: object
1602
1602
manual:
@@ -2572,7 +2572,7 @@ spec:
2572
2572
running in the repo host pod.
2573
2573
properties:
2574
2574
path:
2575
- maxLength: 4096
2575
+ maxLength: 256
2576
2576
type: string
2577
2577
type: object
2578
2578
priorityClassName:
@@ -20271,7 +20271,7 @@ spec:
20271
20271
running in Backup Job Pods.
20272
20272
properties:
20273
20273
path:
20274
- maxLength: 4096
20274
+ maxLength: 256
20275
20275
type: string
20276
20276
type: object
20277
20277
priorityClassName:
@@ -20438,7 +20438,7 @@ spec:
20438
20438
running in postgres instance pods.
20439
20439
properties:
20440
20440
path:
20441
- maxLength: 4096
20441
+ maxLength: 256
20442
20442
type: string
20443
20443
type: object
20444
20444
manual:
@@ -21414,7 +21414,7 @@ spec:
21414
21414
running in the repo host pod.
21415
21415
properties:
21416
21416
path:
21417
- maxLength: 4096
21417
+ maxLength: 256
21418
21418
type: string
21419
21419
type: object
21420
21420
priorityClassName:
Original file line number Diff line number Diff line change @@ -811,20 +811,17 @@ func serverConfig(cluster *v1beta1.PostgresCluster) iniSectionSet {
811
811
//
812
812
// This function assumes that the backups/pgbackrest spec is present in cluster.
813
813
func generateRepoHostLogPath (cluster * v1beta1.PostgresCluster ) string {
814
- var pgBackRestLogPath string
815
814
for _ , repo := range cluster .Spec .Backups .PGBackRest .Repos {
816
815
if repo .Volume != nil {
817
816
// If the user has set a log path in the spec, use it.
818
817
// Otherwise, default to /pgbackrest/repo#/log
819
818
if cluster .Spec .Backups .PGBackRest .RepoHost != nil &&
820
819
cluster .Spec .Backups .PGBackRest .RepoHost .Log != nil &&
821
820
cluster .Spec .Backups .PGBackRest .RepoHost .Log .Path != "" {
822
- pgBackRestLogPath = cluster .Spec .Backups .PGBackRest .RepoHost .Log .Path
823
- } else {
824
- pgBackRestLogPath = fmt .Sprintf (naming .PGBackRestRepoLogPath , repo .Name )
821
+ return cluster .Spec .Backups .PGBackRest .RepoHost .Log .Path
825
822
}
826
- break
823
+ return fmt . Sprintf ( naming . PGBackRestRepoLogPath , repo . Name )
827
824
}
828
825
}
829
- return pgBackRestLogPath
826
+ return ""
830
827
}
Original file line number Diff line number Diff line change @@ -386,7 +386,7 @@ func (in *AdditionalVolume) AsVolume(name string) corev1.Volume {
386
386
387
387
// LoggingConfiguration provides logging configuration for various components
388
388
type LoggingConfiguration struct {
389
- // +kubebuilder:validation:MaxLength=4096
389
+ // +kubebuilder:validation:MaxLength=256
390
390
// +optional
391
391
Path string `json:"path,omitempty"`
392
392
}
You can’t perform that action at this time.
0 commit comments