Skip to content

Commit 1ac9fbd

Browse files
committed
Use tabs in the example Go code
Signed-off-by: Tom Wieczorek <[email protected]>
1 parent fd8deba commit 1ac9fbd

File tree

2 files changed

+24
-21
lines changed

2 files changed

+24
-21
lines changed

.markdownlint.jsonc

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
"first-line-h1": false,
66
"single-trailing-newline": false,
77
"ol-prefix": "one_or_ordered",
8+
"MD010": {
9+
"code_blocks": false // Go uses tabs ¯\_(ツ)_/¯
10+
},
811
"MD033": {
912
"allowed_elements": [
1013
"br" // The br tag is more readable than two trailing spaces.

docs/architecture/adr-001-autopilot-oci-basic-auth-support.md

+21-21
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ Starting with the current `PlanResourceURL` struct:
3131

3232
```go
3333
type PlanResourceURL struct {
34-
// URL is the URL of a downloadable resource.
35-
URL string `json:"url"`
34+
// URL is the URL of a downloadable resource.
35+
URL string `json:"url"`
3636

37-
// Sha256 provides an optional SHA256 hash of the URL's content for
38-
// verification.
39-
Sha256 string `json:"sha256,omitempty"`
37+
// Sha256 provides an optional SHA256 hash of the URL's content for
38+
// verification.
39+
Sha256 string `json:"sha256,omitempty"`
4040
}
4141
```
4242

@@ -45,22 +45,22 @@ pulls. This will be achieved by adjusting the struct as follows:
4545

4646
```go
4747
type PlanResourceURL struct {
48-
// URL is the URL of a downloadable resource.
49-
URL string `json:"url"`
50-
51-
// Sha256 provides an optional SHA256 hash of the URL's content for
52-
// verification.
53-
Sha256 string `json:"sha256,omitempty"`
54-
55-
// SecretRef holds a reference to a secret where the credentials are
56-
// stored. We use these credentials when pulling the artifacts from the
57-
// provided URL using
58-
// any of the supported protocols (http, https, and oci).
59-
SecretRef *corev1.SecretReference `json:"secretRef,omitempty"`
60-
61-
// InsecureSkipTLSVerify indicates whether certificates in the remote
62-
// URL (if using TLS) can be ignored.
63-
InsecureSkipTLSVerify bool `json:"insecureSkipTLSVerify,omitempty"`
48+
// URL is the URL of a downloadable resource.
49+
URL string `json:"url"`
50+
51+
// Sha256 provides an optional SHA256 hash of the URL's content for
52+
// verification.
53+
Sha256 string `json:"sha256,omitempty"`
54+
55+
// SecretRef holds a reference to a secret where the credentials are
56+
// stored. We use these credentials when pulling the artifacts from the
57+
// provided URL using
58+
// any of the supported protocols (http, https, and oci).
59+
SecretRef *corev1.SecretReference `json:"secretRef,omitempty"`
60+
61+
// InsecureSkipTLSVerify indicates whether certificates in the remote
62+
// URL (if using TLS) can be ignored.
63+
InsecureSkipTLSVerify bool `json:"insecureSkipTLSVerify,omitempty"`
6464
}
6565
```
6666

0 commit comments

Comments
 (0)