From: John Mulligan Date: Tue, 21 Mar 2023 15:42:25 +0000 (-0400) Subject: mgr/cephadm: add two new ingress types for haproxy X-Git-Tag: v19.0.0~1098^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=61f25e39a2146ebceef100abdf697d712defa5a4;p=ceph.git mgr/cephadm: add two new ingress types for haproxy Signed-off-by: John Mulligan --- diff --git a/src/pybind/mgr/orchestrator/module.py b/src/pybind/mgr/orchestrator/module.py index 7d8703bde7b4..0d8d17b587ef 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: