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

Move matching labels to association.go #2734

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

owenowenisme
Copy link
Contributor

@owenowenisme owenowenisme commented Jan 13, 2025

Why are these changes needed?

#2733

Related issue number

Closes #2733

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • This PR is not tested :(

@owenowenisme owenowenisme force-pushed the move-matchingLabels-to-association.go branch from f89cc2d to 9e9031f Compare January 13, 2025 01:01
@owenowenisme
Copy link
Contributor Author

@rueian please take a look🙏🙏🙏

@rueian
Copy link
Contributor

rueian commented Jan 13, 2025

Hi @owenowenisme,

I noticed that there are RayClusterHeadPodsAssociationOptions and RayClusterWorkerPodsAssociationOptions in the association.go. Could you reuse them?

@@ -100,6 +100,16 @@ func RayClusterWorkerPodsAssociationOptions(instance *rayv1.RayCluster) Associat
}
}

func RayClusterRedisPodsAssociationOptions(instance *rayv1.RayCluster) AssociationOptions {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add a test for this new method?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do!

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.

[Refactor] Move MatchingLabels to association.go [2/N]
3 participants