Skip to content

Commit 73c78ac

Browse files
committed
Rename PostgresConfig struct to PostgresConfigSpec
1 parent db1c90d commit 73c78ac

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
@@ -252,7 +252,7 @@ func TestPostgresConfigParameters(t *testing.T) {
252252
t.Run("Valid", func(t *testing.T) {
253253
cluster := base.DeepCopy()
254254

255-
cluster.Spec.Config = &v1beta1.PostgresConfig{
255+
cluster.Spec.Config = &v1beta1.PostgresConfigSpec{
256256
Parameters: map[string]intstr.IntOrString{
257257
"wal_level": intstr.FromString("logical"),
258258
},
@@ -263,7 +263,7 @@ func TestPostgresConfigParameters(t *testing.T) {
263263
t.Run("Invalid", func(t *testing.T) {
264264
cluster := base.DeepCopy()
265265

266-
cluster.Spec.Config = &v1beta1.PostgresConfig{
266+
cluster.Spec.Config = &v1beta1.PostgresConfigSpec{
267267
Parameters: map[string]intstr.IntOrString{
268268
"wal_level": intstr.FromString("minimal"),
269269
},

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)