-
Notifications
You must be signed in to change notification settings - Fork 0
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
Clusterresources refs for other clusters #625
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,15 +21,16 @@ import ( | |
) | ||
|
||
type VPCPeeringSpec struct { | ||
DataCentreID string `json:"cdcId"` | ||
PeerSubnets []string `json:"peerSubnets"` | ||
PeerSubnets []string `json:"peerSubnets"` | ||
} | ||
|
||
type PeeringStatus struct { | ||
ID string `json:"id,omitempty"` | ||
StatusCode string `json:"statusCode,omitempty"` | ||
Name string `json:"name,omitempty"` | ||
FailureReason string `json:"failureReason,omitempty"` | ||
CDCID string `json:"cdcid,omitempty"` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. camel case in json There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed |
||
ResourceState string `json:"resourceState,omitempty"` | ||
} | ||
|
||
type PatchRequest struct { | ||
|
@@ -39,18 +40,15 @@ type PatchRequest struct { | |
} | ||
|
||
type FirewallRuleSpec struct { | ||
ClusterID string `json:"clusterId"` | ||
Type string `json:"type"` | ||
Type string `json:"type"` | ||
} | ||
Comment on lines
42
to
44
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How about we abandon this generic struct with only one field? There is also another one called |
||
|
||
type FirewallRuleStatus struct { | ||
ID string `json:"id,omitempty"` | ||
DeferredReason string `json:"deferredReason,omitempty"` | ||
Status string `json:"status,omitempty"` | ||
} | ||
|
||
type immutablePeeringFields struct { | ||
DataCentreID string | ||
ClusterID string `json:"clusterId,omitempty"` | ||
ResourceState string `json:"resourceState,omitempty"` | ||
} | ||
|
||
type SecretReference struct { | ||
|
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.
ClusterKind
you can move simply into theStatus
and thus you will remove and simplify the code that calculates the appropriate Kind.Another consideration is whether triggering a backup through a cluster spec enhances the user experience. Need to ask what others think.