Skip to content

Commit

Permalink
fix: k8s > 1.24 do not support autoscaling/v2beta1 (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanwiemers authored Nov 17, 2023
1 parent 2376528 commit 08a5668
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/mattermost-enterprise-edition/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
description: Mattermost Enterprise server with high availitibity.
name: mattermost-enterprise-edition
type: application
version: 2.6.39
version: 2.6.40
appVersion: 9.2.2
keywords:
- mattermost
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{{- if .Values.mattermostApp.autoscaling.enabled }}
{{- if semverCompare ">= 1.25-0" .Capabilities.KubeVersion.Version }}
apiVersion: autoscaling/v2
{{ else }}
apiVersion: autoscaling/v2beta1
{{ end }}
kind: HorizontalPodAutoscaler
metadata:
labels:
Expand Down

0 comments on commit 08a5668

Please sign in to comment.