-
Notifications
You must be signed in to change notification settings - Fork 22
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
Volume support #58
Conversation
apis/civo/volume/v1alpha1/types.go
Outdated
// +required | ||
// +immutable | ||
// +kubebuilder:validation:Required | ||
Size string `json:"Size"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
size should be lowercase
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apis/civo/volume/v1alpha1/types.go
Outdated
type CivoVolumeObservation struct { | ||
ID string `json:"id"` | ||
Name string `json:"name"` | ||
ClusterID string `json:"cluster_id"` |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apis/civo/volume/v1alpha1/types.go
Outdated
Size string `json:"size"` | ||
Status string `json:"status"` | ||
// Details regarding current state of the bucket. | ||
Conditions []metav1.Condition `json:"conditions"` |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: uzair <[email protected]>
) | ||
|
||
const ( | ||
errManagedUpdateFailed = "cannot update volume custom resource" |
There was a problem hiding this comment.
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]>
/lgtm |
/approve |
Description of your changes
Fixes #
I have:
make reviewable test
to ensure this PR is ready for review.How has this code been tested