Skip to content

Commit

Permalink
fix: Run yamllint on generated Install Manifests (#1450)
Browse files Browse the repository at this point in the history
Run yamllint on generated Install Manifests

Fixes: #810

Signed-off-by: Arko Dasgupta <arko@tetrate.io>
  • Loading branch information
arkodg authored May 26, 2023
1 parent 56edaba commit 80db459
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: ./tools/github-actions/setup-deps
# Generate the install manifests first so it can checked
# for errors while running `make -k lint`
- run: make generate-manifests
- run: make lint-deps
- run: make -k lint

Expand Down
2 changes: 1 addition & 1 deletion charts/gateway-helm/templates/certgen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
- name: KUBERNETES_CLUSTER_DOMAIN
value: {{ .Values.kubernetesClusterDomain }}
image: {{ .Values.deployment.envoyGateway.image.repository }}:{{ .Values.deployment.envoyGateway.image.tag | default .Chart.AppVersion }}
imagePullPolicy: {{ .Values.deployment.envoyGateway.imagePullPolicy }}
imagePullPolicy: {{ .Values.deployment.envoyGateway.imagePullPolicy }}
name: envoy-gateway-certgen
restartPolicy: Never
securityContext:
Expand Down
5 changes: 4 additions & 1 deletion tools/linter/yamllint/.yamllint
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
---

ignore: |
# This directory fails checks since many files
# are templated. Instead, we run the linter
# after running `make generate-manifests` which creates
# the Install YAML in bin/
charts/gateway-helm/
bin/install.yaml

rules:
braces:
Expand Down

0 comments on commit 80db459

Please sign in to comment.