Skip to content

Commit d77f49d

Browse files
author
CloudNativePG Automated Updates
committed
chore: sync API
1 parent 845116c commit d77f49d

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

pkg/api/v1/cluster_types.go

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1428,6 +1428,9 @@ type CertificatesStatus struct {
14281428
// BootstrapInitDB is the configuration of the bootstrap process when
14291429
// initdb is used
14301430
// Refer to the Bootstrap page of the documentation for more information.
1431+
// +kubebuilder:validation:XValidation:rule="!has(self.builtinLocale) || self.localeProvider == 'builtin'",message="builtinLocale is only available when localeProvider is set to `builtin`"
1432+
// +kubebuilder:validation:XValidation:rule="!has(self.icuLocale) || self.localeProvider == 'icu'",message="icuLocale is only available when localeProvider is set to `icu`"
1433+
// +kubebuilder:validation:XValidation:rule="!has(self.icuRules) || self.localeProvider == 'icu'",message="icuRules is only available when localeProvider is set to `icu`"
14311434
type BootstrapInitDB struct {
14321435
// Name of the database used by the application. Default: `app`.
14331436
// +optional
@@ -1468,6 +1471,33 @@ type BootstrapInitDB struct {
14681471
// +optional
14691472
LocaleCType string `json:"localeCType,omitempty"`
14701473

1474+
// Sets the default collation order and character classification in the new database.
1475+
// +optional
1476+
Locale string `json:"locale,omitempty"`
1477+
1478+
// This option sets the locale provider for databases created in the new cluster.
1479+
// Available from PostgreSQL 16.
1480+
// +optional
1481+
LocaleProvider string `json:"localeProvider,omitempty"`
1482+
1483+
// Specifies the ICU locale when the ICU provider is used.
1484+
// This option requires `localeProvider` to be set to `icu`.
1485+
// Available from PostgreSQL 15.
1486+
// +optional
1487+
IcuLocale string `json:"icuLocale,omitempty"`
1488+
1489+
// Specifies additional collation rules to customize the behavior of the default collation.
1490+
// This option requires `localeProvider` to be set to `icu`.
1491+
// Available from PostgreSQL 16.
1492+
// +optional
1493+
IcuRules string `json:"icuRules,omitempty"`
1494+
1495+
// Specifies the locale name when the builtin provider is used.
1496+
// This option requires `localeProvider` to be set to `builtin`.
1497+
// Available from PostgreSQL 17.
1498+
// +optional
1499+
BuiltinLocale string `json:"builtinLocale,omitempty"`
1500+
14711501
// The value in megabytes (1 to 1024) to be passed to the `--wal-segsize`
14721502
// option for initdb (default: empty, resulting in PostgreSQL default: 16MB)
14731503
// +kubebuilder:validation:Minimum=1

0 commit comments

Comments
 (0)