Skip to content

Commit b2cc0da

Browse files
authored
Enable yamllint for Helm Chart and GitHub Actions (#2018)
Problem: We're not linting YAML files in the Helm Chart and GitHub Actions directories Solution: Enable yamllint for these directories and fix the problems.
1 parent 7edcfed commit b2cc0da

File tree

5 files changed

+18
-14
lines changed

5 files changed

+18
-14
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
tags:
99
- "v[0-9]+.[0-9]+.[0-9]+*"
1010
pull_request:
11+
branches:
12+
- "*"
1113
schedule:
1214
- cron: "0 4 * * *" # run every day at 4am UTC
1315

.github/workflows/lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches:
66
- main
77
pull_request:
8+
branches:
9+
- "*"
810

911
defaults:
1012
run:

.github/workflows/nfr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
7272
- name: Authenticate to Google Cloud
7373
id: auth
74-
uses: google-github-actions/auth@71fee32a0bb7e97b4d33d548e7d957010649d8fa # v2.1.3
74+
uses: google-github-actions/auth@71fee32a0bb7e97b4d33d548e7d957010649d8fa # v2.1.3
7575
with:
7676
token_format: access_token
7777
workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY }}
@@ -144,9 +144,9 @@ jobs:
144144
working-directory: ./tests
145145
run: |
146146
if ${{ inputs.test_label != 'all' }}; then
147-
sed -i '/^GINKGO_LABEL=/s/=.*/="${{ inputs.test_label }}"/' "scripts/vars.env" && make nfr-test;
147+
sed -i '/^GINKGO_LABEL=/s/=.*/="${{ inputs.test_label }}"/' "scripts/vars.env" && make nfr-test;
148148
else
149-
make nfr-test;
149+
make nfr-test;
150150
fi
151151
152152
- name: Cleanup

.yamllint.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ yaml-files:
44
- "*.yml"
55

66
ignore:
7-
- charts/nginx-gateway-fabric
7+
- charts/nginx-gateway-fabric/templates
88
- config/crd/bases/
99
- deploy/crds.yaml
10-
- .github/workflows/
1110

1211
rules:
1312
braces: enable

charts/nginx-gateway-fabric/values.yaml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ nginx:
7171
plus: false
7272

7373
## The configuration for the data plane that is contained in the NginxProxy resource.
74-
config: {}
74+
config:
75+
{}
7576
# disableHTTP2: false
7677
# telemetry:
7778
# exporter:
@@ -138,14 +139,14 @@ service:
138139
## A list of ports to expose through the NGINX Gateway Fabric service. Update it to match the listener ports from
139140
## your Gateway resource. Follows the conventional Kubernetes yaml syntax for service ports.
140141
ports:
141-
- port: 80
142-
targetPort: 80
143-
protocol: TCP
144-
name: http
145-
- port: 443
146-
targetPort: 443
147-
protocol: TCP
148-
name: https
142+
- port: 80
143+
targetPort: 80
144+
protocol: TCP
145+
name: http
146+
- port: 443
147+
targetPort: 443
148+
protocol: TCP
149+
name: https
149150

150151
metrics:
151152
## Enable exposing metrics in the Prometheus format.

0 commit comments

Comments
 (0)