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

Handle byok clusters slightly better #949

Conversation

michaeljguarino
Copy link
Member

The usecase here is:

  • user creates cluster CRD for byok cluster prior to installing agent
  • CRD should retry until agent is there then reconcile successfully

Test Plan

n/a

Checklist

  • If required, I have updated the Plural documentation accordingly.
  • I have added tests to cover my changes.
  • I have added a meaningful title and summary to convey the impact of this PR to a user.

The usecase here is:
* user creates cluster CRD for byok cluster prior to installing agent
* CRD should retry until agent is there then reconcile successfully
@michaeljguarino michaeljguarino added the enhancement New feature or request label May 10, 2024
@michaeljguarino michaeljguarino requested a review from a team May 10, 2024 14:33
Copy link

linear bot commented May 10, 2024

Copy link
Contributor

github-actions bot commented May 10, 2024

Visit the preview URL for this PR (updated for commit 59086e6):

https://pluralsh-console--pr949-mjg-eng-2060-cluster-ae0hq2hf.web.app

(expires Fri, 17 May 2024 15:52:02 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: dd1ffa0705acc6ef7d6db370e6bd6fc390e945ce

@@ -295,18 +295,20 @@ var _ = Describe("Cluster Controller", Ordered, func() {
Expect(err).NotTo(HaveOccurred())
Expect(sanitizeClusterStatus(cluster.Status)).To(Equal(sanitizeClusterStatus(v1alpha1.ClusterStatus{
Status: v1alpha1.Status{
ID: lo.ToPtr(byokClusterConsoleID),
SHA: lo.ToPtr("CPYLCGRGF2JWFBF3OGRHQQUSBDXW6Y4VMUDQDCQQDEA6G6CAZORQ===="),
// ID: lo.ToPtr(byokClusterConsoleID),
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 tell me what the policy is for committing commented code?
Is this for reference or testing?
I think I'm still a bit traumatized from Amazon code reviews 😬

Copy link
Member Author

Choose a reason for hiding this comment

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

There's no real policy, I commented it out because i wasn't sure whether i needed to revert

@michaeljguarino michaeljguarino merged commit 5a83682 into master May 10, 2024
15 checks passed
@michaeljguarino michaeljguarino deleted the mjg/eng-2060-cluster-crd-should-retry-to-find-non-existing-clusters branch May 10, 2024 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants