diff --git a/apis/cassandra/v1beta1/cassandradatacenter_webhook.go b/apis/cassandra/v1beta1/cassandradatacenter_webhook.go index 10a619d9..17f3a821 100644 --- a/apis/cassandra/v1beta1/cassandradatacenter_webhook.go +++ b/apis/cassandra/v1beta1/cassandradatacenter_webhook.go @@ -20,7 +20,6 @@ import ( "encoding/json" "errors" "fmt" - "reflect" "strings" "github.com/k8ssandra/cass-operator/pkg/images" @@ -175,15 +174,15 @@ func ValidateDatacenterFieldChanges(oldDc CassandraDatacenter, newDc CassandraDa // CassandraDataVolumeClaimSpec changes are disallowed - if !reflect.DeepEqual(oldDc.Spec.StorageConfig.CassandraDataVolumeClaimSpec, newDc.Spec.StorageConfig.CassandraDataVolumeClaimSpec) { - return attemptedTo("change storageConfig.CassandraDataVolumeClaimSpec") - } + // if !reflect.DeepEqual(oldDc.Spec.StorageConfig.CassandraDataVolumeClaimSpec, newDc.Spec.StorageConfig.CassandraDataVolumeClaimSpec) { + // return attemptedTo("change storageConfig.CassandraDataVolumeClaimSpec") + // } - if oldDc.Spec.StorageConfig.CassandraDataVolumeClaimSpec != nil { - if !reflect.DeepEqual(*oldDc.Spec.StorageConfig.CassandraDataVolumeClaimSpec, *newDc.Spec.StorageConfig.CassandraDataVolumeClaimSpec) { - return attemptedTo("change storageConfig.CassandraDataVolumeClaimSpec") - } - } + // if oldDc.Spec.StorageConfig.CassandraDataVolumeClaimSpec != nil { + // if !reflect.DeepEqual(*oldDc.Spec.StorageConfig.CassandraDataVolumeClaimSpec, *newDc.Spec.StorageConfig.CassandraDataVolumeClaimSpec) { + // return attemptedTo("change storageConfig.CassandraDataVolumeClaimSpec") + // } + // } // Topology changes - Racks // - Rack Name and Zone changes are disallowed. diff --git a/config/crd/bases/cassandra.datastax.com_cassandradatacenters.yaml b/config/crd/bases/cassandra.datastax.com_cassandradatacenters.yaml index 65605344..8cbba374 100644 --- a/config/crd/bases/cassandra.datastax.com_cassandradatacenters.yaml +++ b/config/crd/bases/cassandra.datastax.com_cassandradatacenters.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.14.0 + controller-gen.kubebuilder.io/version: v0.15.0 name: cassandradatacenters.cassandra.datastax.com spec: group: cassandra.datastax.com diff --git a/config/crd/bases/control.k8ssandra.io_cassandratasks.yaml b/config/crd/bases/control.k8ssandra.io_cassandratasks.yaml index d1c79bbf..a0dc841c 100644 --- a/config/crd/bases/control.k8ssandra.io_cassandratasks.yaml +++ b/config/crd/bases/control.k8ssandra.io_cassandratasks.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.14.0 + controller-gen.kubebuilder.io/version: v0.15.0 name: cassandratasks.control.k8ssandra.io spec: group: control.k8ssandra.io