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

Volume support #58

Merged
merged 13 commits into from
Apr 24, 2024
Merged

Volume support #58

merged 13 commits into from
Apr 24, 2024

Conversation

uzaxirr
Copy link
Collaborator

@uzaxirr uzaxirr commented Mar 27, 2024

Description of your changes

Fixes #

I have:

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

How has this code been tested

@uzaxirr uzaxirr self-assigned this Mar 27, 2024
// +required
// +immutable
// +kubebuilder:validation:Required
Size string `json:"Size"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

size should be lowercase

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

type CivoVolumeObservation struct {
ID string `json:"id"`
Name string `json:"name"`
ClusterID string `json:"cluster_id"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove duplicated fields from spec

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Size string `json:"size"`
Status string `json:"status"`
// Details regarding current state of the bucket.
Conditions []metav1.Condition `json:"conditions"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

we can re-use crospslane conditions

// +kubebuilder:validation:Required
NetworkID string `json:"network_id"`

// ProviderReference holds configs (region, API key etc.) for the crossplane provider that is being used.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Missing instance id in spec

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@uzaxirr uzaxirr marked this pull request as ready for review April 6, 2024 16:03
@uzaxirr uzaxirr requested a review from RealHarshThakur April 6, 2024 16:03
)

const (
errManagedUpdateFailed = "cannot update volume custom resource"
Copy link
Collaborator

Choose a reason for hiding this comment

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

error assertion should be done with civogo

Signed-off-by: Uzair Ali <[email protected]>
@vishalanarase
Copy link
Collaborator

/lgtm

@vishalanarase
Copy link
Collaborator

/approve

@uzaxirr uzaxirr merged commit 6af2b94 into main Apr 24, 2024
5 of 7 checks passed
@uzaxirr uzaxirr deleted the volume-support branch April 24, 2024 08:47
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