Skip to content

Commit 8a3fb84

Browse files
jsorefmumoshu
andauthored
Spelling (#258)
* spelling: deployed Signed-off-by: Josh Soref <[email protected]> * spelling: didn't Signed-off-by: Josh Soref <[email protected]> * spelling: latest manifest Signed-off-by: Josh Soref <[email protected]> * spelling: loading Signed-off-by: Josh Soref <[email protected]> * spelling: separator Signed-off-by: Josh Soref <[email protected]> * Update cmd/root.go * Update README.md Co-authored-by: Josh Soref <[email protected]> Co-authored-by: Yusuke Kuoka <[email protected]>
1 parent 9ec583c commit 8a3fb84

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ The Helm Diff Plugin
6767
6868
* Shows a diff explaining what a helm rollback would change:
6969
This fetches the currently deployed version of a release
70-
and compares it to adeployed versions of a release, that you
70+
and compares it to the previously deployed versions of the release, that you
7171
want to rollback. This can be used visualize what changes a
7272
helm rollback will perform.
7373
@@ -208,7 +208,7 @@ Global Flags:
208208
```
209209
$ helm diff rollback -h
210210
211-
This command compares the laset manifests details of a named release
211+
This command compares the latest manifest details of a named release
212212
with specific revision values to rollback.
213213
214214
It forecasts/visualizes changes, that a helm rollback could perform.

cmd/rollback.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type rollback struct {
2828
}
2929

3030
const rollbackCmdLongUsage = `
31-
This command compares the laset manifests details of a named release
31+
This command compares the latest manifest details of a named release
3232
with specific revision values to rollback.
3333
3434
It forecasts/visualizes changes, that a helm rollback could perform.

cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The Helm Diff Plugin
2323
2424
* Shows a diff explaining what a helm rollback would change:
2525
This fetches the currently deployed version of a release
26-
and compares it to adeployed versions of a release, that you
26+
and compares it to the previously deployed version of the release, that you
2727
want to rollback. This can be used visualize what changes a
2828
helm rollback will perform.
2929
`

diff/report.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func newTemplate(name string) *template.Template {
150150
func setupJSONReport(r *Report) {
151151
t, err := newTemplate("entries").Parse(defaultTemplateReport)
152152
if err != nil {
153-
log.Fatalf("Error loadding default template: %v", err)
153+
log.Fatalf("Error loading default template: %v", err)
154154
}
155155

156156
r.format.output = templateReportPrinter(t)
@@ -170,14 +170,14 @@ func setupTemplateReport(r *Report) {
170170
t, err := newTemplate(filepath.Base(tplFile)).ParseFiles(tplFile)
171171
if err != nil {
172172
fmt.Println(err)
173-
log.Fatalf("Error loadding custom template")
173+
log.Fatalf("Error loading custom template")
174174
}
175175
tpl = t
176176
} else {
177177
// Render
178178
t, err := newTemplate("entries").Parse(defaultTemplateReport)
179179
if err != nil {
180-
log.Fatalf("Error loadding default template")
180+
log.Fatalf("Error loading default template")
181181
}
182182
tpl = t
183183
}
@@ -202,7 +202,7 @@ func (t *ReportTemplateSpec) loadFromKey(key string) error {
202202
t.API = matches[4]
203203
return nil
204204
}
205-
return errors.New("key string did't match regexp")
205+
return errors.New("key string didn't match regexp")
206206
}
207207

208208
// load and print report for template output

manifest/parse.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const (
1515
hookAnnotation = "helm.sh/hook"
1616
)
1717

18-
var yamlSeperator = []byte("\n---\n")
18+
var yamlSeparator = []byte("\n---\n")
1919

2020
// MappingResult to store result of diff
2121
type MappingResult struct {
@@ -48,9 +48,9 @@ func scanYamlSpecs(data []byte, atEOF bool) (advance int, token []byte, err erro
4848
if atEOF && len(data) == 0 {
4949
return 0, nil, nil
5050
}
51-
if i := bytes.Index(data, yamlSeperator); i >= 0 {
51+
if i := bytes.Index(data, yamlSeparator); i >= 0 {
5252
// We have a full newline-terminated line.
53-
return i + len(yamlSeperator), data[0:i], nil
53+
return i + len(yamlSeparator), data[0:i], nil
5454
}
5555
// If we're at EOF, we have a final, non-terminated line. Return it.
5656
if atEOF {
@@ -84,7 +84,7 @@ func ParseRelease(release *release.Release, includeTests bool, normalizeManifest
8484

8585
// Parse parses manifest strings into MappingResult
8686
func Parse(manifest string, defaultNamespace string, normalizeManifests bool, excludedHooks ...string) map[string]*MappingResult {
87-
// Ensure we have a newline in front of the yaml seperator
87+
// Ensure we have a newline in front of the yaml separator
8888
scanner := bufio.NewScanner(strings.NewReader("\n" + manifest))
8989
scanner.Split(scanYamlSpecs)
9090
// Allow for tokens (specs) up to 10MiB in size

0 commit comments

Comments
 (0)