diff --git a/charts/posthog/Chart.yaml b/charts/posthog/Chart.yaml index de153e16..373b7eff 100644 --- a/charts/posthog/Chart.yaml +++ b/charts/posthog/Chart.yaml @@ -11,7 +11,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. -version: 30.31.0 +version: 30.32.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. diff --git a/charts/posthog/templates/events-deployment.yaml b/charts/posthog/templates/events-deployment.yaml index afe2e04e..eba51d62 100644 --- a/charts/posthog/templates/events-deployment.yaml +++ b/charts/posthog/templates/events-deployment.yaml @@ -105,6 +105,8 @@ spec: value: '1' - name: IS_BEHIND_PROXY value: '1' + - name: POSTHOG_SKIP_MIGRATION_CHECKS + value: 'true' {{- if eq .Values.web.secureCookies false }} - name: SECURE_COOKIES value: '0' @@ -174,5 +176,4 @@ spec: {{- end }} initContainers: {{- include "_snippet-initContainers-wait-for-service-dependencies" . | indent 8 }} - {{- include "_snippet-initContainers-wait-for-migrations" . | indent 8 }} {{- end }} diff --git a/charts/posthog/templates/recordings-deployment.yaml b/charts/posthog/templates/recordings-deployment.yaml index 42b18822..375e7b0f 100644 --- a/charts/posthog/templates/recordings-deployment.yaml +++ b/charts/posthog/templates/recordings-deployment.yaml @@ -105,6 +105,8 @@ spec: value: '1' - name: IS_BEHIND_PROXY value: '1' + - name: POSTHOG_SKIP_MIGRATION_CHECKS + value: 'true' {{- if eq .Values.web.secureCookies false }} - name: SECURE_COOKIES value: '0' @@ -174,5 +176,4 @@ spec: {{- end }} initContainers: {{- include "_snippet-initContainers-wait-for-service-dependencies" . | indent 8 }} - {{- include "_snippet-initContainers-wait-for-migrations" . | indent 8 }} {{- end }} diff --git a/charts/posthog/tests/_initContainers-wait-for-migrations.yaml b/charts/posthog/tests/_initContainers-wait-for-migrations.yaml index 3d193d83..a9c082d8 100644 --- a/charts/posthog/tests/_initContainers-wait-for-migrations.yaml +++ b/charts/posthog/tests/_initContainers-wait-for-migrations.yaml @@ -1,6 +1,5 @@ suite: _initContainers-wait-for-migrations templates: - - templates/events-deployment.yaml - templates/plugins-deployment.yaml - templates/web-deployment.yaml - templates/worker-deployment.yaml @@ -10,7 +9,6 @@ templates: tests: - it: spec.template.spec.initContainers[1].env override via 'env' should work templates: # TODO: remove once secrets.yaml will be fixed/removed - - templates/events-deployment.yaml - templates/plugins-deployment.yaml - templates/web-deployment.yaml - templates/worker-deployment.yaml diff --git a/ci/kubetest/helpers/utils.py b/ci/kubetest/helpers/utils.py index 0ce6d63b..4f5e2b81 100644 --- a/ci/kubetest/helpers/utils.py +++ b/ci/kubetest/helpers/utils.py @@ -117,11 +117,12 @@ def wait_for_pods_to_be_ready(kube, labels=None, expected_count=None, namespace= job_pods = [pod for pod in pods.values() if "job-name" in pod.obj.metadata.labels] for job_pod in job_pods: - print("job logs") - try: - print([c.get_logs() for c in job_pod.get_containers()]) - except Exception: - pass + if job_pod.status().phase == "Failed": + try: + print("Job failure logs:") + print("\n".join([c.get_logs() for c in job_pod.get_containers()])) + except Exception: + pass print("job logs2") assert job_pod.status().phase != "Failed", f"Detected failed job {job_pod.obj.metadata.name}"