From 157b9858ca8927110a8e6ecafc45c28656d46333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=B3=80=EC=A0=95=ED=9B=88?= Date: Wed, 31 Dec 2025 08:42:06 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B3=80=ED=99=98=20yaml=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- migrate.py | 2 +- report.md | 16 +++++++++++++++ yaml/test__haproxy-ingress.yaml | 28 +++++++++++++++++++++++++ yaml/test__nginx-ingress.yaml | 36 +++++++++++++++++++++++++++++++++ 4 files changed, 81 insertions(+), 1 deletion(-) create mode 100644 report.md create mode 100644 yaml/test__haproxy-ingress.yaml create mode 100644 yaml/test__nginx-ingress.yaml diff --git a/migrate.py b/migrate.py index 44e2a46..c7ef9ce 100644 --- a/migrate.py +++ b/migrate.py @@ -178,7 +178,7 @@ def save_split(data, out_dir): rendered = item.pop("_rendered_annotations", "") name = item["metadata"]["name"] namespace = item["metadata"].get("namespace", "default") - path = Path(out_dir) / f"{namespace}_{name}.yaml" + path = Path(out_dir) / f"{namespace}__{name}.yaml" with open(path, "w") as f: yaml.dump(item, f) diff --git a/report.md b/report.md new file mode 100644 index 0000000..eff949c --- /dev/null +++ b/report.md @@ -0,0 +1,16 @@ +# Ingress Migration Report + +## Summary +- Converted : 2 +- Partial : 1 +- Unsupported: 1 + +--- + +## test/nginx-ingress + +- PARTIAL nginx.ingress.kubernetes.io/app-root → haproxy.org/path-rewrite + - note: Chage Value +- UNSUPPORTED proxy-buffering + - note: HAProxy does not support arbitrary NGINX snippets + diff --git a/yaml/test__haproxy-ingress.yaml b/yaml/test__haproxy-ingress.yaml new file mode 100644 index 0000000..6081f1e --- /dev/null +++ b/yaml/test__haproxy-ingress.yaml @@ -0,0 +1,28 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + annotations: + kubectl.kubernetes.io/last-applied-configuration: {"apiVersion":"networking.k8s.io/v1","kind":"Ingress","metadata":{"annotations":{},"creationTimestamp":"2025-12-29T07:28:19Z","generation":1,"name":"haproxy-ingress","namespace":"test","resourceVersion":"3565525","uid":"1c305e90-734c-4421-83a5-b3e3414796c3"},"spec":{"ingressClassName":"haproxy","rules":[{"host":"app.10.60.100.92.nip.io","http":{"paths":[{"backend":{"service":{"name":"test-app","port":{"number":8080}}},"path":"/","pathType":"Prefix"}]}}]},"status":{"loadBalancer":{}}} + + annotations: {} + creationTimestamp: "2025-12-29T07:28:19Z" + generation: 1 + name: haproxy-ingress + namespace: test + resourceVersion: "4241506" + uid: 1c305e90-734c-4421-83a5-b3e3414796c3 +spec: + ingressClassName: haproxy + rules: + - host: app.10.60.100.92.nip.io + http: + paths: + - backend: + service: + name: test-app + port: + number: 8080 + path: / + pathType: Prefix +status: + loadBalancer: {} diff --git a/yaml/test__nginx-ingress.yaml b/yaml/test__nginx-ingress.yaml new file mode 100644 index 0000000..681db07 --- /dev/null +++ b/yaml/test__nginx-ingress.yaml @@ -0,0 +1,36 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + annotations: + # HAProxy does not support arbitrary NGINX snippets + #proxy-buffering: on + + # PARTIAL SUPPORT: Chage Value + haproxy.org/path-rewrite: /kor + + haproxy.org/proxy-connect-timeout: 100 + haproxy.org/ssl-redirect: true + annotations: {} + creationTimestamp: "2025-12-30T23:22:37Z" + generation: 1 + name: nginx-ingress + namespace: test + resourceVersion: "4549046" + uid: 9948d763-7e01-4a34-9b2b-a733fd9acff5 +spec: + ingressClassName: haproxy + rules: + - host: app.10.60.100.91.nip.io + http: + paths: + - backend: + service: + name: test-app + port: + number: 8080 + path: / + pathType: Prefix +status: + loadBalancer: + ingress: + - ip: 10.60.100.91