Skip to content

Commit

Permalink
Fix nident error in configmap setting, improve Helm testing workflow (k…
Browse files Browse the repository at this point in the history
…uskoman#245)

* Fix nident error in configmap setting

* Add log printing to helm integration workflow

* Add templating step to helm workflow

* Change Helm chart deploy timeout to 10m

* Fix configmap indentation one more time
  • Loading branch information
kuskoman authored Feb 2, 2024
1 parent 9612288 commit 0de44c1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/go-application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,17 @@ jobs:
- name: Export Docker image to Kind cluster
run: kind load docker-image logstash-exporter:latest --name kind-chart-testing

- name: Template Helm chart
working-directory: .helm/logstash-integration-test-chart
run: helm template .

- name: Install Helm chart
working-directory: .helm/logstash-integration-test-chart
run: helm install --atomic --wait --timeout 15m --debug logstash-integration-test-chart .
run: helm install --wait --timeout 10m --debug logstash-integration-test-chart .

- name: Print exporter logs
run: kubectl logs -n default -l app=logstash-exporter
if: failure()

create-release:
name: Create GitHub release
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ data:
servers:
{{ range .Values.logstash.urls -}}
- url: {{ . | quote }}
{{- end }}
{{ end }}
server:
host: {{ .Values.logstash.server.host | quote }}
port: {{ .Values.logstash.server.port }}
Expand Down
2 changes: 1 addition & 1 deletion chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ customConfig:
##
config: |
logstash:
urls:
servers:
- "http://logstash:9600"
## @section Image settings
Expand Down

0 comments on commit 0de44c1

Please sign in to comment.