Skip to content

Commit

Permalink
Handle an undefined primary_web_role.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdkent committed Nov 11, 2023
1 parent 6898e87 commit a9cc7c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/kamal/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,10 @@ def ensure_required_keys_present
end
end

unless role_names.include?(primary_web_role)
raise ArgumentError, "The primary_web_role #{primary_web_role} isn't defined"
end

unless traefik_role_names.include?(primary_web_role)
raise ArgumentError, "Role #{primary_web_role} needs to have traefik enabled"
end
Expand Down

0 comments on commit a9cc7c7

Please sign in to comment.