Skip to content

Commit

Permalink
Fix Delete Encrypted Etcd Cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
tatlat committed Apr 9, 2024
1 parent 689f338 commit 5c7fd9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/v1alpha1/cluster_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (r *Cluster) ValidateCreate() (admission.Warnings, error) {
return nil, apierrors.NewBadRequest("creating new cluster on existing cluster is not supported for self managed clusters")
}

if r.Spec.EtcdEncryption != nil {
if !r.IsReconcilePaused() && r.Spec.EtcdEncryption != nil {
allErrs = append(allErrs, field.Invalid(field.NewPath("spec.etcdEncryption"), r.Spec.EtcdEncryption, "etcdEncryption is not supported during cluster creation"))
}

Expand Down

0 comments on commit 5c7fd9e

Please sign in to comment.