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

[tweak] - Switch linode labels to LinodeMachine Name instead of UID #143

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

komer3
Copy link
Contributor

@komer3 komer3 commented Feb 27, 2024

What type of PR is this?

/kind cleanup

What this PR does / why we need it:
This PR switched to using linode machine names instead of UID for less confusion

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

TODOs:

  • squashed commits
  • includes documentation
  • adds unit tests
  • adds or updates e2e tests

@komer3 komer3 changed the title Changed machine label util CNS-1817: Switch linode labels to LinodeMachine Name instead of UID Feb 27, 2024
@komer3 komer3 marked this pull request as ready for review February 27, 2024 21:01
@@ -41,7 +41,7 @@ func (r *LinodeVPCReconciler) reconcileVPC(ctx context.Context, vpcScope *scope.
}

if createConfig.Label == "" {
createConfig.Label = util.RenderObjectLabel(vpcScope.LinodeVPC.UID)
Copy link
Collaborator

Choose a reason for hiding this comment

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

are there other usages of renderObjectLabel? or can this function be deleted?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, my IDE shows no other usages so we should be safe to remove this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Deleted the function. It doesn't affect anything else

@AshleyDumaine
Copy link
Contributor

Aside from cleaning up the RenderObjectLabel function, LGTM 👍

@AshleyDumaine AshleyDumaine changed the title CNS-1817: Switch linode labels to LinodeMachine Name instead of UID [tweak] - Switch linode labels to LinodeMachine Name instead of UID Feb 28, 2024
@AshleyDumaine AshleyDumaine merged commit a0cea40 into main Feb 28, 2024
6 checks passed
@AshleyDumaine AshleyDumaine deleted the cns-1817 branch February 28, 2024 18:05
amold1 pushed a commit that referenced this pull request May 17, 2024
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.

3 participants