-
Notifications
You must be signed in to change notification settings - Fork 97
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
OCM-5803 | feat: add vpc ids field to the cloud provider data struct #893
Conversation
The new field enables filtering VPCs by VPC ids. The equivalent change in the backend: `type CloudProviderInquiries struct { GCP *GCP `json:"gcp,omitempty"` Region *CloudRegion `json:"region,omitempty"` KeyLocation *string `json:"key_location,omitempty"` KeyRingName *string `json:"key_ring_name,omitempty"` AWS *AWS `json:"aws,omitempty"` Version *Version `json:"version,omitempty"` AvailabilityZones []string `json:"availability_zones,omitempty"` Subnets []string `json:"subnets,omitempty"` --> VpcIds []string `json:"vpc_ids,omitempty"` }`
/lgtm |
IMO, this is getting confusing. I think we should strive for a pattern. If we are going to have filters within the body of a post, can we include a filter field that maps to a specific filter for it? Like we have an AWS field which has a region ID inside it as well as we have a region outside within the overall structure I'd like to propose to have a Filter field and we can slowly deprecate the other fields so we stop simply adding more |
@gdbranco Do you have a quick example of what you have in mind? |
This is a valid proposal. |
@gdbranco created this ticket https://issues.redhat.com/browse/OCM-5805, please feel free to add comments and context if needed, thanks. |
Only other comment I have is that it is missing the end dot '.' to most fields in this file |
I like the generic filter option. I do agree with @oriAdler that given the current design, we can't make breaking changes, and it will be very confusing to have subnet ids filtered in the body and the vpc-ids in the filter. Probably best to follow that new ticket as enhancement to the API (probably with a new endpoint). |
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.
LGTM
The new field enables filtering VPCs by VPC ids.
The equivalent change in the backend: