fix scaleTargetRef definition for KEDA v.2
This commit is contained in:
parent
9bf4155724
commit
d70652a0eb
3 changed files with 13 additions and 3 deletions
|
@ -4,6 +4,11 @@ This file documents all notable changes to [ingress-nginx](https://github.com/ku
|
||||||
|
|
||||||
### Unreleased
|
### Unreleased
|
||||||
|
|
||||||
|
### 3.20.1
|
||||||
|
|
||||||
|
- Do not create KEDA in case of DaemonSets.
|
||||||
|
- Fix KEDA v2 definition
|
||||||
|
|
||||||
### 3.20.0
|
### 3.20.0
|
||||||
|
|
||||||
- [] [#6730](https://github.com/kubernetes/ingress-nginx/pull/6730) Do not create HPA for defaultBackend if not enabled.
|
- [] [#6730](https://github.com/kubernetes/ingress-nginx/pull/6730) Do not create HPA for defaultBackend if not enabled.
|
||||||
|
|
|
@ -2,7 +2,7 @@ apiVersion: v2
|
||||||
name: ingress-nginx
|
name: ingress-nginx
|
||||||
# When the version is modified, make sure the artifacthub.io/changes list is updated
|
# When the version is modified, make sure the artifacthub.io/changes list is updated
|
||||||
# Also update CHANGELOG.md
|
# Also update CHANGELOG.md
|
||||||
version: 3.20.0
|
version: 3.20.1
|
||||||
appVersion: 0.43.0
|
appVersion: 0.43.0
|
||||||
home: https://github.com/kubernetes/ingress-nginx
|
home: https://github.com/kubernetes/ingress-nginx
|
||||||
description: Ingress controller for Kubernetes using NGINX as a reverse proxy and load balancer
|
description: Ingress controller for Kubernetes using NGINX as a reverse proxy and load balancer
|
||||||
|
@ -21,4 +21,5 @@ annotations:
|
||||||
# List of changes for the release in artifacthub.io
|
# List of changes for the release in artifacthub.io
|
||||||
# https://artifacthub.io/packages/helm/ingress-nginx/ingress-nginx?modal=changelog
|
# https://artifacthub.io/packages/helm/ingress-nginx/ingress-nginx?modal=changelog
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- Do not create HPA for defaultbackend if not enabled.
|
- Do not create KEDA in case of DaemonSets.
|
||||||
|
- Fix KEDA v2 definition
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{{- if .Values.controller.keda.enabled }}
|
{{- if and .Values.controller.keda.enabled (or (eq .Values.controller.kind "Deployment") (eq .Values.controller.kind "Both")) -}}
|
||||||
# https://keda.sh/docs/
|
# https://keda.sh/docs/
|
||||||
|
|
||||||
apiVersion: {{ .Values.controller.keda.apiVersion }}
|
apiVersion: {{ .Values.controller.keda.apiVersion }}
|
||||||
|
@ -11,7 +11,11 @@ metadata:
|
||||||
|
|
||||||
spec:
|
spec:
|
||||||
scaleTargetRef:
|
scaleTargetRef:
|
||||||
|
{{- if eq .Values.controller.keda.apiVersion "keda.k8s.io/v1alpha1" }}
|
||||||
deploymentName: {{ include "ingress-nginx.controller.fullname" . }}
|
deploymentName: {{ include "ingress-nginx.controller.fullname" . }}
|
||||||
|
{{- else if eq .Values.controller.keda.apiVersion "keda.sh/v1alpha1" }}
|
||||||
|
name: {{ include "ingress-nginx.controller.fullname" . }}
|
||||||
|
{{- end }}
|
||||||
pollingInterval: {{ .Values.controller.keda.pollingInterval }}
|
pollingInterval: {{ .Values.controller.keda.pollingInterval }}
|
||||||
cooldownPeriod: {{ .Values.controller.keda.cooldownPeriod }}
|
cooldownPeriod: {{ .Values.controller.keda.cooldownPeriod }}
|
||||||
minReplicaCount: {{ .Values.controller.keda.minReplicas }}
|
minReplicaCount: {{ .Values.controller.keda.minReplicas }}
|
||||||
|
|
Loading…
Reference in a new issue