Skip to content

Commit

Permalink
Fix typos: expectd->expected, cluser->cluster
Browse files Browse the repository at this point in the history
Signed-off-by: mooncake <xcoder@tenxcloud.com>
  • Loading branch information
mooncak committed Nov 10, 2018
1 parent 5b35443 commit 538aaaf
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/combineConfigs.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ kustomize build $OVERLAYS/production
```
A CICD process could apply this directly to
the cluser using:
the cluster using:
> ```
> kustomize build $OVERLAYS/production | kubectl apply -f -
Expand Down
2 changes: 1 addition & 1 deletion pkg/transformers/labelsandannotations.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (o *mapTransformer) Transform(m resmap.ResMap) error {
func (o *mapTransformer) addMap(in interface{}) (interface{}, error) {
m, ok := in.(map[string]interface{})
if !ok {
return nil, fmt.Errorf("%#v is expectd to be %T", in, m)
return nil, fmt.Errorf("%#v is expected to be %T", in, m)
}
for k, v := range o.m {
m[k] = v
Expand Down
2 changes: 1 addition & 1 deletion pkg/transformers/namereference.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (o *nameReferenceTransformer) updateNameReference(
return func(in interface{}) (interface{}, error) {
s, ok := in.(string)
if !ok {
return nil, fmt.Errorf("%#v is expectd to be %T", in, s)
return nil, fmt.Errorf("%#v is expected to be %T", in, s)
}
for id, res := range m {
if id.Gvk().IsSelected(&backRef) && id.Name() == s {
Expand Down
2 changes: 1 addition & 1 deletion pkg/transformers/prefixname.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (o *namePrefixTransformer) Transform(m resmap.ResMap) error {
func (o *namePrefixTransformer) addPrefix(in interface{}) (interface{}, error) {
s, ok := in.(string)
if !ok {
return nil, fmt.Errorf("%#v is expectd to be %T", in, s)
return nil, fmt.Errorf("%#v is expected to be %T", in, s)
}
return o.prefix + s, nil
}
2 changes: 1 addition & 1 deletion pkg/transformers/refvars.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (rv *refvarTransformer) Transform(resources resmap.ResMap) error {
case interface{}:
s, ok := in.(string)
if !ok {
return nil, fmt.Errorf("%#v is expectd to be %T", in, s)
return nil, fmt.Errorf("%#v is expected to be %T", in, s)
}
runtimeVal := expansion.Expand(s, mappingFunc)
return runtimeVal, nil
Expand Down
2 changes: 1 addition & 1 deletion pkg/transformers/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func mutateField(
item := typedV[i]
typedItem, ok := item.(map[string]interface{})
if !ok {
return fmt.Errorf("%#v is expectd to be %T", item, typedItem)
return fmt.Errorf("%#v is expected to be %T", item, typedItem)
}
err := mutateField(typedItem, newPathToField, createIfNotPresent, fns...)
if err != nil {
Expand Down

0 comments on commit 538aaaf

Please sign in to comment.