   []
   (state/add-item {:containerPort 0
                    :protocol      "tcp"
+                   :mode          "ingress"
                    :hostPort      0} form-value-cursor))
 
 (rum/defc form < rum/reactive []

       :value       "udp"
       :primaryText "UDP"})))

(defn- form-host [value index]
  (list/textfield
    {:name     (str "form-host-text-" index)

     :on-success (fn [{:keys [response]}]
                   (doseq [port response]
                     (if (not-suggested? port)
                       (state/add-item (merge port
                                              {:mode "ingress"}) form-value-cursor))))
     :on-error   (fn [_])}))

(def headers [{:name  "Container port"
               :width "100px"}
              {:name  "Protocol"
               :width "100px"}
              {:name  "Mode"
               :width "150px"}
              {:name  "Host port"
               :width "100px"}])

