Skip to content

Commit 2347693

Browse files
Merge pull request #44 from itdove/typo_resouce
Typo in ApplyCustomResouce(s)
2 parents 664568e + a62450d commit 2347693

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

pkg/cmd/init/exec.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func (o *Options) run() error {
124124
}
125125
}
126126

127-
out, err = applier.ApplyCustomResouces(reader, o.values, o.ClusteradmFlags.DryRun, "", "init/clustermanager.cr.yaml")
127+
out, err = applier.ApplyCustomResources(reader, o.values, o.ClusteradmFlags.DryRun, "", "init/clustermanager.cr.yaml")
128128
if err != nil {
129129
return err
130130
}

pkg/cmd/join/exec.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func (o *Options) run() error {
108108
}
109109
}
110110

111-
out, err = applier.ApplyCustomResouces(reader, o.values, o.ClusteradmFlags.DryRun, "", "join/klusterlets.cr.yaml")
111+
out, err = applier.ApplyCustomResources(reader, o.values, o.ClusteradmFlags.DryRun, "", "join/klusterlets.cr.yaml")
112112
if err != nil {
113113
return err
114114
}

pkg/helpers/apply/apply.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,16 +122,16 @@ func (a *Applier) ApplyDirectly(
122122
return output, nil
123123
}
124124

125-
//ApplyCustomResouces applies custom resources
126-
func (a *Applier) ApplyCustomResouces(
125+
//ApplyCustomResources applies custom resources
126+
func (a *Applier) ApplyCustomResources(
127127
reader asset.ScenarioReader,
128128
values interface{},
129129
dryRun bool,
130130
headerFile string,
131131
files ...string) ([]string, error) {
132132
output := make([]string, 0)
133133
for _, name := range files {
134-
asset, err := a.ApplyCustomResouce(reader, values, dryRun, headerFile, name)
134+
asset, err := a.ApplyCustomResource(reader, values, dryRun, headerFile, name)
135135
if err != nil {
136136
if IsEmptyAsset(err) {
137137
continue
@@ -143,8 +143,8 @@ func (a *Applier) ApplyCustomResouces(
143143
return output, nil
144144
}
145145

146-
//ApplyCustomResouces applies custom resources
147-
func (a *Applier) ApplyCustomResouce(
146+
//ApplyCustomResource applies a custom resource
147+
func (a *Applier) ApplyCustomResource(
148148
reader asset.ScenarioReader,
149149
values interface{},
150150
dryRun bool,

0 commit comments

Comments
 (0)