From 94b6998b02d1f5e1ac6e33c90c8876aa8c022cfb Mon Sep 17 00:00:00 2001 From: cuishuang Date: Wed, 30 Mar 2022 21:08:33 +0800 Subject: [PATCH] fix some typos Signed-off-by: cuishuang --- cmd/internal/http/handlers.go | 2 +- deploy/kubernetes/README.md | 2 +- deploy/kubernetes/overlays/examples/gpu-privilages.yaml | 2 +- docs/storage/prometheus.md | 2 +- integration/tests/api/docker_test.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/internal/http/handlers.go b/cmd/internal/http/handlers.go index 7d4bae7190..e8631fce37 100644 --- a/cmd/internal/http/handlers.go +++ b/cmd/internal/http/handlers.go @@ -81,7 +81,7 @@ func RegisterHandlers(mux httpmux.Mux, containerManager manager.Manager, httpAut authenticated = true } - // Change handler based on authenticator initalization + // Change handler based on authenticator initialization if !authenticated { mux.HandleFunc(static.StaticResource, staticHandlerNoAuth) if err := pages.RegisterHandlersBasic(mux, containerManager, nil, urlBasePrefix); err != nil { diff --git a/deploy/kubernetes/README.md b/deploy/kubernetes/README.md index a6cfb42f04..3111b708b4 100644 --- a/deploy/kubernetes/README.md +++ b/deploy/kubernetes/README.md @@ -45,7 +45,7 @@ kubectl kustomize deploy/kubernetes/overlays/examples_perf | kubectl apply -f - ## Kustomization -On your own fork of cAdvisor, create your own overlay directoy with your patches. Copy patches from the example folder if you intend to use them, but don't modify the originals. Commit your changes in your local branch, and use git to manage them the same way you would any other piece of code. +On your own fork of cAdvisor, create your own overlay directory with your patches. Copy patches from the example folder if you intend to use them, but don't modify the originals. Commit your changes in your local branch, and use git to manage them the same way you would any other piece of code. To run the daemonset with your patches applied: ``` diff --git a/deploy/kubernetes/overlays/examples/gpu-privilages.yaml b/deploy/kubernetes/overlays/examples/gpu-privilages.yaml index ca61002e44..496190127f 100644 --- a/deploy/kubernetes/overlays/examples/gpu-privilages.yaml +++ b/deploy/kubernetes/overlays/examples/gpu-privilages.yaml @@ -1,4 +1,4 @@ -# This patch adds the required hostpath mounts and privilages to initialize NVML, as well as to access devices. +# This patch adds the required hostpath mounts and privileges to initialize NVML, as well as to access devices. # This patch meets the requirements described in the accellerator docs: # https://github.com/google/cadvisor/blob/master/docs/running.md#hardware-accelerator-monitoring apiVersion: apps/v1 diff --git a/docs/storage/prometheus.md b/docs/storage/prometheus.md index 94eb993fec..bc1011f21b 100644 --- a/docs/storage/prometheus.md +++ b/docs/storage/prometheus.md @@ -105,7 +105,7 @@ Metric name | Type | Description | Unit (where applicable) | option parameter | The table below lists the Prometheus hardware metrics exposed by cAdvisor (in alphabetical order by metric name) and corresponding `-disable_metrics` / `-enable_metrics` option parameter: -Metric name | Type | Description | Unit (where applicable) | option parameter | addional build flag | +Metric name | Type | Description | Unit (where applicable) | option parameter | additional build flag | :-----------|:-----|:------------|:------------------------|:---------------------------|:-------------------- `machine_cpu_cache_capacity_bytes` | Gauge | Cache size in bytes assigned to NUMA node and CPU core | bytes | cpu_topology | `machine_cpu_cores` | Gauge | Number of logical CPU cores | | | diff --git a/integration/tests/api/docker_test.go b/integration/tests/api/docker_test.go index 14494bac25..26fca2e0d9 100644 --- a/integration/tests/api/docker_test.go +++ b/integration/tests/api/docker_test.go @@ -164,7 +164,7 @@ func TestBasicDockerContainer(t *testing.T) { containerInfo, err := fm.Cadvisor().Client().DockerContainer(containerID, request) require.NoError(t, err) - // Check that the contianer is known by both its name and ID. + // Check that the container is known by both its name and ID. sanityCheck(containerID, containerInfo, t) sanityCheck(containerName, containerInfo, t)