From 9e8b300851e6cfc83e4c4f294f3ba76807d99fcc Mon Sep 17 00:00:00 2001 From: Frank Hamand Date: Tue, 23 May 2023 14:12:19 +0100 Subject: [PATCH 1/2] Update HPA apiVersion from v2beta2 to v2 v2beta2 is deprecated and will be removed in 1.26 There are no changes with v2, so no further changes are needed, no resources will be destroyed or created from this change --- charts/posthog/templates/_snippet-plugins-deployment.tpl | 2 +- charts/posthog/templates/decide-hpa.yaml | 2 +- charts/posthog/templates/events-hpa.yaml | 2 +- charts/posthog/templates/pgbouncer-hpa.yaml | 2 +- charts/posthog/templates/pgbouncer-read-hpa.yaml | 2 +- charts/posthog/templates/temporal-py-worker-hpa.yaml | 2 +- charts/posthog/templates/web-hpa.yaml | 2 +- charts/posthog/templates/worker-hpa.yaml | 2 +- charts/posthog/tests/events-hpa.yaml | 2 +- charts/posthog/tests/pgbouncer-hpa.yaml | 2 +- charts/posthog/tests/pgbouncer-read-hpa.yaml | 2 +- charts/posthog/tests/plugins-analytics-ingestion-hpa.yaml | 2 +- charts/posthog/tests/plugins-async-hpa.yaml | 2 +- charts/posthog/tests/plugins-exports-hpa.yaml | 2 +- charts/posthog/tests/plugins-hpa.yaml | 2 +- charts/posthog/tests/plugins-ingestion-hpa.yaml | 2 +- charts/posthog/tests/plugins-ingestion-overflow-hpa.yaml | 2 +- charts/posthog/tests/plugins-jobs-hpa.yaml | 2 +- charts/posthog/tests/plugins-scheduler-hpa.yaml | 2 +- charts/posthog/tests/recordings-ingestion-hpa.yaml | 2 +- charts/posthog/tests/web-hpa.yaml | 2 +- charts/posthog/tests/worker-hpa.yaml | 2 +- 22 files changed, 22 insertions(+), 22 deletions(-) diff --git a/charts/posthog/templates/_snippet-plugins-deployment.tpl b/charts/posthog/templates/_snippet-plugins-deployment.tpl index 211b8a014..b09ec6238 100644 --- a/charts/posthog/templates/_snippet-plugins-deployment.tpl +++ b/charts/posthog/templates/_snippet-plugins-deployment.tpl @@ -171,7 +171,7 @@ spec: --- {{ if .params.hpa.enabled }} -apiVersion: autoscaling/v2beta2 +apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: {{ template "posthog.fullname" .root }}-{{ .name }} diff --git a/charts/posthog/templates/decide-hpa.yaml b/charts/posthog/templates/decide-hpa.yaml index f4f35c6a5..c9c00577e 100644 --- a/charts/posthog/templates/decide-hpa.yaml +++ b/charts/posthog/templates/decide-hpa.yaml @@ -1,5 +1,5 @@ {{- if and .Values.decide.enabled .Values.decide.hpa.enabled -}} -apiVersion: autoscaling/v2beta2 +apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: {{ template "posthog.fullname" . }}-decide diff --git a/charts/posthog/templates/events-hpa.yaml b/charts/posthog/templates/events-hpa.yaml index 20613ff06..de4f7b467 100644 --- a/charts/posthog/templates/events-hpa.yaml +++ b/charts/posthog/templates/events-hpa.yaml @@ -1,5 +1,5 @@ {{- if and .Values.events.enabled .Values.events.hpa.enabled -}} -apiVersion: autoscaling/v2beta2 +apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: {{ template "posthog.fullname" . }}-events diff --git a/charts/posthog/templates/pgbouncer-hpa.yaml b/charts/posthog/templates/pgbouncer-hpa.yaml index 024949130..efdaf795e 100644 --- a/charts/posthog/templates/pgbouncer-hpa.yaml +++ b/charts/posthog/templates/pgbouncer-hpa.yaml @@ -1,5 +1,5 @@ {{- if and .Values.pgbouncer.enabled .Values.pgbouncer.hpa.enabled -}} -apiVersion: autoscaling/v2beta2 +apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: {{ template "posthog.fullname" . }}-pgbouncer diff --git a/charts/posthog/templates/pgbouncer-read-hpa.yaml b/charts/posthog/templates/pgbouncer-read-hpa.yaml index b77df53d0..f77fb2b14 100644 --- a/charts/posthog/templates/pgbouncer-read-hpa.yaml +++ b/charts/posthog/templates/pgbouncer-read-hpa.yaml @@ -1,5 +1,5 @@ {{- if and .Values.pgbouncerRead.enabled .Values.pgbouncerRead.hpa.enabled -}} -apiVersion: autoscaling/v2beta2 +apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: {{ template "posthog.fullname" . }}-pgbouncer-read diff --git a/charts/posthog/templates/temporal-py-worker-hpa.yaml b/charts/posthog/templates/temporal-py-worker-hpa.yaml index 24621ac0b..948cb265a 100644 --- a/charts/posthog/templates/temporal-py-worker-hpa.yaml +++ b/charts/posthog/templates/temporal-py-worker-hpa.yaml @@ -1,5 +1,5 @@ {{- if and .Values.temporalPyWorker.enabled .Values.temporalPyWorker.hpa.enabled -}} -apiVersion: autoscaling/v2beta2 +apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: {{ template "posthog.fullname" . }}-worker diff --git a/charts/posthog/templates/web-hpa.yaml b/charts/posthog/templates/web-hpa.yaml index fa550df51..06e6e6a53 100644 --- a/charts/posthog/templates/web-hpa.yaml +++ b/charts/posthog/templates/web-hpa.yaml @@ -1,5 +1,5 @@ {{- if and .Values.web.enabled .Values.web.hpa.enabled -}} -apiVersion: autoscaling/v2beta2 +apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: {{ template "posthog.fullname" . }}-web diff --git a/charts/posthog/templates/worker-hpa.yaml b/charts/posthog/templates/worker-hpa.yaml index 86bc55f38..daabf4643 100644 --- a/charts/posthog/templates/worker-hpa.yaml +++ b/charts/posthog/templates/worker-hpa.yaml @@ -1,5 +1,5 @@ {{- if and .Values.worker.enabled .Values.worker.hpa.enabled -}} -apiVersion: autoscaling/v2beta2 +apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: {{ template "posthog.fullname" . }}-worker diff --git a/charts/posthog/tests/events-hpa.yaml b/charts/posthog/tests/events-hpa.yaml index 3e39fc4e5..d6117a1f7 100644 --- a/charts/posthog/tests/events-hpa.yaml +++ b/charts/posthog/tests/events-hpa.yaml @@ -35,7 +35,7 @@ tests: - hasDocuments: count: 1 - isAPIVersion: - of: autoscaling/v2beta2 + of: autoscaling/v2 - it: should be the correct kind set: diff --git a/charts/posthog/tests/pgbouncer-hpa.yaml b/charts/posthog/tests/pgbouncer-hpa.yaml index 29dc10dcc..ea3215ae0 100644 --- a/charts/posthog/tests/pgbouncer-hpa.yaml +++ b/charts/posthog/tests/pgbouncer-hpa.yaml @@ -35,7 +35,7 @@ tests: - hasDocuments: count: 1 - isAPIVersion: - of: autoscaling/v2beta2 + of: autoscaling/v2 - it: should be the correct kind set: diff --git a/charts/posthog/tests/pgbouncer-read-hpa.yaml b/charts/posthog/tests/pgbouncer-read-hpa.yaml index 07ebfce0e..3160c22c3 100644 --- a/charts/posthog/tests/pgbouncer-read-hpa.yaml +++ b/charts/posthog/tests/pgbouncer-read-hpa.yaml @@ -32,7 +32,7 @@ tests: - hasDocuments: count: 1 - isAPIVersion: - of: autoscaling/v2beta2 + of: autoscaling/v2 - it: should be the correct kind set: diff --git a/charts/posthog/tests/plugins-analytics-ingestion-hpa.yaml b/charts/posthog/tests/plugins-analytics-ingestion-hpa.yaml index b5a2ba3d9..6d41deedb 100644 --- a/charts/posthog/tests/plugins-analytics-ingestion-hpa.yaml +++ b/charts/posthog/tests/plugins-analytics-ingestion-hpa.yaml @@ -48,7 +48,7 @@ tests: - hasDocuments: count: 2 - isAPIVersion: - of: autoscaling/v2beta2 + of: autoscaling/v2 documentIndex: 1 - it: should be the correct kind diff --git a/charts/posthog/tests/plugins-async-hpa.yaml b/charts/posthog/tests/plugins-async-hpa.yaml index d5df41f7b..442fe2669 100644 --- a/charts/posthog/tests/plugins-async-hpa.yaml +++ b/charts/posthog/tests/plugins-async-hpa.yaml @@ -48,7 +48,7 @@ tests: - hasDocuments: count: 2 - isAPIVersion: - of: autoscaling/v2beta2 + of: autoscaling/v2 documentIndex: 1 - it: should be the correct kind diff --git a/charts/posthog/tests/plugins-exports-hpa.yaml b/charts/posthog/tests/plugins-exports-hpa.yaml index f2ad80173..88f00c292 100644 --- a/charts/posthog/tests/plugins-exports-hpa.yaml +++ b/charts/posthog/tests/plugins-exports-hpa.yaml @@ -48,7 +48,7 @@ tests: - hasDocuments: count: 2 - isAPIVersion: - of: autoscaling/v2beta2 + of: autoscaling/v2 documentIndex: 1 - it: should be the correct kind diff --git a/charts/posthog/tests/plugins-hpa.yaml b/charts/posthog/tests/plugins-hpa.yaml index 4ad5d803e..5092c6655 100644 --- a/charts/posthog/tests/plugins-hpa.yaml +++ b/charts/posthog/tests/plugins-hpa.yaml @@ -48,7 +48,7 @@ tests: - hasDocuments: count: 2 - isAPIVersion: - of: autoscaling/v2beta2 + of: autoscaling/v2 documentIndex: 1 - it: should be the correct kind diff --git a/charts/posthog/tests/plugins-ingestion-hpa.yaml b/charts/posthog/tests/plugins-ingestion-hpa.yaml index 45ad37de1..7193d53a1 100644 --- a/charts/posthog/tests/plugins-ingestion-hpa.yaml +++ b/charts/posthog/tests/plugins-ingestion-hpa.yaml @@ -48,7 +48,7 @@ tests: - hasDocuments: count: 2 - isAPIVersion: - of: autoscaling/v2beta2 + of: autoscaling/v2 documentIndex: 1 - it: should be the correct kind diff --git a/charts/posthog/tests/plugins-ingestion-overflow-hpa.yaml b/charts/posthog/tests/plugins-ingestion-overflow-hpa.yaml index 36f0b9c11..24dfddcab 100644 --- a/charts/posthog/tests/plugins-ingestion-overflow-hpa.yaml +++ b/charts/posthog/tests/plugins-ingestion-overflow-hpa.yaml @@ -52,7 +52,7 @@ tests: - hasDocuments: count: 2 - isAPIVersion: - of: autoscaling/v2beta2 + of: autoscaling/v2 documentIndex: 1 - it: should be the correct kind diff --git a/charts/posthog/tests/plugins-jobs-hpa.yaml b/charts/posthog/tests/plugins-jobs-hpa.yaml index 9fdf3de70..427ef8433 100644 --- a/charts/posthog/tests/plugins-jobs-hpa.yaml +++ b/charts/posthog/tests/plugins-jobs-hpa.yaml @@ -48,7 +48,7 @@ tests: - hasDocuments: count: 2 - isAPIVersion: - of: autoscaling/v2beta2 + of: autoscaling/v2 documentIndex: 1 - it: should be the correct kind diff --git a/charts/posthog/tests/plugins-scheduler-hpa.yaml b/charts/posthog/tests/plugins-scheduler-hpa.yaml index 83f439c56..56f16a362 100644 --- a/charts/posthog/tests/plugins-scheduler-hpa.yaml +++ b/charts/posthog/tests/plugins-scheduler-hpa.yaml @@ -48,7 +48,7 @@ tests: - hasDocuments: count: 2 - isAPIVersion: - of: autoscaling/v2beta2 + of: autoscaling/v2 documentIndex: 1 - it: should be the correct kind diff --git a/charts/posthog/tests/recordings-ingestion-hpa.yaml b/charts/posthog/tests/recordings-ingestion-hpa.yaml index e5a224f6f..41b103c01 100644 --- a/charts/posthog/tests/recordings-ingestion-hpa.yaml +++ b/charts/posthog/tests/recordings-ingestion-hpa.yaml @@ -48,7 +48,7 @@ tests: - hasDocuments: count: 2 - isAPIVersion: - of: autoscaling/v2beta2 + of: autoscaling/v2 documentIndex: 1 - it: should be the correct kind diff --git a/charts/posthog/tests/web-hpa.yaml b/charts/posthog/tests/web-hpa.yaml index 9fd9fcf40..42e447329 100644 --- a/charts/posthog/tests/web-hpa.yaml +++ b/charts/posthog/tests/web-hpa.yaml @@ -35,7 +35,7 @@ tests: - hasDocuments: count: 1 - isAPIVersion: - of: autoscaling/v2beta2 + of: autoscaling/v2 - it: should be the correct kind set: diff --git a/charts/posthog/tests/worker-hpa.yaml b/charts/posthog/tests/worker-hpa.yaml index 48db29da8..3b5cedd3f 100644 --- a/charts/posthog/tests/worker-hpa.yaml +++ b/charts/posthog/tests/worker-hpa.yaml @@ -35,7 +35,7 @@ tests: - hasDocuments: count: 1 - isAPIVersion: - of: autoscaling/v2beta2 + of: autoscaling/v2 - it: should be the correct kind set: From f8521f8fe60db2dfa6624cc1dd5b667cb1c57a3d Mon Sep 17 00:00:00 2001 From: Frank Hamand Date: Tue, 23 May 2023 14:15:43 +0100 Subject: [PATCH 2/2] Bump chart version --- charts/posthog/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/posthog/Chart.yaml b/charts/posthog/Chart.yaml index 2509b1a31..85b69af6b 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.18.1 +version: 30.19.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.