Skip to content

Commit

Permalink
fix typo (chaos-mesh#567)
Browse files Browse the repository at this point in the history
* fix typo

* update

* update

* update
  • Loading branch information
fewdan authored May 28, 2020
1 parent d3af4d8 commit 2e6319e
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion api/v1alpha1/iochaos_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ type IoChaosSpec struct {
// Errno defines the error code that returned by I/O action.
// refer to: https://www-numi.fnal.gov/offline_software/srt_public_context/WebDocs/Errors/unix_system_errors.html
//
// If `Errno` is empty, the operator will generate a error code for it randomly.
// If `Errno` is empty, the operator will generate an error code for it randomly.
// +optional
Errno string `json:"errno,omitempty"`

Expand Down
2 changes: 1 addition & 1 deletion config/crd/bases/pingcap.com_iochaos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ spec:
errno:
description: "Errno defines the error code that returned by I/O action.
refer to: https://www-numi.fnal.gov/offline_software/srt_public_context/WebDocs/Errors/unix_system_errors.html
\n If `Errno` is empty, the operator will generate a error code for
\n If `Errno` is empty, the operator will generate an error code for
it randomly."
type: string
layer:
Expand Down
2 changes: 1 addition & 1 deletion controllers/iochaos_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"github.com/pingcap/chaos-mesh/pkg/utils"
)

// IoChaosReconciler reconciles a IoChaos object
// IoChaosReconciler reconciles an IoChaos object
type IoChaosReconciler struct {
client.Client
record.EventRecorder
Expand Down
2 changes: 1 addition & 1 deletion manifests/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ spec:
errno:
description: "Errno defines the error code that returned by I/O action.
refer to: https://www-numi.fnal.gov/offline_software/srt_public_context/WebDocs/Errors/unix_system_errors.html
\n If `Errno` is empty, the operator will generate a error code for
\n If `Errno` is empty, the operator will generate an error code for
it randomly."
type: string
layer:
Expand Down
2 changes: 1 addition & 1 deletion pkg/swaggerserver/empty_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"net/http"
)

// Handler returns a empty `http.Handler`.
// Handler returns an empty `http.Handler`.
func Handler() http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
_, _ = io.WriteString(w, "Swagger UI is not built. Use `SWAGGER=1 make`.\n")
Expand Down
2 changes: 1 addition & 1 deletion pkg/webhook/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type ExecAction struct {
Command []string `json:"command,omitempty"`
}

// InjectionConfig is a specific instance of a injected config, for a given annotation
// InjectionConfig is a specific instance of an injected config, for a given annotation
type InjectionConfig struct {
Name string
// Selector is used to select pods that are used to inject sidecar.
Expand Down
2 changes: 1 addition & 1 deletion test/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ type OperatorAction interface {
InstallTemplate(config OperatorConfig) error
}

// NewOperatorAction create a OperatorAction interface instance
// NewOperatorAction create an OperatorAction interface instance
func NewOperatorAction(
kubeCli kubernetes.Interface,
aggrCli aggregatorclientset.Interface,
Expand Down
4 changes: 4 additions & 0 deletions tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
{
"Repository": "github.com/mgechev/revive",
"Commit": "7773f47324c2bf1c8f7a5500aff2b6c01d3ed73b"
},
{
"Repository": "github.com/swaggo/swag",
"Commit": "eebe67fc31c39a02a763bcaa815baab805112cf3"
}
],
"RetoolVersion": "1.3.7"
Expand Down

0 comments on commit 2e6319e

Please sign in to comment.