From 61f25e39a2146ebceef100abdf697d712defa5a4 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Tue, 21 Mar 2023 11:42:25 -0400 Subject: [PATCH] mgr/cephadm: add two new ingress types for haproxy Signed-off-by: John Mulligan --- src/pybind/mgr/orchestrator/module.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/pybind/mgr/orchestrator/module.py b/src/pybind/mgr/orchestrator/module.py index 7d8703bde7b4f..0d8d17b587efa 100644 --- a/src/pybind/mgr/orchestrator/module.py +++ b/src/pybind/mgr/orchestrator/module.py @@ -173,6 +173,13 @@ class DaemonAction(enum.Enum): class IngressType(enum.Enum): default = 'default' keepalive_only = 'keepalive-only' + haproxy_standard = 'haproxy-standard' + haproxy_protocol = 'haproxy-protocol' + + def canonicalize(self) -> "IngressType": + if self == self.default: + return self.haproxy_standard + return self def to_format(what: Any, format: Format, many: bool, cls: Any) -> Any: -- 2.39.5