Skip to content

Commit 64eb32a

Browse files
committed
Upgraded KEDA to v2.16.0, along with scheduling tweaks.
1 parent 12e0fcf commit 64eb32a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+5964
-4322
lines changed

addons/keda/Chart.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
apiVersion: v2
22
name: keda
33
description: Event-based autoscaler for workloads on Kubernetes
4+
45
# Specify the Kubernetes version range that we support.
56
# We allow pre-release versions for cloud-specific Kubernetes versions such as v1.21.5-gke.1302 or v1.18.9-eks-d1db3c
67
kubeVersion: ">=v1.23.0-0"
8+
79
# This is the chart version. This version number should be incremented each time you make changes
810
# to the chart and its templates, including the app version.
9-
version: 0.5.0
11+
version: 2.16.0
12+
1013
# This is the version number of the application being deployed. This version number should be
1114
# incremented each time you make changes to the application.
12-
appVersion: 2.11.1
15+
appVersion: 2.16.0
16+
1317
home: https://github.com/kedacore/keda
1418
icon: https://raw.githubusercontent.com/kedacore/keda/main/images/keda-logo-500x500-white.png
1519
sources:
1620
- https://github.com/kedacore/keda
1721
maintainers:
18-
- name: Ahmed ElSayed
19-
2022
- name: Jorge Turrado
2123
22-
- name: Tom Kerkhove
23-
2424
- name: Zbynek Roubalik
25-
26-
keywords:
27-
- MISC
25+
26+
- name: Jan Wozniak
27+

addons/keda/README.md

Lines changed: 137 additions & 61 deletions
Large diffs are not rendered by default.

addons/keda/README.md.gotmpl

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ KEDA can run on both the cloud and the edge, integrates natively with Kubernetes
77

88
---
99
<p align="center">
10-
We are a Cloud Native Computing Foundation (CNCF) incubation project.
10+
We are a Cloud Native Computing Foundation (CNCF) graduated project.
1111

1212
<img src="https://raw.githubusercontent.com/kedacore/keda/main/images/logo-cncf.svg" height="75px">
1313
</p>
@@ -21,7 +21,7 @@ helm repo add kedacore https://kedacore.github.io/charts
2121
helm repo update
2222

