bug-hook-volume-in-gitaly
Summary
When we configure hook in gitaly the following error is raised
Error: UPGRADE FAILED: template: gitlab/charts/gitlab/charts/gitaly/templates/statefulset.yml:213:33: executing "gitlab/charts/gitlab/charts/gitaly/templates/statefulset.yml" at <.update>: wrong type for value; expected map[string]interface {}; got interface {}
Steps to reproduce
With this part in values.yaml
global:
gitaly:
enabled: true
hooks:
preReceive:
configmap: custom-hook
helm upgrade --version "4.7.3" --install -f values.yaml release gitlab/gitlab (Please provide the steps to reproduce the issue)
Configuration used
(Please provide a sanitized version of the configuration used wrapped in a code block (```yaml))
global:
gitaly:
enabled: true
hooks:
preReceive:
configmap: custom-hook
Current behavior
Return this error
Error: UPGRADE FAILED: template: gitlab/charts/gitlab/charts/gitaly/templates/statefulset.yml:213:33: executing "gitlab/charts/gitlab/charts/gitaly/templates/statefulset.yml" at <.update>: wrong type for value; expected map[string]interface {}; got interface {}
Expected behavior
Update or install the release
Versions
- Chart: 4.7.3 (maybe from the hook implementation)
- Platform:
- Cloud:
- Self-hosted: AWS (KOPS)
- Kubernetes: (
kubectl version
)- Client: v1.15.11
- Server: v1.18.4
- Helm: (
helm version
)- Client: v3.4.0
- Server: N/A
Edited by David ALEXANDRE