Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(helm): To fix un-expected {{end}} in helm template
The block {{end}} at the end was not expected. This should be removed. Moreover, I add basic helm lint and test to avoid such kind of issue in future. This is running as non mandatory step by github action Closes #11398 Signed-off-by: Tam Mach <sayboras@yahoo.com>
- Loading branch information
Showing
6 changed files
with
78 additions
and
28 deletions.
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,43 @@ | ||
name: Helm Lint and Test Charts | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'install/kubernetes/**' | ||
|
||
jobs: | ||
quick-install: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Check quick-install.yaml | ||
run: | | ||
cd install/kubernetes | ||
make all | ||
git diff --exit-code | ||
lint-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
|
||
- name: Run chart-testing (lint) | ||
id: lint | ||
uses: helm/chart-testing-action@v1.0.0-rc.2 | ||
with: | ||
command: lint | ||
config: install/kubernetes/chart-testing.yaml | ||
|
||
- name: Create kind cluster | ||
uses: helm/kind-action@v1.0.0-rc.1 | ||
with: | ||
install_local_path_provisioner: true | ||
if: steps.lint.outputs.changed == 'true' | ||
|
||
# This test is just to make sure the helm chart can be installed. It will not replace existing integration tests | ||
- name: Run chart-testing (install) | ||
uses: helm/chart-testing-action@v1.0.0-rc.2 | ||
with: | ||
command: install | ||
config: install/kubernetes/chart-testing.yaml |
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,8 @@ | ||
# See https://github.com/helm/chart-testing#configuration | ||
chart-dirs: | ||
- install/kubernetes | ||
all: true | ||
debug: true | ||
validate-maintainers: false | ||
check-version-increment: false | ||
helm-extra-args: --timeout 10m0s |
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
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 |
---|---|---|
|
@@ -7,4 +7,3 @@ metadata: | |
annotations: | ||
{{ toYaml .Values.serviceAccount.annotations | indent 4 }} | ||
{{- end }} | ||
{{- end }} |
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
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