Skip to content

Commit d25ead8

Browse files
committed
fix: remove validation of empty tenand credentials
1 parent 79800a1 commit d25ead8

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

api/v1alpha1/obtenant_webhook.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,6 @@ func (r *OBTenant) ValidateUpdate(old runtime.Object) (admission.Warnings, error
9393
func (r *OBTenant) validateMutation() error {
9494
var allErrs field.ErrorList
9595

96-
if r.Spec.Credentials.Root == "" {
97-
allErrs = append(allErrs, field.Invalid(field.NewPath("spec").Child("credentials").Child("root"), r.Spec.Credentials.Root, "Root password user secretref must be set"))
98-
}
99-
if r.Spec.Credentials.StandbyRO == "" {
100-
allErrs = append(allErrs, field.Invalid(field.NewPath("spec").Child("credentials").Child("standbyRo"), r.Spec.Credentials.StandbyRO, "Standby read-only user password secretref must be set"))
101-
}
102-
10396
// 1. Standby tenant must have a source
10497
if r.Spec.TenantRole == constants.TenantRoleStandby {
10598
if r.Spec.Source == nil {

0 commit comments

Comments
 (0)