From 9d906eb12127c3f88fcf5f3a9ec7f651d88fc6bd 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 21a5cfd00ed7fd5c43e27ac6b47fcc7c053f0984 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)