Merge pull request #541 from mooncak/fix_typos

Fix typos: expectd->expected, cluser->cluster
This commit is contained in:
k8s-ci-robot
2018-11-12 08:23:30 -08:00
committed by GitHub
6 changed files with 6 additions and 6 deletions

View File

@@ -291,7 +291,7 @@ kustomize build $OVERLAYS/production
``` ```
A CICD process could apply this directly to A CICD process could apply this directly to
the cluser using: the cluster using:
> ``` > ```
> kustomize build $OVERLAYS/production | kubectl apply -f - > kustomize build $OVERLAYS/production | kubectl apply -f -

View File

@@ -77,7 +77,7 @@ func (o *mapTransformer) Transform(m resmap.ResMap) error {
func (o *mapTransformer) addMap(in interface{}) (interface{}, error) { func (o *mapTransformer) addMap(in interface{}) (interface{}, error) {
m, ok := in.(map[string]interface{}) m, ok := in.(map[string]interface{})
if !ok { 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 { for k, v := range o.m {
m[k] = v m[k] = v

View File

@@ -73,7 +73,7 @@ func (o *nameReferenceTransformer) updateNameReference(
return func(in interface{}) (interface{}, error) { return func(in interface{}) (interface{}, error) {
s, ok := in.(string) s, ok := in.(string)
if !ok { 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 { for id, res := range m {
if id.Gvk().IsSelected(&backRef) && id.Name() == s { if id.Gvk().IsSelected(&backRef) && id.Name() == s {

View File

@@ -101,7 +101,7 @@ func (o *namePrefixTransformer) Transform(m resmap.ResMap) error {
func (o *namePrefixTransformer) addPrefix(in interface{}) (interface{}, error) { func (o *namePrefixTransformer) addPrefix(in interface{}) (interface{}, error) {
s, ok := in.(string) s, ok := in.(string)
if !ok { 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 return o.prefix + s, nil
} }

View File

@@ -51,7 +51,7 @@ func (rv *refvarTransformer) Transform(resources resmap.ResMap) error {
case interface{}: case interface{}:
s, ok := in.(string) s, ok := in.(string)
if !ok { 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) runtimeVal := expansion.Expand(s, mappingFunc)
return runtimeVal, nil return runtimeVal, nil

View File

@@ -60,7 +60,7 @@ func mutateField(
item := typedV[i] item := typedV[i]
typedItem, ok := item.(map[string]interface{}) typedItem, ok := item.(map[string]interface{})
if !ok { 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...) err := mutateField(typedItem, newPathToField, createIfNotPresent, fns...)
if err != nil { if err != nil {