Skip to content

Commit ef72682

Browse files
committed
Rename PostgresConfig struct to PostgresConfigSpec
1 parent 797fdf1 commit ef72682

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

internal/pgbackrest/reconcile_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ func TestAddConfigToRestorePod(t *testing.T) {
522522
custom.Name = "custom-configmap-files"
523523

524524
cluster := cluster.DeepCopy()
525-
cluster.Spec.Config = &v1beta1.PostgresConfig{
525+
cluster.Spec.Config = &v1beta1.PostgresConfigSpec{
526526
Files: []corev1.VolumeProjection{
527527
{ConfigMap: &custom},
528528
},

internal/testing/validation/postgrescluster_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ func TestPostgresConfigParameters(t *testing.T) {
367367
t.Run("Valid", func(t *testing.T) {
368368
cluster := base.DeepCopy()
369369

370-
cluster.Spec.Config = &v1beta1.PostgresConfig{
370+
cluster.Spec.Config = &v1beta1.PostgresConfigSpec{
371371
Parameters: map[string]intstr.IntOrString{
372372
"wal_level": intstr.FromString("logical"),
373373
},
@@ -378,7 +378,7 @@ func TestPostgresConfigParameters(t *testing.T) {
378378
t.Run("Invalid", func(t *testing.T) {
379379
cluster := base.DeepCopy()
380380

381-
cluster.Spec.Config = &v1beta1.PostgresConfig{
381+
cluster.Spec.Config = &v1beta1.PostgresConfigSpec{
382382
Parameters: map[string]intstr.IntOrString{
383383
"wal_level": intstr.FromString("minimal"),
384384
},

pkg/apis/postgres-operator.crunchydata.com/v1beta1/postgres_types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type PostgresAuthenticationSpec struct {
1818
Rules []PostgresHBARuleSpec `json:"rules,omitempty"`
1919
}
2020

21-
type PostgresConfig struct {
21+
type PostgresConfigSpec struct {
2222
// Files to mount under "/etc/postgres".
2323
// ---
2424
// +optional

pkg/apis/postgres-operator.crunchydata.com/v1beta1/postgrescluster_types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type PostgresClusterSpec struct {
2929
Backups Backups `json:"backups,omitempty"`
3030

3131
// +optional
32-
Config *PostgresConfig `json:"config,omitempty"`
32+
Config *PostgresConfigSpec `json:"config,omitempty"`
3333

3434
// The secret containing the Certificates and Keys to encrypt PostgreSQL
3535
// traffic will need to contain the server TLS certificate, TLS key and the

pkg/apis/postgres-operator.crunchydata.com/v1beta1/zz_generated.deepcopy.go

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)