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:
@@ -20275,7 +20275,7 @@ spec:
20275
20275
running in Backup Job Pods.
20276
20276
properties:
20277
20277
path:
20278
- maxLength: 4096
20278
+ maxLength: 256
20279
20279
type: string
20280
20280
type: object
20281
20281
priorityClassName:
@@ -20442,7 +20442,7 @@ spec:
20442
20442
running in postgres instance pods.
20443
20443
properties:
20444
20444
path:
20445
- maxLength: 4096
20445
+ maxLength: 256
20446
20446
type: string
20447
20447
type: object
20448
20448
manual:
@@ -21418,7 +21418,7 @@ spec:
21418
21418
running in the repo host pod.
21419
21419
properties:
21420
21420
path:
21421
- maxLength: 4096
21421
+ maxLength: 256
21422
21422
type: string
21423
21423
type: object
21424
21424
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