Skip to content

Commit 3c7e4a3

Browse files
authored
Update HPA apiVersion from v2beta2 to v2 (PostHog#738)
* 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 * Bump chart version
1 parent 505cda4 commit 3c7e4a3

23 files changed

+23
-23
lines changed

charts/posthog/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ type: application
1111

1212
# This is the chart version. This version number should be incremented each time you make changes
1313
# to the chart and its templates, including the app version.
14-
version: 30.18.1
14+
version: 30.19.0
1515

1616
# This is the version number of the application being deployed. This version number should be
1717
# incremented each time you make changes to the application.

charts/posthog/templates/_snippet-plugins-deployment.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ spec:
171171
---
172172

173173
{{ if .params.hpa.enabled }}
174-
apiVersion: autoscaling/v2beta2
174+
apiVersion: autoscaling/v2
175175
kind: HorizontalPodAutoscaler
176176
metadata:
177177
name: {{ template "posthog.fullname" .root }}-{{ .name }}

charts/posthog/templates/decide-hpa.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{- if and .Values.decide.enabled .Values.decide.hpa.enabled -}}
2-
apiVersion: autoscaling/v2beta2
2+
apiVersion: autoscaling/v2
33
kind: HorizontalPodAutoscaler
44
metadata:
55
name: {{ template "posthog.fullname" . }}-decide

charts/posthog/templates/events-hpa.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{- if and .Values.events.enabled .Values.events.hpa.enabled -}}
2-
apiVersion: autoscaling/v2beta2
2+
apiVersion: autoscaling/v2
33
kind: HorizontalPodAutoscaler
44
metadata:
55
name: {{ template "posthog.fullname" . }}-events

charts/posthog/templates/pgbouncer-hpa.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{- if and .Values.pgbouncer.enabled .Values.pgbouncer.hpa.enabled -}}
2-
apiVersion: autoscaling/v2beta2
2+
apiVersion: autoscaling/v2
33
kind: HorizontalPodAutoscaler
44
metadata:
55
name: {{ template "posthog.fullname" . }}-pgbouncer

charts/posthog/templates/pgbouncer-read-hpa.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{- if and .Values.pgbouncerRead.enabled .Values.pgbouncerRead.hpa.enabled -}}
2-
apiVersion: autoscaling/v2beta2
2+
apiVersion: autoscaling/v2
33
kind: HorizontalPodAutoscaler
44
metadata:
55
name: {{ template "posthog.fullname" . }}-pgbouncer-read

charts/posthog/templates/temporal-py-worker-hpa.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{- if and .Values.temporalPyWorker.enabled .Values.temporalPyWorker.hpa.enabled -}}
2-
apiVersion: autoscaling/v2beta2
2+
apiVersion: autoscaling/v2
33
kind: HorizontalPodAutoscaler
44
metadata:
55
name: {{ template "posthog.fullname" . }}-worker

charts/posthog/templates/web-hpa.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{- if and .Values.web.enabled .Values.web.hpa.enabled -}}
2-
apiVersion: autoscaling/v2beta2
2+
apiVersion: autoscaling/v2
33
kind: HorizontalPodAutoscaler
44
metadata:
55
name: {{ template "posthog.fullname" . }}-web

charts/posthog/templates/worker-hpa.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{- if and .Values.worker.enabled .Values.worker.hpa.enabled -}}
2-
apiVersion: autoscaling/v2beta2
2+
apiVersion: autoscaling/v2
33
kind: HorizontalPodAutoscaler
44
metadata:
55
name: {{ template "posthog.fullname" . }}-worker

charts/posthog/tests/events-hpa.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ tests:
3535
- hasDocuments:
3636
count: 1
3737
- isAPIVersion:
38-
of: autoscaling/v2beta2
38+
of: autoscaling/v2
3939

4040
- it: should be the correct kind
4141
set:

0 commit comments

Comments
 (0)