Skip to content

Commit

Permalink
Fixing HPA API Version
Browse files Browse the repository at this point in the history
  • Loading branch information
nniehoff committed Oct 24, 2022
1 parent 9f9b5a6 commit ece8d9f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/nautobot/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ annotations:
description: Fixed #181 allowing Nautobot to be used as a subchart
apiVersion: "v2"
appVersion: "1.4.7"
version: "2.0.0-alpha.9"
version: "2.0.0-alpha.10"
dependencies:
- condition: "redis.enabled"
name: "redis"
Expand Down
2 changes: 1 addition & 1 deletion charts/nautobot/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# nautobot

![Version: 2.0.0-alpha.9](https://img.shields.io/badge/Version-2.0.0--alpha.9-informational?style=flat-square) ![AppVersion: 1.4.7](https://img.shields.io/badge/AppVersion-1.4.7-informational?style=flat-square)
![Version: 2.0.0-alpha.10](https://img.shields.io/badge/Version-2.0.0--alpha.10-informational?style=flat-square) ![AppVersion: 1.4.7](https://img.shields.io/badge/AppVersion-1.4.7-informational?style=flat-square)

Nautobot is a Network Source of Truth and Network Automation Platform.

Expand Down
4 changes: 0 additions & 4 deletions charts/nautobot/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -329,12 +329,8 @@ Return the appropriate apiVersion for Horizontal Pod Autoscaler.
*/}}
{{- define "common.capabilities.hpa.apiVersion" -}}
{{- if semverCompare "<1.23-0" (include "common.capabilities.kubeVersion" .) -}}
{{- if .beta2 -}}
{{- print "autoscaling/v2beta2" -}}
{{- else -}}
{{- print "autoscaling/v2beta1" -}}
{{- end -}}
{{- else -}}
{{- print "autoscaling/v2" -}}
{{- end -}}
{{- end -}}

0 comments on commit ece8d9f

Please sign in to comment.