Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix searcher statefulset volume indentation #94

Conversation

rmvangun
Copy link
Contributor

@rmvangun rmvangun commented Jul 21, 2024

The indentation for the volume specification on the searcher statefulset was two spaces too many. When specifying searcher.extraVolumes, it resulted in:

Error: YAML parse error on quickwit/templates/searcher-statefulset.yaml: error converting YAML to JSON: yaml: line 113: did not find expected key
helm.go:84: [debug] error converting YAML to JSON: yaml: line 113: did not find expected key
YAML parse error on quickwit/templates/searcher-statefulset.yaml
helm.sh/helm/v3/pkg/releaseutil.(*manifestFile).sort
        helm.sh/helm/v3/pkg/releaseutil/manifest_sorter.go:146
helm.sh/helm/v3/pkg/releaseutil.SortManifests
        helm.sh/helm/v3/pkg/releaseutil/manifest_sorter.go:106
helm.sh/helm/v3/pkg/action.(*Configuration).renderResources
        helm.sh/helm/v3/pkg/action/action.go:168
helm.sh/helm/v3/pkg/action.(*Install).RunWithContext
        helm.sh/helm/v3/pkg/action/install.go:312
main.runInstall
        helm.sh/helm/v3/cmd/helm/install.go:314
main.newTemplateCmd.func2
        helm.sh/helm/v3/cmd/helm/template.go:95
github.com/spf13/cobra.(*Command).execute
        github.com/spf13/[email protected]/command.go:983
github.com/spf13/cobra.(*Command).ExecuteC
        github.com/spf13/[email protected]/command.go:1115
github.com/spf13/cobra.(*Command).Execute
        github.com/spf13/[email protected]/command.go:1039
main.main
        helm.sh/helm/v3/cmd/helm/helm.go:83
runtime.main
        runtime/proc.go:271
runtime.goexit
        runtime/asm_arm64.s:1222

After this fix, this error is resolved and volumes is templated as expected.

@idrissneumann idrissneumann self-requested a review July 22, 2024 17:16
@idrissneumann
Copy link
Collaborator

Hi.

Yeah I can reproduce the bug with this value file:

---
searcher:
  extraVolumes:
    - name: foo
      emptyDir: {}
$ helm template . --values values.yaml --values values2.yaml
Error: YAML parse error on quickwit/templates/searcher-statefulset.yaml: error converting YAML to JSON: yaml: line 108: did not find expected key

Use --debug flag to render out invalid YAML

And indeed this pull requests is fixing it quiet well :

$ helm template . --values values.yaml --values values2.yaml |grep foo -B1
        - emptyDir: {}
          name: foo

=> LGTM

@idrissneumann
Copy link
Collaborator

@rmvangun Thanks for your work. You just have to bump the version to 0.6.3 in the Chart.yml in order to fix the pipeline, and we're good to go :) .

Thanks!

@idrissneumann idrissneumann self-requested a review July 25, 2024 10:11
Copy link
Collaborator

@idrissneumann idrissneumann left a comment

Choose a reason for hiding this comment

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

Now because we merged #95 the bump has to be 0.6.4 in the Chart.yml file.

Thanks ^^

@idrissneumann
Copy link
Collaborator

The bump will be handled with #96 instead

@rmvangun rmvangun deleted the fix-statefulset-volume-indentation branch August 4, 2024 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants