Skip to content

Commit

Permalink
linter: Check for trailing spaces at the end of lines in yaml (#1595)
Browse files Browse the repository at this point in the history
Signed-off-by: zhaonan <zhaonan06@corp.netease.com>
  • Loading branch information
tmsnan authored Jun 27, 2023
1 parent 155f75f commit 278e02f
Show file tree
Hide file tree
Showing 116 changed files with 198 additions and 198 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,19 +86,19 @@ jobs:
with:
name: envoy-gateway
path: bin/

- name: Give Privileges To EG Binaries
run: |
chmod +x bin/linux/amd64/envoy-gateway
chmod +x bin/linux/arm64/envoy-gateway
# conformance
- name: Run Conformance Tests
- name: Run Conformance Tests
env:
KIND_NODE_TAG: ${{ matrix.version }}
IMAGE_PULL_POLICY: IfNotPresent
run: make conformance

e2e-test:
runs-on: ubuntu-latest
needs: [build]
Expand All @@ -114,14 +114,14 @@ jobs:
with:
name: envoy-gateway
path: bin/

- name: Give Privileges To EG Binaries
run: |
chmod +x bin/linux/amd64/envoy-gateway
chmod +x bin/linux/arm64/envoy-gateway
# E2E
- name: Run E2E Tests
- name: Run E2E Tests
env:
KIND_NODE_TAG: ${{ matrix.version }}
IMAGE_PULL_POLICY: IfNotPresent
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Generate EG Pages
run: make docs

# Upload docs for GitHub Pages
# Upload docs for GitHub Pages
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v1.0.9
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/latest_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
run: make generate-manifests IMAGE=envoyproxy/gateway-dev TAG=latest OUTPUT_DIR=release-artifacts

- name: Build egctl latest multiarch binaries
run: |
run: |
make build-multiarch BINS="egctl"
tar -zcvf egctl_latest_linux_amd64.tar.gz bin/linux/amd64/
tar -zcvf egctl_latest_linux_arm64.tar.gz bin/linux/arm64/
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
egctl_latest_darwin_arm64.tar.gz
body: |
This is the "latest" release of **Envoy Gateway**, which contains the most recent commits from the main branch.
This release **might not be stable**.
It is only intended for developers wishing to try out the latest features in Envoy Gateway, some of which may not be fully implemented.
Expand All @@ -75,7 +75,7 @@ jobs:
```
# Check if latest release and tag are created properly,
# if not, the workflow needs to report an error,
# if not, the workflow needs to report an error,
# let maintainers be aware of it and rerun it manually.
# After Recreate the Latest Release and Tag, we need to sleep some time to wait
# new tag and release are created before checking it.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release
on:
push:
# Sequence of patterns matched against refs/tags
tags:
tags:
- "v*.*.*"
jobs:
release:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/retest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
console.log(`Comment: ${comment}`);
console.log(`Contains Trigger: ${containsTrigger}`);
return containsTrigger;
- name: Install @octokit/core
run: npm install @octokit/core@^3

- name: Rerun Action
if: steps.check_comment.outputs.result == 'true'
uses: actions/github-script@v6
Expand Down
6 changes: 3 additions & 3 deletions examples/kubernetes/grpc-routing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,16 @@ kind: GRPCRoute
metadata:
name: yages
labels:
example: grpc-routing
example: grpc-routing
spec:
parentRefs:
- name: example-gateway
- name: example-gateway
hostnames:
- "grpc-example.com"
rules:
- backendRefs:
- group: ""
kind: Service
name: yages
name: yages
port: 9000
weight: 1
2 changes: 1 addition & 1 deletion examples/loki/loki.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ metadata:
app.kubernetes.io/managed-by: Helm
data:
runtime-config.yaml: |
{}
---
# Source: loki/templates/service-memberlist.yaml
Expand Down
2 changes: 1 addition & 1 deletion examples/otel-collector/helm-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ config:
key: loki.attribute.labels
# k8s.pod.name is OpenTelemetry format for Kubernetes Pod name,
# Loki will convert this to k8s_pod_name label.
value: k8s.pod.name, k8s.namespace.name
value: k8s.pod.name, k8s.namespace.name
receivers:
otlp:
protocols:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ metadata:
name: endpointslice-providedBackend
namespace: default
labels:
kubernetes.io/service-name: providedBackend
kubernetes.io/service-name: providedBackend
addressType: IPv4
ports:
- name: http
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: config.gateway.envoyproxy.io/v1alpha1
kind: EnvoyProxy
metadata:
name: example
namespace: default
namespace: default
spec:
bootstrap: |
admin:
Expand All @@ -26,7 +26,7 @@ spec:
group: config.gateway.envoyproxy.io
kind: EnvoyProxy
name: example
namespace: default
namespace: default
---
apiVersion: gateway.networking.k8s.io/v1beta1
kind: Gateway
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ apiVersion: config.gateway.envoyproxy.io/v1alpha1
kind: EnvoyProxy
metadata:
name: example
namespace: default
namespace: default
spec:
provider:
type: Kubernetes
kubernetes:
envoyService:
annotations:
custom1: svc-annotation1
custom1: svc-annotation1
---
apiVersion: gateway.networking.k8s.io/v1beta1
kind: GatewayClass
Expand All @@ -21,7 +21,7 @@ spec:
group: config.gateway.envoyproxy.io
kind: EnvoyProxy
name: example
namespace: default
namespace: default
---
apiVersion: gateway.networking.k8s.io/v1beta1
kind: Gateway
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ gateways:
kind: HTTPRoute
- group: gateway.networking.k8s.io
kind: GRPCRoute
attachedRoutes: 0
attachedRoutes: 0
conditions:
- type: Programmed
status: "True"
Expand Down Expand Up @@ -57,7 +57,7 @@ httpRoutes:
extensionRef:
group: foo.example.io
kind: Foo
name: test
name: test
status:
parents:
- parentRef:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ gateways:
kind: HTTPRoute
- group: gateway.networking.k8s.io
kind: GRPCRoute
attachedRoutes: 0
attachedRoutes: 0
conditions:
- type: Programmed
status: "True"
Expand Down Expand Up @@ -57,7 +57,7 @@ httpRoutes:
extensionRef:
group: foo.example.io
kind: Foo
name: example
name: example
status:
parents:
- parentRef:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ gateways:
kind: HTTPRoute
- group: gateway.networking.k8s.io
kind: GRPCRoute
attachedRoutes: 0
attachedRoutes: 0
conditions:
- type: Programmed
status: "True"
Expand Down Expand Up @@ -57,7 +57,7 @@ httpRoutes:
extensionRef:
group: foo.example.io
kind: Unsupported
name: test
name: test
status:
parents:
- parentRef:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ gateways:
- group: gateway.networking.k8s.io
kind: HTTPRoute
- group: gateway.networking.k8s.io
kind: GRPCRoute
kind: GRPCRoute
attachedRoutes: 1
conditions:
- type: Programmed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ gateways:
- group: gateway.networking.k8s.io
kind: HTTPRoute
- group: gateway.networking.k8s.io
kind: GRPCRoute
kind: GRPCRoute
attachedRoutes: 0
conditions:
- type: Programmed
Expand Down Expand Up @@ -59,9 +59,9 @@ httpRoutes:
status: "False"
reason: NotAllowedByListeners
message: No listeners included by this parent ref allowed this attachment.
- type: ResolvedRefs
- type: ResolvedRefs
status: "True"
reason: ResolvedRefs
reason: ResolvedRefs
message: Resolved all the Object references for the Route
xdsIR:
envoy-gateway-gateway-1:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ gateways:
- name: tls-secret-ecdsa-1
- name: tls-secret-ecdsa-2
- name: tls-secret-1

secrets:
- apiVersion: v1
kind: Secret
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ gateways:
- group: gateway.networking.k8s.io
kind: HTTPRoute
- group: gateway.networking.k8s.io
kind: GRPCRoute
kind: GRPCRoute
conditions:
- type: Conflicted
status: "True"
Expand Down Expand Up @@ -81,9 +81,9 @@ httpRoutes:
status: "False"
reason: NoReadyListeners
message: There are no ready listeners for this parent ref
- type: ResolvedRefs
- type: ResolvedRefs
status: "True"
reason: ResolvedRefs
reason: ResolvedRefs
message: Resolved all the Object references for the Route
tlsRoutes:
- apiVersion: gateway.networking.k8s.io/v1alpha2
Expand All @@ -110,9 +110,9 @@ tlsRoutes:
status: "False"
reason: NoReadyListeners
message: There are no ready listeners for this parent ref
- type: ResolvedRefs
- type: ResolvedRefs
status: "True"
reason: ResolvedRefs
reason: ResolvedRefs
message: Resolved all the Object references for the Route
xdsIR:
envoy-gateway-gateway-1:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ gateways:
- group: gateway.networking.k8s.io
kind: HTTPRoute
- group: gateway.networking.k8s.io
kind: GRPCRoute
kind: GRPCRoute
AttachedRoutes: 2
conditions:
- type: Programmed
Expand All @@ -44,7 +44,7 @@ gateways:
- group: gateway.networking.k8s.io
kind: HTTPRoute
- group: gateway.networking.k8s.io
kind: GRPCRoute
kind: GRPCRoute
AttachedRoutes: 2
conditions:
- type: Programmed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ gateways:
- group: gateway.networking.k8s.io
kind: HTTPRoute
- group: gateway.networking.k8s.io
kind: GRPCRoute
kind: GRPCRoute
conditions:
- type: Conflicted
status: "True"
Expand All @@ -43,7 +43,7 @@ gateways:
- group: gateway.networking.k8s.io
kind: HTTPRoute
- group: gateway.networking.k8s.io
kind: GRPCRoute
kind: GRPCRoute
conditions:
- type: Conflicted
status: "True"
Expand Down Expand Up @@ -81,9 +81,9 @@ httpRoutes:
status: "False"
reason: NoReadyListeners
message: There are no ready listeners for this parent ref
- type: ResolvedRefs
- type: ResolvedRefs
status: "True"
reason: ResolvedRefs
reason: ResolvedRefs
message: Resolved all the Object references for the Route
xdsIR:
envoy-gateway-gateway-1:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ gateways:
- group: gateway.networking.k8s.io
kind: HTTPRoute
- group: gateway.networking.k8s.io
kind: GRPCRoute
kind: GRPCRoute
AttachedRoutes: 1
conditions:
- type: Programmed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ gateways:
spec:
gatewayClassName: envoy-gateway-class
listeners:
- name: http
- name: http
protocol: HTTP
port: 80
allowedRoutes:
Expand All @@ -23,13 +23,13 @@ grpcRoutes:
parentRefs:
- namespace: envoy-gateway
name: gateway-1
sectionName: http
sectionName: http
rules:
- matches:
- headers:
- type: Exact
name: magic
value: foo
value: foo
backendRefs:
- name: service-1
port: 8080
Loading

0 comments on commit 278e02f

Please sign in to comment.