Skip to content

Remove trailing whitespace from all files #2014

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion linkerd.io/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ To display a caption below the image, provide an image title. For example:
To center the image, use a Markdown attribute:

```markdown
![Alt text](my-image.jpg)
![Alt text](my-image.jpg)
{.center}
```

Expand Down
2 changes: 1 addition & 1 deletion linkerd.io/assets/js/highlight-copy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Add copy button to all codeblocks that have been highlighed by Hugo
// Add copy button to all codeblocks that have been highlighed by Hugo
window.addEventListener(
"DOMContentLoaded",
function (event) {
Expand Down
4 changes: 2 additions & 2 deletions linkerd.io/assets/scss/_base.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
:root {
font-size: $font-size-base;

@media (prefers-reduced-motion: no-preference) {
scroll-behavior: smooth;
}
Expand Down Expand Up @@ -149,7 +149,7 @@ a {
color: $link-color;
text-decoration: none;
transition: color .2s ease;

&:hover,
&:active {
color: $link-color-hover;
Expand Down
2 changes: 1 addition & 1 deletion linkerd.io/assets/scss/app/_docs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
li {
// Reduce font size and spacing below level 2
font-size: $font-size-sm;

a {
padding-top: spacer(1);
padding-bottom: spacer(1);
Expand Down
2 changes: 1 addition & 1 deletion linkerd.io/assets/scss/app/_heroes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
.card {
position: relative;

.heroes__type {
position: absolute;
top: spacer(3);
Expand Down
2 changes: 1 addition & 1 deletion linkerd.io/assets/scss/app/_main-announcement.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@markup See: layouts/partials/main-announcement.html
*/

.main-announcement {
.main-announcement {
padding: spacer(2);
background-color: $navy;
color: $white;
Expand Down
6 changes: 3 additions & 3 deletions linkerd.io/assets/scss/app/_main-footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
padding: spacer(6) 0;
background-color: $light-blue;

.main-footer__container {
.main-footer__container {
gap: spacer(6);
}
}
Expand All @@ -30,7 +30,7 @@
p {
font-size: $font-size-sm;
}
.main-footer__container {
.main-footer__container {
gap: spacer(3);
}
}
Expand All @@ -55,7 +55,7 @@
.main-footer__top {
padding: spacer(7) 0;

.main-footer__container {
.main-footer__container {
justify-content: space-between;
}
}
Expand Down
2 changes: 1 addition & 1 deletion linkerd.io/assets/scss/app/_main-header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ body {
align-items: center;
// Maintain height of header
min-height: ($header-min-height - spacer(3));

img {
display: block;
width: 160px;
Expand Down
2 changes: 1 addition & 1 deletion linkerd.io/assets/scss/components/_accordion.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

.accordion {
border-top: solid 1px $border-color;

details {
padding-top: spacer(3);
padding-bottom: spacer(3);
Expand Down
2 changes: 1 addition & 1 deletion linkerd.io/assets/scss/components/_hero.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Using a parent component:

.hero {
background-color: $white;

.hero__container {
padding-top: spacer(6);
padding-bottom: spacer(6);
Expand Down
4 changes: 2 additions & 2 deletions linkerd.io/assets/scss/components/_icon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
vertical-align: middle;
width: icon-size("md");
height: icon-size("md");

path {
fill: currentColor;
}

// @options

&.icon--primary {
Expand Down
2 changes: 1 addition & 1 deletion linkerd.io/assets/scss/components/_prose.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Apply to containers that contain rendered markdown.
padding-top: 0;
}
}

// Add bottom margin to alerts
.alert {
margin-bottom: spacer(3);
Expand Down
4 changes: 2 additions & 2 deletions linkerd.io/assets/scss/components/_search-input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
border-radius: 999px;
background-color: $white;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);

svg {
flex-shrink: 0;
width: icon-size("md");
height: icon-size("md");

path {
color: $gray;
}
Expand Down
82 changes: 41 additions & 41 deletions linkerd.io/content/2-edge/tasks/books.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ the `stat-inbound` command to see the success rate of the webapp deployment:

```bash
linkerd viz -n booksapp stat-inbound deploy/webapp
NAME SERVER ROUTE TYPE SUCCESS RPS LATENCY_P50 LATENCY_P95 LATENCY_P99
webapp [default]:4191 [default] 100.00% 0.30 4ms 9ms 10ms
webapp [default]:4191 probe 100.00% 0.60 0ms 1ms 1ms
webapp [default]:7000 probe 100.00% 0.30 2ms 2ms 2ms
NAME SERVER ROUTE TYPE SUCCESS RPS LATENCY_P50 LATENCY_P95 LATENCY_P99
webapp [default]:4191 [default] 100.00% 0.30 4ms 9ms 10ms
webapp [default]:4191 probe 100.00% 0.60 0ms 1ms 1ms
webapp [default]:7000 probe 100.00% 0.30 2ms 2ms 2ms
webapp [default]:7000 [default] 75.66% 8.22 18ms 65ms 93ms
```

Expand All @@ -129,10 +129,10 @@ other services.

```bash
linkerd viz -n booksapp stat-outbound deploy/webapp
NAME SERVICE ROUTE TYPE BACKEND SUCCESS RPS LATENCY_P50 LATENCY_P95 LATENCY_P99 TIMEOUTS RETRIES
webapp books:7002 [default] 77.36% 7.95 25ms 48ms 176ms 0.00% 0.00%
└──────────────────► books:7002 77.36% 7.95 15ms 44ms 64ms 0.00%
webapp authors:7001 [default] 100.00% 3.53 26ms 72ms 415ms 0.00% 0.00%
NAME SERVICE ROUTE TYPE BACKEND SUCCESS RPS LATENCY_P50 LATENCY_P95 LATENCY_P99 TIMEOUTS RETRIES
webapp books:7002 [default] 77.36% 7.95 25ms 48ms 176ms 0.00% 0.00%
└──────────────────► books:7002 77.36% 7.95 15ms 44ms 64ms 0.00%
webapp authors:7001 [default] 100.00% 3.53 26ms 72ms 415ms 0.00% 0.00%
└──────────────────► authors:7001 100.00% 3.53 16ms 52ms 91ms 0.00%
```

Expand Down Expand Up @@ -236,14 +236,14 @@ With those HTTPRoutes in place, we can look at the outbound stats again:

```bash
linkerd viz -n booksapp stat-outbound deploy/webapp
NAME SERVICE ROUTE TYPE BACKEND SUCCESS RPS LATENCY_P50 LATENCY_P95 LATENCY_P99 TIMEOUTS RETRIES
webapp authors:7001 [default] 100.00% 2.80 25ms 48ms 50ms 0.00% 0.00%
└─────────────────────► authors:7001 100.00% 2.80 16ms 45ms 49ms 0.00%
webapp books:7002 books-list HTTPRoute 100.00% 1.43 25ms 48ms 50ms 0.00% 0.00%
└─────────────────────► books:7002 100.00% 1.43 12ms 24ms 25ms 0.00%
webapp books:7002 books-create HTTPRoute 54.27% 2.73 27ms 207ms 441ms 0.00% 0.00%
└─────────────────────► books:7002 54.27% 2.73 14ms 152ms 230ms 0.00%
webapp books:7002 books-delete HTTPRoute 100.00% 0.72 25ms 48ms 50ms 0.00% 0.00%
NAME SERVICE ROUTE TYPE BACKEND SUCCESS RPS LATENCY_P50 LATENCY_P95 LATENCY_P99 TIMEOUTS RETRIES
webapp authors:7001 [default] 100.00% 2.80 25ms 48ms 50ms 0.00% 0.00%
└─────────────────────► authors:7001 100.00% 2.80 16ms 45ms 49ms 0.00%
webapp books:7002 books-list HTTPRoute 100.00% 1.43 25ms 48ms 50ms 0.00% 0.00%
└─────────────────────► books:7002 100.00% 1.43 12ms 24ms 25ms 0.00%
webapp books:7002 books-create HTTPRoute 54.27% 2.73 27ms 207ms 441ms 0.00% 0.00%
└─────────────────────► books:7002 54.27% 2.73 14ms 152ms 230ms 0.00%
webapp books:7002 books-delete HTTPRoute 100.00% 0.72 25ms 48ms 50ms 0.00% 0.00%
└─────────────────────► books:7002 100.00% 0.72 12ms 24ms 25ms 0.00%
```

Expand All @@ -267,14 +267,14 @@ We can then see the effect of these retries:

```bash
linkerd viz -n booksapp stat-outbound deploy/webapp
NAME SERVICE ROUTE TYPE BACKEND SUCCESS RPS LATENCY_P50 LATENCY_P95 LATENCY_P99 TIMEOUTS RETRIES
webapp books:7002 books-create HTTPRoute 73.17% 2.05 98ms 460ms 492ms 0.00% 34.22%
└─────────────────────► books:7002 48.13% 3.12 29ms 93ms 99ms 0.00%
webapp books:7002 books-list HTTPRoute 100.00% 1.50 25ms 48ms 49ms 0.00% 0.00%
└─────────────────────► books:7002 100.00% 1.50 12ms 24ms 25ms 0.00%
webapp books:7002 books-delete HTTPRoute 100.00% 0.73 25ms 48ms 50ms 0.00% 0.00%
└─────────────────────► books:7002 100.00% 0.73 12ms 24ms 25ms 0.00%
webapp authors:7001 [default] 100.00% 2.98 25ms 48ms 50ms 0.00% 0.00%
NAME SERVICE ROUTE TYPE BACKEND SUCCESS RPS LATENCY_P50 LATENCY_P95 LATENCY_P99 TIMEOUTS RETRIES
webapp books:7002 books-create HTTPRoute 73.17% 2.05 98ms 460ms 492ms 0.00% 34.22%
└─────────────────────► books:7002 48.13% 3.12 29ms 93ms 99ms 0.00%
webapp books:7002 books-list HTTPRoute 100.00% 1.50 25ms 48ms 49ms 0.00% 0.00%
└─────────────────────► books:7002 100.00% 1.50 12ms 24ms 25ms 0.00%
webapp books:7002 books-delete HTTPRoute 100.00% 0.73 25ms 48ms 50ms 0.00% 0.00%
└─────────────────────► books:7002 100.00% 0.73 12ms 24ms 25ms 0.00%
webapp authors:7001 [default] 100.00% 2.98 25ms 48ms 50ms 0.00% 0.00%
└─────────────────────► authors:7001 100.00% 2.98 16ms 44ms 49ms 0.00%
```

Expand All @@ -298,14 +298,14 @@ Looking at the stats again:

```bash
linkerd viz -n booksapp stat-outbound deploy/webapp
NAME SERVICE ROUTE TYPE BACKEND SUCCESS RPS LATENCY_P50 LATENCY_P95 LATENCY_P99 TIMEOUTS RETRIES
webapp books:7002 books-delete HTTPRoute 100.00% 0.75 25ms 48ms 50ms 0.00% 0.00%
└─────────────────────► books:7002 100.00% 0.75 12ms 24ms 25ms 0.00%
webapp authors:7001 [default] 100.00% 2.92 25ms 48ms 50ms 0.00% 0.00%
└─────────────────────► authors:7001 100.00% 2.92 18ms 46ms 49ms 0.00%
webapp books:7002 books-create HTTPRoute 92.78% 1.62 111ms 461ms 492ms 0.00% 47.28%
└─────────────────────► books:7002 48.91% 3.07 42ms 179ms 236ms 0.00%
webapp books:7002 books-list HTTPRoute 100.00% 1.45 25ms 48ms 50ms 0.00% 0.00%
NAME SERVICE ROUTE TYPE BACKEND SUCCESS RPS LATENCY_P50 LATENCY_P95 LATENCY_P99 TIMEOUTS RETRIES
webapp books:7002 books-delete HTTPRoute 100.00% 0.75 25ms 48ms 50ms 0.00% 0.00%
└─────────────────────► books:7002 100.00% 0.75 12ms 24ms 25ms 0.00%
webapp authors:7001 [default] 100.00% 2.92 25ms 48ms 50ms 0.00% 0.00%
└─────────────────────► authors:7001 100.00% 2.92 18ms 46ms 49ms 0.00%
webapp books:7002 books-create HTTPRoute 92.78% 1.62 111ms 461ms 492ms 0.00% 47.28%
└─────────────────────► books:7002 48.91% 3.07 42ms 179ms 236ms 0.00%
webapp books:7002 books-list HTTPRoute 100.00% 1.45 25ms 48ms 50ms 0.00% 0.00%
└─────────────────────► books:7002 100.00% 1.45 12ms 24ms 25ms 0.00%
```

Expand All @@ -330,15 +330,15 @@ getting so many that it's hard to see what's going on!)
We can see the effects of this timeout by running:

```bash
linkerd viz -n booksapp stat-outbound deploy/webapp
NAME SERVICE ROUTE TYPE BACKEND SUCCESS RPS LATENCY_P50 LATENCY_P95 LATENCY_P99 TIMEOUTS RETRIES
webapp authors:7001 [default] 100.00% 2.85 26ms 49ms 370ms 0.00% 0.00%
└─────────────────────► authors:7001 100.00% 2.85 19ms 49ms 86ms 0.00%
webapp books:7002 books-create HTTPRoute 78.90% 1.82 45ms 449ms 490ms 21.10% 47.34%
└─────────────────────► books:7002 41.55% 3.45 24ms 134ms 227ms 11.11%
webapp books:7002 books-list HTTPRoute 100.00% 1.40 25ms 47ms 49ms 0.00% 0.00%
└─────────────────────► books:7002 100.00% 1.40 12ms 24ms 25ms 0.00%
webapp books:7002 books-delete HTTPRoute 100.00% 0.70 25ms 48ms 50ms 0.00% 0.00%
linkerd viz -n booksapp stat-outbound deploy/webapp
NAME SERVICE ROUTE TYPE BACKEND SUCCESS RPS LATENCY_P50 LATENCY_P95 LATENCY_P99 TIMEOUTS RETRIES
webapp authors:7001 [default] 100.00% 2.85 26ms 49ms 370ms 0.00% 0.00%
└─────────────────────► authors:7001 100.00% 2.85 19ms 49ms 86ms 0.00%
webapp books:7002 books-create HTTPRoute 78.90% 1.82 45ms 449ms 490ms 21.10% 47.34%
└─────────────────────► books:7002 41.55% 3.45 24ms 134ms 227ms 11.11%
webapp books:7002 books-list HTTPRoute 100.00% 1.40 25ms 47ms 49ms 0.00% 0.00%
└─────────────────────► books:7002 100.00% 1.40 12ms 24ms 25ms 0.00%
webapp books:7002 books-delete HTTPRoute 100.00% 0.70 25ms 48ms 50ms 0.00% 0.00%
└─────────────────────► books:7002 100.00% 0.70 12ms 24ms 25ms 0.00%
```

Expand Down
24 changes: 12 additions & 12 deletions linkerd.io/content/2-edge/tasks/fault-injection.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ linkerd viz -n booksapp stat-inbound deploy
The output will end up looking at little like:

```bash
NAME SERVER ROUTE TYPE SUCCESS RPS LATENCY_P50 LATENCY_P95 LATENCY_P99
authors [default]:4191 [default] 100.00% 0.20 0ms 1ms 1ms
authors [default]:7001 [default] 100.00% 3.00 2ms 36ms 43ms
books [default]:4191 [default] 100.00% 0.23 4ms 4ms 4ms
books [default]:7002 [default] 100.00% 3.60 2ms 2ms 2ms
traffic [default]:4191 [default] 100.00% 0.22 0ms 3ms 1ms
webapp [default]:4191 [default] 100.00% 0.72 4ms 5ms 1ms
NAME SERVER ROUTE TYPE SUCCESS RPS LATENCY_P50 LATENCY_P95 LATENCY_P99
authors [default]:4191 [default] 100.00% 0.20 0ms 1ms 1ms
authors [default]:7001 [default] 100.00% 3.00 2ms 36ms 43ms
books [default]:4191 [default] 100.00% 0.23 4ms 4ms 4ms
books [default]:7002 [default] 100.00% 3.60 2ms 2ms 2ms
traffic [default]:4191 [default] 100.00% 0.22 0ms 3ms 1ms
webapp [default]:4191 [default] 100.00% 0.72 4ms 5ms 1ms
webapp [default]:7000 [default] 100.00% 3.25 2ms 2ms 65ms
```

Expand Down Expand Up @@ -190,11 +190,11 @@ what this looks like by running `stat-outbound`:

```bash
linkerd viz stat-outbound -n booksapp deploy/webapp
NAME SERVICE ROUTE TYPE BACKEND SUCCESS RPS LATENCY_P50 LATENCY_P95 LATENCY_P99 TIMEOUTS RETRIES
webapp authors:7001 [default] 98.44% 4.28 25ms 47ms 50ms 0.00% 0.00%
└────────────────────► authors:7001 98.44% 4.28 15ms 42ms 48ms 0.00%
webapp books:7002 error-split HTTPRoute 87.76% 7.22 26ms 49ms 333ms 0.00% 0.00%
├────────────────────► books:7002 100.00% 6.33 14ms 42ms 83ms 0.00%
NAME SERVICE ROUTE TYPE BACKEND SUCCESS RPS LATENCY_P50 LATENCY_P95 LATENCY_P99 TIMEOUTS RETRIES
webapp authors:7001 [default] 98.44% 4.28 25ms 47ms 50ms 0.00% 0.00%
└────────────────────► authors:7001 98.44% 4.28 15ms 42ms 48ms 0.00%
webapp books:7002 error-split HTTPRoute 87.76% 7.22 26ms 49ms 333ms 0.00% 0.00%
├────────────────────► books:7002 100.00% 6.33 14ms 42ms 83ms 0.00%
└────────────────────► error-injector:8080 0.00% 0.88 12ms 24ms 25ms 0.00%
```

Expand Down
6 changes: 3 additions & 3 deletions linkerd.io/content/2-edge/tasks/flagger.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ spec:
direction="inbound"
}[{{ interval }}]
)
)
/
)
/
sum(
rate(
response_total{
Expand All @@ -175,7 +175,7 @@ spec:
direction="inbound"
}[{{ interval }}]
)
)
)
* 100
EOF
```
Expand Down
Loading