From 605b1a0cf779d10b6b38d92aab19c247f4e6431c Mon Sep 17 00:00:00 2001 From: petercover Date: Thu, 23 Jan 2025 00:38:38 +0800 Subject: [PATCH] chore: fix some comments Signed-off-by: petercover --- pkg/action/upgrade.go | 2 +- pkg/registry/util.go | 2 +- pkg/storage/driver/mock_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/action/upgrade.go b/pkg/action/upgrade.go index 5fd2bc1fe..f3e9a33bc 100644 --- a/pkg/action/upgrade.go +++ b/pkg/action/upgrade.go @@ -104,7 +104,7 @@ type Upgrade struct { // Description is the description of this operation Description string Labels map[string]string - // PostRender is an optional post-renderer + // PostRenderer is an optional post-renderer // // If this is non-nil, then after templates are rendered, they will be sent to the // post renderer before sending to the Kubernetes API server. diff --git a/pkg/registry/util.go b/pkg/registry/util.go index 78b7d4385..326d3efcd 100644 --- a/pkg/registry/util.go +++ b/pkg/registry/util.go @@ -163,7 +163,7 @@ annotations: return ociAnnotations } -// getChartOCIAnnotations will generate OCI annotations from the provided chart +// generateChartOCIAnnotations will generate OCI annotations from the provided chart func generateChartOCIAnnotations(meta *chart.Metadata, creationTime string) map[string]string { chartOCIAnnotations := map[string]string{} diff --git a/pkg/storage/driver/mock_test.go b/pkg/storage/driver/mock_test.go index 044332334..359f2d079 100644 --- a/pkg/storage/driver/mock_test.go +++ b/pkg/storage/driver/mock_test.go @@ -80,7 +80,7 @@ func tsFixtureMemory(t *testing.T) *Memory { return mem } -// newTestFixture initializes a MockConfigMapsInterface. +// newTestFixtureCfgMaps initializes a MockConfigMapsInterface. // ConfigMaps are created for each release provided. func newTestFixtureCfgMaps(t *testing.T, releases ...*rspb.Release) *ConfigMaps { var mock MockConfigMapsInterface