Skip to content

Commit 025f0dd

Browse files
authored
Rename golang occurrences to go (#4614)
Signed-off-by: Pavlos Ratis <[email protected]>
1 parent a05a0fc commit 025f0dd

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

CONTRIBUTING.MD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Thanks for contributing!
3030

3131
### Code style
3232

33-
The coding style suggested by the Golang community is used in operator-sdk. See the [style doc][golang-style-doc] for details.
33+
The coding style suggested by the Go community is used in operator-sdk. See the [style doc][golang-style-doc] for details.
3434

3535
Please follow this style to make operator-sdk easy to review, maintain and develop.
3636

internal/plugins/ansible/v1/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ func newResource(cfg config.Config, opts createOptions) *resource.Resource {
192192

193193
r := opts.NewResource(cfg)
194194
r.Domain = cfg.GetDomain()
195-
// Remove the path since this is not a Golang project.
195+
// Remove the path since this is not a Go project.
196196
r.Path = ""
197197
return &r
198198
}

internal/plugins/helm/v1/chartutil/chart.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ func (opts CreateOptions) NewResource(cfg config.Config) *resource.Resource {
205205

206206
r := ro.NewResource(cfg)
207207
r.Domain = cfg.GetDomain()
208-
// remove the path since is not a Golang project
208+
// remove the path since is not a Go project
209209
r.Path = ""
210210
return &r
211211
}

website/content/en/docs/building-operators/ansible/development-tips.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ This is the list of CR annotations which will modify the behavior of the operato
186186
- `ansible.operator-sdk/reconcile-period`: Specifies the maximum time before a
187187
reconciliation is triggered. Note that at scale, this can reduce
188188
performance, see [watches][watches] reference for more information. This value
189-
is parsed using the standard Golang package [time][time_pkg]. Specifically
189+
is parsed using the standard Go package [time][time_pkg]. Specifically
190190
[ParseDuration][time_parse_duration] is used which will apply the default
191191
suffix of `s` giving the value in seconds.
192192

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Golang
2+
title: Go
33
weight: 2
4-
description: Guide to building a Golang Based Operator using Operator SDK
4+
description: Guide to building a Go-based Operator using Operator SDK
55
---
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Golang Based Operator Reference
2+
title: Go-based Operator Reference
33
linkTitle: Reference
44
weight: 100
55
---

website/content/en/docs/building-operators/golang/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Golang Operator Tutorial
2+
title: Go Operator Tutorial
33
linkTitle: Tutorial
44
weight: 30
55
description: An in-depth walkthough of building and running a Go-based operator.

website/content/en/docs/overview/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The Operator SDK is a framework that uses the [controller-runtime][controller_ru
2222

2323
The SDK provides workflows to develop operators in Go, Ansible, or Helm.
2424

25-
The following workflow is for a new [Golang operator][golang-guide]:
25+
The following workflow is for a new [Go operator][golang-guide]:
2626

2727
1. Create a new operator project using the SDK Command Line Interface(CLI)
2828
2. Define new resource APIs by adding Custom Resource Definitions(CRD)

website/content/en/docs/upgrading-sdk-version/v1.2.0.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ title: v1.2.0
33
weight: 998998000
44
---
55

6-
## (Golang based operators) Update Makefile's bundle target
6+
## (Go-based operators) Update Makefile's bundle target
77

88
In the `Makefile` file, replace `bundle: manifests` with `bundle: manifests kustomize` to call the kustomize target when the `bundle` target is used.
99

1010
_See [#4090](https://github.com/operator-framework/operator-sdk/pull/4090) for more details._
1111

12-
## (Golang based operators) Upgrade sigs.k8s.io/controller-runtime version to v0.6.3
12+
## (Go-based operators) Upgrade sigs.k8s.io/controller-runtime version to v0.6.3
1313

1414
In the `go.mod` file replace `sigs.k8s.io/controller-runtime v0.6.2` with `sigs.k8s.io/controller-runtime v0.6.3` and then run `go mod tidy`.
1515

1616
_See [#4062](https://github.com/operator-framework/operator-sdk/pull/4062) for more details._
1717

18-
## (Golang based operators with multigroup support) Fix `CRDDirectoryPath` in `controllers/<group>/suite_test.go`
18+
## (Go-based operators with multigroup support) Fix `CRDDirectoryPath` in `controllers/<group>/suite_test.go`
1919

2020
If your project is multi-group, then replace `CRDDirectoryPaths: []string{filepath.Join("..", "config", "crd", "bases")},` with `CRDDirectoryPaths: []string{filepath.Join("..", "..", "config", "crd", "bases")},` in `suite_test.go` files found in `controllers/<group>/` directories. Otherwise, the tests will fail since this EnvTest will not be looking for the CRD's in the correct location. For more info, see [kubebuilder#1665](https://github.com/kubernetes-sigs/kubebuilder/issues/1665).
2121

0 commit comments

Comments
 (0)