From 4e6c855ece3476659f7528ce059810826d724648 Mon Sep 17 00:00:00 2001 From: bcaton Date: Fri, 14 Feb 2025 10:46:13 -0500 Subject: [PATCH 1/2] adding verify false to mirror check --- kustomize/components/mirror/mirror.deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kustomize/components/mirror/mirror.deployment.yaml b/kustomize/components/mirror/mirror.deployment.yaml index c76aed2f5..c955fa4cf 100644 --- a/kustomize/components/mirror/mirror.deployment.yaml +++ b/kustomize/components/mirror/mirror.deployment.yaml @@ -55,7 +55,7 @@ spec: command: - sh - -c - - python -c "import os, requests, sys; host = os.getenv(\"QUAY_APP_SERVICE_HOST\"); sys.exit(0) if requests.get(\"http://\"+host) else sys.exit(1);" + - python -c "import os, requests, sys; host = os.getenv(\"QUAY_APP_SERVICE_HOST\"); sys.exit(0) if requests.get(\"http://\"+host, verify=False) else sys.exit(1);" env: - name: QUAY_APP_SERVICE_HOST value: $(QUAY_APP_SERVICE_HOST) From 01a00e05f2e9b2d237fc0ad189796b6e7da4a712 Mon Sep 17 00:00:00 2001 From: bcaton Date: Fri, 14 Feb 2025 11:09:06 -0500 Subject: [PATCH 2/2] disabling allow_redirects --- kustomize/components/mirror/mirror.deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kustomize/components/mirror/mirror.deployment.yaml b/kustomize/components/mirror/mirror.deployment.yaml index c955fa4cf..7c87e19d3 100644 --- a/kustomize/components/mirror/mirror.deployment.yaml +++ b/kustomize/components/mirror/mirror.deployment.yaml @@ -55,7 +55,7 @@ spec: command: - sh - -c - - python -c "import os, requests, sys; host = os.getenv(\"QUAY_APP_SERVICE_HOST\"); sys.exit(0) if requests.get(\"http://\"+host, verify=False) else sys.exit(1);" + - python -c "import os, requests, sys; host = os.getenv(\"QUAY_APP_SERVICE_HOST\"); sys.exit(0) if requests.get(\"http://\"+host, verify=False, allow_redirects=False) else sys.exit(1);" env: - name: QUAY_APP_SERVICE_HOST value: $(QUAY_APP_SERVICE_HOST)