Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: k8s > 1.24 do not support autoscaling/v2beta1 #427

Merged
merged 4 commits into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
spirosoik marked this conversation as resolved.
Show resolved Hide resolved
{{ else }}
apiVersion: autoscaling/v2beta1
{{ end }}
kind: HorizontalPodAutoscaler
metadata:
labels:
Expand Down