2323
kubectl create namespace keda
24-
helm install keda kedacore/keda --namespace keda --version 2.10.2
24+
helm install keda kedacore/keda --namespace keda --version {{ template "chart.appVersion" . }}
2525
```
2626

2727
## Introduction
@@ -36,7 +36,7 @@ To install the chart with the release name `keda`:
3636

3737
```console
3838
$ kubectl create namespace keda
39-
$ helm install keda kedacore/keda --namespace keda --version 2.10.0
39+
$ helm install keda kedacore/keda --namespace keda --version {{ template "chart.version" . }}
4040
```
4141

4242
## Uninstalling the Chart
@@ -59,7 +59,7 @@ their default values.
5959
| Parameter | Type | Default | Description |
6060
|-----------|------|---------|-------------|
6161
{{- range .Values }}
62-
{{- if not (or (contains "operator" .Key) (contains "keda" .Key) (contains "metricServer" .Key) (contains "metricsServer" .Key) (contains "metricsApiServer" .Key) (contains "metricsAdapter" .Key) (contains "webhooks" .Key) (hasPrefix "service." .Key) ) }}
62+
{{- if not (or (contains "operator" .Key) (contains "keda" .Key) (contains "opentelemetry" .Key) (contains "prometheus" .Key) (contains "metricServer" .Key) (contains "metricsServer" .Key) (contains "metricsApiServer" .Key) (contains "metricsAdapter" .Key) (contains "webhooks" .Key) (hasPrefix "service." .Key) ) }}
6363
| `{{ .Key }}` | {{ .Type }} | {{ if .Default }}{{ .Default }}{{ else }}{{ .AutoDefault }}{{ end }} | {{ if .Description }}{{ .Description }}{{ else }}{{ .AutoDescription }}{{ end }} |
6464
{{- end }}
6565
{{- end }}
@@ -69,7 +69,7 @@ their default values.
6969
| Parameter | Type | Default | Description |
7070
|-----------|------|---------|-------------|
7171
{{- range .Values }}
72-
{{- if or (contains "operator" .Key) (contains "keda" .Key) }}
72+
{{- if and (or (contains "operator" .Key) (contains "keda" .Key)) (not (or (contains "opentelemetry" .Key) (contains "prometheus" .Key) (contains "profiling" .Key))) }}
7373
| `{{ .Key }}` | {{ .Type }} | {{ if .Default }}{{ .Default }}{{ else }}{{ .AutoDefault }}{{ end }} | {{ if .Description }}{{ .Description }}{{ else }}{{ .AutoDescription }}{{ end }} |
7474
{{- end }}
7575
{{- end }}
@@ -79,7 +79,27 @@ their default values.
7979
| Parameter | Type | Default | Description |
8080
|-----------|------|---------|-------------|
8181
{{- range .Values }}
82-
{{- if or (contains "metricServer" .Key) (contains "metricsServer" .Key) (contains "metricsApiServer" .Key) (contains "metricsAdapter" .Key) (hasPrefix "service." .Key) }}
82+
{{- if and (or (contains "metricServer" .Key) (contains "metricsServer" .Key) (contains "metricsApiServer" .Key) (contains "metricsAdapter" .Key) (hasPrefix "service." .Key)) (not (or (contains "opentelemetry" .Key) (contains "prometheus" .Key) (contains "profiling" .Key)))}}
83+
| `{{ .Key }}` | {{ .Type }} | {{ if .Default }}{{ .Default }}{{ else }}{{ .AutoDefault }}{{ end }} | {{ if .Description }}{{ .Description }}{{ else }}{{ .AutoDescription }}{{ end }} |
84+
{{- end }}
85+
{{- end }}
86+
87+
### Operations
88+
89+
| Parameter | Type | Default | Description |
90+
|-----------|------|---------|-------------|
91+
{{- range .Values }}
92+
{{- if or (contains "opentelemetry" .Key) (contains "prometheus" .Key) }}
93+
| `{{ .Key }}` | {{ .Type }} | {{ if .Default }}{{ .Default }}{{ else }}{{ .AutoDefault }}{{ end }} | {{ if .Description }}{{ .Description }}{{ else }}{{ .AutoDescription }}{{ end }} |
94+
{{- end }}
95+
{{- end }}
96+
97+
### Troubleshooting
98+
99+
| Parameter | Type | Default | Description |
100+
|-----------|------|---------|-------------|
101+
{{- range .Values }}
102+
{{- if (contains "profiling" .Key) }}
83103
| `{{ .Key }}` | {{ .Type }} | {{ if .Default }}{{ .Default }}{{ else }}{{ .AutoDefault }}{{ end }} | {{ if .Description }}{{ .Description }}{{ else }}{{ .AutoDescription }}{{ end }} |
84104
{{- end }}
85105
{{- end }}
@@ -89,7 +109,7 @@ their default values.
89109
| Parameter | Type | Default | Description |
90110
|-----------|------|---------|-------------|
91111
{{- range .Values }}
92-
{{- if contains "webhooks" .Key }}
112+
{{- if and (contains "webhooks" .Key) (not (or (contains "opentelemetry" .Key) (contains "prometheus" .Key) (contains "profiling" .Key))) }}
93113
| `{{ .Key }}` | {{ .Type }} | {{ if .Default }}{{ .Default }}{{ else }}{{ .AutoDefault }}{{ end }} | {{ if .Description }}{{ .Description }}{{ else }}{{ .AutoDescription }}{{ end }} |
94114
{{- end }}
95115
{{- end }}

addons/keda/form.yaml

Lines changed: 0 additions & 10 deletions
This file was deleted.

addons/keda/templates/NOTES.txt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,16 @@ WARNING - prometheus.webhooks.serviceMonitor.relabellings is deprecated, please
5353
-------------------------------------------------------------------------------------
5454
{{- end }}
5555

56-
{{- if lt .Capabilities.KubeVersion.Minor "25" }}
56+
{{- if lt .Capabilities.KubeVersion.Minor "28" }}
5757
-------------------------------------------------------------------------------------
58-
WARNING - Running on unsupported Kubernetes version "1.{{.Capabilities.KubeVersion.Minor}}". KEDA 2.11 is supported and tested on Kubernetes "1.25" or higher. See https://keda.sh/docs/2.11/operate/cluster/ for details.
58+
WARNING - Running on unsupported Kubernetes version "1.{{.Capabilities.KubeVersion.Minor}}". KEDA 2.13 is supported and tested on Kubernetes "1.28" or higher. See https://keda.sh/docs/latest/operate/cluster/ for details.
59+
-------------------------------------------------------------------------------------
60+
{{- end }}
61+
62+
{{- if .Values.serviceAccount.name }}
63+
-------------------------------------------------------------------------------------
64+
WARNING - .serviceAccount.name has been deprecated, please migrate to newest version of the Helm Chart values that allows overriding the service account name for each KEDA component.
65+
New version: serviceAccount.{operator,metricServer,webhooks}.{create,name,automountServiceAccountToken,annotations}
5966
-------------------------------------------------------------------------------------
6067
{{- end }}
6168

addons/keda/templates/_helpers.tpl

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,24 @@ Create chart name and version as used by the chart label.
88
{{- end -}}
99

1010
{{/*
11-
Generate basic labels
11+
Generate basic labels for CRD
1212
*/}}
13-
{{- define "keda.labels" }}
13+
{{- define "keda.crd-labels" }}
1414
helm.sh/chart: {{ include "keda.chart" . }}
1515
app.kubernetes.io/component: operator
16-
app.kubernetes.io/managed-by: {{ .Release.Service }}
17-
app.kubernetes.io/instance: {{ .Release.Name }}
16+
app.kubernetes.io/managed-by: {{ .Values.customManagedBy | default .Release.Service }}
1817
app.kubernetes.io/part-of: {{ .Values.operator.name }}
1918
{{- if .Chart.AppVersion }}
2019
app.kubernetes.io/version: {{ .Chart.AppVersion }}
2120
{{- end }}
21+
{{- end }}
22+
23+
{{/*
24+
Generate basic labels
25+
*/}}
26+
{{- define "keda.labels" -}}
27+
{{- include "keda.crd-labels" . }}
28+
app.kubernetes.io/instance: {{ .Release.Name }}
2229
{{- if .Values.additionalLabels }}
2330
{{ toYaml .Values.additionalLabels }}
2431
{{- end }}

addons/keda/templates/cert-manager/keda-issuer.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if .Values.certificates.certManager.enabled }}
1+
{{- if and .Values.certificates.certManager.enabled .Values.certificates.certManager.issuer.generate }}
22
apiVersion: cert-manager.io/v1
33
kind: Issuer
44
metadata:
@@ -11,4 +11,4 @@ metadata:
1111
spec:
1212
ca:
1313
secretName: {{ .Values.certificates.certManager.caSecretName }}
14-
{{- end }}
14+
{{- end }}

addons/keda/templates/cert-manager/keda-tls-certificate.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,22 @@ spec:
2525
privateKey:
2626
algorithm: RSA
2727
size: 2048
28-
duration: 8760h0m0s # 1 year
29-
renewBefore: 5840h0m0s # 8 months
28+
duration: {{ .Values.certificates.certManager.duration }}
29+
renewBefore: {{ .Values.certificates.certManager.renewBefore }}
3030
issuerRef:
31+
{{- if .Values.certificates.certManager.issuer.generate }}
3132
name: {{ .Values.operator.name }}-issuer
3233
kind: Issuer
3334
group: cert-manager.io
35+
{{- else }}
36+
{{- if .Values.certificates.certManager.issuer.name }}
37+
name: {{ .Values.certificates.certManager.issuer.name }}
38+
{{- end }}
39+
{{- if .Values.certificates.certManager.issuer.kind }}
40+
kind: {{ .Values.certificates.certManager.issuer.kind }}
41+
{{- end }}
42+
{{- if .Values.certificates.certManager.issuer.group }}
43+
group: {{ .Values.certificates.certManager.issuer.group }}
44+
{{- end }}
45+
{{- end }}
3446
{{- end }}

addons/keda/templates/cert-manager/self-ca.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if and .Values.certificates.certManager.enabled .Values.certificates.certManager.generateCA }}
1+
{{- if and .Values.certificates.certManager.enabled .Values.certificates.certManager.generateCA .Values.certificates.certManager.issuer.generate }}
22
apiVersion: cert-manager.io/v1
33
kind: Certificate
44
metadata:
@@ -14,9 +14,9 @@ spec:
1414
algorithm: RSA
1515
size: 2048
1616
duration: 8760h0m0s # 1 year
17-
renewBefore: 5840h0m0s # 8 months
17+
renewBefore: 720h0m0s # 1 month
1818
issuerRef:
1919
name: {{ .Values.operator.name }}-selfsigned-issuer
2020
kind: Issuer
2121
group: cert-manager.io
22-
{{- end }}
22+
{{- end }}

addons/keda/templates/cert-manager/self-issuer.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if and .Values.certificates.certManager.enabled .Values.certificates.certManager.generateCA }}
1+
{{- if and .Values.certificates.certManager.enabled .Values.certificates.certManager.generateCA .Values.certificates.certManager.issuer.generate }}
22
apiVersion: cert-manager.io/v1
33
kind: Issuer
44
metadata:
@@ -10,4 +10,4 @@ metadata:
1010
namespace: {{ .Release.Namespace }}
1111
spec:
1212
selfSigned: {}
13-
{{- end }}
13+
{{- end }}

0 commit comments

Comments
 (0)