diff --git a/.github/workflows/lint-helm-chart.yml b/.github/workflows/lint-helm-chart.yml new file mode 100644 index 00000000..e34b4287 --- /dev/null +++ b/.github/workflows/lint-helm-chart.yml @@ -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 diff --git a/helm/sloop/templates/clusterrole.yaml b/helm/sloop/templates/clusterrole.yaml index ab1b7cd5..fa959a42 100644 --- a/helm/sloop/templates/clusterrole.yaml +++ b/helm/sloop/templates/clusterrole.yaml @@ -91,7 +91,7 @@ rules: {{- with .Values.clusterRole.apiGroups }} - apiGroups: {{- range . }} - - {{ . }} + - {{ . | quote }} {{- end }} resources: - '*'