Skip to content

fix: [chore] capitalize node name duplication errors to publicize them#14

Closed
ethandcosta wants to merge 1 commit into
mainfrom
KU-3296/nit-duplicate-name
Closed

fix: [chore] capitalize node name duplication errors to publicize them#14
ethandcosta wants to merge 1 commit into
mainfrom
KU-3296/nit-duplicate-name

Conversation

@ethandcosta

Copy link
Copy Markdown
Contributor

This PR capitalizes the node name duplication errors so they can be exported to k8s-snap

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Exports node-name duplication related sentinel errors by capitalizing their identifiers so they can be consumed by external tooling (k8s-snap).

Changes:

  • Renamed errNodeNameAlreadyExistsErrNodeNameAlreadyExists
  • Renamed errFailedToCheckNodeNameErrFailedToCheckNodeName

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 23 to 26
var (
errNodeNameAlreadyExists = errors.New("a node with this name is already part of the cluster")
errFailedToCheckNodeName = errors.New("failed to check whether node name is available in cluster")
ErrNodeNameAlreadyExists = errors.New("a node with this name is already part of the cluster")
ErrFailedToCheckNodeName = errors.New("failed to check whether node name is available in cluster")
)

Copilot AI Feb 10, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These identifiers are now exported. Please add Go doc comments for each (or for the var block) so golint/staticcheck (e.g., ST1005/ST1020-style checks) and godoc have proper documentation. Comments should start with the identifier name (e.g., // ErrNodeNameAlreadyExists ...).

Copilot uses AI. Check for mistakes.
@ethandcosta

Copy link
Copy Markdown
Contributor Author

This PR is no longer necessary because we are not consuming the error names in k8s-snap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants