mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-14 10:30:59 +00:00
Merge pull request #541 from mooncak/fix_typos
Fix typos: expectd->expected, cluser->cluster
This commit is contained in:
@@ -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 -
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user