Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix function names #6709

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading