Skip to content

Commit

Permalink
Merge branch 'main' into more-love-4-rbac
Browse files Browse the repository at this point in the history
  • Loading branch information
jkremser authored Apr 8, 2024
2 parents d17eebd + 3fb8a8d commit 3a08e33
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 15 deletions.
15 changes: 12 additions & 3 deletions http-add-on/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,23 @@ Create chart name and version as used by the chart label.
{{- end -}}

{{/*
Generate basic labels
Generate match labels
IMPORTANT: Any change of these labels will block
future upgrades
*/}}
{{- define "keda-http-add-on.labels" }}
helm.sh/chart: {{ include "keda-http-add-on.chart" . }}
{{- define "keda-http-add-on.matchLabels" }}
app.kubernetes.io/part-of: {{ .Chart.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
Generate basic labels
*/}}
{{- define "keda-http-add-on.labels" }}
{{- include "keda-http-add-on.matchLabels" . }}
app.kubernetes.io/version: {{ .Values.images.tag | default .Chart.AppVersion }}
helm.sh/chart: {{ include "keda-http-add-on.chart" . }}
{{- if .Values.additionalLabels }}
{{ toYaml .Values.additionalLabels }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion http-add-on/templates/interceptor/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spec:
selector:
matchLabels:
app.kubernetes.io/component: interceptor
{{- include "keda-http-add-on.labels" . | indent 6 }}
{{- include "keda-http-add-on.matchLabels" . | indent 6 }}
template:
metadata:
labels:
Expand Down
2 changes: 1 addition & 1 deletion http-add-on/templates/interceptor/service-admin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ spec:
targetPort: admin
selector:
app.kubernetes.io/component: interceptor
{{- include "keda-http-add-on.labels" . | indent 4 }}
{{- include "keda-http-add-on.matchLabels" . | indent 4 }}
2 changes: 1 addition & 1 deletion http-add-on/templates/interceptor/service-proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ spec:
targetPort: proxy
selector:
app.kubernetes.io/component: interceptor
{{- include "keda-http-add-on.labels" . | indent 4 }}
{{- include "keda-http-add-on.matchLabels" . | indent 4 }}
2 changes: 1 addition & 1 deletion http-add-on/templates/operator/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
selector:
matchLabels:
app.kubernetes.io/component: operator
{{- include "keda-http-add-on.labels" . | indent 6 }}
{{- include "keda-http-add-on.matchLabels" . | indent 6 }}
template:
metadata:
labels:
Expand Down
2 changes: 1 addition & 1 deletion http-add-on/templates/operator/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ spec:
targetPort: metrics
selector:
app.kubernetes.io/component: operator
{{- include "keda-http-add-on.labels" . | indent 4 }}
{{- include "keda-http-add-on.matchLabels" . | indent 4 }}
2 changes: 1 addition & 1 deletion http-add-on/templates/scaler/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
selector:
matchLabels:
app.kubernetes.io/component: scaler
{{- include "keda-http-add-on.labels" . | indent 6 }}
{{- include "keda-http-add-on.matchLabels" . | indent 6 }}
template:
metadata:
labels:
Expand Down
2 changes: 1 addition & 1 deletion http-add-on/templates/scaler/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ spec:
targetPort: grpc
selector:
app.kubernetes.io/component: scaler
{{- include "keda-http-add-on.labels" . | indent 4 }}
{{- include "keda-http-add-on.matchLabels" . | indent 4 }}
1 change: 1 addition & 0 deletions keda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ their default values.
| `clusterName` | string | `"kubernetes-default"` | Kubernetes cluster name. Used in features such as emitting CloudEvents |
| `crds.additionalAnnotations` | object | `{}` | Custom annotations specifically for CRDs |
| `crds.install` | bool | `true` | Defines whether the KEDA CRDs have to be installed or not. |
| `customManagedBy` | string | `""` | When specified, each rendered resource will have `app.kubernetes.io/managed-by: ${this}` label on it. Useful, when using only helm template with some other solution. |
| `env` | list | `[]` | Additional environment variables that will be passed onto all KEDA components |
| `extraObjects` | list | `[]` | Array of extra K8s manifests to deploy |
| `global.image.registry` | string | `nil` | Global image registry of KEDA components |
Expand Down
2 changes: 1 addition & 1 deletion keda/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Generate basic labels for CRD
{{- define "keda.crd-labels" }}
helm.sh/chart: {{ include "keda.chart" . }}
app.kubernetes.io/component: operator
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/managed-by: {{ .Values.customManagedBy | default .Release.Service }}
app.kubernetes.io/part-of: {{ .Values.operator.name }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion }}
Expand Down
11 changes: 7 additions & 4 deletions keda/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -496,11 +496,11 @@ resources:
# -- Manage [resource request & limits] of KEDA admission webhooks pod
webhooks:
limits:
cpu: 50m
memory: 100Mi
cpu: 1
memory: 1000Mi
requests:
cpu: 10m
memory: 10Mi
cpu: 100m
memory: 100Mi
# -- Node selector for pod scheduling ([docs](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/))
nodeSelector: {}
# -- Tolerations for pod scheduling ([docs](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/))
Expand Down Expand Up @@ -845,3 +845,6 @@ extraObjects: []

# -- Capability to turn on/off ASCII art in Helm installation notes
asciiArt: true

# -- When specified, each rendered resource will have `app.kubernetes.io/managed-by: ${this}` label on it. Useful, when using only helm template with some other solution.
customManagedBy: ""

0 comments on commit 3a08e33

Please sign in to comment.