Skip to content

Commit

Permalink
fix(keda): Remove unknown flag when enabling prometheus on the operat…
Browse files Browse the repository at this point in the history
…or (#343)

Fixes #342
  • Loading branch information
JorTurFer authored Dec 11, 2022
1 parent 4670ffa commit f950fd2
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 3 deletions.
35 changes: 33 additions & 2 deletions .github/workflows/ci-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,45 @@ jobs:
run: |
helm version
- name: Generate values
run: |
cat <<EOF > test-values.yaml
image:
keda:
tag: main
metricsApiServer:
tag: main
podIdentity:
azureWorkload:
enabled: ${{ matrix.enableAzureWorkloadIdentity }}
tenantId: ${{ matrix.tenantId }}
clientId: ${{ matrix.clientId }}
podDisruptionBudget:
operator:
maxUnavailable: 1
metricServer:
maxUnavailable: 1
prometheus:
operator:
enabled: true
podMonitor:
enabled: true
EOF
- name: Install deps
run: |
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
helm install prometheus-stack prometheus-community/kube-prometheus-stack --namespace monitoring --create-namespace --wait
- name: Create KEDA namespace
run: kubectl create ns keda

- name: Template Helm chart
run: helm template keda ./keda/ --namespace keda --set podIdentity.azureWorkload.enabled=${{ matrix.enableAzureWorkloadIdentity }} --set podIdentity.azureWorkload.tenantId=${{ matrix.tenantId }} --set podIdentity.azureWorkload.clientId=${{ matrix.clientId }} --set podDisruptionBudget.operator.maxUnavailable=1 --set podDisruptionBudget.metricServer.maxUnavailable=1
run: helm template keda ./keda/ --namespace keda --values test-values.yaml

- name: Install Helm chart
run: helm install keda ./keda/ --namespace keda --set podIdentity.azureWorkload.enabled=${{ matrix.enableAzureWorkloadIdentity }} --set podIdentity.azureWorkload.tenantId=${{ matrix.tenantId }} --set podIdentity.azureWorkload.clientId=${{ matrix.clientId }} --set podDisruptionBudget.operator.maxUnavailable=1 --set podDisruptionBudget.metricServer.maxUnavailable=1
run: helm install keda ./keda/ --namespace keda --values test-values.yaml --wait

- name: Show Kubernetes resources
run: kubectl get all --namespace keda
Expand Down
2 changes: 1 addition & 1 deletion keda/templates/12-keda-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ spec:
- "--zap-encoder={{ .Values.logging.operator.format }}"
- "--zap-time-encoding={{ .Values.logging.operator.timeEncoding }}"
{{- if .Values.prometheus.operator.enabled }}
- --metrics-port=:{{ .Values.prometheus.operator.port }}
- --metrics-bind-address=:{{ .Values.prometheus.operator.port }}
{{- end }}
{{- range $key, $value := .Values.extraArgs.keda }}
- --{{ $key }}={{ $value }}
Expand Down

1 comment on commit f950fd2

@darox
Copy link

@darox darox commented on f950fd2 Dec 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pulling kedacore/[email protected] still includes the old template without the fix. Can we have a fix in 2.9.1?

Please sign in to comment.