Skip to content

Commit

Permalink
chore: fix function names
Browse files Browse the repository at this point in the history
Signed-off-by: depthlending <bikangning@outlook.com>
  • Loading branch information
depthlending committed Mar 22, 2024
1 parent 4abd483 commit 203ddc2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func (g *Generator) Generate(opts ...Option) (err error) {
return genutil.WriteObject(w, csv)
}

// setSDKAnnotations adds SDK metric labels to the base if they do not exist.
// setAnnotations adds SDK metric labels to the base if they do not exist.
func (g Generator) setAnnotations(csv *v1alpha1.ClusterServiceVersion) {
annotations := csv.GetAnnotations()
if annotations == nil {
Expand Down
2 changes: 1 addition & 1 deletion internal/generate/internal/genutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func WriteObject(w io.Writer, obj interface{}) error {
return write(w, b)
}

// WriteObject writes any object to w.
// WriteYAML writes any object to w.
func WriteYAML(w io.Writer, obj interface{}) error {
b, err := yaml.Marshal(obj)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion internal/plugins/helm/v1/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ type initSubcommand struct {

var _ plugin.InitSubcommand = &initSubcommand{}

// UpdateContext define plugin context
// UpdateMetadata define plugin context
func (p *initSubcommand) UpdateMetadata(cliMeta plugin.CLIMetadata, subcmdMeta *plugin.SubcommandMetadata) {
subcmdMeta.Description = `Initialize a new Helm-based operator project.
Expand Down
2 changes: 1 addition & 1 deletion internal/scorecard/formatting.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
v1 "k8s.io/api/core/v1"
)

// getTestResult fetches the test pod log and converts it into
// getTestStatus fetches the test pod log and converts it into
// Test format
func (r PodTestRunner) getTestStatus(ctx context.Context, p *v1.Pod) (output *v1alpha3.TestStatus) {
logBytes, err := getPodLog(ctx, r.Client, p)
Expand Down
2 changes: 1 addition & 1 deletion internal/util/projutil/interactive_promt_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func getStringArray(rd io.Reader, msg string) []string {
}
}

// readstdin reads a line from stdin and returns the value.
// readLine reads a line from stdin and returns the value.
func readLine(reader *bufio.Reader) string {
text, err := reader.ReadString('\n')
if err != nil {
Expand Down

0 comments on commit 203ddc2

Please sign in to comment.