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

DRAFT: draft of the basic idea #76

Closed

Conversation

pascal-sochacki
Copy link

Description of your changes

Fixes #54

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

@@ -130,6 +130,27 @@ func (c *dropletExternal) Observe(ctx context.Context, mg resource.Managed) (man
cr.SetConditions(xpv1.Available())
}

if currentSpec.ProjectID != nil {
page := 0
for {
Copy link
Contributor

Choose a reason for hiding this comment

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

so this doesn't seem specific to droplets, an improvement (especially if doing this for other resources) would be to make this a generic function of the base client so that the individual resource clients can just do something like client.GetProject and return nil if it doesn't exist.

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.

Add support for projects & assigning resources to projects
2 participants