Update devfile restrictions enforcer behaviour for dedicatedPod
<!--IssueSummary start-->
<details>
<summary>
Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards.
</summary>
- [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=550678)
</details>
<!--IssueSummary end-->
The following discussion from !193643 should be addressed:
- [ ] @vtak started a [discussion](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/193643#note_2551016401): (+4 comments)
> **issue**
>
> We are using rubocop disables, multiple error appending in this function. This is problematic. The multiple error appending will be addressed by the suggestion I provided above. The code in this `each` block can be simplified by doing the following
>
> ```suggestion:-15+0
> components.each do |component|
> container = component.fetch(:container, {})
>
> return append_err(_("'container' must be a hash"), context) unless container.is_a?(Hash)
>
> next unless container.has_key?(:dedicatedPod)
>
> append_err(
> _("Property 'dedicatedPod' is not yet supported"),
> context
> )
> end
> ```
issue