Skip to content

Commit ea2008d

Browse files
authored
Merge pull request #7761 from Nordix/esotsal/update-coding-conventions-links
coding-conventions: update links
2 parents 4c22807 + 7b08e42 commit ea2008d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

contributors/guide/coding-conventions.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ description: |
1414
- Ensure that build, release, test, and cluster-management scripts run on macOS
1515

1616
- Go
17-
- [Go Code Review Comments](https://github.com/golang/go/wiki/CodeReviewComments)
17+
- [Go Code Review Comments](https://go.dev/wiki/CodeReviewComments)
1818
- [Effective Go](https://golang.org/doc/effective_go.html)
1919
- Know and avoid [Go landmines](https://gist.github.com/lavalamp/4bd23295a9f32706a48f)
2020
- Comment your code.
21-
- [Go's commenting conventions](http://blog.golang.org/godoc-documenting-go-code)
21+
- [Go's commenting conventions](https://go.dev/doc/comment)
2222
- If reviewers ask questions about why the code is the way it is, that's a sign that comments might be helpful.
2323
- Command-line flags should use dashes, not underscores
2424
- Naming
@@ -36,11 +36,11 @@ description: |
3636
## Testing conventions
3737

3838
- All new packages and most new significant functionality must come with unit tests.
39-
- Table-driven tests are preferred for testing multiple scenarios/inputs. For an example, see [TestNamespaceAuthorization](https://git.k8s.io/kubernetes/test/integration/auth/auth_test.go).
39+
- Table-driven tests are preferred for testing multiple scenarios/inputs. For an example, see [TestNamespaceAuthorization](https://github.com/kubernetes/kubernetes/blob/4b8e819355d791d96b7e9d9efe4cbafae2311c88/test/integration/auth/auth_test.go#L1201).
4040
- Significant features should come with integration (test/integration) and/or [end-to-end (test/e2e) tests](/contributors/devel/sig-testing/e2e-tests.md).
4141
- Including new `kubectl` commands and major features of existing commands.
4242
- Unit tests must pass on macOS and Windows platforms - if you use Linux specific features, your test case must either be skipped on windows or compiled out (skipped is better when running Linux specific commands, compiled out is required when your code does not compile on Windows).
43-
- Avoid relying on Docker Hub. Use the [Google Cloud Container Registry](https://gcr.io) instead.
43+
- Avoid relying on Docker Hub. Use the [Google Cloud Artifact Registry](https://cloud.google.com/artifact-registry/) instead.
4444
- Do not expect an asynchronous thing to happen immediately---do not wait for one second and expect a pod to be running. Wait and retry instead.
4545
- See the [testing guide](/contributors/devel/sig-testing/testing.md) for additional testing advice.
4646

@@ -55,7 +55,7 @@ description: |
5555
- Document directories and filenames should use dashes rather than underscores.
5656
- Examples should also illustrate [best practices for configuration and using the system](https://kubernetes.io/docs/concepts/configuration/overview/).
5757
- Follow these conventions for third-party code:
58-
- Go code for normal third-party dependencies is managed using [go modules](https://github.com/golang/go/wiki/Modules) and is described in the kubernetes [vendoring guide](/contributors/devel/sig-architecture/vendor.md).
58+
- Go code for normal third-party dependencies is managed using [go modules](https://go.dev/wiki/Modules) and is described in the kubernetes [vendoring guide](/contributors/devel/sig-architecture/vendor.md).
5959
- Other third-party code belongs in `third_party`.
6060
- forked third party Go code goes in `third_party/forked`.
6161
- forked _golang stdlib_ code goes in `third_party/forked/golang`.

0 commit comments

Comments
 (0)