Skip to content

Commit 8c2ad0e

Browse files
committed
Remove postgrescluster_types_test, ref to webhook
1 parent 87a6380 commit 8c2ad0e

File tree

3 files changed

+1
-250
lines changed

3 files changed

+1
-250
lines changed

pkg/apis/postgres-operator.crunchydata.com/v1/patroni_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type PatroniSpec struct {
1919
// +kubebuilder:pruning:PreserveUnknownFields
2020
// +kubebuilder:validation:Schemaless
2121
// +kubebuilder:validation:Type=object
22-
// +kubebuilder:validation:XValidation:rule="type(self) == null_type", message="DynamicConfiguration not available in v1, please use"
22+
// +kubebuilder:validation:XValidation:rule="type(self) == null_type || self == oldSelf", message="DynamicConfiguration not available in v1, please use ..."
2323
DynamicConfiguration v1beta1.SchemalessObject `json:"dynamicConfiguration,omitempty"`
2424

2525
// --FILL IN--

pkg/apis/postgres-operator.crunchydata.com/v1/postgrescluster_types_test.go

Lines changed: 0 additions & 244 deletions
This file was deleted.

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,9 @@ import (
1010
"testing"
1111

1212
"gotest.tools/v3/assert"
13-
"sigs.k8s.io/controller-runtime/pkg/webhook"
1413
"sigs.k8s.io/yaml"
1514
)
1615

17-
func TestPostgresClusterWebhooks(t *testing.T) {
18-
var _ webhook.Defaulter = new(PostgresCluster)
19-
}
20-
2116
func TestPostgresClusterDefault(t *testing.T) {
2217
t.Run("TypeMeta", func(t *testing.T) {
2318
var cluster PostgresCluster

0 commit comments

Comments
 (0)