-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GHA workflow to lint helm chart, and fix a bug in the chart (#262)
* ci: Add GHA workflow to lint helm chart * fix: Quote ClusterRole apiGroups values in helm Chart 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
- Loading branch information
1 parent
f0bd290
commit 29123c2
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Lint helm chart | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- 'helm/sloop/**' | ||
pull_request: | ||
branches: | ||
- "*" | ||
paths: | ||
- 'helm/sloop/**' | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup helm | ||
uses: azure/setup-helm@v3 | ||
with: | ||
version: 'v3.12.0' | ||
|
||
- name: Lint chart | ||
run: | | ||
helm lint helm/sloop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters