Update devfile restrictions enforcer behaviour for dedicatedPod
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
The following discussion from !193643 (merged) should be addressed:
-
@vtak started a discussion: (+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 followingcomponents.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
Edited by 🤖 GitLab Bot 🤖