Skip to content

Commit

Permalink
Merge pull request #2038 from z0rc/autoscaling-v2-1.23
Browse files Browse the repository at this point in the history
[loki-distributed] Relax autoscaling/v2 compatibility to 1.23
  • Loading branch information
zanhsieh committed Dec 4, 2022
2 parents 461874b + a7bbf7f commit 1058220
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/loki-distributed/Chart.yaml
Expand Up @@ -3,7 +3,7 @@ name: loki-distributed
description: Helm chart for Grafana Loki in microservices mode
type: application
appVersion: 2.6.1
version: 0.66.7
version: 0.66.8
home: https://grafana.github.io/helm-charts
sources:
- https://github.com/grafana/loki
Expand Down
2 changes: 1 addition & 1 deletion charts/loki-distributed/README.md
@@ -1,6 +1,6 @@
# loki-distributed

![Version: 0.66.7](https://img.shields.io/badge/Version-0.66.7-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.6.1](https://img.shields.io/badge/AppVersion-2.6.1-informational?style=flat-square)
![Version: 0.66.8](https://img.shields.io/badge/Version-0.66.8-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.6.1](https://img.shields.io/badge/AppVersion-2.6.1-informational?style=flat-square)

Helm chart for Grafana Loki in microservices mode

Expand Down
2 changes: 1 addition & 1 deletion charts/loki-distributed/templates/_helpers.tpl
Expand Up @@ -145,7 +145,7 @@ Return the appropriate apiVersion for PodDisruptionBudget.
Return the appropriate apiVersion for HorizontalPodAutoscaler.
*/}}
{{- define "loki.hpa.apiVersion" -}}
{{- if and (.Capabilities.APIVersions.Has "autoscaling/v2") (semverCompare ">=1.25-0" .Capabilities.KubeVersion.Version) -}}
{{- if and (.Capabilities.APIVersions.Has "autoscaling/v2") (semverCompare ">=1.23-0" .Capabilities.KubeVersion.Version) -}}
{{- print "autoscaling/v2" -}}
{{- else -}}
{{- print "autoscaling/v2beta1" -}}
Expand Down

0 comments on commit 1058220

Please sign in to comment.