Skip to content

Commit 0842910

Browse files
committed
chore: fix misspelling
1 parent 2f959a7 commit 0842910

File tree

16 files changed

+31
-30
lines changed

16 files changed

+31
-30
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2929
- Windows build now supported.
3030
- Added metrics to retrieve stats such as `procs_running` and `procs_blocked`.
3131
- Added metrics to retrieve network stats.
32-
- Added metric to retrieve guest OS features such as unknwon modules, ktd,
32+
- Added metric to retrieve guest OS features such as unknown modules, ktd,
3333
and kernel integrity.
3434

3535
### Changed
@@ -237,7 +237,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
237237
- Added resource limites to NPD deployment.
238238
- Added log-counter to dockerfile.
239239
- Added `enable_message_change_based_condition_update` option to enable
240-
condition update when messages cahnge for custom plugin.
240+
condition update when messages change for custom plugin.
241241

242242
### Fixed
243243

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ ifeq ($(ENABLE_JOURNALD), 1)
103103
CGO_ENABLED:=1
104104
LOGCOUNTER=./bin/log-counter
105105
else
106-
# Hack: Don't copy over log-counter, use a wildcard path that shouldnt match
106+
# Hack: Don't copy over log-counter, use a wildcard path that shouldn't match
107107
# anything in COPY command.
108108
LOGCOUNTER=*dont-include-log-counter
109109
endif

config/plugin/check_ntp.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ if systemctl -q is-active "$SERVICE"; then
2020
echo "$SERVICE is running"
2121
exit $OK
2222
else
23-
# Does not differenciate stopped/failed service from non-existent
23+
# Does not differentiate stopped/failed service from non-existent
2424
echo "$SERVICE is not running"
2525
exit $NONOK
2626
fi
27-

docs/custom_plugin_monitor.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# Custom Plugin Monitor
22

33
## Configuration
4+
45
### Plugin Config
6+
57
* `invoke_interval`: Interval at which custom plugins will be invoked.
6-
* `timeout`: Time after which custom plugins invokation will be terminated and considered timeout.
8+
* `timeout`: Time after which custom plugins invocation will be terminated and considered timeout.
79
* `max_output_length`: The maximum standard output size from custom plugins that NPD will be cut and use for condition status message.
810
* `concurrency`: The plugin worker number, i.e., how many custom plugins will be invoked concurrently.
911
* `enable_message_change_based_condition_update`: Flag controls whether message change should result in a condition update.

docs/release_process.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ itself.
1414
viewing the changes on GitHub ([example:
1515
https://github.com/kubernetes/node-problem-detector/compare/v0.8.6...master](https://github.com/kubernetes/node-problem-detector/compare/v0.8.6...master)).
1616

17-
1. Based on the changes to be included in the release, determine what the next
17+
2. Based on the changes to be included in the release, determine what the next
1818
release number should be. We strive to follow [SemVer](https://semver.org/)
1919
as much as possible.
2020

21-
1. Update [CHANGELOG](https://github.com/kubernetes/node-problem-detector/blob/master/CHANGELOG.md)
21+
3. Update [CHANGELOG](https://github.com/kubernetes/node-problem-detector/blob/master/CHANGELOG.md)
2222
with all significant changes.
2323

2424
## Create release
@@ -31,11 +31,11 @@ body of the release:
3131
release (e.g.
3232
[https://github.com/kubernetes/node-problem-detector/compare/v0.8.5...v0.8.6](https://github.com/kubernetes/node-problem-detector/compare/v0.8.5...v0.8.6)).
3333

34-
1. There is no need to duplicate everything from the CHANGELOG, but include the
34+
2. There is no need to duplicate everything from the CHANGELOG, but include the
3535
most significant things so someone just viewing the release entry will have
3636
an idea of what it includes.
3737

38-
1. Provide a link to the new image release (e.g. `Image:
38+
3. Provide a link to the new image release (e.g. `Image:
3939
k8s.gcr.io/node-problem-detector/node-problem-detector:v0.8.6`)
4040

4141
## Post release steps

pkg/systemlogmonitor/logwatchers/filelog/log_watcher_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Jan 2 03:04:05 kernel: [2.000000] 3
170170
}
171171
}
172172
// The log channel should have already been drained
173-
// There could stil be future messages sent into the channel, but the chance is really slim.
173+
// There could still be future messages sent into the channel, but the chance is really slim.
174174
timeout := time.After(100 * time.Millisecond)
175175
select {
176176
case log := <-logCh:

pkg/systemlogmonitor/logwatchers/journald/log_watcher_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func TestTranslate(t *testing.T) {
6666
}
6767

6868
func TestGoroutineLeak(t *testing.T) {
69-
orignal := runtime.NumGoroutine()
69+
original := runtime.NumGoroutine()
7070
w := NewJournaldWatcher(types.WatcherConfig{
7171
Plugin: "journald",
7272
PluginConfig: map[string]string{"source": "not-exist-service"},
@@ -75,5 +75,5 @@ func TestGoroutineLeak(t *testing.T) {
7575
})
7676
_, err := w.Watch()
7777
assert.Error(t, err)
78-
assert.Equal(t, orignal, runtime.NumGoroutine())
78+
assert.Equal(t, original, runtime.NumGoroutine())
7979
}

pkg/systemstatsmonitor/disk_collector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ func (dc *diskCollector) collect() {
274274

275275
// to make sure that the rows are not duplicated
276276
// we display only the only one row even if there are
277-
// mutiple rows for the same disk.
277+
// multiple rows for the same disk.
278278
seen := make(map[string]bool)
279279
for _, partition := range partitions {
280280
if seen[partition.Device] {

pkg/systemstatsmonitor/osfeature_collector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func NewOsFeatureCollectorOrDie(osFeatureConfig *ssmtypes.OSFeatureStatsConfig,
3838
procPath: procPath,
3939
}
4040
var err error
41-
// Use metrics.Last aggregation method to ensure the metric is a guage metric.
41+
// Use metrics.Last aggregation method to ensure the metric is a gauge metric.
4242
if osFeatureConfig.MetricsConfigs["system/os_feature"].DisplayName != "" {
4343
oc.osFeature, err = metrics.NewInt64Metric(
4444
metrics.OSFeatureID,

pkg/types/types.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ type Condition struct {
6363
Transition time.Time `json:"transition"`
6464
// Reason is a short reason of why node goes into this condition.
6565
Reason string `json:"reason"`
66-
// Message is a human readable message of why node goes into this condition.
66+
// Message is a human-readable message of why node goes into this condition.
6767
Message string `json:"message"`
6868
}
6969

@@ -75,7 +75,7 @@ type Event struct {
7575
Timestamp time.Time `json:"timestamp"`
7676
// Reason is a short reason of why the event is generated.
7777
Reason string `json:"reason"`
78-
// Message is a human readable message of why the event is generated.
78+
// Message is a human-readable message of why the event is generated.
7979
Message string `json:"message"`
8080
}
8181

@@ -113,7 +113,7 @@ type Monitor interface {
113113

114114
// Exporter exports machine health data to certain control plane.
115115
type Exporter interface {
116-
// Export problems to the control plane.
116+
// ExportProblems Export problems to the control plane.
117117
ExportProblems(*Status)
118118
}
119119

0 commit comments

Comments
 (0)