From 227966b2f19e937b14cc1beea438fadca20cb29d Mon Sep 17 00:00:00 2001 From: geekvest <126322776+geekvest@users.noreply.github.com> Date: Tue, 26 Sep 2023 04:56:57 +0800 Subject: [PATCH] fix some typos (#467) Signed-off-by: geekvest --- charts/helm-dashboard/README.md | 2 +- pkg/dashboard/api_test.go | 4 ++-- pkg/dashboard/static/openapi.json | 2 +- pkg/dashboard/utils/utils.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/charts/helm-dashboard/README.md b/charts/helm-dashboard/README.md index 55aa3ad..7cbc0ff 100644 --- a/charts/helm-dashboard/README.md +++ b/charts/helm-dashboard/README.md @@ -12,7 +12,7 @@ helm upgrade --install helm-dashboard komodorio/helm-dashboard This chart bootstraps a Helm Dashboard deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. -While installed inside cluster, Helm Dashboard will run some additional backgroud actions, for example, will automatically update Helm repositories. To enable that behavior locally, set `HD_CLUSTER_MODE` env variable. +While installed inside cluster, Helm Dashboard will run some additional background actions, for example, will automatically update Helm repositories. To enable that behavior locally, set `HD_CLUSTER_MODE` env variable. ## Prerequisites diff --git a/pkg/dashboard/api_test.go b/pkg/dashboard/api_test.go index e97e4ca..10dbbe1 100644 --- a/pkg/dashboard/api_test.go +++ b/pkg/dashboard/api_test.go @@ -109,7 +109,7 @@ func TestConfigureRoutes(t *testing.T) { // Create a API Engine api := gin.Default() - // Required arguements for route configuration + // Required arguments for route configuration abortWeb := func() {} data, err := objects.NewDataLayer([]string{"TestSpace"}, "T-1", NewHelmConfig, false) @@ -130,7 +130,7 @@ func TestContextSetter(t *testing.T) { w := httptest.NewRecorder() con := GetTestGinContext(w) - // Required arguements + // Required arguments data, err := objects.NewDataLayer([]string{"TestSpace"}, "T-1", NewHelmConfig, false) if err != nil { diff --git a/pkg/dashboard/static/openapi.json b/pkg/dashboard/static/openapi.json index 67e3be9..3776aa0 100644 --- a/pkg/dashboard/static/openapi.json +++ b/pkg/dashboard/static/openapi.json @@ -40,7 +40,7 @@ { "name": "ns", "in": "path", - "description": "Name of kubernetes namespace, use '[emtpy]' if you want to use k8s context default" + "description": "Name of kubernetes namespace, use '[empty]' if you want to use k8s context default" } ], "post": { diff --git a/pkg/dashboard/utils/utils.go b/pkg/dashboard/utils/utils.go index 687659a..a0232c3 100644 --- a/pkg/dashboard/utils/utils.go +++ b/pkg/dashboard/utils/utils.go @@ -33,7 +33,7 @@ func ChartAndVersion(x string) (string, string, error) { } func TempFile(txt string) (string, func(), error) { - file, err := os.CreateTemp("", "helm_dahsboard_*.yaml") + file, err := os.CreateTemp("", "helm_dashboard_*.yaml") if err != nil { return "", nil, err }