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

Add GHA workflow to lint helm chart, and fix a bug in the chart #262

Merged
merged 2 commits into from
May 18, 2023

Conversation

dlipovetsky
Copy link
Contributor

@dlipovetsky dlipovetsky commented May 18, 2023

  1. Valid apiGroup values, e.g. *.mygroup.example.com, must be quoted in the template.

    Before this change, helm lint failed with this error:

    [ERROR] templates/clusterrole.yaml: unable to parse YAML: error converting YAML to JSON: yaml: line 92: did not find expected alphabetic or numeric character

  2. Adds an action to lint the helm chart whenever it is changed.

    Note: I've fixed the helm version at 3.12.0. If you'd like to always use the latest stable version, the action will need to use a GitHub token, as explained here: https://github.com/Azure/setup-helm#example

Valid apiGroup values, e.g. '*.mygroup.example.com', must be quoted in
the template.

Before this change, helm lint failed with this error:

[ERROR] templates/clusterrole.yaml: unable to parse YAML: error
converting YAML to JSON: yaml: line 92: did not find expected alphabetic
or numeric character
@salesforce-cla
Copy link

Thanks for the contribution! Before we can merge this, we need @dlipovetsky to sign the Salesforce Inc. Contributor License Agreement.

@dlipovetsky
Copy link
Contributor Author

I signed the CLA, but it looks like the service had some internal error.

@sana-jawad
Copy link
Collaborator

Looks good to me. Thanks for the contribution @dlipovetsky

@sana-jawad sana-jawad merged commit 29123c2 into salesforce:master May 18, 2023
@dlipovetsky dlipovetsky deleted the lint-helm-chart-workflow branch May 22, 2023 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants