Skip to content

Commit

Permalink
Dereference networking pointer in shoot validation
Browse files Browse the repository at this point in the history
Signed-off-by: Jens Schneider <[email protected]>
  • Loading branch information
JensAc committed Jun 1, 2023
1 parent 8e42dfc commit e8fd5cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/webhook/validator/shoot.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (s *shoot) Validate(ctx context.Context, new, old client.Object) error {

func (s *shoot) validateShoot(_ context.Context, shoot *core.Shoot) error {
// Network validation
if errList := validation.ValidateShootNetworking(shoot.Spec.Networking); len(errList) != 0 {
if errList := validation.ValidateShootNetworking(*shoot.Spec.Networking); len(errList) != 0 {
return errList.ToAggregate()
}

Expand All @@ -105,8 +105,8 @@ func (s *shoot) validateShoot(_ context.Context, shoot *core.Shoot) error {

// WorkerConfig and Shoot workers
if errList := validation.ValidateWorkers(shoot.Spec.Provider.Workers, fldPath.Child("workers")); len(errList) != 0 {
return errList.ToAggregate()
}
return errList.ToAggregate()
}

return nil
}
Expand Down

0 comments on commit e8fd5cf

Please sign in to comment.