From 9414a9f537a5296048d4e371f1046e4f1513ab59 Mon Sep 17 00:00:00 2001 From: Prithviraj Patil <116709298+prithvipatil97@users.noreply.github.com> Date: Sat, 12 Jul 2025 02:55:13 +0530 Subject: [PATCH] [OSDOCS-15295] Update nw-customize-ingress-error-pages.adoc Command correction in Customizing HAProxy error code response pages Here is the documentation link: https://docs.redhat.com/en/documentation/openshift_container_platform/4.16/html/networking/networking-operators#nw-customize-ingress-error-pages_configuring-ingress Here is the current look: Procedure Create a config map named my-custom-error-code-pages in the openshift-config namespace: $ oc -n openshift-config create configmap my-custom-error-code-pages \ --from-file=error-page-503.http \ --from-file=error-page-404.http The above command is not structured properly. We can use the above command as well, and it will execute perfectly. But its structure is not as per our standard procedure. Hence, it needs to be changed. Here is the updatd look: Procedure Create a config map named my-custom-error-code-pages in the openshift-config namespace: $ oc -n openshift-config create configmap my-custom-error-code-pages \ --from-file=error-page-503.http \ --from-file=error-page-404.http [new-commit] Update nw-customize-ingress-error-pages.adoc [new-commit] Update nw-customize-ingress-error-pages.adoc --- modules/nw-customize-ingress-error-pages.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/nw-customize-ingress-error-pages.adoc b/modules/nw-customize-ingress-error-pages.adoc index e047043f5ac3..e489045bf4ce 100644 --- a/modules/nw-customize-ingress-error-pages.adoc +++ b/modules/nw-customize-ingress-error-pages.adoc @@ -27,8 +27,8 @@ If you use the {product-title} default 503 error code page as a template for you [source,terminal] ---- $ oc -n openshift-config create configmap my-custom-error-code-pages \ ---from-file=error-page-503.http \ ---from-file=error-page-404.http + --from-file=error-page-503.http \ + --from-file=error-page-404.http ---- . Patch the Ingress Controller to reference the `my-custom-error-code-pages` config map by name: @@ -79,7 +79,7 @@ Verify your custom error code HTTP response: + [source,terminal] ---- - $ oc new-project test-ingress +$ oc new-project test-ingress ---- + [source,terminal]