Skip to content

Commit

Permalink
Merge pull request #4096 from lonelyCZ/fix-mcs-webhook
Browse files Browse the repository at this point in the history
Fix to validate spec.types of MultiClusterService Webhook
  • Loading branch information
karmada-bot authored Oct 9, 2023
2 parents 38ec579 + 9aefb4c commit ff433ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/webhook/multiclusterservice/validating.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func (v *ValidatingAdmission) validateMultiClusterServiceSpec(mcs *networkingv1a
allErrs = append(allErrs, v.validateExposurePort(&port, allPortNames, portPath)...)
}
typesPath := specPath.Child("types")
for i := range mcs.Spec.Ports {
for i := range mcs.Spec.Types {
typePath := typesPath.Index(i)
exposureType := mcs.Spec.Types[i]
allErrs = append(allErrs, v.validateExposureType(&exposureType, typePath)...)
Expand Down

0 comments on commit ff433ce

Please sign in to comment.