Skip to content

Commit 278e02f

Browse files
author
tmsnan
authored
linter: Check for trailing spaces at the end of lines in yaml (#1595)
Signed-off-by: zhaonan <[email protected]>
1 parent 155f75f commit 278e02f

File tree

116 files changed

+198
-198
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+198
-198
lines changed

.github/workflows/build_and_test.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,19 +86,19 @@ jobs:
8686
with:
8787
name: envoy-gateway
8888
path: bin/
89-
89+
9090
- name: Give Privileges To EG Binaries
9191
run: |
9292
chmod +x bin/linux/amd64/envoy-gateway
9393
chmod +x bin/linux/arm64/envoy-gateway
9494
9595
# conformance
96-
- name: Run Conformance Tests
96+
- name: Run Conformance Tests
9797
env:
9898
KIND_NODE_TAG: ${{ matrix.version }}
9999
IMAGE_PULL_POLICY: IfNotPresent
100100
run: make conformance
101-
101+
102102
e2e-test:
103103
runs-on: ubuntu-latest
104104
needs: [build]
@@ -114,14 +114,14 @@ jobs:
114114
with:
115115
name: envoy-gateway
116116
path: bin/
117-
117+
118118
- name: Give Privileges To EG Binaries
119119
run: |
120120
chmod +x bin/linux/amd64/envoy-gateway
121121
chmod +x bin/linux/arm64/envoy-gateway
122122
123123
# E2E
124-
- name: Run E2E Tests
124+
- name: Run E2E Tests
125125
env:
126126
KIND_NODE_TAG: ${{ matrix.version }}
127127
IMAGE_PULL_POLICY: IfNotPresent

.github/workflows/docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Generate EG Pages
3535
run: make docs
3636

37-
# Upload docs for GitHub Pages
37+
# Upload docs for GitHub Pages
3838
- name: Upload GitHub Pages artifact
3939
uses: actions/[email protected]
4040
with:

.github/workflows/latest_release.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
run: make generate-manifests IMAGE=envoyproxy/gateway-dev TAG=latest OUTPUT_DIR=release-artifacts
1818

1919
- name: Build egctl latest multiarch binaries
20-
run: |
20+
run: |
2121
make build-multiarch BINS="egctl"
2222
tar -zcvf egctl_latest_linux_amd64.tar.gz bin/linux/amd64/
2323
tar -zcvf egctl_latest_linux_arm64.tar.gz bin/linux/arm64/
@@ -63,7 +63,7 @@ jobs:
6363
egctl_latest_darwin_arm64.tar.gz
6464
body: |
6565
This is the "latest" release of **Envoy Gateway**, which contains the most recent commits from the main branch.
66-
66+
6767
This release **might not be stable**.
6868
6969
It is only intended for developers wishing to try out the latest features in Envoy Gateway, some of which may not be fully implemented.
@@ -75,7 +75,7 @@ jobs:
7575
```
7676
7777
# Check if latest release and tag are created properly,
78-
# if not, the workflow needs to report an error,
78+
# if not, the workflow needs to report an error,
7979
# let maintainers be aware of it and rerun it manually.
8080
# After Recreate the Latest Release and Tag, we need to sleep some time to wait
8181
# new tag and release are created before checking it.

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Release
33
on:
44
push:
55
# Sequence of patterns matched against refs/tags
6-
tags:
6+
tags:
77
- "v*.*.*"
88
jobs:
99
release:

.github/workflows/retest.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
console.log(`Comment: ${comment}`);
2222
console.log(`Contains Trigger: ${containsTrigger}`);
2323
return containsTrigger;
24-
24+
2525
- name: Install @octokit/core
2626
run: npm install @octokit/core@^3
27-
27+
2828
- name: Rerun Action
2929
if: steps.check_comment.outputs.result == 'true'
3030
uses: actions/github-script@v6

examples/kubernetes/grpc-routing.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,16 @@ kind: GRPCRoute
6666
metadata:
6767
name: yages
6868
labels:
69-
example: grpc-routing
69+
example: grpc-routing
7070
spec:
7171
parentRefs:
72-
- name: example-gateway
72+
- name: example-gateway
7373
hostnames:
7474
- "grpc-example.com"
7575
rules:
7676
- backendRefs:
7777
- group: ""
7878
kind: Service
79-
name: yages
79+
name: yages
8080
port: 9000
8181
weight: 1

examples/loki/loki.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ metadata:
8484
app.kubernetes.io/managed-by: Helm
8585
data:
8686
runtime-config.yaml: |
87-
87+
8888
{}
8989
---
9090
# Source: loki/templates/service-memberlist.yaml

examples/otel-collector/helm-values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ config:
1717
key: loki.attribute.labels
1818
# k8s.pod.name is OpenTelemetry format for Kubernetes Pod name,
1919
# Loki will convert this to k8s_pod_name label.
20-
value: k8s.pod.name, k8s.namespace.name
20+
value: k8s.pod.name, k8s.namespace.name
2121
receivers:
2222
otlp:
2323
protocols:

internal/cmd/egctl/testdata/translate/in/default-resources.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ metadata:
161161
name: endpointslice-providedBackend
162162
namespace: default
163163
labels:
164-
kubernetes.io/service-name: providedBackend
164+
kubernetes.io/service-name: providedBackend
165165
addressType: IPv4
166166
ports:
167167
- name: http

internal/cmd/egctl/testdata/translate/in/invalid-envoyproxy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: config.gateway.envoyproxy.io/v1alpha1
22
kind: EnvoyProxy
33
metadata:
44
name: example
5-
namespace: default
5+
namespace: default
66
spec:
77
bootstrap: |
88
admin:
@@ -26,7 +26,7 @@ spec:
2626
group: config.gateway.envoyproxy.io
2727
kind: EnvoyProxy
2828
name: example
29-
namespace: default
29+
namespace: default
3030
---
3131
apiVersion: gateway.networking.k8s.io/v1beta1
3232
kind: Gateway

0 commit comments

Comments
 (0)